hlrender 0.0.102 → 0.0.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/{affix-widget-341cfb7e.js → affix-widget-2a2bc325.js} +10 -10
  2. package/{alert-widget-24aa4017.js → alert-widget-049843f8.js} +10 -10
  3. package/{anchor-widget-6fc95258.js → anchor-widget-43f77800.js} +7 -7
  4. package/{auto-complete-widget-740b814f.js → auto-complete-widget-264737ba.js} +9 -9
  5. package/{avatar-widget-3ef51396.js → avatar-widget-a3a6874e.js} +10 -10
  6. package/{backtop-widget-1536b5e6.js → backtop-widget-942cd3af.js} +10 -10
  7. package/{badge-widget-83d1ce73.js → badge-widget-35a6df20.js} +10 -10
  8. package/{baseImp-838d8fb5.js → baseImp-b8b70878.js} +400 -400
  9. package/{breadcrumb-widget-d766fe62.js → breadcrumb-widget-774f9aa9.js} +7 -7
  10. package/{button-widget-92a775d6.js → button-widget-671d8148.js} +10 -10
  11. package/{cache-widget-7ebb46cf.js → cache-widget-eaf2ea7f.js} +8 -8
  12. package/{card-widget-93d5d629.js → card-widget-164bb12c.js} +8 -8
  13. package/{carousel-widget-e783c590.js → carousel-widget-5125994b.js} +8 -8
  14. package/{cascader-widget-d4e49788.js → cascader-widget-d72a4a52.js} +8 -8
  15. package/{chart-widget-32fb2572.js → chart-widget-d0b461ea.js} +7 -7
  16. package/{checkbox-widget-9aa95a16.js → checkbox-widget-ce4f623c.js} +8 -8
  17. package/{collapse-widget-c3b3b029.js → collapse-widget-3f4de987.js} +8 -8
  18. package/{color-picker-widget-d0c99096.js → color-picker-widget-35c60454.js} +8 -8
  19. package/{cont-cell-widget-f7bc7e90.js → cont-cell-widget-4f5d6744.js} +1 -1
  20. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-778e129d.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-96c1958c.js} +5 -5
  21. package/{cont-widget-e9007d09.js → cont-widget-1e6dffed.js} +5 -5
  22. package/{content-wrapper-1a610d49.js → content-wrapper-3b18e2ef.js} +3 -3
  23. package/{content-wrapper.vue_vue_type_script_setup_true_lang-b50d52df.js → content-wrapper.vue_vue_type_script_setup_true_lang-14207f35.js} +2 -2
  24. package/{date-picker-range-widget-8ccfd6ff.js → date-picker-range-widget-7d2ba28a.js} +8 -8
  25. package/{date-picker-widget-35d7e33f.js → date-picker-widget-f3ef9b5c.js} +8 -8
  26. package/{default-slot-widget-b2f4b07d.js → default-slot-widget-2644a1bc.js} +8 -8
  27. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-299c79ad.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-a7d4fae7.js} +5 -5
  28. package/{descriptions-widget-63e09e37.js → descriptions-widget-0b2204c6.js} +8 -8
  29. package/{dialog-widget-9bc6608b.js → dialog-widget-4edc1a84.js} +9 -9
  30. package/{divider-widget-7f2e2a4b.js → divider-widget-8f6eee74.js} +10 -10
  31. package/{drag-wrapper-964c15f7.js → drag-wrapper-5acd4e59.js} +5 -5
  32. package/{drawer-widget-0e97996f.js → drawer-widget-47b30686.js} +9 -9
  33. package/{dropdown-widget-ac2ecced.js → dropdown-widget-b52c162c.js} +8 -8
  34. package/{empty-widget-7515475c.js → empty-widget-a5cb911e.js} +10 -10
  35. package/{expression-ab81df05.js → expression-99df2027.js} +1 -1
  36. package/{feedback-widget-86b0f45f.js → feedback-widget-a3e0b8e8.js} +9 -9
  37. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-dc94791b.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-cea398cf.js} +5 -5
  38. package/{file-upload-widget-cfecb373.js → file-upload-widget-ada14f1c.js} +10 -10
  39. package/{form-item-wrapper-f09824fb.js → form-item-wrapper-eee248f5.js} +4 -4
  40. package/{form-widget-ee77babb.js → form-widget-536af035.js} +8 -8
  41. package/{grid-col-widget-c95c696d.js → grid-col-widget-cdcb2a5c.js} +1 -1
  42. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-907bb73f.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-9996c4e5.js} +5 -5
  43. package/{grid-widget-27779136.js → grid-widget-9321ecbc.js} +5 -5
  44. package/{html-text-widget-0bd1608c.js → html-text-widget-40acc95e.js} +8 -8
  45. package/{icon-widget-488788fa.js → icon-widget-4f4faefe.js} +7 -7
  46. package/{iframe-widget-61d99d44.js → iframe-widget-08e48501.js} +7 -7
  47. package/{image-widget-eddd489f.js → image-widget-cb19fc3d.js} +7 -7
  48. package/{index-20591a7f.js → index-98ac0262.js} +3 -3
  49. package/{input-number-widget-e60ab0c7.js → input-number-widget-4c740ed3.js} +8 -8
  50. package/{input-widget-c9e6d8b2.js → input-widget-f3735f97.js} +9 -9
  51. package/{link-widget-c37f53da.js → link-widget-2b2f3238.js} +10 -10
  52. package/{ltable-col-widget-68e41fe3.js → ltable-col-widget-ac3ed76a.js} +1 -1
  53. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-327aba60.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-e03e6bf6.js} +7 -7
  54. package/{ltable-widget-fbbe5cf1.js → ltable-widget-d89507ad.js} +5 -5
  55. package/{menu-widget-b988e832.js → menu-widget-2e3d17aa.js} +8 -8
  56. package/{model-widget-24f816cc.js → model-widget-d2e7057c.js} +7 -7
  57. package/{multirow-f9b50a58.js → multirow-39542adb.js} +4 -4
  58. package/{multirow-widget-75f4de44.js → multirow-widget-e615700a.js} +8 -8
  59. package/package.json +1 -1
  60. package/{pagination-widget-b2bf91a1.js → pagination-widget-4d77ddd4.js} +7 -7
  61. package/{picture-upload-widget-e6d3e5d0.js → picture-upload-widget-d8fdff04.js} +9 -9
  62. package/{progress-widget-51ee46bc.js → progress-widget-aec48ce2.js} +8 -8
  63. package/{propresult-e01e499d.js → propresult-1fd5c898.js} +1 -1
  64. package/{radio-widget-8e92ed81.js → radio-widget-775b38b9.js} +8 -8
  65. package/{range-widget-d7f545e6.js → range-widget-6cdfbd28.js} +9 -9
  66. package/{rate-widget-09a59def.js → rate-widget-b909f8d7.js} +8 -8
  67. package/render.es.js +145 -145
  68. package/render.umd.js +5 -5
  69. package/{result-widget-e2dead90.js → result-widget-0459e15c.js} +8 -8
  70. package/{rich-editor-widget-34c1131f.js → rich-editor-widget-f5564d06.js} +8 -8
  71. package/{router-widget-df794305.js → router-widget-7db166f7.js} +7 -7
  72. package/{select-widget-661c08bf.js → select-widget-3fbd5e11.js} +8 -8
  73. package/{sfc-784ee675.js → sfc-7bbc3454.js} +8 -7
  74. package/{share-field-a4ea3cfb.js → share-field-652a1061.js} +5 -5
  75. package/{share-file-b9a88a87.js → share-file-6e05ac2c.js} +3 -3
  76. package/{slider-widget-249b4352.js → slider-widget-999eff8c.js} +8 -8
  77. package/{slot-52f769bc.js → slot-a38b06d5.js} +2 -2
  78. package/{static-text-widget-65963e5a.js → static-text-widget-aaa7dab4.js} +8 -8
  79. package/{steps-widget-4de757fc.js → steps-widget-c5e893d5.js} +7 -7
  80. package/{subMenu-widget-8a03f788.js → subMenu-widget-b34975d0.js} +3 -3
  81. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-57101136.js → subMenu-widget.vue_vue_type_script_setup_true_lang-fe308f61.js} +1 -1
  82. package/{switch-widget-082ce3c0.js → switch-widget-b15f7fa9.js} +8 -8
  83. package/{tab-pane-widget-38537e92.js → tab-pane-widget-f59c8e48.js} +1 -1
  84. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-91fd5262.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-4ad90aa8.js} +5 -5
  85. package/{table-col-widget-5ec5984c.js → table-col-widget-c1696870.js} +7 -7
  86. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-2e4e7eca.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-3429797d.js} +4 -4
  87. package/{table-widget-5e4a25b3.js → table-widget-3db1f907.js} +9 -9
  88. package/{tabs-widget-5b6f7e56.js → tabs-widget-5286c2ee.js} +6 -6
  89. package/{tag-widget-524adc92.js → tag-widget-5a0db476.js} +10 -10
  90. package/{text-widget-bfb1226a.js → text-widget-5162a0b4.js} +10 -10
  91. package/{textarea-widget-f1aec65b.js → textarea-widget-971b58fd.js} +8 -8
  92. package/{time-picker-range-widget-09332b59.js → time-picker-range-widget-4ede7876.js} +8 -8
  93. package/{time-picker-widget-6f52dc19.js → time-picker-widget-0e53141f.js} +8 -8
  94. package/{time-select-widget-66c62dc1.js → time-select-widget-3df052b8.js} +8 -8
  95. package/{tmpl-widget-02058d9e.js → tmpl-widget-6b74c06a.js} +8 -8
  96. package/{tree-select-widget-a4e62477.js → tree-select-widget-5892c9eb.js} +8 -8
  97. package/{tree-widget-ad31245c.js → tree-widget-4afd17ad.js} +7 -7
  98. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7ea314a4.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-3467dcb1.js} +2 -2
  99. package/{wrapper-widget-4e995078.js → wrapper-widget-04995ba3.js} +5 -5
package/render.umd.js CHANGED
@@ -6,7 +6,7 @@ compParams:render渲染器调用的外部参数;
6
6
  schemaParams:远程(如getOneSchemaData)调用传入的参数;
7
7
  vars:页面设置中的全局变量`,method:"方法",params:"参数",loadType:"加载方式",protocal:"参数类型",paramName:"参数名",paramValue:"参数值",minCheck:"最少选择数",maxCheck:"最多选择数",shouldFetch:"是否发送",shouldFetchHint:"每次调用的请求前会执行该语句,可以是变量并支持 ${a} 变量表达式。",dataFetch:"数据处理",fitFetch:"返回适配",willFetch:"发送前处理",didFetch:"完成回调",errorFetch:"错误处理",timeout:"超时时长(ms)",maxContentLength:"最大响应量",maxBodyLength:"最大请求量",responseType:"响应类型",data:"数据",defaultTime:"默认时间",panelChange:"面板改变",calendarChange:"日期更改",slotable:"启动插槽",stripe:"斑马纹",showHeader:"显示表头",highlightCurrentRow:"高亮当前行",currentRowKey:"当前行key",rowClassName:"行类",rowStyle:"行样式",cellStyle:"格样式",headerRowClassName:"表头行类",headerRowStyle:"表头行样式",headerCellClassName:"头格类",headerCellStyle:"头格样式",rowKey:"行数据Key",emptyText:"空数据提示",defaultExpandAll:"默认展开行",expandRowKeys:"展开行属性",defaultSort:"排序列属性",defaultSortHint:"默认的排序列的prop和顺序",tooltipEffect:"提示效果",tooltipOptions:"提示选项",showSummary:"表尾合计",sumText:"摘要列文本",summaryMethod:"合计计算",spanMethod:"合并行列",selectOnIndeterminate:"表头多选",indent:"树节点缩进",tableLoad:"表数据加载",load:"数据加载",treeProps:"嵌套配置",tableLayout:"表布局方式",tableLayoutHint:"设置表格单元、行和列的布局方式",scrollbarAlwaysOn:"显示滚动条",scrollbarAlwaysOnHint:"总是显示滚动条",showOverflowTooltip:"溢出提示",flexible:"主轴自适应",beforeTableRender:"数据源格式化",selectAll:"勾选全选",selectionChange:"选择项变化",cellMouseEnter:"进入单元格",cellMouseLeave:"离开单元格",cellClick:"单元格点击",cellDblclick:"单元格双击",cellContextmenu:"单元格右击",rowClick:"行点击",rowContextmenu:"行右击",rowDblclick:"行双击",headerClick:"列表头点击",headerContextmenu:"列表头右击",sortChange:"表排序变化",filterChange:"列筛选变化",currentChange:"当前行变化",headerDragend:"拖动表头",expandChange:"行缩展",default:"default插槽",append:"append插槽",empty:"empty插槽",index:"自定义索引",columnKey:"列Key",prop:"字段名称",fixed:"固定左列",renderHeader:"标题渲染",sortable:"可排序",sortMethod:"排序方法",sortBy:"排序属性",sortOrders:"排序轮转",resizable:"拖动变宽",headerAlign:"表头对齐",selectable:"行可选",reserveSelection:"刷新保留",reserveSelectionHelp:"数据刷新后是否保留选项",filters:"可过滤",filterPlacement:"过滤框定位",filterClassName:"过滤框类",filterMultiple:"过滤项多选",filterMultipleHelp:"数据过滤的选项是否多选",filteredValue:"选中过滤项",filteredValueHelp:"选中的数据过滤项",dataFilter:"数据过滤",dataSort:"数据排序",dataSlot:"数据模板",tableRowTitle:"行设置",tableCellTitle:"列设置",tableSumTitle:"合计设置",tablePagerTitle:"分页设置",tableTreeTitle:"树形表设置",actionInner:"内置动作",actionJS:"页面JS",actionURL:"打开URL",actionCode:"自定义方法",actionOpenDialog:"打开弹窗",actionCloseDialog:"关闭弹窗",actionShowWidget:"显示组件",actionHideWidget:"隐藏组件",actionEnableWidget:"启用组件",actionDisableWidget:"禁用组件",actionRequiredWidget:"必填组件",actionNoRequiredWidget:"非必填组件",actionResetWidget:"重置组件",actionSendSchema:"请求数据源",actionSaveFormData:"保存表单数据",titleText:"标题",fullscreen:"全屏",top:"上边距",modal:"遮罩层",modalClass:"遮罩类名",appendToBody:"插入body",appendTo:"挂载元素",lockScroll:"滚动锁定",openDelay:"打开延时",closeDelay:"关闭延时",closeOnClickModal:"点击关闭",showClose:"显示关闭",beforeClose:"关闭前回调",draggable:"启用拖拽",overflow:"可拖出可视",destroyOnClose:"关闭销毁",closeIcon:"关闭图标",headerAriaLevel:"ariaLevel",slotHeader:"头部模版",slotTitle:"标题模版",slotFooter:"底部模版",open:"打开回调",opened:"打开结束",close:"关闭回调",closed:"关闭结束",openAutoFocus:"聚焦回调",closeAutoFocus:"失焦回调",size:"尺寸",withHeader:"显示顶栏",pagePrev:"上一页",pagePager:"当前页",pageNext:"下一页",pageJumper:"跳转",pageRight:"往右",pageTotal:"总页数",pageinationSize:"分页大小",background:"页按钮背景",pageSize:"页条目数",defaultPageSize:"页默认条目",total:"总条目数",pageCount:"总页数",pagerCount:"页码按钮数",currentPage:"当前页数",defaultCurrentPage:"默认当前页",layout:"组件布局",pageSizes:"页条目数",paginationPopperClass:"页条目类",prevText:"上一页文字",prevIcon:"上一页图标",nextText:"下一页文字",nextIcon:"下一页图标",allowPage:"支持分页",hideOnSinglePage:"单页隐藏",sizeChange:"页条目改变",paginationCurrentChange:"当前页改变",paginationChange:"页改变",prevClick:"上一页点击",nextClick:"下一页点击",disabled:"禁用",readonly:"只读",labelSuffix:"标签后缀",hideRequiredAsterisk:"隐藏红星",requireAsteriskPosition:"星号位置",statusIcon:"校验图标",validateOnRuleChange:"改变触验证",scrollToError:"滚至首项",scrollToErrorHelp:"当校验失败时,滚动到第一个错误表单项",scrollIntoViewOptions:"滚动配置",scrollIntoViewOptionsHelp:"当校验有失败结果时,滚动到第一个失败的表单项目",percentage:"百分比",progressType:"类型",strokeWidth:"条宽度",textInside:"内置文字",status:"当前状态",progressIndeterminate:"动画进度",duration:"流动速度",progressColor:"背景色",progressWidth:"画布宽度",strokeLinecap:"两端形状",striped:"增加条纹",stripedFlow:"条纹流动",ariaLabel:"无障碍标签",rowspan:"行跨度",colspan:"列跨度",formInline:"行内表单",minRowNum:"最少行数",maxRowNum:"最多行数",showMode:"排列模式",verticalPosition:"垂直位置",hidden:"隐藏",layoutType:"布局类型",justify:"水平排列",flexAlign:"垂直排列",responseEncoding:"响应编码",showDetail:"显示明细",showBorder:"显示表格线",addRow:"添加行",deleteRow:"删除行",slotSetting:"插槽设置",affixChange:"状态改变",scroll:"滚动事件",valueType:"数值类型",switchValueTypeTitle:"值设置",unlinkPanels:"取消联动",dialogCloseSetting:"开关设置",cascaderMultipleSetting:"多选设置",cascaderFilterSetting:"筛选设置",cascaderEmptySetting:"空值设置",fileUploadSetting:"上传设置",dataFn:"上传参数",remoteMethod:"加载数据",fnTip:"数值提示",startTime:"开始时间",endTime:"结束时间",minTime:"最小时间",maxTime:"最大时间",container:"容器",bound:"触发位偏移",marker:"显示标记",nodeKey:"唯一标识",props:"配置选项",renderAfterExpand:"展开后渲染",renderContent:"节点渲染",highlightCurrent:"高亮选中",expandOnClickNode:"点击收缩",checkOnClickNode:"点击选中",autoExpandParent:"自开父节点",showCheckbox:"允许选中",filterNodeMethod:"允许筛选",allowDrag:"允许拖拽",allowDrop:"允许放置",nodeClick:"节点点击",nodeContextmenu:"节点右键",checkChange:"复选节点",check:"选中节点",treeCurrentChange:"选中变化",nodeExpand:"节点展开",nodeCollapse:"节点关闭",nodeDragStart:"开始拖拽",nodeDragEnter:"拖拽进入",nodeDragLeave:"拖拽离开",isopen:"默认展开",nodeDragOver:"拖拽时",nodeDragEnd:"拖拽结束",nodeDrop:"拖拽成功",propSetting:"配置属性",treeSetting:"【树形设计】",selectSetting:"【下拉框设计】",divider:"",children:"子节点",class:"自定义类",valueProp:"选项值名",labelProp:"选项标签名",disabledProp:"选项禁用名",leafProp:"选项叶节点",childrenProp:"选项子节点",compName:"组件类型",relateOptionItems:"关联选项设置",appendOnClick:"允许导入",showSaveButton:"允许保存",showAddButton:"允许添加",save:"点击保存时",add:"点击新增时",labelKey:"标签字段",contentKey:"内容字段",relatedIds:"关联组件",linkTarget:"打开方式",newDataSource:"新增数据源",editDataSource:"编辑数据源",loadDataWhenInit:"自动渲染",alwaysShow:"空数据时显示",horizontalAlign:"水平对齐",verticalAlign:"垂直对齐",formDataLoaded:"远程数据获取后",needFormAdd:"新增表单方法",dataSource:"数据源",chartOption:"图表配置",withQuery:"当前页参数",windowTatget:"新页面",dialogType:"操作按钮",setQueryFn:"设置url参数",encodeQuery:"url编码",windowModal:"窗口形式",selectOnlyOneGroup:"单组选择",showLimit:"显示条数限制",onlyOneAddButton:"单添加按钮",allowAdd:"支持添加",allowDelete:"支持删除",allowDefaultAdd:"默认添加",allowDefaultAddHelp:"空数据时,默认添加最少行数",addRecordText:"添加标签",deleteRecordText:"删除标签",sortUpText:"向上标签",sortDownText:"向下标签",showGroup:"分组形式",unitText:"单位",renderMode:"渲染形式",onLoaded:"页面加载后",onReceive:"接收消息",splitText:"分隔符",addButtonText:"添加提示",saveButtonText:"保存提示",operateData:"保存参数",selectOptionName:"选项列表键名",selectTextName:"文本列表键名",selectLabelName:"文本键名",selectValueKey:"值键名",selectLabelKey:"显示键名",dataLoadCompleted:"数据加载完",progressCompleted:"进度完成时",completeSec:"完成延迟(s)",noData:"空数据提示",beforeFetch:"表单请求前",afterFetch:"请求后结果",beforeFetchHelp:"表单请求前优化请求数据源的参数,并将设置的结果返回",afterFetchHelp:`数据源返回的输出,如表主键等内容,可设置回显至当前表单
8
8
  (如不设置该函数,默认按照输出回显)`,dataFormat:"数据格式化",rowDataFormat:"行数据格式化",windowTarget:"目标窗口",schemaParamName:"数据标识符",schemaParamNameHelp:"用于将表单数据data组装为{[数据标识符]:data},作为全局变量的schemaParams的参数",includeMaxValue:"包含最大值",includeMinValue:"包含最小值",rangeValidate:"范围校验",withAttachData:"附加回传",withAttachDataTitle:"附加回传设置",stateHelp:"custom:普通\rreadonly:只读\rdisabled:禁用\rhidden:隐藏",hashRouter:"哈希动态路由",allItemAsValue:"选中值对象",allItemAsValueHelp:"是=选中选项时,输出的值为对象\r否=选中选项时,输出的值为valueKey对应值",fileList:"文件列表",accept:"文件类型",onChange:"文件状态改变",onExceed:"数量超限时",onProgress:"文件上传时",onPreview:"文件预览时",onSuccess:"上传成功时",onError:"上传失败时",onRemove:"文件移除时",getHeader:"上传消息头",getData:"上传附加参数",dataName:"文件字段名",beforeRemove:"文件移除前",onBuildUrl:"文件路径设置",isUploadSuccess:"上传结果核验",slotTrigger:"触发模板",slotTip:"提示模板",slotFile:"文件详情",listType:"列表类型",sizeDef:"自定义尺寸",httpRequest:"自定义请求"},expression:{helpers_custom:"常用函数",helpers_string:"文本函数",helpers_time:"时间函数",helpers_logical:"逻辑函数",helpers_math:"数学函数",helpers_collection:"集合函数",helpers_other:"其他函数",helpers_medical:"医疗函数",comment:"说明",useMethod:"用法",allFields:"字段列表",allFormulas:"函数列表",formulaFunction:"请从左侧面板选择字段和函数,或输入函数"},enum:{rtl:"右->左",ltr:"左->右",ttb:"上->下",btt:"下->上",prev:"上一页",pager:"当前页",next:"下一页",jumper:"跳转",right:"向右",total:"总页数",inlineLayout:"内联",blockLayout:"行布局",flexLayout:"弹性布局",inline:"行内",block:"块",leftAlign:"居左",centerAlign:"居中",rightAlign:"居右",topAlign:"顶部",numberValidator:"数字",letterValidator:"字母",letterAndNumberValidator:"数字字母",mobilePhoneValidator:"手机号码",emailValidator:"邮箱",urlValidator:"网址",noChineseValidator:"非中文字符",chineseValidator:"仅中文字符",noBlankStartValidator:"非空白字符开头",noBlankEndValidator:"非空白字符结尾",noBlankStartEndValidator:"非空白字符开头结尾",letterStartNumberIncludedValidator:"以字母开头包含数字",ChinaIdcardValidator:"中国大陆身份证号",weakPasswordValidator:"弱度密码",mediumPasswordValidator:"中度密码",strongPasswordValidator:"强度密码",topPosition:"顶部",leftPosition:"左边",defaultPosition:"默认",rightPosition:"右边",frontPosition:"前置",rearPosition:"后置",horizontalPosition:"水平",verticalPosition:"垂直",both:"均可",none:"无",defaultButton:"常规",plainButton:"朴素",roundButton:"圆角",circleButton:"圆形",linkButton:"链接",textButton:"文字",custom:"普通",readonly:"只读",disabled:"禁用",hidden:"隐藏",schemaVariable:"变量",schemaRemote:"远程",schemaUrlParam:"URL参数",schemaConfigParam:"组件参数",auto:"自动",async:"异步",manual:"手动",tablecolumntype_default:"默认",tablecolumntype_selection:"选项",tablecolumntype_index:"索引",tablecolumntype_expand:"展开",size_none:"常规",size_small:"较小",size_default:"默认",size_large:"较大",start:"靠左",end:"靠右",spaceAround:"分散对齐",spaceBetween:"两端对齐",spaceEvenly:"均匀分布",middle:"居中",center:"居中",left:"左部",rightPart:"右部",top:"顶部",topStart:"顶部左侧",topEnd:"顶部右侧",bottom:"底部",bottomStart:"底部左侧",bottomEnd:"底部右侧",line:"线形",circle:"圆形",dashboard:"仪表盘",success:"成功",exception:"异常",warning:"警告",info:"信息",error:"错误",danger:"高危",primary:"定制",default:"常规",underline:"下划线",butt:"无",round:"半圆形",square:"正方形",row_line:"平铺方式",row_table:"表格方式",process_wait:"等待",process_process:"进行中",process_finish:"已完成",process_error:"错误",process_success:"成功",dark:"深色",light:"亮色",plain:"常规",min:"最小值",max:"最大值",singletext:"单行文本",textarea:"多行文本",password:"密码",number:"数字",card:"卡片",borderCard:"边框卡片",click:"点击",hover:"鼠标悬浮",never:"从不",always:"总是",outside:"外部",fixed:"固定",datetime:"年月日时分秒",date:"年月日",dates:"天",year:"年",month:"月",week:"周",daterange:"日期",datetimerange:"日期时间",monthrange:"月",empty:"空",fill:"填充",contain:"包含",cover:"覆盖",scaleDown:"缩减",eager:"立即加载",lazy:"懒加载",contextmenu:"右键",button:"常规",submit:"提交",reset:"重置",dashed:"虚线",dotted:"点线",solid:"实线",inherit:"继承",initial:"默认值",unset:"unset",double:"双线",SubMenu:"子菜单",MenuItem:"菜单项",MenuItemGroup:"菜单分组项",booleanType:"布尔型",stringType:"字符串型",numberType:"数值型",targetBlank:"打开新的页面",targetSelf:"在当前页面打开",windowTop:"顶层窗体",windowSelf:"本级窗体",windowParent:"父窗体",window:"浏览器自带窗口",modal:"模态窗口",closeIframe:"直接关闭",cancelIframe:"取消(通知子页面)",saveIframe:"保存(通知子页面)",normal:"常规",iframe:"网页",TextCheckMode_json:"json",TextCheckMode_text:"text",alertSuccess:"成功",alertWarning:"警告",alertInfo:"信息",alertError:"错误",pictureCard:"图片卡片",picture:"缩略图",text:"文本"},helper:{CONCATENATE_func:"将多个字符串拼接合成一个文本字符串",LEFT_func:"获取从左指定字符",GETCHECKEDNAME_func:"获取首个已选的选项名称",GETCHECKEDNAME_return:"选项名称",GETCHECKEDNAME_items:"选项列表",GETCHECKEDNAME_itemName:"选项字段名",GETCHECKEDNAMES_func:"获取所有已选的选项名称",GETCHECKEDNAMES_return:"选项名称",GETCHECKEDNAMES_items:"选项列表",GETCHECKEDNAMES_itemName:"选项字段名",array:"数组",array1:"数组1",array2:"数组2",index:"索引",INTERSECTIONSET_func:"获取两个数组的交集",INTERSECTIONSET_return:"交集数组字符串",UNIONSET_func:"获取两个数组的并集",UNIONSET_return:"并集数组字符串",DIFFERENCESET_func:"获取两个数组的差集",DIFFERENCESET_return:"差集数组字符串",SUBSET_func:"判断数组1是否是数组2的子集",SUBSET_return:"是否子集",ARRAYLEN_func:"获取数组长度",ARRAYLEN_return:"数组长度",ARRAYGET_func:"获取数组中第index个值",ARRAYGET_return:"数组中指定索引值",LARGE_func:"获取数组中第index个最大值",LARGE_return:"数组中第index个最大值",SMALL_func:"获取数组中第index个最小值",SMALL_return:"数组中第index个最小值",ARRAY_func:"根据参数值列表生成数组",ARRAY_return:"参数值列表组成的数组",v1:"数值1",v2:"数值2",EQ_func:"比较两个值是否相等,支持数字、日期",EQ_return:"是否相等",NE_func:"比较两个值是否不相等,支持数字、日期",NE_return:"是否不相等",LT_func:"判断值1是否小于值2,支持数字、日期",LT_return:"是否小于",GT_func:"判断值1是否大于值2,支持数字、日期",GT_return:"是否大于",LTE_func:"判断值1是否小于等于值2,支持数字、日期",LTE_return:"是否小于等于",GTE_func:"判断值1是否大于等于值2,支持数字、日期",GTE_return:"是否大于等于",logical_args:"逻辑表达式1,逻辑表达式2,...",logical_arg:"逻辑表达式",AND_func:"获取多逻辑表达式是否同时成立",AND_return:"是否同时成立",OR_func:"获取多逻辑表达式是否有一个成立",OR_return:"是否有一个成立",NOT_func:"获取逻辑表达式的否定",NOT_return:"布尔值的否定",XOR_func:"获取多个逻辑表达式的异或比较",XOR_return:"所有逻辑表达式的异或值",TRUE_func:"获取布尔值true",TRUE_return:"布尔值true",FALSE_func:"获取布尔值false",FALSE_return:"布尔值false",IF_func:"判断一个条件能否满足;如果满足返回一个值,如果不满足则返回另外一个值",IF_return:"逻辑判断后的真值或假值",IF_trueValue:"结果为true的返回值",IF_falseValue:"结果为false的返回值",numArgs:"数值列表",numArray:"数值数组",numArray1:"数值数组1",numArray2:"数值数组2",num:"值",num_digits:"指定位数",significance:"舍入倍数",decimals:"小数位数",ADDNUM_func:"获取多数值总和,要求数组内全部为非空",ADD_func:"获取多数值总和,数组内空值将转换为0",ADD_return:"参数总和值",SUM_func:"获取数值数组总和",SUM_return:"参数总和值",AVERAGE_func:"获取所有数值总和平均值",AVERAGE_return:"参数总和平均值",MAX_func:"获取所有数值的最大值",MAX_return:"所有数值最大值",MIN_func:"获取所有数值的最小值",MIN_return:"所有数值最小值",ABS_func:"获取数值的绝对值",ABS_return:"数值的绝对值",ROUND_func:"获取数值的四舍五入指定位数",ROUND_return:"数值的四舍五入指定位数",CEILING_func:"获取数值的向上舍入倍数",CEILING_return:"数值的向上舍入倍数",FLOOR_func:"获取数值的向下舍入倍数",FLOOR_return:"数值的向下舍入倍数",INT_func:"获取数值的向下取整的数",INT_return:"整数值",log_base:"底数值",LOG_func:"获取对数",LOG_return:"对数值",power_num:"指数值",power_base:"基数值",POWER_func:"获取乘幂",POWER_return:"数字乘幂",FIXED_func:"获取舍入指定位数",FIXED_return:"指定小数位数的数值",SQRT_func:"获取正数的平方根",SQRT_return:"正数的平方根",SUMPRODUCT_func:"获取两个数组对应索引的数值乘积之和",SUMPRODUCT_return:"两个数组项乘积之和",NUMBERCOMPARE_func:"判断两个数值是否相等",NUMBERCOMPARE_return:"是否相等",value:"内容",pattern:"格式",NUMBERFORMATE_func:"获取数值格式化",NUMBERFORMATE_return:"格式化后内容",lastMenstrualPeriod:"末次月经",dateOfPrenatal:"预产期",currentTime:"当前时间",PREGNANTWEEKDAY_mode:"week或day",PREGNANTWEEKDAY_func:"获取孕周或孕天",PREGNANTWEEKDAY_return:"孕周或孕天",PREGNANTWEEK_func:"获取孕周",PREGNANTWEEK_return:"孕周",PREGNANTDAY_func:"获取孕天",PREGNANTDAY_return:"孕天",STOPMENSTRUALWEEK_func:"获取停经周数",STOPMENSTRUALWEEK_return:"停经周数",STOPMENSTRUALDAY_func:"获取停经天数",STOPMENSTRUALDAY_return:"停经天数",stringArray:"字符串数组",format:"字符串格式【变量以{0}形式出现】",text1:"文本1",text2:"文本2",text:"文本",orgText:"原始文本",num_chars:"文本长度",separator:"分隔符",CONCATENATE_fun:"将多个字符串拼接合成一个文本字符串",CONCATENATE_return:"拼接后字符串",LEFT_fun:"获取从左指定字符",LEFT_return:"指定字符串",RIGHT_func:"获取从右指定字符",RIGHT_return:"指定字符串",MID_func:"截取文本",MID_return:"指定字符串",MID_start_index:"开始截取的位置",LEN_func:"获取字符串长度",LEN_return:"指定字符串",LOWER_func:"转换为小写字母",LOWER_return:"文本的小写字母格式",UPPER_func:"转换为大写字母",UPPER_return:"文本的大写字母格式",REPLACE_func:"替换文本",REPLACE_return:"替换后的文本值",REPLACE_start_index:"开始替换位置",REPLACE_num_chars:"替换字符数",REPLACE_new_text:"替换的新文本",REPT_func:"重复文本",REPT_return:"替换后的文本值",number_times:"重复次数",SEARCH_func:"获取指定字符串的位置",SEARCH_return:"查找字符串的位置索引",SEARCH_within_text:"查找的文本",SEARCH_start_num:"开始查找位置",TEXT_func:"获取数据格式化",TEXT_return:"格式化文本",VALUE_func:"将文本转换数字",VALUE_return:"转化后的数值",SPLIT_limit:"分割结果最大数",SPLIT_func:"分割文本",SPLIT_return:"转化后的数值",TRIM_func:"删除收尾空格",TRIM_return:"收尾不带有空格的文本值",UUID_func:"获取唯一识别字符串",UUID_return:"随机字符串",ISNULL_func:"判断值是否为null",ISNULL_return:"是否null",ISEMPTY_func:"判断值是否为空判断",ISEMPTY_return:"是否为空",PINYIN_func:"获取文本的全拼音",PINYIN_return:"文本全拼音,中文转拼音,其余不变",PINYINHEADCHAR_func:"获取文本拼音首字母大写",PINYINHEADCHAR_return:"文本拼音首字母,中文转拼音,其余不变",PRINT_func:"原样显示文本",PRINT_return:"文本",STRINGCOMPARE_func:"比较文本是否一致",STRINGCOMPARE_return:"是否一致",DATE_func:"将时间戳转换为日期对象",DATE_return:"日期对象",DATE_date:"时间戳",DATEFORMAT_func:"日期格式化",DATEFORMAT_return:"日期的文本格式",TIMESTAMP_func:"获取对应日期对象的时间戳",TIMESTAMP_return:"日期对象时间戳",TIMESTAMP_date:"日期对象",hour:"小时",minute:"分钟",second:"秒数",TIME_func:"获取时间十进制",TIME_return:"时间十进制数值,如12:00:00返回0.5天",TODAY_func:"获取客户端当天日期",TODAY_return:"客户端当天日期对象",NOW_func:"获取客户端当天时间",NOW_return:"客户端当天时间对象",YEAR_func:"获取日期年份",YEAR_return:"日期年份",MONTH_func:"获取日期月份",MONTH_return:"日期月份",date:"指定日期",date1:"日期1",date2:"日期2",diff_type:"间隔单位(year,month,day,hour,minute,second,week)",DAY_func:"获取日期天数",DAY_return:"日期天数",HOUR_func:"获取日期小时",HOUR_return:"日期小时",MINUTE_func:"获取日期分钟",MINUTE_return:"日期分钟",SECOND_func:"获取日期秒数",SECOND_return:"日期秒数",DATEADD_func:"指定加/减时间",DATEADD_return:"加/减时间后的日期时间",DATEADD_date:"初始日期",DATEADD_delta_num:"加减的时间",DATEADD_delta_type:"加减的时间单位(year,month,day,hour,minute,second,week)",DATEDIFF_func:"两个日期之间的间隔",DATEDIFF_return:"日期间隔",DATEDIFFPART_func:"两个日期之间的间隔部分值",DATEDIFFPART_return:"日期间隔部分值",DAYS360_func:"按一年360计算两个日期相差间隔",DAYS360_return:"日期相差间隔",DAYBEGIN_func:"获取一天中日期零点",DAYBEGIN_return:"日期零点",DAYEND_func:"获取一天中日期最大值",DAYEND_return:"日期最大值",YEARBEGIN_func:"获取当年首天",YEARBEGIN_return:"当年首天",YEAREND_func:"获取当年最后一天",YEAREND_return:"当年最后一天",WEEKNUM_func:"获取当前日期周数",WEEKNUM_return:"当前日期的周数",WEEKNUM_return_type:"1表示周日为每周第一天,2表示周一为每周第一天",ISOWEEKNUM_func:"获取以周日为每周第一天的当前日期周数",ISOWEEKNUM_return:"当前日期的周数",ASSIGN_func:"多个object对象合并成一个object",ASSIGN_return:"object对象数组",ASSIGN_args:"object对象",TOJSON_func:"将对象转换为json字符串",TOJSON_return:"json字符串",TOJSON_args:"json对象",FROMJSON_func:"文本转json对象",FROMJSON_return:"json对象",FROMJSON_args:"json字符串",GETAGEBYBIRTH_func:"出生日期计算年龄",GETAGEBYBIRTH_return:"年龄",birthday:"出生日期",idcard:"中国身份证号",ISVALIDIDCARD_func:"判断证件号是否为中国居民身份证号",ISVALIDIDCARD_return:"判断结果",GETBIRTHDAY_func:"中国身份证号获取出生日期",GETBIRTHDAY_return:"出生日期",GETAGE_func:"中国身份证号获取年龄",GETAGE_return:"年龄",GETSEXCODE_func:"中国身份证号获取性别",GETSEXCODE_return:"性别代码",GETSEXNAME_func:"中国身份证号获取性别",GETSEXNAME_return:"性别名称",GETPROVINCE_func:"中国身份证号获取省份编码",GETPROVINCE_return:"省份编码",GETPROVINCENAME_func:"中国身份证号获取省份名称",GETPROVINCENAME_return:"省份名称",REPLACESTRING_func:"替换指定范围字符串为统一的字符",REPLACESTRING_return:"替换后的结果",indexStart:"开始索引",indexEnd:"结束索引",replacement:"替换后的文本",PRODUCT_func:"获取数组内数值乘积",PRODUCT_return:"乘积",DIVISION_func:"获取两个数相除的结果",DIVISION_return:"商",divisor:"被除数",dividend:"除数"},var:{rowScope:`组件绑定的属性值(目前仅支持【模板】、【数据表格】组件,
9
- 用于每行内的组件读取当前行数据如rowScope.row.column_name),可先用console.log(schema.rowScope)查看数据项`}}},KY={render:{hint:{prompt:"提示",confirm:"确定",cancel:"取消",selectPlaceholder:"请选择",timePlaceholder:"选择时间",startTimePlaceholder:"起始时间",endTimePlaceholder:"截止时间",datePlaceholder:"选择日期",startDatePlaceholder:"起始日期",endDatePlaceholder:"截止日期",blankCellContent:"--",uploadError:"上传错误: ",uploadExceed:"最大上传数量(${uploadLimit})已超出.",unsupportedFileType:"不支持格式: ",fileSizeExceed:"文件大小已超出: ",refNotFound:"组件未找到: ",fieldRequired:"必填",invalidNumber:"数据格式错误",selectFile:" 选择文件",downloadFile:"下载",removeFile:"移除",validationFailed:"表单数据校验失败",numberFailed:"包含非数字字符",letterFailed:"包含非字母字符",letterAndNumberFailed:"只能输入字母或数字",mobilePhoneFailed:"手机号码格式有误",noBlankStartFailed:"不允许空白字符开头",noBlankEndFailed:"不允许空白字符结尾",noBlankStartEndFailed:"不允许以空白字符开头结尾",letterStartNumberIncludedFailed:"必须以字母开头,可包含数字",noChineseFailed:"不可输入中文字符",chineseFailed:"只能输入中文字符",emailFailed:"邮箱格式有误",urlFailed:"URL格式有误",chinaIdcardFailed:"身份证格式有误",invalidFailed:"非法值",weakPasswordFailed:"仅字母或数字,至少6位",mediumPasswordFailed:"字母+数字,至少8位",strongPasswordFailed:"大小写+数字+特殊符号,至少10位"}}},XY={extension:{}},Rc={get(e){return localStorage.getItem(e)},set(e,t){typeof t=="object"?localStorage.setItem(e,Zr(t)):localStorage.setItem(e,String(t))},remove(e){localStorage.removeItem(e)}},YY={"zh-CN":{custionLocale:{},...WY,...GY,...KY,...XY}},_T="v_form_locale",bT=function(){return{lang:Rc.get(_T)||"zh-CN"}},JY=function(e){ng.setLang(e),Rc.set(_T,e)},xT=()=>{let e=bT();JY(e==null?void 0:e.lang)},ng=ZY({locale:bT(),messages:YY});function ZY(e){return{messages:e.messages,locale:e.locale,$st(t,n=!0,...r){t=t==null?void 0:t.trim();let a=this.messages[this.locale.lang];const o=ax(a,t);return typeof o=="function"?o(...r):o!==null?o:n?t:""},$st2(t,n){let r=this.messages[this.locale.lang];const a=ax(r,t);return a!==null?a:this.$st(n)},setLang(t){this.locale.lang=t}}}const QY=function(e){return ng.$st(e)},se={i18nt(e,t=!0){return e?ng.$st(e,t):""},i18n2t(e,t){return ng.$st2(e,t)}};var He=(e=>(e.string="string",e.number="number",e.bigint="bigint",e.boolean="boolean",e.symbol="symbol",e.undefined="undefined",e.object="object",e.function="function",e.array="array",e.any="any",e.date="date",e))(He||{}),Dl=(e=>(e.typescript="typescript",e.javascript="javascript",e.css="css",e.html="html",e.json="json",e.sql="sql",e.text="text",e))(Dl||{}),Ni=(e=>(e.sysVar="sysVar",e.sysFunc="sysFunc",e.sysData="sysData",e.schema="schema",e))(Ni||{});class $e{constructor(t,n,r=!1){z(this,"label","");z(this,"value","");z(this,"isdefalut",!1);this.label=n,this.value=t,this.isdefalut=r}}var be=(e=>(e.event="event",e.hook="hook",e.prop="prop",e.slot="slot",e.icon="icon",e.targetEvent="targetEvent",e.placer="placer",e.placerHook="placerHook",e.singleOption="singleOption",e.dataObject="dataObject",e.datasource="datasource",e.variable="variable",e.formula="formula",e.schemaData="schemaData",e))(be||{}),tt=(e=>(e.none="",e.page="page",e.cache="cache",e.input="input",e.textarea="textarea",e.number="input-number",e.range="range",e.radio="radio",e.checkbox="checkbox",e.select="select",e.timePicker="time-picker",e.timePickerRange="time-picker-range",e.datePicker="date-picker",e.datePickerRange="date-picker-range",e.autoComplete="auto-complete",e.pictureUpload="picture-upload",e.fileUpload="file-upload",e.richEditor="rich-editor",e.rate="rate",e.slider="slider",e.divider="divider",e.switch="switch",e.colorPicker="color-picker",e.button="button",e.icon="icon",e.cascader="cascader",e.multirow="multirow",e.tmpl="tmpl",e.htmlText="html-text",e.staticText="static-text",e.text="text",e.link="link",e.tag="tag",e.tabs="tabs",e.card="card",e.grid="grid",e.gridCol="grid-col",e.cont="cont",e.contCell="cont-cell",e.table="ltable",e.tableCol="ltable-col",e.tableRow="ltable-row",e.tabPane="tab-pane",e.eltable="table",e.eltableCol="table-col",e.dialog="dialog",e.drawer="drawer",e.avatar="avatar",e.badge="badge",e.affix="affix",e.backtop="backtop",e.router="router",e.empty="empty",e.image="image",e.result="result",e.carousel="carousel",e.dropdown="dropdown",e.progress="progress",e.collapse="collapse",e.descriptions="descriptions",e.breadcrumb="breadcrumb",e.menu="menu",e.steps="steps",e.pagination="pagination",e.form="form",e.anchor="anchor",e.alert="alert",e.tree="tree",e.treeSelect="tree-select",e.timeSelect="time-select",e.model="model",e.chart="chart",e.iframe="iframe",e.wrapper="wrapper",e.address="address",e.modalDialog="modalDialog",e.saveFormTarget="saveFormTarget",e.targetDatasource="targetDatasource",e))(tt||{}),Fi=(e=>(e.setHidden="setHidden",e.setDisabled="setDisabled",e.setReadonly="setReadonly",e.setRequired="setRequired",e.setLabel="setLabel",e.resetField="resetField",e.getValue="getValue",e.setValue="setValue",e.getField="getField",e.getCheckedItems="getCheckedItems",e.getMousePos="getMousePos",e.setMousePos="setMousePos",e.insertOnMousePos="insertOnMousePos",e))(Fi||{}),Ss=(e=>(e.actionURL="actionURL",e.actionCode="actionCode",e.actionSendSchema="actionSendSchema",e.actionHideWidget="actionHideWidget",e.actionShowWidget="actionShowWidget",e.actionOpenDialog="actionOpenDialog",e.actionCloseDialog="actionCloseDialog",e.actionEnableWidget="actionEnableWidget",e.actionDisableWidget="actionDisableWidget",e.actionSaveFormData="actionSaveFormData",e))(Ss||{}),bu=(e=>(e.normal="normal",e.field="field",e.container="container",e))(bu||{}),jc=(e=>(e.front="front",e.rear="rear",e))(jc||{});new $e("front",se.i18nt("designer.enum.frontPosition")),new $e("rear",se.i18nt("designer.enum.rearPosition")),new $e("label-left-align",se.i18nt("designer.enum.leftAlign")),new $e("label-center-align",se.i18nt("designer.enum.centerAlign")),new $e("label-right-align",se.i18nt("designer.enum.rightAlign")),new $e("label-top-align",se.i18nt("designer.enum.topAlign"));var mo=(e=>(e.none="",e.default="default",e.large="large",e.small="small",e))(mo||{});new $e("default",se.i18nt("designer.enum.size_default")),new $e("large",se.i18nt("designer.enum.size_large")),new $e("small",se.i18nt("designer.enum.size_small")),new $e("",se.i18nt("designer.enum.size_none"),!0),new $e("default",se.i18nt("designer.enum.size_default")),new $e("large",se.i18nt("designer.enum.size_large")),new $e("small",se.i18nt("designer.enum.size_small"));var ux=(e=>(e.dark="dark",e.light="light",e.plain="plain",e))(ux||{});new $e("dark",se.i18nt("designer.enum.dark")),new $e("light",se.i18nt("designer.enum.light")),new $e("plain",se.i18nt("designer.enum.plain"));var Pp=(e=>(e.dark="dark",e.light="light",e))(Pp||{});new $e("dark",se.i18nt("designer.enum.dark")),new $e("light",se.i18nt("designer.enum.light"));var Pl=(e=>(e.inline="inline-block",e.block="block",e.flex="flex",e))(Pl||{});new $e("block",se.i18nt("designer.enum.blockLayout")),new $e("inline-block",se.i18nt("designer.enum.inlineLayout")),new $e("flex",se.i18nt("designer.enum.flexLayout")),new $e("block",se.i18nt("designer.enum.block")),new $e("inline-block",se.i18nt("designer.enum.inline"));var ET=(e=>(e.success="success",e.warning="warning",e.error="error",e.info="info",e))(ET||{});new $e("success",se.i18nt("designer.enum.success")),new $e("warning",se.i18nt("designer.enum.warning")),new $e("error",se.i18nt("designer.enum.error")),new $e("info",se.i18nt("designer.enum.info"));var rg=(e=>(e.primary="primary",e.success="success",e.warning="warning",e.danger="danger",e.info="info",e))(rg||{});new $e("primary",se.i18nt("designer.enum.primary")),new $e("info",se.i18nt("designer.enum.info")),new $e("success",se.i18nt("designer.enum.success")),new $e("warning",se.i18nt("designer.enum.warning")),new $e("danger",se.i18nt("designer.enum.danger"));var cx=(e=>(e.success="success",e.warning="warning",e.danger="danger",e.info="info",e))(cx||{});new $e("info",se.i18nt("designer.enum.info")),new $e("success",se.i18nt("designer.enum.success")),new $e("warning",se.i18nt("designer.enum.warning")),new $e("danger",se.i18nt("designer.enum.danger"));var fx=(e=>(e.default="",e.primary="primary",e.success="success",e.warning="warning",e.danger="danger",e.info="info",e))(fx||{});new $e("",se.i18nt("designer.enum.default")),new $e("primary",se.i18nt("designer.enum.primary")),new $e("info",se.i18nt("designer.enum.info")),new $e("success",se.i18nt("designer.enum.success")),new $e("warning",se.i18nt("designer.enum.warning")),new $e("danger",se.i18nt("designer.enum.danger"));var kp=(e=>(e.top="top",e.topStart="top-start",e.topEnd="top-end",e.bottom="bottom",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e))(kp||{});new $e("top",se.i18nt("designer.enum.top")),new $e("top-start",se.i18nt("designer.enum.topStart")),new $e("top-end",se.i18nt("designer.enum.topEnd")),new $e("bottom",se.i18nt("designer.enum.bottom")),new $e("bottom-start",se.i18nt("designer.enum.bottomStart")),new $e("bottom-end",se.i18nt("designer.enum.bottomEnd"));var Nd=(e=>(e.line="line",e.circle="circle",e.dashboard="dashboard",e))(Nd||{});new $e("line",se.i18nt("designer.enum.line")),new $e("circle",se.i18nt("designer.enum.circle")),new $e("dashboard",se.i18nt("designer.enum.dashboard"));var wT=(e=>(e.none="",e.success="success",e.exception="exception",e.warning="warning",e))(wT||{});new $e("",se.i18nt("designer.enum.none")),new $e("success",se.i18nt("designer.enum.success")),new $e("exception",se.i18nt("designer.enum.exception")),new $e("warning",se.i18nt("designer.enum.warning"));var ST=(e=>(e.butt="butt",e.round="round",e.square="square",e))(ST||{});new $e("butt",se.i18nt("designer.enum.butt")),new $e("round",se.i18nt("designer.enum.round")),new $e("square",se.i18nt("designer.enum.square"));var Cs=(e=>(e.horizontal="horizontal",e.vertical="vertical",e))(Cs||{});new $e("horizontal",se.i18nt("designer.enum.horizontalPosition")),new $e("vertical",se.i18nt("designer.enum.verticalPosition"));var xu=(e=>(e.none="",e.left="left",e.center="center",e.right="right",e))(xu||{});new $e("left",se.i18nt("designer.enum.leftAlign")),new $e("center",se.i18nt("designer.enum.centerAlign")),new $e("right",se.i18nt("designer.enum.rightAlign"));var CT=(e=>(e.left="left",e.right="right",e))(CT||{});new $e("left",se.i18nt("designer.enum.leftPosition")),new $e("right",se.i18nt("designer.enum.rightPosition"));var AT=(e=>(e.top="top",e.bottom="bottom",e))(AT||{});new $e("top",se.i18nt("designer.enum.top")),new $e("bottom",se.i18nt("designer.enum.bottom"));var TT=(e=>(e.top="top",e.right="right",e.bottom="bottom",e.left="left",e))(TT||{});new $e("top",se.i18nt("designer.enum.top")),new $e("right",se.i18nt("designer.enum.rightPart")),new $e("bottom",se.i18nt("designer.enum.bottom")),new $e("left",se.i18nt("designer.enum.left"));var DT=(e=>(e.circle="circle",e.square="square",e))(DT||{});new $e("circle",se.i18nt("designer.enum.circle")),new $e("square",se.i18nt("designer.enum.square"));var px=(e=>(e.wait="wait",e.process="process",e.finish="finish",e.error="error",e.success="success",e))(px||{});new $e("wait",se.i18nt("designer.enum.process_wait")),new $e("process",se.i18nt("designer.enum.process_process")),new $e("finish",se.i18nt("designer.enum.process_finish")),new $e("error",se.i18nt("designer.enum.process_error")),new $e("success",se.i18nt("designer.enum.process_success"));var PT=(e=>(e.none="none",e.both="both",e.horizontal="horizontal",e.vertical="vertical",e))(PT||{});new $e("none",se.i18nt("designer.enum.none")),new $e("both",se.i18nt("designer.enum.both")),new $e("horizontal",se.i18nt("designer.enum.horizontalPosition")),new $e("vertical",se.i18nt("designer.enum.verticalPosition"));var kT=(e=>(e.min="min",e.max="max",e))(kT||{});new $e("min",se.i18nt("designer.enum.min")),new $e("max",se.i18nt("designer.enum.max"));var OT=(e=>(e.text="text",e.password="password",e.number="number",e.textarea="textarea",e))(OT||{});new $e("text",se.i18nt("designer.enum.singletext")),new $e("password",se.i18nt("designer.enum.password")),new $e("number",se.i18nt("designer.enum.number")),new $e("textarea",se.i18nt("designer.enum.textarea")),new $e("text",se.i18nt("designer.enum.singletext")),new $e("password",se.i18nt("designer.enum.password"));var hx=(e=>(e.none="",e.card="card",e.borderCard="border-card",e))(hx||{});new $e("",se.i18nt("designer.enum.default")),new $e("card",se.i18nt("designer.enum.card")),new $e("border-card",se.i18nt("designer.enum.borderCard"));var BT=(e=>(e.hover="hover",e.never="never",e.always="always",e))(BT||{});new $e("hover",se.i18nt("designer.enum.hover")),new $e("never",se.i18nt("designer.enum.never")),new $e("always",se.i18nt("designer.enum.always"));var IT=(e=>(e.none="",e.right="right",e))(IT||{});new $e("",se.i18nt("designer.enum.none")),new $e("right",se.i18nt("designer.enum.rightPart"));var NT=(e=>(e.fixed="fixed",e.auto="auto",e))(NT||{});new $e("fixed",se.i18nt("designer.enum.fixed")),new $e("auto",se.i18nt("designer.enum.auto"));var Er=(e=>(e.number="number",e.letter="letter",e.letterAndNumber="letterAndNumber",e.letterStartNumberIncluded="letterStartNumberIncluded",e.mobilePhone="mobilePhone",e.email="email",e.url="url",e.noChinese="noChinese",e.chinese="chinese",e.noBlankStart="noBlankStart",e.noBlankEnd="noBlankEnd",e.noBlankStartEnd="noBlankStartEnd",e.chinaIdcard="chinaIdcard",e.required="required",e.weakPassword="weakPassword",e.mediumPassword="mediumPassword",e.strongPassword="strongPassword",e))(Er||{});new $e("number",se.i18nt("designer.enum.numberValidator")),new $e("letter",se.i18nt("designer.enum.letterValidator")),new $e("letterAndNumber",se.i18nt("designer.enum.letterAndNumberValidator")),new $e("letterStartNumberIncluded",se.i18nt("designer.enum.letterStartNumberIncludedValidator")),new $e("chinaIdcard",se.i18nt("designer.enum.ChinaIdcardValidator")),new $e("mobilePhone",se.i18nt("designer.enum.mobilePhoneValidator")),new $e("email",se.i18nt("designer.enum.emailValidator")),new $e("url",se.i18nt("designer.enum.urlValidator")),new $e("noChinese",se.i18nt("designer.enum.noChineseValidator")),new $e("chinese",se.i18nt("designer.enum.chineseValidator")),new $e("noBlankStart",se.i18nt("designer.enum.noBlankStartValidator")),new $e("noBlankEnd",se.i18nt("designer.enum.noBlankEndValidator")),new $e("noBlankStartEnd",se.i18nt("designer.enum.noBlankStartEndValidator")),new $e("weakPassword",se.i18nt("designer.enum.weakPasswordValidator")),new $e("mediumPassword",se.i18nt("designer.enum.mediumPasswordValidator")),new $e("strongPassword",se.i18nt("designer.enum.strongPasswordValidator"));var FT=(e=>(e.left="left",e.right="right",e.top="top",e))(FT||{});new $e("left",se.i18nt("designer.enum.leftPosition")),new $e("right",se.i18nt("designer.enum.rightPosition")),new $e("top",se.i18nt("designer.enum.topPosition"));var MT=(e=>(e.default="default",e.plain="plain",e.round="round",e.circle="circle",e.link="link",e.text="text",e))(MT||{});new $e("default",se.i18nt("designer.enum.defaultButton")),new $e("plain",se.i18nt("designer.enum.plainButton")),new $e("round",se.i18nt("designer.enum.roundButton")),new $e("circle",se.i18nt("designer.enum.circleButton")),new $e("link",se.i18nt("designer.enum.linkButton")),new $e("text",se.i18nt("designer.enum.textButton"));var kl=(e=>(e.custom="custom",e.readonly="readonly",e.disabled="disabled",e.hidden="hidden",e))(kl||{});new $e("custom",se.i18nt("designer.enum.custom")),new $e("readonly",se.i18nt("designer.enum.readonly")),new $e("disabled",se.i18nt("designer.enum.disabled")),new $e("hidden",se.i18nt("designer.enum.hidden"));var LT=(e=>(e.default="default",e.selection="selection",e.index="index",e.expand="expand",e))(LT||{});new $e("default",se.i18nt("designer.enum.tablecolumntype_default"),!0),new $e("selection",se.i18nt("designer.enum.tablecolumntype_selection")),new $e("index",se.i18nt("designer.enum.tablecolumntype_index")),new $e("expand",se.i18nt("designer.enum.tablecolumntype_expand"));var RT=(e=>(e.rtl="rtl",e.ltr="ltr",e.ttb="ttb",e.btt="btt",e))(RT||{});new $e("rtl",se.i18nt("designer.enum.rtl")),new $e("ltr",se.i18nt("designer.enum.ltr")),new $e("ttb",se.i18nt("designer.enum.ttb")),new $e("btt",se.i18nt("designer.enum.btt")),new $e("prev",se.i18nt("designer.enum.prev")),new $e("pager",se.i18nt("designer.enum.pager")),new $e("next",se.i18nt("designer.enum.next")),new $e("jumper",se.i18nt("designer.enum.jumper")),new $e("->",se.i18nt("designer.enum.right")),new $e("total",se.i18nt("designer.enum.total"));var ig=(e=>(e.line="line",e.table="table",e))(ig||{});new $e("line",se.i18nt("designer.enum.row_line")),new $e("table",se.i18nt("designer.enum.row_table"));var jT=(e=>(e.start="start",e.end="end",e.center="center",e.spaceAround="space-around",e.spaceBetween="space-between",e.spaceEvenly="space-evenly",e))(jT||{});new $e("start",se.i18nt("designer.enum.start")),new $e("end",se.i18nt("designer.enum.end")),new $e("center",se.i18nt("designer.enum.center")),new $e("space-around",se.i18nt("designer.enum.spaceAround")),new $e("space-between",se.i18nt("designer.enum.spaceBetween")),new $e("space-evenly",se.i18nt("designer.enum.spaceEvenly"));var VT=(e=>(e.top="top",e.middle="middle",e.bottom="bottom",e))(VT||{});new $e("top",se.i18nt("designer.enum.top")),new $e("middle",se.i18nt("designer.enum.middle")),new $e("bottom",se.i18nt("designer.enum.bottom")),new $e("--hl-align-left",se.i18nt("designer.enum.left")),new $e("--hl-align-center",se.i18nt("designer.enum.center")),new $e("--hl-align-right",se.i18nt("designer.enum.right")),new $e("--hl-align-top",se.i18nt("designer.enum.top")),new $e("--hl-align-middle",se.i18nt("designer.enum.middle")),new $e("--hl-align-bottom",se.i18nt("designer.enum.bottom"));var Vc=(e=>(e.URI="URI",e.VALUE="VALUE",e.REMOTE="REMOTE",e.CONFIG="CONFIG",e))(Vc||{});new $e("URI",se.i18nt("designer.enum.schemaUrlParam")),new $e("CONFIG",se.i18nt("designer.enum.schemaConfigParam")),new $e("VALUE",se.i18nt("designer.enum.schemaVariable"),!0),new $e("REMOTE",se.i18nt("designer.enum.schemaRemote")),new $e("auto",se.i18nt("designer.enum.auto")),new $e("manual",se.i18nt("designer.enum.manual")),new $e("async",se.i18nt("designer.enum.async"));var zT=(e=>(e.datetime="datetime",e.date="date",e.dates="dates",e.year="year",e.month="month",e.week="week",e))(zT||{});new $e("datetime",se.i18nt("designer.enum.datetime")),new $e("date",se.i18nt("designer.enum.date")),new $e("dates",se.i18nt("designer.enum.dates")),new $e("year",se.i18nt("designer.enum.year")),new $e("month",se.i18nt("designer.enum.month")),new $e("week",se.i18nt("designer.enum.week"));var UT=(e=>(e.daterange="daterange",e.datetimerange="datetimerange",e.monthrange="monthrange",e))(UT||{});new $e("daterange",se.i18nt("designer.enum.daterange")),new $e("datetimerange",se.i18nt("designer.enum.datetimerange")),new $e("monthrange",se.i18nt("designer.enum.monthrange"));var ag=(e=>(e.hover="hover",e.click="click",e))(ag||{});new $e("hover",se.i18nt("designer.enum.hover")),new $e("click",se.i18nt("designer.enum.click"));var HT=(e=>(e.outside="outside",e.none="",e))(HT||{});new $e("outside",se.i18nt("designer.enum.outside")),new $e("",se.i18nt("designer.enum.none"));var WT=(e=>(e.always="always",e.hover="hover",e.none="",e))(WT||{});new $e("always",se.i18nt("designer.enum.always")),new $e("hover",se.i18nt("designer.enum.hover")),new $e("",se.i18nt("designer.enum.none"));var GT=(e=>(e.card="card",e.none="",e))(GT||{});new $e("card",se.i18nt("designer.enum.card")),new $e("",se.i18nt("designer.enum.none"));var dx=(e=>(e.empty="",e.fill="fill",e.contain="contain",e.cover="cover",e.scaleDown="scale-down",e.none="none",e))(dx||{});new $e("",se.i18nt("designer.enum.empty")),new $e("fill",se.i18nt("designer.enum.fill")),new $e("contain",se.i18nt("designer.enum.contain")),new $e("cover",se.i18nt("designer.enum.cover")),new $e("scale-down",se.i18nt("designer.enum.scaleDown")),new $e("none",se.i18nt("designer.enum.none"));var KT=(e=>(e.eager="eager",e.lazy="lazy",e))(KT||{});new $e("eager",se.i18nt("designer.enum.eager")),new $e("lazy",se.i18nt("designer.enum.lazy"));var XT=(e=>(e.success="success",e.warning="warning",e.info="info",e.error="error",e))(XT||{});new $e("success",se.i18nt("designer.enum.alertSuccess")),new $e("warning",se.i18nt("designer.enum.alertWarning")),new $e("info",se.i18nt("designer.enum.alertInfo")),new $e("error",se.i18nt("designer.enum.alertError"));var YT=(e=>(e.hover="hover",e.click="click",e.contextmenu="contextmenu",e))(YT||{});new $e("hover",se.i18nt("designer.enum.hover")),new $e("click",se.i18nt("designer.enum.click")),new $e("contextmenu",se.i18nt("designer.enum.contextmenu")),new $e("button",se.i18nt("designer.enum.button")),new $e("submit",se.i18nt("designer.enum.submit")),new $e("reset",se.i18nt("designer.enum.reset"));var JT=(e=>(e.none="none",e.hidden="hidden",e.dashed="dashed",e.dotted="dotted ",e.solid="solid",e.inherit="inherit",e.initial="initial",e.unset="unset",e.double="double",e))(JT||{});new $e("none",se.i18nt("designer.enum.none")),new $e("hidden",se.i18nt("designer.enum.hidden")),new $e("dashed",se.i18nt("designer.enum.dashed")),new $e("dotted ",se.i18nt("designer.enum.dotted")),new $e("solid",se.i18nt("designer.enum.solid")),new $e("inherit",se.i18nt("designer.enum.inherit")),new $e("initial",se.i18nt("designer.enum.initial")),new $e("unset",se.i18nt("designer.enum.unset")),new $e("double",se.i18nt("designer.enum.double"));var Ol=(e=>(e.None="",e.SubMenu="SubMenu",e.MenuItem="MenuItem",e.MenuItemGroup="MenuItemGroup",e))(Ol||{});new $e("",se.i18nt("designer.enum.none")),new $e("SubMenu",se.i18nt("designer.enum.SubMenu")),new $e("MenuItem",se.i18nt("designer.enum.MenuItem")),new $e("MenuItemGroup",se.i18nt("designer.enum.MenuItemGroup")),new $e(He.boolean,se.i18nt("designer.enum.booleanType")),new $e(He.number,se.i18nt("designer.enum.numberType")),new $e(He.string,se.i18nt("designer.enum.stringType"));var ZT=(e=>(e.default="default",e.underline="underline",e))(ZT||{});new $e("default",se.i18nt("designer.enum.default")),new $e("underline",se.i18nt("designer.enum.underline"));var QT=(e=>(e.blank="_blank",e.self="_self",e))(QT||{});new $e("_blank",se.i18nt("designer.enum.targetBlank")),new $e("_self",se.i18nt("designer.enum.targetSelf")),new $e("normal",se.i18nt("designer.enum.normal")),new $e("iframe",se.i18nt("designer.enum.iframe"));var qT=(e=>(e.PC="PC",e.Pad="Pad",e.H5="H5",e))(qT||{}),vx=(e=>(e.date1="YYYY-MM-DD",e.date2="YYYY/MM/DD",e.date3="YYYY年MM月DD日",e.date4="YYYY-MM-DD HH:mm:ss",e.date5="YYYY-MM-DD hh:mm:ss",e))(vx||{}),$T=(e=>(e.time1="HH:mm:ss",e.time2="HH时mm分ss秒",e.time3="hh:mm:ss",e))($T||{}),eD=(e=>(e.hsl="hsl",e.hsv="hsv",e.hex="hex",e.rgb="rgb",e))(eD||{}),Bl=(e=>(e.aside="aside",e.header="header",e.footer="footer",e.main="main",e.container="container",e))(Bl||{}),tD=(e=>(e.doc="doc",e.docx="docx",e.xls="xls",e.xlsx="xlsx",e.ppt="ppt",e.pptx="pptx",e.pdf="pdf",e.zip="zip",e.rar="rar",e.jpg="jpg",e.jpeg="jpeg",e.png="png",e.gif="gif",e))(tD||{}),mx=(e=>(e.p100="%",e.px="px",e.em="em",e.auto="auto",e))(mx||{}),nD=(e=>(e.jpg="jpg",e.jpeg="jpeg",e.png="png",e.gif="gif",e))(nD||{}),rD=(e=>(e.jsonp="JSONP",e.get="GET",e.post="POST",e))(rD||{}),og=(e=>(e.pictureCard="picture-card",e.picture="picture",e.text="text",e))(og||{});new $e("picture-card",se.i18nt("designer.enum.pictureCard")),new $e("picture",se.i18nt("designer.enum.picture")),new $e("text",se.i18nt("designer.enum.text")),new $e("picture-card",se.i18nt("designer.enum.pictureCard")),new $e("picture",se.i18nt("designer.enum.picture"));var iD=(e=>(e.window="window",e.modal="modal",e))(iD||{});new $e("window",se.i18nt("designer.enum.window")),new $e("modal",se.i18nt("designer.enum.modal"));var sg=(e=>(e.self="self",e.top="top",e.parent="parent",e))(sg||{});new $e("top",se.i18nt("designer.enum.windowTop")),new $e("self",se.i18nt("designer.enum.windowSelf")),new $e("parent",se.i18nt("designer.enum.windowParent"));var lg=(e=>(e.close="close",e.cancel="cancel",e.save="save",e))(lg||{});new $e("close",se.i18nt("designer.enum.closeIframe")),new $e("cancel",se.i18nt("designer.enum.cancelIframe")),new $e("save",se.i18nt("designer.enum.saveIframe"));const ug="#";function qY(){return{variableExp:/#\{《const》:《([^》]+)》\}#/g,variableWithNameExp:r=>new RegExp("#{《const》:《"+r+"》}#.([0-9A-Za-z_]+)","gi"),buildVariable:r=>`${ug}{《const》:《${r}》}${ug}`}}function aD(){return{variableExp:/#\{《field》:《([^》]+)》\}#/g,buildVariable:n=>`${ug}{《field》:《${n}》}${ug}`}}function $Y(){var e='"',t="@#@";return{addTextPrefix:o=>{var i,c;return rx(o)?o:Ui(o)&&!((i=String(o))!=null&&i.startsWith(e))&&!((c=String(o))!=null&&c.endsWith(e))?`${e}${t}${o}${t}${e}`:o},removeTextPrefix:o=>{var i;return Ui(o)?(i=o==null?void 0:o.replaceAll(`${e}${t}`,""))==null?void 0:i.replace(`${t}${e}`,""):o},removeTextPrefixSimple:o=>Ui(o)?o==null?void 0:o.replaceAll(`${t}`,""):o}}function Eu(){const{addTextPrefix:e}=$Y(),{variableExp:t,buildVariable:n}=aD(),r=(u,f)=>Ui(u)?u==null?void 0:u.replace(t,function(h,d){return Va(f)&&(f!=null&&f[d])?f==null?void 0:f[d]:d}):u,a=(u,f)=>Ui(u)?u==null?void 0:u.replace(t,function(h,d){var v=d,m=f[v];return hr(m)?e(" "):e(m)}):u,o=(u,f)=>Ui(u)?u==null?void 0:u.replaceAll(t,function(h,d){var v=d,m=f[v];return!Xi(v)&&!Xi(m)?n(m):h}):u,i=(u,f,h,d=t)=>Ui(u)?u==null?void 0:u.replaceAll(d,function(v,m){var y;var p=m,g=(y=Or(f))!=null&&y.includes(p)?f==null?void 0:f[p]:null;return Xi(p)?v:h?h(p,g):Xi(g)?null:g}):u;return{transFormula:r,calcFormula:a,getFormulaFields:u=>{if(!u||Lc(u))return[];for(var f=null,h=[];(f=t.exec(u))!==null;)h.push(f==null?void 0:f[1]);return h},updateFomulaName:(u,f,h)=>{if(hr(u))return u;let d=Zr(u);return d!=null&&d.includes(f)?(d=o(d,{[f]:h}),ri(d)):u},updateFomula:(u,f,h,d=t)=>{var v=i(u,f,h,d);return v}}}const eJ=(e,t)=>{var n=[];return Object.entries(e).forEach(([r,a])=>{(!t||t.includes(a))&&n.push(new $e(r,a))}),n},tJ=(e,t)=>{var n={};return Object.entries(e).forEach(([r,a])=>{(!t||t.includes(a))&&(n[r]=a||"")}),n};function gx(e,t){var n=tJ(e,t);return Object.values(n)}class ot{constructor(t){z(this,"enable",!1);t&&Qn(this,t)}}class wr extends ot{constructor(n){super(n);z(this,"type",He.any);n&&Qn(this,n)}}class nJ{constructor(t){z(this,"action","");z(this,"options",{});z(this,"content",{});t&&Qn(this,t)}}class oD{constructor(t,n){z(this,"complexType",be.formula);z(this,"complexValue","");this.complexType=t,this.complexValue=n||""}}var sD;const Fd=typeof window<"u",lD=()=>{};Fd&&((sD=window==null?void 0:window.navigator)!=null&&sD.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rJ(e,t=!1,n="Timeout"){return new Promise((r,a)=>{setTimeout(t?()=>a(n):r,e)})}function iJ(e){return e}Fd&&window.document,Fd&&window.navigator,Fd&&window.location;function yx(e,t,n){const{immediate:r=!0,delay:a=0,onError:o=lD,onSuccess:i=lD,resetOnExecute:c=!0,shallow:s=!0,throwError:l}=n??{},u=s?x.shallowRef(t):x.ref(t),f=x.ref(!1),h=x.ref(!1),d=x.ref(void 0);async function v(m=0,...p){c&&(u.value=t),d.value=void 0,f.value=!1,h.value=!0,m>0&&await rJ(m);const g=typeof e=="function"?e(...p):e;try{const y=await g;u.value=y,f.value=!0,i(y)}catch(y){if(d.value=y,o(y),l)throw d}finally{h.value=!1}return u.value}return r&&v(a),{state:u,isReady:f,isLoading:h,error:d,execute:v}}const _x=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bx="__vueuse_ssr_handlers__";_x[bx]=_x[bx]||{},_x[bx];var uD;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(uD||(uD={}));var aJ=Object.defineProperty,cD=Object.getOwnPropertySymbols,oJ=Object.prototype.hasOwnProperty,sJ=Object.prototype.propertyIsEnumerable,fD=(e,t,n)=>t in e?aJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lJ=(e,t)=>{for(var n in t||(t={}))oJ.call(t,n)&&fD(e,n,t[n]);if(cD)for(var n of cD(t))sJ.call(t,n)&&fD(e,n,t[n]);return e};lJ({linear:iJ},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const uJ=(e,t,n=":")=>t?e?[e,t].join(n):t:"",pD=(e,t="")=>{var n=e==null?void 0:e.filter(r=>!!r);return!n||n.length<=0?"":n.join(t)},cg=(e,t)=>e.split("").filter(n=>n===t).length,hD=(e,t)=>{if(!e)return"";var n=String(e);if(!t)return n;if(n&&!/^[\d\.]+$/g.test(n))return"";var r="",a="",o=t==null?void 0:t.lastIndexOf(".");o==-1?r=t:(r=t==null?void 0:t.substring(0,o),a=t==null?void 0:t.substring(o+1,t==null?void 0:t.length));var i="",c="",s=n.lastIndexOf(".");if(s==-1)var i=n;else var i=n.substring(0,s),c=n.substring(s+1,n.length);for(var l=new Array,u=r.indexOf("#,###"),f=1,h=i.length,d=h;d>0;d--)l.unshift(i.charAt(d-1)),u!=-1&&f%3==0&&f!=h&&l.unshift(","),f++;o!=-1&&l.push(".");for(var d=0;d<a.length;d++)a.charAt(d)&&c.charAt(d)?l.push(c.charAt(d)):l.push("0");return l.join("")},cJ=e=>e==null?void 0:e.replace(/[\r\n]+/g,""),zc=(e,t,n,r,a)=>{r||(r=i=>!!cJ(i));const o=a?`
9
+ 用于每行内的组件读取当前行数据如rowScope.row.column_name),可先用console.log(schema.rowScope)查看数据项`}}},KY={render:{hint:{prompt:"提示",confirm:"确定",cancel:"取消",selectPlaceholder:"请选择",timePlaceholder:"选择时间",startTimePlaceholder:"起始时间",endTimePlaceholder:"截止时间",datePlaceholder:"选择日期",startDatePlaceholder:"起始日期",endDatePlaceholder:"截止日期",blankCellContent:"--",uploadError:"上传错误: ",uploadExceed:"最大上传数量(${uploadLimit})已超出.",unsupportedFileType:"不支持格式: ",fileSizeExceed:"文件大小已超出: ",refNotFound:"组件未找到: ",fieldRequired:"必填",invalidNumber:"数据格式错误",selectFile:" 选择文件",downloadFile:"下载",removeFile:"移除",validationFailed:"表单数据校验失败",numberFailed:"包含非数字字符",letterFailed:"包含非字母字符",letterAndNumberFailed:"只能输入字母或数字",mobilePhoneFailed:"手机号码格式有误",noBlankStartFailed:"不允许空白字符开头",noBlankEndFailed:"不允许空白字符结尾",noBlankStartEndFailed:"不允许以空白字符开头结尾",letterStartNumberIncludedFailed:"必须以字母开头,可包含数字",noChineseFailed:"不可输入中文字符",chineseFailed:"只能输入中文字符",emailFailed:"邮箱格式有误",urlFailed:"URL格式有误",chinaIdcardFailed:"身份证格式有误",invalidFailed:"非法值",weakPasswordFailed:"仅字母或数字,至少6位",mediumPasswordFailed:"字母+数字,至少8位",strongPasswordFailed:"大小写+数字+特殊符号,至少10位"}}},XY={extension:{}},Rc={get(e){return localStorage.getItem(e)},set(e,t){typeof t=="object"?localStorage.setItem(e,Zr(t)):localStorage.setItem(e,String(t))},remove(e){localStorage.removeItem(e)}},YY={"zh-CN":{custionLocale:{},...WY,...GY,...KY,...XY}},_T="v_form_locale",bT=function(){return{lang:Rc.get(_T)||"zh-CN"}},JY=function(e){ng.setLang(e),Rc.set(_T,e)},xT=()=>{let e=bT();JY(e==null?void 0:e.lang)},ng=ZY({locale:bT(),messages:YY});function ZY(e){return{messages:e.messages,locale:e.locale,$st(t,n=!0,...r){t=t==null?void 0:t.trim();let a=this.messages[this.locale.lang];const o=ax(a,t);return typeof o=="function"?o(...r):o!==null?o:n?t:""},$st2(t,n){let r=this.messages[this.locale.lang];const a=ax(r,t);return a!==null?a:this.$st(n)},setLang(t){this.locale.lang=t}}}const QY=function(e){return ng.$st(e)},se={i18nt(e,t=!0){return e?ng.$st(e,t):""},i18n2t(e,t){return ng.$st2(e,t)}};var He=(e=>(e.string="string",e.number="number",e.bigint="bigint",e.boolean="boolean",e.symbol="symbol",e.undefined="undefined",e.object="object",e.function="function",e.array="array",e.any="any",e.date="date",e))(He||{}),Dl=(e=>(e.typescript="typescript",e.javascript="javascript",e.css="css",e.html="html",e.json="json",e.sql="sql",e.text="text",e))(Dl||{}),Ni=(e=>(e.sysVar="sysVar",e.sysFunc="sysFunc",e.sysData="sysData",e.schema="schema",e))(Ni||{});class $e{constructor(t,n,r=!1){z(this,"label","");z(this,"value","");z(this,"isdefalut",!1);this.label=n,this.value=t,this.isdefalut=r}}var be=(e=>(e.event="event",e.hook="hook",e.prop="prop",e.slot="slot",e.icon="icon",e.targetEvent="targetEvent",e.placer="placer",e.placerHook="placerHook",e.singleOption="singleOption",e.dataObject="dataObject",e.datasource="datasource",e.variable="variable",e.formula="formula",e.schemaData="schemaData",e))(be||{}),tt=(e=>(e.none="",e.page="page",e.cache="cache",e.input="input",e.textarea="textarea",e.number="input-number",e.range="range",e.radio="radio",e.checkbox="checkbox",e.select="select",e.timePicker="time-picker",e.timePickerRange="time-picker-range",e.datePicker="date-picker",e.datePickerRange="date-picker-range",e.autoComplete="auto-complete",e.pictureUpload="picture-upload",e.fileUpload="file-upload",e.richEditor="rich-editor",e.rate="rate",e.slider="slider",e.divider="divider",e.switch="switch",e.colorPicker="color-picker",e.button="button",e.icon="icon",e.cascader="cascader",e.multirow="multirow",e.tmpl="tmpl",e.htmlText="html-text",e.staticText="static-text",e.text="text",e.link="link",e.tag="tag",e.tabs="tabs",e.card="card",e.grid="grid",e.gridCol="grid-col",e.cont="cont",e.contCell="cont-cell",e.table="ltable",e.tableCol="ltable-col",e.tableRow="ltable-row",e.tabPane="tab-pane",e.eltable="table",e.eltableCol="table-col",e.dialog="dialog",e.drawer="drawer",e.avatar="avatar",e.badge="badge",e.affix="affix",e.backtop="backtop",e.router="router",e.empty="empty",e.image="image",e.result="result",e.carousel="carousel",e.dropdown="dropdown",e.progress="progress",e.collapse="collapse",e.descriptions="descriptions",e.breadcrumb="breadcrumb",e.menu="menu",e.steps="steps",e.pagination="pagination",e.form="form",e.anchor="anchor",e.alert="alert",e.tree="tree",e.treeSelect="tree-select",e.timeSelect="time-select",e.model="model",e.chart="chart",e.iframe="iframe",e.wrapper="wrapper",e.address="address",e.modalDialog="modalDialog",e.saveFormTarget="saveFormTarget",e.targetDatasource="targetDatasource",e))(tt||{}),Fi=(e=>(e.setHidden="setHidden",e.setDisabled="setDisabled",e.setReadonly="setReadonly",e.setRequired="setRequired",e.setLabel="setLabel",e.resetField="resetField",e.getValue="getValue",e.setValue="setValue",e.getField="getField",e.getCheckedItems="getCheckedItems",e.getMousePos="getMousePos",e.setMousePos="setMousePos",e.insertOnMousePos="insertOnMousePos",e))(Fi||{}),Ss=(e=>(e.actionURL="actionURL",e.actionCode="actionCode",e.actionSendSchema="actionSendSchema",e.actionHideWidget="actionHideWidget",e.actionShowWidget="actionShowWidget",e.actionOpenDialog="actionOpenDialog",e.actionCloseDialog="actionCloseDialog",e.actionEnableWidget="actionEnableWidget",e.actionDisableWidget="actionDisableWidget",e.actionSaveFormData="actionSaveFormData",e))(Ss||{}),bu=(e=>(e.normal="normal",e.field="field",e.container="container",e))(bu||{}),jc=(e=>(e.front="front",e.rear="rear",e))(jc||{});new $e("front",se.i18nt("designer.enum.frontPosition")),new $e("rear",se.i18nt("designer.enum.rearPosition")),new $e("label-left-align",se.i18nt("designer.enum.leftAlign")),new $e("label-center-align",se.i18nt("designer.enum.centerAlign")),new $e("label-right-align",se.i18nt("designer.enum.rightAlign")),new $e("label-top-align",se.i18nt("designer.enum.topAlign"));var mo=(e=>(e.none="",e.default="default",e.large="large",e.small="small",e))(mo||{});new $e("default",se.i18nt("designer.enum.size_default")),new $e("large",se.i18nt("designer.enum.size_large")),new $e("small",se.i18nt("designer.enum.size_small")),new $e("",se.i18nt("designer.enum.size_none"),!0),new $e("default",se.i18nt("designer.enum.size_default")),new $e("large",se.i18nt("designer.enum.size_large")),new $e("small",se.i18nt("designer.enum.size_small"));var ux=(e=>(e.dark="dark",e.light="light",e.plain="plain",e))(ux||{});new $e("dark",se.i18nt("designer.enum.dark")),new $e("light",se.i18nt("designer.enum.light")),new $e("plain",se.i18nt("designer.enum.plain"));var Pp=(e=>(e.dark="dark",e.light="light",e))(Pp||{});new $e("dark",se.i18nt("designer.enum.dark")),new $e("light",se.i18nt("designer.enum.light"));var Pl=(e=>(e.inline="inline-block",e.block="block",e.flex="flex",e))(Pl||{});new $e("block",se.i18nt("designer.enum.blockLayout")),new $e("inline-block",se.i18nt("designer.enum.inlineLayout")),new $e("flex",se.i18nt("designer.enum.flexLayout")),new $e("block",se.i18nt("designer.enum.block")),new $e("inline-block",se.i18nt("designer.enum.inline"));var ET=(e=>(e.success="success",e.warning="warning",e.error="error",e.info="info",e))(ET||{});new $e("success",se.i18nt("designer.enum.success")),new $e("warning",se.i18nt("designer.enum.warning")),new $e("error",se.i18nt("designer.enum.error")),new $e("info",se.i18nt("designer.enum.info"));var rg=(e=>(e.primary="primary",e.success="success",e.warning="warning",e.danger="danger",e.info="info",e))(rg||{});new $e("primary",se.i18nt("designer.enum.primary")),new $e("info",se.i18nt("designer.enum.info")),new $e("success",se.i18nt("designer.enum.success")),new $e("warning",se.i18nt("designer.enum.warning")),new $e("danger",se.i18nt("designer.enum.danger"));var cx=(e=>(e.success="success",e.warning="warning",e.danger="danger",e.info="info",e))(cx||{});new $e("info",se.i18nt("designer.enum.info")),new $e("success",se.i18nt("designer.enum.success")),new $e("warning",se.i18nt("designer.enum.warning")),new $e("danger",se.i18nt("designer.enum.danger"));var fx=(e=>(e.default="",e.primary="primary",e.success="success",e.warning="warning",e.danger="danger",e.info="info",e))(fx||{});new $e("",se.i18nt("designer.enum.default")),new $e("primary",se.i18nt("designer.enum.primary")),new $e("info",se.i18nt("designer.enum.info")),new $e("success",se.i18nt("designer.enum.success")),new $e("warning",se.i18nt("designer.enum.warning")),new $e("danger",se.i18nt("designer.enum.danger"));var kp=(e=>(e.top="top",e.topStart="top-start",e.topEnd="top-end",e.bottom="bottom",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e))(kp||{});new $e("top",se.i18nt("designer.enum.top")),new $e("top-start",se.i18nt("designer.enum.topStart")),new $e("top-end",se.i18nt("designer.enum.topEnd")),new $e("bottom",se.i18nt("designer.enum.bottom")),new $e("bottom-start",se.i18nt("designer.enum.bottomStart")),new $e("bottom-end",se.i18nt("designer.enum.bottomEnd"));var Nd=(e=>(e.line="line",e.circle="circle",e.dashboard="dashboard",e))(Nd||{});new $e("line",se.i18nt("designer.enum.line")),new $e("circle",se.i18nt("designer.enum.circle")),new $e("dashboard",se.i18nt("designer.enum.dashboard"));var wT=(e=>(e.none="",e.success="success",e.exception="exception",e.warning="warning",e))(wT||{});new $e("",se.i18nt("designer.enum.none")),new $e("success",se.i18nt("designer.enum.success")),new $e("exception",se.i18nt("designer.enum.exception")),new $e("warning",se.i18nt("designer.enum.warning"));var ST=(e=>(e.butt="butt",e.round="round",e.square="square",e))(ST||{});new $e("butt",se.i18nt("designer.enum.butt")),new $e("round",se.i18nt("designer.enum.round")),new $e("square",se.i18nt("designer.enum.square"));var Cs=(e=>(e.horizontal="horizontal",e.vertical="vertical",e))(Cs||{});new $e("horizontal",se.i18nt("designer.enum.horizontalPosition")),new $e("vertical",se.i18nt("designer.enum.verticalPosition"));var xu=(e=>(e.none="",e.left="left",e.center="center",e.right="right",e))(xu||{});new $e("left",se.i18nt("designer.enum.leftAlign")),new $e("center",se.i18nt("designer.enum.centerAlign")),new $e("right",se.i18nt("designer.enum.rightAlign"));var CT=(e=>(e.left="left",e.right="right",e))(CT||{});new $e("left",se.i18nt("designer.enum.leftPosition")),new $e("right",se.i18nt("designer.enum.rightPosition"));var AT=(e=>(e.top="top",e.bottom="bottom",e))(AT||{});new $e("top",se.i18nt("designer.enum.top")),new $e("bottom",se.i18nt("designer.enum.bottom"));var TT=(e=>(e.top="top",e.right="right",e.bottom="bottom",e.left="left",e))(TT||{});new $e("top",se.i18nt("designer.enum.top")),new $e("right",se.i18nt("designer.enum.rightPart")),new $e("bottom",se.i18nt("designer.enum.bottom")),new $e("left",se.i18nt("designer.enum.left"));var DT=(e=>(e.circle="circle",e.square="square",e))(DT||{});new $e("circle",se.i18nt("designer.enum.circle")),new $e("square",se.i18nt("designer.enum.square"));var px=(e=>(e.wait="wait",e.process="process",e.finish="finish",e.error="error",e.success="success",e))(px||{});new $e("wait",se.i18nt("designer.enum.process_wait")),new $e("process",se.i18nt("designer.enum.process_process")),new $e("finish",se.i18nt("designer.enum.process_finish")),new $e("error",se.i18nt("designer.enum.process_error")),new $e("success",se.i18nt("designer.enum.process_success"));var PT=(e=>(e.none="none",e.both="both",e.horizontal="horizontal",e.vertical="vertical",e))(PT||{});new $e("none",se.i18nt("designer.enum.none")),new $e("both",se.i18nt("designer.enum.both")),new $e("horizontal",se.i18nt("designer.enum.horizontalPosition")),new $e("vertical",se.i18nt("designer.enum.verticalPosition"));var kT=(e=>(e.min="min",e.max="max",e))(kT||{});new $e("min",se.i18nt("designer.enum.min")),new $e("max",se.i18nt("designer.enum.max"));var OT=(e=>(e.text="text",e.password="password",e.number="number",e.textarea="textarea",e))(OT||{});new $e("text",se.i18nt("designer.enum.singletext")),new $e("password",se.i18nt("designer.enum.password")),new $e("number",se.i18nt("designer.enum.number")),new $e("textarea",se.i18nt("designer.enum.textarea")),new $e("text",se.i18nt("designer.enum.singletext")),new $e("password",se.i18nt("designer.enum.password"));var hx=(e=>(e.none="",e.card="card",e.borderCard="border-card",e))(hx||{});new $e("",se.i18nt("designer.enum.default")),new $e("card",se.i18nt("designer.enum.card")),new $e("border-card",se.i18nt("designer.enum.borderCard"));var BT=(e=>(e.hover="hover",e.never="never",e.always="always",e))(BT||{});new $e("hover",se.i18nt("designer.enum.hover")),new $e("never",se.i18nt("designer.enum.never")),new $e("always",se.i18nt("designer.enum.always"));var IT=(e=>(e.none="",e.right="right",e))(IT||{});new $e("",se.i18nt("designer.enum.none")),new $e("right",se.i18nt("designer.enum.rightPart"));var NT=(e=>(e.fixed="fixed",e.auto="auto",e))(NT||{});new $e("fixed",se.i18nt("designer.enum.fixed")),new $e("auto",se.i18nt("designer.enum.auto"));var Er=(e=>(e.number="number",e.letter="letter",e.letterAndNumber="letterAndNumber",e.letterStartNumberIncluded="letterStartNumberIncluded",e.mobilePhone="mobilePhone",e.email="email",e.url="url",e.noChinese="noChinese",e.chinese="chinese",e.noBlankStart="noBlankStart",e.noBlankEnd="noBlankEnd",e.noBlankStartEnd="noBlankStartEnd",e.chinaIdcard="chinaIdcard",e.required="required",e.weakPassword="weakPassword",e.mediumPassword="mediumPassword",e.strongPassword="strongPassword",e))(Er||{});new $e("number",se.i18nt("designer.enum.numberValidator")),new $e("letter",se.i18nt("designer.enum.letterValidator")),new $e("letterAndNumber",se.i18nt("designer.enum.letterAndNumberValidator")),new $e("letterStartNumberIncluded",se.i18nt("designer.enum.letterStartNumberIncludedValidator")),new $e("chinaIdcard",se.i18nt("designer.enum.ChinaIdcardValidator")),new $e("mobilePhone",se.i18nt("designer.enum.mobilePhoneValidator")),new $e("email",se.i18nt("designer.enum.emailValidator")),new $e("url",se.i18nt("designer.enum.urlValidator")),new $e("noChinese",se.i18nt("designer.enum.noChineseValidator")),new $e("chinese",se.i18nt("designer.enum.chineseValidator")),new $e("noBlankStart",se.i18nt("designer.enum.noBlankStartValidator")),new $e("noBlankEnd",se.i18nt("designer.enum.noBlankEndValidator")),new $e("noBlankStartEnd",se.i18nt("designer.enum.noBlankStartEndValidator")),new $e("weakPassword",se.i18nt("designer.enum.weakPasswordValidator")),new $e("mediumPassword",se.i18nt("designer.enum.mediumPasswordValidator")),new $e("strongPassword",se.i18nt("designer.enum.strongPasswordValidator"));var FT=(e=>(e.left="left",e.right="right",e.top="top",e))(FT||{});new $e("left",se.i18nt("designer.enum.leftPosition")),new $e("right",se.i18nt("designer.enum.rightPosition")),new $e("top",se.i18nt("designer.enum.topPosition"));var MT=(e=>(e.default="default",e.plain="plain",e.round="round",e.circle="circle",e.link="link",e.text="text",e))(MT||{});new $e("default",se.i18nt("designer.enum.defaultButton")),new $e("plain",se.i18nt("designer.enum.plainButton")),new $e("round",se.i18nt("designer.enum.roundButton")),new $e("circle",se.i18nt("designer.enum.circleButton")),new $e("link",se.i18nt("designer.enum.linkButton")),new $e("text",se.i18nt("designer.enum.textButton"));var kl=(e=>(e.custom="custom",e.readonly="readonly",e.disabled="disabled",e.hidden="hidden",e))(kl||{});new $e("custom",se.i18nt("designer.enum.custom")),new $e("readonly",se.i18nt("designer.enum.readonly")),new $e("disabled",se.i18nt("designer.enum.disabled")),new $e("hidden",se.i18nt("designer.enum.hidden"));var LT=(e=>(e.default="default",e.selection="selection",e.index="index",e.expand="expand",e))(LT||{});new $e("default",se.i18nt("designer.enum.tablecolumntype_default"),!0),new $e("selection",se.i18nt("designer.enum.tablecolumntype_selection")),new $e("index",se.i18nt("designer.enum.tablecolumntype_index")),new $e("expand",se.i18nt("designer.enum.tablecolumntype_expand"));var RT=(e=>(e.rtl="rtl",e.ltr="ltr",e.ttb="ttb",e.btt="btt",e))(RT||{});new $e("rtl",se.i18nt("designer.enum.rtl")),new $e("ltr",se.i18nt("designer.enum.ltr")),new $e("ttb",se.i18nt("designer.enum.ttb")),new $e("btt",se.i18nt("designer.enum.btt")),new $e("prev",se.i18nt("designer.enum.prev")),new $e("pager",se.i18nt("designer.enum.pager")),new $e("next",se.i18nt("designer.enum.next")),new $e("jumper",se.i18nt("designer.enum.jumper")),new $e("->",se.i18nt("designer.enum.right")),new $e("total",se.i18nt("designer.enum.total"));var ig=(e=>(e.line="line",e.table="table",e))(ig||{});new $e("line",se.i18nt("designer.enum.row_line")),new $e("table",se.i18nt("designer.enum.row_table"));var jT=(e=>(e.start="start",e.end="end",e.center="center",e.spaceAround="space-around",e.spaceBetween="space-between",e.spaceEvenly="space-evenly",e))(jT||{});new $e("start",se.i18nt("designer.enum.start")),new $e("end",se.i18nt("designer.enum.end")),new $e("center",se.i18nt("designer.enum.center")),new $e("space-around",se.i18nt("designer.enum.spaceAround")),new $e("space-between",se.i18nt("designer.enum.spaceBetween")),new $e("space-evenly",se.i18nt("designer.enum.spaceEvenly"));var VT=(e=>(e.top="top",e.middle="middle",e.bottom="bottom",e))(VT||{});new $e("top",se.i18nt("designer.enum.top")),new $e("middle",se.i18nt("designer.enum.middle")),new $e("bottom",se.i18nt("designer.enum.bottom")),new $e("--hl-align-left",se.i18nt("designer.enum.left")),new $e("--hl-align-center",se.i18nt("designer.enum.center")),new $e("--hl-align-right",se.i18nt("designer.enum.right")),new $e("--hl-align-top",se.i18nt("designer.enum.top")),new $e("--hl-align-middle",se.i18nt("designer.enum.middle")),new $e("--hl-align-bottom",se.i18nt("designer.enum.bottom"));var Vc=(e=>(e.URI="URI",e.VALUE="VALUE",e.REMOTE="REMOTE",e.CONFIG="CONFIG",e))(Vc||{});new $e("URI",se.i18nt("designer.enum.schemaUrlParam")),new $e("CONFIG",se.i18nt("designer.enum.schemaConfigParam")),new $e("VALUE",se.i18nt("designer.enum.schemaVariable"),!0),new $e("REMOTE",se.i18nt("designer.enum.schemaRemote")),new $e("auto",se.i18nt("designer.enum.auto")),new $e("manual",se.i18nt("designer.enum.manual")),new $e("async",se.i18nt("designer.enum.async"));var zT=(e=>(e.datetime="datetime",e.date="date",e.dates="dates",e.year="year",e.month="month",e.week="week",e))(zT||{});new $e("datetime",se.i18nt("designer.enum.datetime")),new $e("date",se.i18nt("designer.enum.date")),new $e("dates",se.i18nt("designer.enum.dates")),new $e("year",se.i18nt("designer.enum.year")),new $e("month",se.i18nt("designer.enum.month")),new $e("week",se.i18nt("designer.enum.week"));var UT=(e=>(e.daterange="daterange",e.datetimerange="datetimerange",e.monthrange="monthrange",e))(UT||{});new $e("daterange",se.i18nt("designer.enum.daterange")),new $e("datetimerange",se.i18nt("designer.enum.datetimerange")),new $e("monthrange",se.i18nt("designer.enum.monthrange"));var ag=(e=>(e.hover="hover",e.click="click",e))(ag||{});new $e("hover",se.i18nt("designer.enum.hover")),new $e("click",se.i18nt("designer.enum.click"));var HT=(e=>(e.outside="outside",e.none="",e))(HT||{});new $e("outside",se.i18nt("designer.enum.outside")),new $e("",se.i18nt("designer.enum.none"));var WT=(e=>(e.always="always",e.hover="hover",e.none="",e))(WT||{});new $e("always",se.i18nt("designer.enum.always")),new $e("hover",se.i18nt("designer.enum.hover")),new $e("",se.i18nt("designer.enum.none"));var GT=(e=>(e.card="card",e.none="",e))(GT||{});new $e("card",se.i18nt("designer.enum.card")),new $e("",se.i18nt("designer.enum.none"));var dx=(e=>(e.empty="",e.fill="fill",e.contain="contain",e.cover="cover",e.scaleDown="scale-down",e.none="none",e))(dx||{});new $e("",se.i18nt("designer.enum.empty")),new $e("fill",se.i18nt("designer.enum.fill")),new $e("contain",se.i18nt("designer.enum.contain")),new $e("cover",se.i18nt("designer.enum.cover")),new $e("scale-down",se.i18nt("designer.enum.scaleDown")),new $e("none",se.i18nt("designer.enum.none"));var KT=(e=>(e.eager="eager",e.lazy="lazy",e))(KT||{});new $e("eager",se.i18nt("designer.enum.eager")),new $e("lazy",se.i18nt("designer.enum.lazy"));var XT=(e=>(e.success="success",e.warning="warning",e.info="info",e.error="error",e))(XT||{});new $e("success",se.i18nt("designer.enum.alertSuccess")),new $e("warning",se.i18nt("designer.enum.alertWarning")),new $e("info",se.i18nt("designer.enum.alertInfo")),new $e("error",se.i18nt("designer.enum.alertError"));var YT=(e=>(e.hover="hover",e.click="click",e.contextmenu="contextmenu",e))(YT||{});new $e("hover",se.i18nt("designer.enum.hover")),new $e("click",se.i18nt("designer.enum.click")),new $e("contextmenu",se.i18nt("designer.enum.contextmenu")),new $e("button",se.i18nt("designer.enum.button")),new $e("submit",se.i18nt("designer.enum.submit")),new $e("reset",se.i18nt("designer.enum.reset"));var JT=(e=>(e.none="none",e.hidden="hidden",e.dashed="dashed",e.dotted="dotted ",e.solid="solid",e.inherit="inherit",e.initial="initial",e.unset="unset",e.double="double",e))(JT||{});new $e("none",se.i18nt("designer.enum.none")),new $e("hidden",se.i18nt("designer.enum.hidden")),new $e("dashed",se.i18nt("designer.enum.dashed")),new $e("dotted ",se.i18nt("designer.enum.dotted")),new $e("solid",se.i18nt("designer.enum.solid")),new $e("inherit",se.i18nt("designer.enum.inherit")),new $e("initial",se.i18nt("designer.enum.initial")),new $e("unset",se.i18nt("designer.enum.unset")),new $e("double",se.i18nt("designer.enum.double"));var Ol=(e=>(e.None="",e.SubMenu="SubMenu",e.MenuItem="MenuItem",e.MenuItemGroup="MenuItemGroup",e))(Ol||{});new $e("",se.i18nt("designer.enum.none")),new $e("SubMenu",se.i18nt("designer.enum.SubMenu")),new $e("MenuItem",se.i18nt("designer.enum.MenuItem")),new $e("MenuItemGroup",se.i18nt("designer.enum.MenuItemGroup")),new $e(He.boolean,se.i18nt("designer.enum.booleanType")),new $e(He.number,se.i18nt("designer.enum.numberType")),new $e(He.string,se.i18nt("designer.enum.stringType"));var ZT=(e=>(e.default="default",e.underline="underline",e))(ZT||{});new $e("default",se.i18nt("designer.enum.default")),new $e("underline",se.i18nt("designer.enum.underline"));var QT=(e=>(e.blank="_blank",e.self="_self",e))(QT||{});new $e("_blank",se.i18nt("designer.enum.targetBlank")),new $e("_self",se.i18nt("designer.enum.targetSelf")),new $e("normal",se.i18nt("designer.enum.normal")),new $e("iframe",se.i18nt("designer.enum.iframe"));var qT=(e=>(e.PC="PC",e.Pad="Pad",e.H5="H5",e))(qT||{}),vx=(e=>(e.date1="YYYY-MM-DD",e.date2="YYYY/MM/DD",e.date3="YYYY年MM月DD日",e.date4="YYYY-MM-DD HH:mm:ss",e.date5="YYYY-MM-DD hh:mm:ss",e))(vx||{}),$T=(e=>(e.time1="HH:mm:ss",e.time2="HH时mm分ss秒",e.time3="hh:mm:ss",e))($T||{}),eD=(e=>(e.hsl="hsl",e.hsv="hsv",e.hex="hex",e.rgb="rgb",e))(eD||{}),Bl=(e=>(e.aside="aside",e.header="header",e.footer="footer",e.main="main",e.container="container",e))(Bl||{}),tD=(e=>(e.doc="doc",e.docx="docx",e.xls="xls",e.xlsx="xlsx",e.ppt="ppt",e.pptx="pptx",e.pdf="pdf",e.zip="zip",e.rar="rar",e.jpg="jpg",e.jpeg="jpeg",e.png="png",e.gif="gif",e))(tD||{}),mx=(e=>(e.p100="%",e.px="px",e.em="em",e.auto="auto",e))(mx||{}),nD=(e=>(e.jpg="jpg",e.jpeg="jpeg",e.png="png",e.gif="gif",e))(nD||{}),rD=(e=>(e.jsonp="JSONP",e.get="GET",e.post="POST",e))(rD||{}),og=(e=>(e.pictureCard="picture-card",e.picture="picture",e.text="text",e))(og||{});new $e("picture-card",se.i18nt("designer.enum.pictureCard")),new $e("picture",se.i18nt("designer.enum.picture")),new $e("text",se.i18nt("designer.enum.text")),new $e("picture-card",se.i18nt("designer.enum.pictureCard")),new $e("picture",se.i18nt("designer.enum.picture"));var iD=(e=>(e.window="window",e.modal="modal",e))(iD||{});new $e("window",se.i18nt("designer.enum.window")),new $e("modal",se.i18nt("designer.enum.modal"));var sg=(e=>(e.self="self",e.top="top",e.parent="parent",e))(sg||{});new $e("top",se.i18nt("designer.enum.windowTop")),new $e("self",se.i18nt("designer.enum.windowSelf")),new $e("parent",se.i18nt("designer.enum.windowParent"));var lg=(e=>(e.close="close",e.cancel="cancel",e.save="save",e))(lg||{});new $e("close",se.i18nt("designer.enum.closeIframe")),new $e("cancel",se.i18nt("designer.enum.cancelIframe")),new $e("save",se.i18nt("designer.enum.saveIframe"));const ug="#";function qY(){return{variableExp:/#\{《const》:《([^》]+)》\}#/g,variableWithNameExp:r=>new RegExp("#{《const》:《"+r+"》}#.([0-9A-Za-z_]+)","gi"),buildVariable:r=>`${ug}{《const》:《${r}》}${ug}`}}function aD(){return{variableExp:/#\{《field》:《([^》]+)》\}#/g,buildVariable:n=>`${ug}{《field》:《${n}》}${ug}`}}function $Y(){var e='"',t="@#@";return{addTextPrefix:o=>{var i,c;return rx(o)?o:Ui(o)&&!((i=String(o))!=null&&i.startsWith(e))&&!((c=String(o))!=null&&c.endsWith(e))?`${e}${t}${o}${t}${e}`:o},removeTextPrefix:o=>{var i;return Ui(o)?(i=o==null?void 0:o.replace(new RegExp(`${e}${t}`,"gm"),""))==null?void 0:i.replace(`${t}${e}`,""):o},removeTextPrefixSimple:o=>Ui(o)?o==null?void 0:o.replace(new RegExp(`${t}`,"gm"),""):o}}function Eu(){const{addTextPrefix:e}=$Y(),{variableExp:t,buildVariable:n}=aD(),r=(u,f)=>Ui(u)?u==null?void 0:u.replace(t,function(h,d){return Va(f)&&(f!=null&&f[d])?f==null?void 0:f[d]:d}):u,a=(u,f)=>Ui(u)?u==null?void 0:u.replace(t,function(h,d){var v=d,m=f[v];return hr(m)?e(" "):e(m)}):u,o=(u,f)=>Ui(u)?u==null?void 0:u.replace(t,function(h,d){var v=d,m=f[v];return!Xi(v)&&!Xi(m)?n(m):h}):u,i=(u,f,h,d=t)=>Ui(u)?u==null?void 0:u.replace(d,function(v,m){var y;var p=m,g=(y=Or(f))!=null&&y.includes(p)?f==null?void 0:f[p]:null;return Xi(p)?v:h?h(p,g):Xi(g)?null:g}):u;return{transFormula:r,calcFormula:a,getFormulaFields:u=>{if(!u||Lc(u))return[];for(var f=null,h=[];(f=t.exec(u))!==null;)h.push(f==null?void 0:f[1]);return h},updateFomulaName:(u,f,h)=>{if(hr(u))return u;let d=Zr(u);return d!=null&&d.includes(f)?(d=o(d,{[f]:h}),ri(d)):u},updateFomula:(u,f,h,d=t)=>{var v=i(u,f,h,d);return v}}}const eJ=(e,t)=>{var n=[];return Object.entries(e).forEach(([r,a])=>{(!t||t.includes(a))&&n.push(new $e(r,a))}),n},tJ=(e,t)=>{var n={};return Object.entries(e).forEach(([r,a])=>{(!t||t.includes(a))&&(n[r]=a||"")}),n};function gx(e,t){var n=tJ(e,t);return Object.values(n)}class ot{constructor(t){z(this,"enable",!1);t&&Qn(this,t)}}class wr extends ot{constructor(n){super(n);z(this,"type",He.any);n&&Qn(this,n)}}class nJ{constructor(t){z(this,"action","");z(this,"options",{});z(this,"content",{});t&&Qn(this,t)}}class oD{constructor(t,n){z(this,"complexType",be.formula);z(this,"complexValue","");this.complexType=t,this.complexValue=n||""}}var sD;const Fd=typeof window<"u",lD=()=>{};Fd&&((sD=window==null?void 0:window.navigator)!=null&&sD.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rJ(e,t=!1,n="Timeout"){return new Promise((r,a)=>{setTimeout(t?()=>a(n):r,e)})}function iJ(e){return e}Fd&&window.document,Fd&&window.navigator,Fd&&window.location;function yx(e,t,n){const{immediate:r=!0,delay:a=0,onError:o=lD,onSuccess:i=lD,resetOnExecute:c=!0,shallow:s=!0,throwError:l}=n??{},u=s?x.shallowRef(t):x.ref(t),f=x.ref(!1),h=x.ref(!1),d=x.ref(void 0);async function v(m=0,...p){c&&(u.value=t),d.value=void 0,f.value=!1,h.value=!0,m>0&&await rJ(m);const g=typeof e=="function"?e(...p):e;try{const y=await g;u.value=y,f.value=!0,i(y)}catch(y){if(d.value=y,o(y),l)throw d}finally{h.value=!1}return u.value}return r&&v(a),{state:u,isReady:f,isLoading:h,error:d,execute:v}}const _x=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bx="__vueuse_ssr_handlers__";_x[bx]=_x[bx]||{},_x[bx];var uD;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(uD||(uD={}));var aJ=Object.defineProperty,cD=Object.getOwnPropertySymbols,oJ=Object.prototype.hasOwnProperty,sJ=Object.prototype.propertyIsEnumerable,fD=(e,t,n)=>t in e?aJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lJ=(e,t)=>{for(var n in t||(t={}))oJ.call(t,n)&&fD(e,n,t[n]);if(cD)for(var n of cD(t))sJ.call(t,n)&&fD(e,n,t[n]);return e};lJ({linear:iJ},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const uJ=(e,t,n=":")=>t?e?[e,t].join(n):t:"",pD=(e,t="")=>{var n=e==null?void 0:e.filter(r=>!!r);return!n||n.length<=0?"":n.join(t)},cg=(e,t)=>e.split("").filter(n=>n===t).length,hD=(e,t)=>{if(!e)return"";var n=String(e);if(!t)return n;if(n&&!/^[\d\.]+$/g.test(n))return"";var r="",a="",o=t==null?void 0:t.lastIndexOf(".");o==-1?r=t:(r=t==null?void 0:t.substring(0,o),a=t==null?void 0:t.substring(o+1,t==null?void 0:t.length));var i="",c="",s=n.lastIndexOf(".");if(s==-1)var i=n;else var i=n.substring(0,s),c=n.substring(s+1,n.length);for(var l=new Array,u=r.indexOf("#,###"),f=1,h=i.length,d=h;d>0;d--)l.unshift(i.charAt(d-1)),u!=-1&&f%3==0&&f!=h&&l.unshift(","),f++;o!=-1&&l.push(".");for(var d=0;d<a.length;d++)a.charAt(d)&&c.charAt(d)?l.push(c.charAt(d)):l.push("0");return l.join("")},cJ=e=>e==null?void 0:e.replace(/[\r\n]+/g,""),zc=(e,t,n,r,a)=>{r||(r=i=>!!cJ(i));const o=a?`
10
10
  `:"";return r(e)?`${t||""}${o}${e||""}${o}${n||""}`:e||""},fJ=(e,t,n,r)=>{if(e==null||e==="")return t;{let a=String(e);const o=a.substring(0,n),i=a.substring(r||n);return a=`${o}${t}${i}`,a}},pJ=(e,...t)=>e.replace(/{(\d+)}/g,(n,r)=>typeof t[r]<"u"?t[r]:n);var dD=/^function(\s*)(?<name>[^\(]+)(\s*)\((?<param>[^\)]+)\)(\s*)\{(?<body>((.|\s)*))\}(\s*)$/;const hJ=e=>e?dD.test(e):!1,dJ=e=>{if(e){var t=xx(e);if(t)try{return new Function(t==null?void 0:t.params.join(","),t==null?void 0:t.body)}catch(n){Hi.error("stringToFunc",n)}}},xx=e=>{var n,r,a;if(e){var t=dD.exec(e);if(t&&(t==null?void 0:t.length)>0)try{let o=((n=t.groups)==null?void 0:n.name)||"",i=((r=t.groups)==null?void 0:r.param)||"",c=((a=t.groups)==null?void 0:a.body)||"";return{params:vJ(i),body:c}}catch(o){Hi.error("getFuncSplit",o)}}},vJ=e=>{var t=mJ(e);return t.map(n=>n.key)},mJ=e=>{var c,s;let t=null;for(var n=/(?<key>([^:]+)):(\s*)(?<value>[^,]+),?/g,r=!0,a="",o="",i=[];t=n.exec(e);){let l=((c=t==null?void 0:t.groups)==null?void 0:c.key)||"";(s=t==null?void 0:t.groups)!=null&&s.value;let u=t==null?void 0:t[0];o+=u;let f=cg(o,"{")==cg(o,"}")&&cg(o,"(")==cg(o,")");r&&(a=l),f&&(o=o.replace(a+":",""),o.endsWith(",")?o=o.substring(0,o.length-1).trim():o=o.trim(),i.push({key:a,value:o}),o="",a=""),r=f}return i},Op=(e,t)=>{if(e)try{var n=t?Object.values(t):[];return e.call(e,...n)}catch(r){Hi.error("callFunc",r)}},gJ=(e,t)=>{var n=[];t&&(n=Object.keys(t),Object.values(t));let r=new Function(n.join(","),e);if(r)return Op(r,t)},yJ=(e,t)=>{let n=dJ(e);if(n)return Op(n,t)},Qs=(e,t)=>{if(e)return hJ(e)?yJ(e,t):gJ(e,t)},vD=e=>{if(e){var t=e;return t=t==null?void 0:t.trim(),t!=null&&t.startsWith("${")&&(t!=null&&t.endsWith("}"))?(t=t==null?void 0:t.substring(2,(t==null?void 0:t.length)-1),t=`return ${t}`):t=`${t}`,`${t}`}},_J=(e,t)=>{let n=vD(e);var r=t?Or(t):[];return n=`function(${r.join(",")}){${n}}`,new Function("return "+n)},Ex=(e,t)=>{var o;var n=_J(e,t),r=t?(o=Object.entries(t))==null?void 0:o.map(([i,c])=>x.isRef(c)?c.value:c):[];try{var a=n==null?void 0:n();if(a!=null){if(r!=null)return a==null?void 0:a(...r);a==null||a()}else Hi.info("evalExpression","function is empty",{expression:e,data:t})}catch(i){Hi.error("evalExpression",i,{expression:e,data:t});return}},bJ=(e,t)=>{const n=/\"\$\{([^\}]+)\}\"/g;if(!(e==null||!Ui(e))){var r=e==null?void 0:e.replace(n,function(a,o,i){var c=a,s=c.substring(1,c.length-1),l=Ex(s,t);return hr(l)?'""':Es(l)?Zr(l):`"${l}"`});return r}},xJ=(e,t)=>{const n=/\$\{([^\}]+)\}/g;if(!(e==null||!Ui(e))){var r=e==null?void 0:e.replace(n,function(a,o,i){var c=a,s=Ex(c,t);return hr(s)?"":s});return r}},EJ=(e,t)=>{const n=/\$\{([^\}]+)\}/g;if(!(e==null||!Ui(e)))return e==null?void 0:e.replace(n,function(r,a,o,i){return"${"+(t?t(a):a)+"}"})},qs=(e,t)=>{var n=bJ(e,t),r=xJ(n,t);return r};var Jn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mD(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var a=[null];a.push.apply(a,arguments);var o=Function.bind.apply(t,a);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var wi={},wJ={get exports(){return wi},set exports(e){wi=e}};(function(e,t){(function(r,a){e.exports=a()})(Jn,function(){return function(n){var r={};function a(o){if(r[o])return r[o].exports;var i=r[o]={exports:{},id:o,loaded:!1};return n[o].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}return a.m=n,a.c=r,a.p="",a(0)}([function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var o=a(1),i=a(3),c=a(8),s=a(15);function l(v,m,p){var g=null,y=function(C,D){p&&p(C,D),g&&g.visit(C,D)},b=typeof p=="function"?y:null,_=!1;if(m){_=typeof m.comment=="boolean"&&m.comment;var E=typeof m.attachComment=="boolean"&&m.attachComment;(_||E)&&(g=new o.CommentHandler,g.attach=E,m.comment=!0,b=y)}var w=!1;m&&typeof m.sourceType=="string"&&(w=m.sourceType==="module");var S;m&&typeof m.jsx=="boolean"&&m.jsx?S=new i.JSXParser(v,m,b):S=new c.Parser(v,m,b);var A=w?S.parseModule():S.parseScript(),P=A;return _&&g&&(P.comments=g.comments),S.config.tokens&&(P.tokens=S.tokens),S.config.tolerant&&(P.errors=S.errorHandler.errors),P}r.parse=l;function u(v,m,p){var g=m||{};return g.sourceType="module",l(v,g,p)}r.parseModule=u;function f(v,m,p){var g=m||{};return g.sourceType="script",l(v,g,p)}r.parseScript=f;function h(v,m,p){var g=new s.Tokenizer(v,m),y;y=[];try{for(;;){var b=g.getNextToken();if(!b)break;p&&(b=p(b)),y.push(b)}}catch(_){g.errorHandler.tolerate(_)}return g.errorHandler.tolerant&&(y.errors=g.errors()),y}r.tokenize=h;var d=a(2);r.Syntax=d.Syntax,r.version="4.0.1"},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var o=a(2),i=function(){function c(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return c.prototype.insertInnerComments=function(s,l){if(s.type===o.Syntax.BlockStatement&&s.body.length===0){for(var u=[],f=this.leading.length-1;f>=0;--f){var h=this.leading[f];l.end.offset>=h.start&&(u.unshift(h.comment),this.leading.splice(f,1),this.trailing.splice(f,1))}u.length&&(s.innerComments=u)}},c.prototype.findTrailingComments=function(s){var l=[];if(this.trailing.length>0){for(var u=this.trailing.length-1;u>=0;--u){var f=this.trailing[u];f.start>=s.end.offset&&l.unshift(f.comment)}return this.trailing.length=0,l}var h=this.stack[this.stack.length-1];if(h&&h.node.trailingComments){var d=h.node.trailingComments[0];d&&d.range[0]>=s.end.offset&&(l=h.node.trailingComments,delete h.node.trailingComments)}return l},c.prototype.findLeadingComments=function(s){for(var l=[],u;this.stack.length>0;){var f=this.stack[this.stack.length-1];if(f&&f.start>=s.start.offset)u=f.node,this.stack.pop();else break}if(u){for(var h=u.leadingComments?u.leadingComments.length:0,d=h-1;d>=0;--d){var v=u.leadingComments[d];v.range[1]<=s.start.offset&&(l.unshift(v),u.leadingComments.splice(d,1))}return u.leadingComments&&u.leadingComments.length===0&&delete u.leadingComments,l}for(var d=this.leading.length-1;d>=0;--d){var f=this.leading[d];f.start<=s.start.offset&&(l.unshift(f.comment),this.leading.splice(d,1))}return l},c.prototype.visitNode=function(s,l){if(!(s.type===o.Syntax.Program&&s.body.length>0)){this.insertInnerComments(s,l);var u=this.findTrailingComments(l),f=this.findLeadingComments(l);f.length>0&&(s.leadingComments=f),u.length>0&&(s.trailingComments=u),this.stack.push({node:s,start:l.start.offset})}},c.prototype.visitComment=function(s,l){var u=s.type[0]==="L"?"Line":"Block",f={type:u,value:s.value};if(s.range&&(f.range=s.range),s.loc&&(f.loc=s.loc),this.comments.push(f),this.attach){var h={comment:{type:u,value:s.value,range:[l.start.offset,l.end.offset]},start:l.start.offset};s.loc&&(h.comment.loc=s.loc),s.type=u,this.leading.push(h),this.trailing.push(h)}},c.prototype.visit=function(s,l){s.type==="LineComment"?this.visitComment(s,l):s.type==="BlockComment"?this.visitComment(s,l):this.attach&&this.visitNode(s,l)},c}();r.CommentHandler=i},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(n,r,a){var o=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var y in g)g.hasOwnProperty(y)&&(p[y]=g[y])};return function(p,g){m(p,g);function y(){this.constructor=p}p.prototype=g===null?Object.create(g):(y.prototype=g.prototype,new y)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=a(4),c=a(5),s=a(6),l=a(7),u=a(8),f=a(13),h=a(14);f.TokenName[100]="JSXIdentifier",f.TokenName[101]="JSXText";function d(m){var p;switch(m.type){case s.JSXSyntax.JSXIdentifier:var g=m;p=g.name;break;case s.JSXSyntax.JSXNamespacedName:var y=m;p=d(y.namespace)+":"+d(y.name);break;case s.JSXSyntax.JSXMemberExpression:var b=m;p=d(b.object)+"."+d(b.property);break}return p}var v=function(m){o(p,m);function p(g,y,b){return m.call(this,g,y,b)||this}return p.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():m.prototype.parsePrimaryExpression.call(this)},p.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},p.prototype.finishJSX=function(){this.nextToken()},p.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},p.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},p.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},p.prototype.scanXHTMLEntity=function(g){for(var y="&",b=!0,_=!1,E=!1,w=!1;!this.scanner.eof()&&b&&!_;){var S=this.scanner.source[this.scanner.index];if(S===g)break;if(_=S===";",y+=S,++this.scanner.index,!_)switch(y.length){case 2:E=S==="#";break;case 3:E&&(w=S==="x",b=w||i.Character.isDecimalDigit(S.charCodeAt(0)),E=E&&!w);break;default:b=b&&!(E&&!i.Character.isDecimalDigit(S.charCodeAt(0))),b=b&&!(w&&!i.Character.isHexDigit(S.charCodeAt(0)));break}}if(b&&_&&y.length>2){var A=y.substr(1,y.length-2);E&&A.length>1?y=String.fromCharCode(parseInt(A.substr(1),10)):w&&A.length>2?y=String.fromCharCode(parseInt("0"+A.substr(1),16)):!E&&!w&&h.XHTMLEntities[A]&&(y=h.XHTMLEntities[A])}return y},p.prototype.lexJSX=function(){var g=this.scanner.source.charCodeAt(this.scanner.index);if(g===60||g===62||g===47||g===58||g===61||g===123||g===125){var y=this.scanner.source[this.scanner.index++];return{type:7,value:y,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(g===34||g===39){for(var b=this.scanner.index,_=this.scanner.source[this.scanner.index++],E="";!this.scanner.eof();){var w=this.scanner.source[this.scanner.index++];if(w===_)break;w==="&"?E+=this.scanXHTMLEntity(_):E+=w}return{type:8,value:E,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:b,end:this.scanner.index}}if(g===46){var S=this.scanner.source.charCodeAt(this.scanner.index+1),A=this.scanner.source.charCodeAt(this.scanner.index+2),y=S===46&&A===46?"...":".",b=this.scanner.index;return this.scanner.index+=y.length,{type:7,value:y,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:b,end:this.scanner.index}}if(g===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(g)&&g!==92){var b=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var w=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(w)&&w!==92)++this.scanner.index;else if(w===45)++this.scanner.index;else break}var P=this.scanner.source.slice(b,this.scanner.index);return{type:100,value:P,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:b,end:this.scanner.index}}return this.scanner.lex()},p.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var g=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(g)),g},p.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var g=this.scanner.index,y="";!this.scanner.eof();){var b=this.scanner.source[this.scanner.index];if(b==="{"||b==="<")break;++this.scanner.index,y+=b,i.Character.isLineTerminator(b.charCodeAt(0))&&(++this.scanner.lineNumber,b==="\r"&&this.scanner.source[this.scanner.index]===`
11
11
  `&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var _={type:101,value:y,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:g,end:this.scanner.index};return y.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(_)),_},p.prototype.peekJSXToken=function(){var g=this.scanner.saveState();this.scanner.scanComments();var y=this.lexJSX();return this.scanner.restoreState(g),y},p.prototype.expectJSX=function(g){var y=this.nextJSXToken();(y.type!==7||y.value!==g)&&this.throwUnexpectedToken(y)},p.prototype.matchJSX=function(g){var y=this.peekJSXToken();return y.type===7&&y.value===g},p.prototype.parseJSXIdentifier=function(){var g=this.createJSXNode(),y=this.nextJSXToken();return y.type!==100&&this.throwUnexpectedToken(y),this.finalize(g,new c.JSXIdentifier(y.value))},p.prototype.parseJSXElementName=function(){var g=this.createJSXNode(),y=this.parseJSXIdentifier();if(this.matchJSX(":")){var b=y;this.expectJSX(":");var _=this.parseJSXIdentifier();y=this.finalize(g,new c.JSXNamespacedName(b,_))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var E=y;this.expectJSX(".");var w=this.parseJSXIdentifier();y=this.finalize(g,new c.JSXMemberExpression(E,w))}return y},p.prototype.parseJSXAttributeName=function(){var g=this.createJSXNode(),y,b=this.parseJSXIdentifier();if(this.matchJSX(":")){var _=b;this.expectJSX(":");var E=this.parseJSXIdentifier();y=this.finalize(g,new c.JSXNamespacedName(_,E))}else y=b;return y},p.prototype.parseJSXStringLiteralAttribute=function(){var g=this.createJSXNode(),y=this.nextJSXToken();y.type!==8&&this.throwUnexpectedToken(y);var b=this.getTokenRaw(y);return this.finalize(g,new l.Literal(y.value,b))},p.prototype.parseJSXExpressionAttribute=function(){var g=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var y=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(g,new c.JSXExpressionContainer(y))},p.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},p.prototype.parseJSXNameValueAttribute=function(){var g=this.createJSXNode(),y=this.parseJSXAttributeName(),b=null;return this.matchJSX("=")&&(this.expectJSX("="),b=this.parseJSXAttributeValue()),this.finalize(g,new c.JSXAttribute(y,b))},p.prototype.parseJSXSpreadAttribute=function(){var g=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var y=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(g,new c.JSXSpreadAttribute(y))},p.prototype.parseJSXAttributes=function(){for(var g=[];!this.matchJSX("/")&&!this.matchJSX(">");){var y=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();g.push(y)}return g},p.prototype.parseJSXOpeningElement=function(){var g=this.createJSXNode();this.expectJSX("<");var y=this.parseJSXElementName(),b=this.parseJSXAttributes(),_=this.matchJSX("/");return _&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(g,new c.JSXOpeningElement(y,_,b))},p.prototype.parseJSXBoundaryElement=function(){var g=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var y=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(g,new c.JSXClosingElement(y))}var b=this.parseJSXElementName(),_=this.parseJSXAttributes(),E=this.matchJSX("/");return E&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(g,new c.JSXOpeningElement(b,E,_))},p.prototype.parseJSXEmptyExpression=function(){var g=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(g,new c.JSXEmptyExpression)},p.prototype.parseJSXExpressionContainer=function(){var g=this.createJSXNode();this.expectJSX("{");var y;return this.matchJSX("}")?(y=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),y=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(g,new c.JSXExpressionContainer(y))},p.prototype.parseJSXChildren=function(){for(var g=[];!this.scanner.eof();){var y=this.createJSXChildNode(),b=this.nextJSXText();if(b.start<b.end){var _=this.getTokenRaw(b),E=this.finalize(y,new c.JSXText(b.value,_));g.push(E)}if(this.scanner.source[this.scanner.index]==="{"){var w=this.parseJSXExpressionContainer();g.push(w)}else break}return g},p.prototype.parseComplexJSXElement=function(g){for(var y=[];!this.scanner.eof();){g.children=g.children.concat(this.parseJSXChildren());var b=this.createJSXChildNode(),_=this.parseJSXBoundaryElement();if(_.type===s.JSXSyntax.JSXOpeningElement){var E=_;if(E.selfClosing){var w=this.finalize(b,new c.JSXElement(E,[],null));g.children.push(w)}else y.push(g),g={node:b,opening:E,closing:null,children:[]}}if(_.type===s.JSXSyntax.JSXClosingElement){g.closing=_;var S=d(g.opening.name),A=d(g.closing.name);if(S!==A&&this.tolerateError("Expected corresponding JSX closing tag for %0",S),y.length>0){var w=this.finalize(g.node,new c.JSXElement(g.opening,g.children,g.closing));g=y[y.length-1],g.children.push(w),y.pop()}else break}}return g},p.prototype.parseJSXElement=function(){var g=this.createJSXNode(),y=this.parseJSXOpeningElement(),b=[],_=null;if(!y.selfClosing){var E=this.parseComplexJSXElement({node:g,opening:y,closing:_,children:b});b=E.children,_=E.closing}return this.finalize(g,new c.JSXElement(y,b,_))},p.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var g=this.parseJSXElement();return this.finishJSX(),g},p.prototype.isStartOfExpression=function(){return m.prototype.isStartOfExpression.call(this)||this.match("<")},p}(u.Parser);r.JSXParser=v},function(n,r){Object.defineProperty(r,"__esModule",{value:!0});var a={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};r.Character={fromCodePoint:function(o){return o<65536?String.fromCharCode(o):String.fromCharCode(55296+(o-65536>>10))+String.fromCharCode(56320+(o-65536&1023))},isWhiteSpace:function(o){return o===32||o===9||o===11||o===12||o===160||o>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(o)>=0},isLineTerminator:function(o){return o===10||o===13||o===8232||o===8233},isIdentifierStart:function(o){return o===36||o===95||o>=65&&o<=90||o>=97&&o<=122||o===92||o>=128&&a.NonAsciiIdentifierStart.test(r.Character.fromCodePoint(o))},isIdentifierPart:function(o){return o===36||o===95||o>=65&&o<=90||o>=97&&o<=122||o>=48&&o<=57||o===92||o>=128&&a.NonAsciiIdentifierPart.test(r.Character.fromCodePoint(o))},isDecimalDigit:function(o){return o>=48&&o<=57},isHexDigit:function(o){return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102},isOctalDigit:function(o){return o>=48&&o<=55}}},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var o=a(6),i=function(){function g(y){this.type=o.JSXSyntax.JSXClosingElement,this.name=y}return g}();r.JSXClosingElement=i;var c=function(){function g(y,b,_){this.type=o.JSXSyntax.JSXElement,this.openingElement=y,this.children=b,this.closingElement=_}return g}();r.JSXElement=c;var s=function(){function g(){this.type=o.JSXSyntax.JSXEmptyExpression}return g}();r.JSXEmptyExpression=s;var l=function(){function g(y){this.type=o.JSXSyntax.JSXExpressionContainer,this.expression=y}return g}();r.JSXExpressionContainer=l;var u=function(){function g(y){this.type=o.JSXSyntax.JSXIdentifier,this.name=y}return g}();r.JSXIdentifier=u;var f=function(){function g(y,b){this.type=o.JSXSyntax.JSXMemberExpression,this.object=y,this.property=b}return g}();r.JSXMemberExpression=f;var h=function(){function g(y,b){this.type=o.JSXSyntax.JSXAttribute,this.name=y,this.value=b}return g}();r.JSXAttribute=h;var d=function(){function g(y,b){this.type=o.JSXSyntax.JSXNamespacedName,this.namespace=y,this.name=b}return g}();r.JSXNamespacedName=d;var v=function(){function g(y,b,_){this.type=o.JSXSyntax.JSXOpeningElement,this.name=y,this.selfClosing=b,this.attributes=_}return g}();r.JSXOpeningElement=v;var m=function(){function g(y){this.type=o.JSXSyntax.JSXSpreadAttribute,this.argument=y}return g}();r.JSXSpreadAttribute=m;var p=function(){function g(y,b){this.type=o.JSXSyntax.JSXText,this.value=y,this.raw=b}return g}();r.JSXText=p},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var o=a(2),i=function(){function rt(lt){this.type=o.Syntax.ArrayExpression,this.elements=lt}return rt}();r.ArrayExpression=i;var c=function(){function rt(lt){this.type=o.Syntax.ArrayPattern,this.elements=lt}return rt}();r.ArrayPattern=c;var s=function(){function rt(lt,ae,Pe){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=lt,this.body=ae,this.generator=!1,this.expression=Pe,this.async=!1}return rt}();r.ArrowFunctionExpression=s;var l=function(){function rt(lt,ae,Pe){this.type=o.Syntax.AssignmentExpression,this.operator=lt,this.left=ae,this.right=Pe}return rt}();r.AssignmentExpression=l;var u=function(){function rt(lt,ae){this.type=o.Syntax.AssignmentPattern,this.left=lt,this.right=ae}return rt}();r.AssignmentPattern=u;var f=function(){function rt(lt,ae,Pe){this.type=o.Syntax.ArrowFunctionExpression,this.id=null,this.params=lt,this.body=ae,this.generator=!1,this.expression=Pe,this.async=!0}return rt}();r.AsyncArrowFunctionExpression=f;var h=function(){function rt(lt,ae,Pe){this.type=o.Syntax.FunctionDeclaration,this.id=lt,this.params=ae,this.body=Pe,this.generator=!1,this.expression=!1,this.async=!0}return rt}();r.AsyncFunctionDeclaration=h;var d=function(){function rt(lt,ae,Pe){this.type=o.Syntax.FunctionExpression,this.id=lt,this.params=ae,this.body=Pe,this.generator=!1,this.expression=!1,this.async=!0}return rt}();r.AsyncFunctionExpression=d;var v=function(){function rt(lt){this.type=o.Syntax.AwaitExpression,this.argument=lt}return rt}();r.AwaitExpression=v;var m=function(){function rt(lt,ae,Pe){var Ae=lt==="||"||lt==="&&";this.type=Ae?o.Syntax.LogicalExpression:o.Syntax.BinaryExpression,this.operator=lt,this.left=ae,this.right=Pe}return rt}();r.BinaryExpression=m;var p=function(){function rt(lt){this.type=o.Syntax.BlockStatement,this.body=lt}return rt}();r.BlockStatement=p;var g=function(){function rt(lt){this.type=o.Syntax.BreakStatement,this.label=lt}return rt}();r.BreakStatement=g;var y=function(){function rt(lt,ae){this.type=o.Syntax.CallExpression,this.callee=lt,this.arguments=ae}return rt}();r.CallExpression=y;var b=function(){function rt(lt,ae){this.type=o.Syntax.CatchClause,this.param=lt,this.body=ae}return rt}();r.CatchClause=b;var _=function(){function rt(lt){this.type=o.Syntax.ClassBody,this.body=lt}return rt}();r.ClassBody=_;var E=function(){function rt(lt,ae,Pe){this.type=o.Syntax.ClassDeclaration,this.id=lt,this.superClass=ae,this.body=Pe}return rt}();r.ClassDeclaration=E;var w=function(){function rt(lt,ae,Pe){this.type=o.Syntax.ClassExpression,this.id=lt,this.superClass=ae,this.body=Pe}return rt}();r.ClassExpression=w;var S=function(){function rt(lt,ae){this.type=o.Syntax.MemberExpression,this.computed=!0,this.object=lt,this.property=ae}return rt}();r.ComputedMemberExpression=S;var A=function(){function rt(lt,ae,Pe){this.type=o.Syntax.ConditionalExpression,this.test=lt,this.consequent=ae,this.alternate=Pe}return rt}();r.ConditionalExpression=A;var P=function(){function rt(lt){this.type=o.Syntax.ContinueStatement,this.label=lt}return rt}();r.ContinueStatement=P;var C=function(){function rt(){this.type=o.Syntax.DebuggerStatement}return rt}();r.DebuggerStatement=C;var D=function(){function rt(lt,ae){this.type=o.Syntax.ExpressionStatement,this.expression=lt,this.directive=ae}return rt}();r.Directive=D;var k=function(){function rt(lt,ae){this.type=o.Syntax.DoWhileStatement,this.body=lt,this.test=ae}return rt}();r.DoWhileStatement=k;var O=function(){function rt(){this.type=o.Syntax.EmptyStatement}return rt}();r.EmptyStatement=O;var I=function(){function rt(lt){this.type=o.Syntax.ExportAllDeclaration,this.source=lt}return rt}();r.ExportAllDeclaration=I;var N=function(){function rt(lt){this.type=o.Syntax.ExportDefaultDeclaration,this.declaration=lt}return rt}();r.ExportDefaultDeclaration=N;var F=function(){function rt(lt,ae,Pe){this.type=o.Syntax.ExportNamedDeclaration,this.declaration=lt,this.specifiers=ae,this.source=Pe}return rt}();r.ExportNamedDeclaration=F;var R=function(){function rt(lt,ae){this.type=o.Syntax.ExportSpecifier,this.exported=ae,this.local=lt}return rt}();r.ExportSpecifier=R;var M=function(){function rt(lt){this.type=o.Syntax.ExpressionStatement,this.expression=lt}return rt}();r.ExpressionStatement=M;var j=function(){function rt(lt,ae,Pe){this.type=o.Syntax.ForInStatement,this.left=lt,this.right=ae,this.body=Pe,this.each=!1}return rt}();r.ForInStatement=j;var W=function(){function rt(lt,ae,Pe){this.type=o.Syntax.ForOfStatement,this.left=lt,this.right=ae,this.body=Pe}return rt}();r.ForOfStatement=W;var L=function(){function rt(lt,ae,Pe,Ae){this.type=o.Syntax.ForStatement,this.init=lt,this.test=ae,this.update=Pe,this.body=Ae}return rt}();r.ForStatement=L;var U=function(){function rt(lt,ae,Pe,Ae){this.type=o.Syntax.FunctionDeclaration,this.id=lt,this.params=ae,this.body=Pe,this.generator=Ae,this.expression=!1,this.async=!1}return rt}();r.FunctionDeclaration=U;var K=function(){function rt(lt,ae,Pe,Ae){this.type=o.Syntax.FunctionExpression,this.id=lt,this.params=ae,this.body=Pe,this.generator=Ae,this.expression=!1,this.async=!1}return rt}();r.FunctionExpression=K;var J=function(){function rt(lt){this.type=o.Syntax.Identifier,this.name=lt}return rt}();r.Identifier=J;var Q=function(){function rt(lt,ae,Pe){this.type=o.Syntax.IfStatement,this.test=lt,this.consequent=ae,this.alternate=Pe}return rt}();r.IfStatement=Q;var q=function(){function rt(lt,ae){this.type=o.Syntax.ImportDeclaration,this.specifiers=lt,this.source=ae}return rt}();r.ImportDeclaration=q;var ue=function(){function rt(lt){this.type=o.Syntax.ImportDefaultSpecifier,this.local=lt}return rt}();r.ImportDefaultSpecifier=ue;var te=function(){function rt(lt){this.type=o.Syntax.ImportNamespaceSpecifier,this.local=lt}return rt}();r.ImportNamespaceSpecifier=te;var ne=function(){function rt(lt,ae){this.type=o.Syntax.ImportSpecifier,this.local=lt,this.imported=ae}return rt}();r.ImportSpecifier=ne;var ie=function(){function rt(lt,ae){this.type=o.Syntax.LabeledStatement,this.label=lt,this.body=ae}return rt}();r.LabeledStatement=ie;var de=function(){function rt(lt,ae){this.type=o.Syntax.Literal,this.value=lt,this.raw=ae}return rt}();r.Literal=de;var G=function(){function rt(lt,ae){this.type=o.Syntax.MetaProperty,this.meta=lt,this.property=ae}return rt}();r.MetaProperty=G;var Z=function(){function rt(lt,ae,Pe,Ae,Fe){this.type=o.Syntax.MethodDefinition,this.key=lt,this.computed=ae,this.value=Pe,this.kind=Ae,this.static=Fe}return rt}();r.MethodDefinition=Z;var re=function(){function rt(lt){this.type=o.Syntax.Program,this.body=lt,this.sourceType="module"}return rt}();r.Module=re;var ce=function(){function rt(lt,ae){this.type=o.Syntax.NewExpression,this.callee=lt,this.arguments=ae}return rt}();r.NewExpression=ce;var fe=function(){function rt(lt){this.type=o.Syntax.ObjectExpression,this.properties=lt}return rt}();r.ObjectExpression=fe;var me=function(){function rt(lt){this.type=o.Syntax.ObjectPattern,this.properties=lt}return rt}();r.ObjectPattern=me;var pe=function(){function rt(lt,ae,Pe,Ae,Fe,Ue){this.type=o.Syntax.Property,this.key=ae,this.computed=Pe,this.value=Ae,this.kind=lt,this.method=Fe,this.shorthand=Ue}return rt}();r.Property=pe;var Ee=function(){function rt(lt,ae,Pe,Ae){this.type=o.Syntax.Literal,this.value=lt,this.raw=ae,this.regex={pattern:Pe,flags:Ae}}return rt}();r.RegexLiteral=Ee;var Te=function(){function rt(lt){this.type=o.Syntax.RestElement,this.argument=lt}return rt}();r.RestElement=Te;var Ne=function(){function rt(lt){this.type=o.Syntax.ReturnStatement,this.argument=lt}return rt}();r.ReturnStatement=Ne;var Re=function(){function rt(lt){this.type=o.Syntax.Program,this.body=lt,this.sourceType="script"}return rt}();r.Script=Re;var X=function(){function rt(lt){this.type=o.Syntax.SequenceExpression,this.expressions=lt}return rt}();r.SequenceExpression=X;var Y=function(){function rt(lt){this.type=o.Syntax.SpreadElement,this.argument=lt}return rt}();r.SpreadElement=Y;var ee=function(){function rt(lt,ae){this.type=o.Syntax.MemberExpression,this.computed=!1,this.object=lt,this.property=ae}return rt}();r.StaticMemberExpression=ee;var ve=function(){function rt(){this.type=o.Syntax.Super}return rt}();r.Super=ve;var Ce=function(){function rt(lt,ae){this.type=o.Syntax.SwitchCase,this.test=lt,this.consequent=ae}return rt}();r.SwitchCase=Ce;var Oe=function(){function rt(lt,ae){this.type=o.Syntax.SwitchStatement,this.discriminant=lt,this.cases=ae}return rt}();r.SwitchStatement=Oe;var Ie=function(){function rt(lt,ae){this.type=o.Syntax.TaggedTemplateExpression,this.tag=lt,this.quasi=ae}return rt}();r.TaggedTemplateExpression=Ie;var Be=function(){function rt(lt,ae){this.type=o.Syntax.TemplateElement,this.value=lt,this.tail=ae}return rt}();r.TemplateElement=Be;var We=function(){function rt(lt,ae){this.type=o.Syntax.TemplateLiteral,this.quasis=lt,this.expressions=ae}return rt}();r.TemplateLiteral=We;var ze=function(){function rt(){this.type=o.Syntax.ThisExpression}return rt}();r.ThisExpression=ze;var Xe=function(){function rt(lt){this.type=o.Syntax.ThrowStatement,this.argument=lt}return rt}();r.ThrowStatement=Xe;var it=function(){function rt(lt,ae,Pe){this.type=o.Syntax.TryStatement,this.block=lt,this.handler=ae,this.finalizer=Pe}return rt}();r.TryStatement=it;var Bt=function(){function rt(lt,ae){this.type=o.Syntax.UnaryExpression,this.operator=lt,this.argument=ae,this.prefix=!0}return rt}();r.UnaryExpression=Bt;var yt=function(){function rt(lt,ae,Pe){this.type=o.Syntax.UpdateExpression,this.operator=lt,this.argument=ae,this.prefix=Pe}return rt}();r.UpdateExpression=yt;var Rt=function(){function rt(lt,ae){this.type=o.Syntax.VariableDeclaration,this.declarations=lt,this.kind=ae}return rt}();r.VariableDeclaration=Rt;var kt=function(){function rt(lt,ae){this.type=o.Syntax.VariableDeclarator,this.id=lt,this.init=ae}return rt}();r.VariableDeclarator=kt;var At=function(){function rt(lt,ae){this.type=o.Syntax.WhileStatement,this.test=lt,this.body=ae}return rt}();r.WhileStatement=At;var ft=function(){function rt(lt,ae){this.type=o.Syntax.WithStatement,this.object=lt,this.body=ae}return rt}();r.WithStatement=ft;var Sn=function(){function rt(lt,ae){this.type=o.Syntax.YieldExpression,this.argument=lt,this.delegate=ae}return rt}();r.YieldExpression=Sn},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var o=a(9),i=a(10),c=a(11),s=a(7),l=a(12),u=a(2),f=a(13),h="ArrowParameterPlaceHolder",d=function(){function v(m,p,g){p===void 0&&(p={}),this.config={range:typeof p.range=="boolean"&&p.range,loc:typeof p.loc=="boolean"&&p.loc,source:null,tokens:typeof p.tokens=="boolean"&&p.tokens,comment:typeof p.comment=="boolean"&&p.comment,tolerant:typeof p.tolerant=="boolean"&&p.tolerant},this.config.loc&&p.source&&p.source!==null&&(this.config.source=String(p.source)),this.delegate=g,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new l.Scanner(m,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return v.prototype.throwError=function(m){var p=Array.prototype.slice.call(arguments,1),g=m.replace(/%(\d)/g,function(E,w){return o.assert(w<p.length,"Message reference must be in range"),p[w]}),y=this.lastMarker.index,b=this.lastMarker.line,_=this.lastMarker.column+1;throw this.errorHandler.createError(y,b,_,g)},v.prototype.tolerateError=function(m){var p=Array.prototype.slice.call(arguments,1),g=m.replace(/%(\d)/g,function(E,w){return o.assert(w<p.length,"Message reference must be in range"),p[w]}),y=this.lastMarker.index,b=this.scanner.lineNumber,_=this.lastMarker.column+1;this.errorHandler.tolerateError(y,b,_,g)},v.prototype.unexpectedTokenError=function(m,p){var g=p||c.Messages.UnexpectedToken,y;if(m?(p||(g=m.type===2?c.Messages.UnexpectedEOS:m.type===3?c.Messages.UnexpectedIdentifier:m.type===6?c.Messages.UnexpectedNumber:m.type===8?c.Messages.UnexpectedString:m.type===10?c.Messages.UnexpectedTemplate:c.Messages.UnexpectedToken,m.type===4&&(this.scanner.isFutureReservedWord(m.value)?g=c.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(m.value)&&(g=c.Messages.StrictReservedWord))),y=m.value):y="ILLEGAL",g=g.replace("%0",y),m&&typeof m.lineNumber=="number"){var b=m.start,_=m.lineNumber,E=this.lastMarker.index-this.lastMarker.column,w=m.start-E+1;return this.errorHandler.createError(b,_,w,g)}else{var b=this.lastMarker.index,_=this.lastMarker.line,w=this.lastMarker.column+1;return this.errorHandler.createError(b,_,w,g)}},v.prototype.throwUnexpectedToken=function(m,p){throw this.unexpectedTokenError(m,p)},v.prototype.tolerateUnexpectedToken=function(m,p){this.errorHandler.tolerate(this.unexpectedTokenError(m,p))},v.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var m=this.scanner.scanComments();if(m.length>0&&this.delegate)for(var p=0;p<m.length;++p){var g=m[p],y=void 0;y={type:g.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(g.slice[0],g.slice[1])},this.config.range&&(y.range=g.range),this.config.loc&&(y.loc=g.loc);var b={start:{line:g.loc.start.line,column:g.loc.start.column,offset:g.range[0]},end:{line:g.loc.end.line,column:g.loc.end.column,offset:g.range[1]}};this.delegate(y,b)}}},v.prototype.getTokenRaw=function(m){return this.scanner.source.slice(m.start,m.end)},v.prototype.convertToken=function(m){var p={type:f.TokenName[m.type],value:this.getTokenRaw(m)};if(this.config.range&&(p.range=[m.start,m.end]),this.config.loc&&(p.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),m.type===9){var g=m.pattern,y=m.flags;p.regex={pattern:g,flags:y}}return p},v.prototype.nextToken=function(){var m=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var p=this.scanner.lex();return this.hasLineTerminator=m.lineNumber!==p.lineNumber,p&&this.context.strict&&p.type===3&&this.scanner.isStrictModeReservedWord(p.value)&&(p.type=4),this.lookahead=p,this.config.tokens&&p.type!==2&&this.tokens.push(this.convertToken(p)),m},v.prototype.nextRegexToken=function(){this.collectComments();var m=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(m))),this.lookahead=m,this.nextToken(),m},v.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},v.prototype.startNode=function(m,p){p===void 0&&(p=0);var g=m.start-m.lineStart,y=m.lineNumber;return g<0&&(g+=p,y--),{index:m.start,line:y,column:g}},v.prototype.finalize=function(m,p){if(this.config.range&&(p.range=[m.index,this.lastMarker.index]),this.config.loc&&(p.loc={start:{line:m.line,column:m.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(p.loc.source=this.config.source)),this.delegate){var g={start:{line:m.line,column:m.column,offset:m.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(p,g)}return p},v.prototype.expect=function(m){var p=this.nextToken();(p.type!==7||p.value!==m)&&this.throwUnexpectedToken(p)},v.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var m=this.lookahead;m.type===7&&m.value===","?this.nextToken():m.type===7&&m.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(m)):this.tolerateUnexpectedToken(m,c.Messages.UnexpectedToken)}else this.expect(",")},v.prototype.expectKeyword=function(m){var p=this.nextToken();(p.type!==4||p.value!==m)&&this.throwUnexpectedToken(p)},v.prototype.match=function(m){return this.lookahead.type===7&&this.lookahead.value===m},v.prototype.matchKeyword=function(m){return this.lookahead.type===4&&this.lookahead.value===m},v.prototype.matchContextualKeyword=function(m){return this.lookahead.type===3&&this.lookahead.value===m},v.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var m=this.lookahead.value;return m==="="||m==="*="||m==="**="||m==="/="||m==="%="||m==="+="||m==="-="||m==="<<="||m===">>="||m===">>>="||m==="&="||m==="^="||m==="|="},v.prototype.isolateCoverGrammar=function(m){var p=this.context.isBindingElement,g=this.context.isAssignmentTarget,y=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var b=m.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=p,this.context.isAssignmentTarget=g,this.context.firstCoverInitializedNameError=y,b},v.prototype.inheritCoverGrammar=function(m){var p=this.context.isBindingElement,g=this.context.isAssignmentTarget,y=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var b=m.call(this);return this.context.isBindingElement=this.context.isBindingElement&&p,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&g,this.context.firstCoverInitializedNameError=y||this.context.firstCoverInitializedNameError,b},v.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},v.prototype.parsePrimaryExpression=function(){var m=this.createNode(),p,g,y;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),p=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(m,new s.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,c.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,g=this.nextToken(),y=this.getTokenRaw(g),p=this.finalize(m,new s.Literal(g.value,y));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,g=this.nextToken(),y=this.getTokenRaw(g),p=this.finalize(m,new s.Literal(g.value==="true",y));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,g=this.nextToken(),y=this.getTokenRaw(g),p=this.finalize(m,new s.Literal(null,y));break;case 10:p=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,p=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":p=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":p=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,g=this.nextRegexToken(),y=this.getTokenRaw(g),p=this.finalize(m,new s.RegexLiteral(g.regex,y,g.pattern,g.flags));break;default:p=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?p=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?p=this.finalize(m,new s.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?p=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),p=this.finalize(m,new s.ThisExpression)):this.matchKeyword("class")?p=this.parseClassExpression():p=this.throwUnexpectedToken(this.nextToken()));break;default:p=this.throwUnexpectedToken(this.nextToken())}return p},v.prototype.parseSpreadElement=function(){var m=this.createNode();this.expect("...");var p=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(m,new s.SpreadElement(p))},v.prototype.parseArrayInitializer=function(){var m=this.createNode(),p=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),p.push(null);else if(this.match("...")){var g=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),p.push(g)}else p.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(m,new s.ArrayExpression(p))},v.prototype.parsePropertyMethod=function(m){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var p=this.context.strict,g=this.context.allowStrictDirective;this.context.allowStrictDirective=m.simple;var y=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&m.firstRestricted&&this.tolerateUnexpectedToken(m.firstRestricted,m.message),this.context.strict&&m.stricted&&this.tolerateUnexpectedToken(m.stricted,m.message),this.context.strict=p,this.context.allowStrictDirective=g,y},v.prototype.parsePropertyMethodFunction=function(){var m=!1,p=this.createNode(),g=this.context.allowYield;this.context.allowYield=!0;var y=this.parseFormalParameters(),b=this.parsePropertyMethod(y);return this.context.allowYield=g,this.finalize(p,new s.FunctionExpression(null,y.params,b,m))},v.prototype.parsePropertyMethodAsyncFunction=function(){var m=this.createNode(),p=this.context.allowYield,g=this.context.await;this.context.allowYield=!1,this.context.await=!0;var y=this.parseFormalParameters(),b=this.parsePropertyMethod(y);return this.context.allowYield=p,this.context.await=g,this.finalize(m,new s.AsyncFunctionExpression(null,y.params,b))},v.prototype.parseObjectPropertyKey=function(){var m=this.createNode(),p=this.nextToken(),g;switch(p.type){case 8:case 6:this.context.strict&&p.octal&&this.tolerateUnexpectedToken(p,c.Messages.StrictOctalLiteral);var y=this.getTokenRaw(p);g=this.finalize(m,new s.Literal(p.value,y));break;case 3:case 1:case 5:case 4:g=this.finalize(m,new s.Identifier(p.value));break;case 7:p.value==="["?(g=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):g=this.throwUnexpectedToken(p);break;default:g=this.throwUnexpectedToken(p)}return g},v.prototype.isPropertyKey=function(m,p){return m.type===u.Syntax.Identifier&&m.name===p||m.type===u.Syntax.Literal&&m.value===p},v.prototype.parseObjectProperty=function(m){var p=this.createNode(),g=this.lookahead,y,b=null,_=null,E=!1,w=!1,S=!1,A=!1;if(g.type===3){var P=g.value;this.nextToken(),E=this.match("["),A=!this.hasLineTerminator&&P==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),b=A?this.parseObjectPropertyKey():this.finalize(p,new s.Identifier(P))}else this.match("*")?this.nextToken():(E=this.match("["),b=this.parseObjectPropertyKey());var C=this.qualifiedPropertyName(this.lookahead);if(g.type===3&&!A&&g.value==="get"&&C)y="get",E=this.match("["),b=this.parseObjectPropertyKey(),this.context.allowYield=!1,_=this.parseGetterMethod();else if(g.type===3&&!A&&g.value==="set"&&C)y="set",E=this.match("["),b=this.parseObjectPropertyKey(),_=this.parseSetterMethod();else if(g.type===7&&g.value==="*"&&C)y="init",E=this.match("["),b=this.parseObjectPropertyKey(),_=this.parseGeneratorMethod(),w=!0;else if(b||this.throwUnexpectedToken(this.lookahead),y="init",this.match(":")&&!A)!E&&this.isPropertyKey(b,"__proto__")&&(m.value&&this.tolerateError(c.Messages.DuplicateProtoProperty),m.value=!0),this.nextToken(),_=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))_=A?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),w=!0;else if(g.type===3){var P=this.finalize(p,new s.Identifier(g.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),S=!0;var D=this.isolateCoverGrammar(this.parseAssignmentExpression);_=this.finalize(p,new s.AssignmentPattern(P,D))}else S=!0,_=P}else this.throwUnexpectedToken(this.nextToken());return this.finalize(p,new s.Property(y,b,E,_,w,S))},v.prototype.parseObjectInitializer=function(){var m=this.createNode();this.expect("{");for(var p=[],g={value:!1};!this.match("}");)p.push(this.parseObjectProperty(g)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(m,new s.ObjectExpression(p))},v.prototype.parseTemplateHead=function(){o.assert(this.lookahead.head,"Template literal must start with a template head");var m=this.createNode(),p=this.nextToken(),g=p.value,y=p.cooked;return this.finalize(m,new s.TemplateElement({raw:g,cooked:y},p.tail))},v.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var m=this.createNode(),p=this.nextToken(),g=p.value,y=p.cooked;return this.finalize(m,new s.TemplateElement({raw:g,cooked:y},p.tail))},v.prototype.parseTemplateLiteral=function(){var m=this.createNode(),p=[],g=[],y=this.parseTemplateHead();for(g.push(y);!y.tail;)p.push(this.parseExpression()),y=this.parseTemplateElement(),g.push(y);return this.finalize(m,new s.TemplateLiteral(g,p))},v.prototype.reinterpretExpressionAsPattern=function(m){switch(m.type){case u.Syntax.Identifier:case u.Syntax.MemberExpression:case u.Syntax.RestElement:case u.Syntax.AssignmentPattern:break;case u.Syntax.SpreadElement:m.type=u.Syntax.RestElement,this.reinterpretExpressionAsPattern(m.argument);break;case u.Syntax.ArrayExpression:m.type=u.Syntax.ArrayPattern;for(var p=0;p<m.elements.length;p++)m.elements[p]!==null&&this.reinterpretExpressionAsPattern(m.elements[p]);break;case u.Syntax.ObjectExpression:m.type=u.Syntax.ObjectPattern;for(var p=0;p<m.properties.length;p++)this.reinterpretExpressionAsPattern(m.properties[p].value);break;case u.Syntax.AssignmentExpression:m.type=u.Syntax.AssignmentPattern,delete m.operator,this.reinterpretExpressionAsPattern(m.left);break}},v.prototype.parseGroupExpression=function(){var m;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),m={type:h,params:[],async:!1};else{var p=this.lookahead,g=[];if(this.match("..."))m=this.parseRestElement(g),this.expect(")"),this.match("=>")||this.expect("=>"),m={type:h,params:[m],async:!1};else{var y=!1;if(this.context.isBindingElement=!0,m=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var b=[];for(this.context.isAssignmentTarget=!1,b.push(m);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var _=0;_<b.length;_++)this.reinterpretExpressionAsPattern(b[_]);y=!0,m={type:h,params:b,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),b.push(this.parseRestElement(g)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var _=0;_<b.length;_++)this.reinterpretExpressionAsPattern(b[_]);y=!0,m={type:h,params:b,async:!1}}else b.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(y)break}y||(m=this.finalize(this.startNode(p),new s.SequenceExpression(b)))}if(!y){if(this.expect(")"),this.match("=>")&&(m.type===u.Syntax.Identifier&&m.name==="yield"&&(y=!0,m={type:h,params:[m],async:!1}),!y)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),m.type===u.Syntax.SequenceExpression)for(var _=0;_<m.expressions.length;_++)this.reinterpretExpressionAsPattern(m.expressions[_]);else this.reinterpretExpressionAsPattern(m);var E=m.type===u.Syntax.SequenceExpression?m.expressions:[m];m={type:h,params:E,async:!1}}this.context.isBindingElement=!1}}}return m},v.prototype.parseArguments=function(){this.expect("(");var m=[];if(!this.match(")"))for(;;){var p=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(m.push(p),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),m},v.prototype.isIdentifierName=function(m){return m.type===3||m.type===4||m.type===1||m.type===5},v.prototype.parseIdentifierName=function(){var m=this.createNode(),p=this.nextToken();return this.isIdentifierName(p)||this.throwUnexpectedToken(p),this.finalize(m,new s.Identifier(p.value))},v.prototype.parseNewExpression=function(){var m=this.createNode(),p=this.parseIdentifierName();o.assert(p.name==="new","New expression must start with `new`");var g;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var y=this.parseIdentifierName();g=new s.MetaProperty(p,y)}else this.throwUnexpectedToken(this.lookahead);else{var b=this.isolateCoverGrammar(this.parseLeftHandSideExpression),_=this.match("(")?this.parseArguments():[];g=new s.NewExpression(b,_),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(m,g)},v.prototype.parseAsyncArgument=function(){var m=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,m},v.prototype.parseAsyncArguments=function(){this.expect("(");var m=[];if(!this.match(")"))for(;;){var p=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(m.push(p),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),m},v.prototype.parseLeftHandSideExpressionAllowCall=function(){var m=this.lookahead,p=this.matchContextualKeyword("async"),g=this.context.allowIn;this.context.allowIn=!0;var y;for(this.matchKeyword("super")&&this.context.inFunctionBody?(y=this.createNode(),this.nextToken(),y=this.finalize(y,new s.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):y=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var b=this.parseIdentifierName();y=this.finalize(this.startNode(m),new s.StaticMemberExpression(y,b))}else if(this.match("(")){var _=p&&m.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var E=_?this.parseAsyncArguments():this.parseArguments();if(y=this.finalize(this.startNode(m),new s.CallExpression(y,E)),_&&this.match("=>")){for(var w=0;w<E.length;++w)this.reinterpretExpressionAsPattern(E[w]);y={type:h,params:E,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var b=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),y=this.finalize(this.startNode(m),new s.ComputedMemberExpression(y,b))}else if(this.lookahead.type===10&&this.lookahead.head){var S=this.parseTemplateLiteral();y=this.finalize(this.startNode(m),new s.TaggedTemplateExpression(y,S))}else break;return this.context.allowIn=g,y},v.prototype.parseSuper=function(){var m=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(m,new s.Super)},v.prototype.parseLeftHandSideExpression=function(){o.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var m=this.startNode(this.lookahead),p=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var g=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),p=this.finalize(m,new s.ComputedMemberExpression(p,g))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var g=this.parseIdentifierName();p=this.finalize(m,new s.StaticMemberExpression(p,g))}else if(this.lookahead.type===10&&this.lookahead.head){var y=this.parseTemplateLiteral();p=this.finalize(m,new s.TaggedTemplateExpression(p,y))}else break;return p},v.prototype.parseUpdateExpression=function(){var m,p=this.lookahead;if(this.match("++")||this.match("--")){var g=this.startNode(p),y=this.nextToken();m=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&m.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(m.name)&&this.tolerateError(c.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(c.Messages.InvalidLHSInAssignment);var b=!0;m=this.finalize(g,new s.UpdateExpression(y.value,m,b)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(m=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&m.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(m.name)&&this.tolerateError(c.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(c.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var _=this.nextToken().value,b=!1;m=this.finalize(this.startNode(p),new s.UpdateExpression(_,m,b))}return m},v.prototype.parseAwaitExpression=function(){var m=this.createNode();this.nextToken();var p=this.parseUnaryExpression();return this.finalize(m,new s.AwaitExpression(p))},v.prototype.parseUnaryExpression=function(){var m;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var p=this.startNode(this.lookahead),g=this.nextToken();m=this.inheritCoverGrammar(this.parseUnaryExpression),m=this.finalize(p,new s.UnaryExpression(g.value,m)),this.context.strict&&m.operator==="delete"&&m.argument.type===u.Syntax.Identifier&&this.tolerateError(c.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else this.context.await&&this.matchContextualKeyword("await")?m=this.parseAwaitExpression():m=this.parseUpdateExpression();return m},v.prototype.parseExponentiationExpression=function(){var m=this.lookahead,p=this.inheritCoverGrammar(this.parseUnaryExpression);if(p.type!==u.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var g=p,y=this.isolateCoverGrammar(this.parseExponentiationExpression);p=this.finalize(this.startNode(m),new s.BinaryExpression("**",g,y))}return p},v.prototype.binaryPrecedence=function(m){var p=m.value,g;return m.type===7?g=this.operatorPrecedence[p]||0:m.type===4?g=p==="instanceof"||this.context.allowIn&&p==="in"?7:0:g=0,g},v.prototype.parseBinaryExpression=function(){var m=this.lookahead,p=this.inheritCoverGrammar(this.parseExponentiationExpression),g=this.lookahead,y=this.binaryPrecedence(g);if(y>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var b=[m,this.lookahead],_=p,E=this.isolateCoverGrammar(this.parseExponentiationExpression),w=[_,g.value,E],S=[y];y=this.binaryPrecedence(this.lookahead),!(y<=0);){for(;w.length>2&&y<=S[S.length-1];){E=w.pop();var A=w.pop();S.pop(),_=w.pop(),b.pop();var P=this.startNode(b[b.length-1]);w.push(this.finalize(P,new s.BinaryExpression(A,_,E)))}w.push(this.nextToken().value),S.push(y),b.push(this.lookahead),w.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var C=w.length-1;p=w[C];for(var D=b.pop();C>1;){var k=b.pop(),O=D&&D.lineStart,P=this.startNode(k,O),A=w[C-1];p=this.finalize(P,new s.BinaryExpression(A,w[C-2],p)),C-=2,D=k}}return p},v.prototype.parseConditionalExpression=function(){var m=this.lookahead,p=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var g=this.context.allowIn;this.context.allowIn=!0;var y=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=g,this.expect(":");var b=this.isolateCoverGrammar(this.parseAssignmentExpression);p=this.finalize(this.startNode(m),new s.ConditionalExpression(p,y,b)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return p},v.prototype.checkPatternParam=function(m,p){switch(p.type){case u.Syntax.Identifier:this.validateParam(m,p,p.name);break;case u.Syntax.RestElement:this.checkPatternParam(m,p.argument);break;case u.Syntax.AssignmentPattern:this.checkPatternParam(m,p.left);break;case u.Syntax.ArrayPattern:for(var g=0;g<p.elements.length;g++)p.elements[g]!==null&&this.checkPatternParam(m,p.elements[g]);break;case u.Syntax.ObjectPattern:for(var g=0;g<p.properties.length;g++)this.checkPatternParam(m,p.properties[g].value);break}m.simple=m.simple&&p instanceof s.Identifier},v.prototype.reinterpretAsCoverFormalsList=function(m){var p=[m],g,y=!1;switch(m.type){case u.Syntax.Identifier:break;case h:p=m.params,y=m.async;break;default:return null}g={simple:!0,paramSet:{}};for(var b=0;b<p.length;++b){var _=p[b];_.type===u.Syntax.AssignmentPattern?_.right.type===u.Syntax.YieldExpression&&(_.right.argument&&this.throwUnexpectedToken(this.lookahead),_.right.type=u.Syntax.Identifier,_.right.name="yield",delete _.right.argument,delete _.right.delegate):y&&_.type===u.Syntax.Identifier&&_.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(g,_),p[b]=_}if(this.context.strict||!this.context.allowYield)for(var b=0;b<p.length;++b){var _=p[b];_.type===u.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(g.message===c.Messages.StrictParamDupe){var E=this.context.strict?g.stricted:g.firstRestricted;this.throwUnexpectedToken(E,g.message)}return{simple:g.simple,params:p,stricted:g.stricted,firstRestricted:g.firstRestricted,message:g.message}},v.prototype.parseAssignmentExpression=function(){var m;if(!this.context.allowYield&&this.matchKeyword("yield"))m=this.parseYieldExpression();else{var p=this.lookahead,g=p;if(m=this.parseConditionalExpression(),g.type===3&&g.lineNumber===this.lookahead.lineNumber&&g.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var y=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(y),m={type:h,params:[y],async:!0}}if(m.type===h||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var b=m.async,_=this.reinterpretAsCoverFormalsList(m);if(_){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var E=this.context.strict,w=this.context.allowStrictDirective;this.context.allowStrictDirective=_.simple;var S=this.context.allowYield,A=this.context.await;this.context.allowYield=!0,this.context.await=b;var P=this.startNode(p);this.expect("=>");var C=void 0;if(this.match("{")){var D=this.context.allowIn;this.context.allowIn=!0,C=this.parseFunctionSourceElements(),this.context.allowIn=D}else C=this.isolateCoverGrammar(this.parseAssignmentExpression);var k=C.type!==u.Syntax.BlockStatement;this.context.strict&&_.firstRestricted&&this.throwUnexpectedToken(_.firstRestricted,_.message),this.context.strict&&_.stricted&&this.tolerateUnexpectedToken(_.stricted,_.message),m=b?this.finalize(P,new s.AsyncArrowFunctionExpression(_.params,C,k)):this.finalize(P,new s.ArrowFunctionExpression(_.params,C,k)),this.context.strict=E,this.context.allowStrictDirective=w,this.context.allowYield=S,this.context.await=A}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(c.Messages.InvalidLHSInAssignment),this.context.strict&&m.type===u.Syntax.Identifier){var O=m;this.scanner.isRestrictedWord(O.name)&&this.tolerateUnexpectedToken(g,c.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(O.name)&&this.tolerateUnexpectedToken(g,c.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(m):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),g=this.nextToken();var I=g.value,N=this.isolateCoverGrammar(this.parseAssignmentExpression);m=this.finalize(this.startNode(p),new s.AssignmentExpression(I,m,N)),this.context.firstCoverInitializedNameError=null}}return m},v.prototype.parseExpression=function(){var m=this.lookahead,p=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var g=[];for(g.push(p);this.lookahead.type!==2&&this.match(",");)this.nextToken(),g.push(this.isolateCoverGrammar(this.parseAssignmentExpression));p=this.finalize(this.startNode(m),new s.SequenceExpression(g))}return p},v.prototype.parseStatementListItem=function(){var m;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,c.Messages.IllegalExportDeclaration),m=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,c.Messages.IllegalImportDeclaration),m=this.parseImportDeclaration();break;case"const":m=this.parseLexicalDeclaration({inFor:!1});break;case"function":m=this.parseFunctionDeclaration();break;case"class":m=this.parseClassDeclaration();break;case"let":m=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:m=this.parseStatement();break}else m=this.parseStatement();return m},v.prototype.parseBlock=function(){var m=this.createNode();this.expect("{");for(var p=[];!this.match("}");)p.push(this.parseStatementListItem());return this.expect("}"),this.finalize(m,new s.BlockStatement(p))},v.prototype.parseLexicalBinding=function(m,p){var g=this.createNode(),y=[],b=this.parsePattern(y,m);this.context.strict&&b.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(b.name)&&this.tolerateError(c.Messages.StrictVarName);var _=null;return m==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),_=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(c.Messages.DeclarationMissingInitializer,"const")):(!p.inFor&&b.type!==u.Syntax.Identifier||this.match("="))&&(this.expect("="),_=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(g,new s.VariableDeclarator(b,_))},v.prototype.parseBindingList=function(m,p){for(var g=[this.parseLexicalBinding(m,p)];this.match(",");)this.nextToken(),g.push(this.parseLexicalBinding(m,p));return g},v.prototype.isLexicalDeclaration=function(){var m=this.scanner.saveState();this.scanner.scanComments();var p=this.scanner.lex();return this.scanner.restoreState(m),p.type===3||p.type===7&&p.value==="["||p.type===7&&p.value==="{"||p.type===4&&p.value==="let"||p.type===4&&p.value==="yield"},v.prototype.parseLexicalDeclaration=function(m){var p=this.createNode(),g=this.nextToken().value;o.assert(g==="let"||g==="const","Lexical declaration must be either let or const");var y=this.parseBindingList(g,m);return this.consumeSemicolon(),this.finalize(p,new s.VariableDeclaration(y,g))},v.prototype.parseBindingRestElement=function(m,p){var g=this.createNode();this.expect("...");var y=this.parsePattern(m,p);return this.finalize(g,new s.RestElement(y))},v.prototype.parseArrayPattern=function(m,p){var g=this.createNode();this.expect("[");for(var y=[];!this.match("]");)if(this.match(","))this.nextToken(),y.push(null);else{if(this.match("...")){y.push(this.parseBindingRestElement(m,p));break}else y.push(this.parsePatternWithDefault(m,p));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(g,new s.ArrayPattern(y))},v.prototype.parsePropertyPattern=function(m,p){var g=this.createNode(),y=!1,b=!1,_=!1,E,w;if(this.lookahead.type===3){var S=this.lookahead;E=this.parseVariableIdentifier();var A=this.finalize(g,new s.Identifier(S.value));if(this.match("=")){m.push(S),b=!0,this.nextToken();var P=this.parseAssignmentExpression();w=this.finalize(this.startNode(S),new s.AssignmentPattern(A,P))}else this.match(":")?(this.expect(":"),w=this.parsePatternWithDefault(m,p)):(m.push(S),b=!0,w=A)}else y=this.match("["),E=this.parseObjectPropertyKey(),this.expect(":"),w=this.parsePatternWithDefault(m,p);return this.finalize(g,new s.Property("init",E,y,w,_,b))},v.prototype.parseObjectPattern=function(m,p){var g=this.createNode(),y=[];for(this.expect("{");!this.match("}");)y.push(this.parsePropertyPattern(m,p)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(g,new s.ObjectPattern(y))},v.prototype.parsePattern=function(m,p){var g;return this.match("[")?g=this.parseArrayPattern(m,p):this.match("{")?g=this.parseObjectPattern(m,p):(this.matchKeyword("let")&&(p==="const"||p==="let")&&this.tolerateUnexpectedToken(this.lookahead,c.Messages.LetInLexicalBinding),m.push(this.lookahead),g=this.parseVariableIdentifier(p)),g},v.prototype.parsePatternWithDefault=function(m,p){var g=this.lookahead,y=this.parsePattern(m,p);if(this.match("=")){this.nextToken();var b=this.context.allowYield;this.context.allowYield=!0;var _=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=b,y=this.finalize(this.startNode(g),new s.AssignmentPattern(y,_))}return y},v.prototype.parseVariableIdentifier=function(m){var p=this.createNode(),g=this.nextToken();return g.type===4&&g.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(g,c.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(g):g.type!==3?this.context.strict&&g.type===4&&this.scanner.isStrictModeReservedWord(g.value)?this.tolerateUnexpectedToken(g,c.Messages.StrictReservedWord):(this.context.strict||g.value!=="let"||m!=="var")&&this.throwUnexpectedToken(g):(this.context.isModule||this.context.await)&&g.type===3&&g.value==="await"&&this.tolerateUnexpectedToken(g),this.finalize(p,new s.Identifier(g.value))},v.prototype.parseVariableDeclaration=function(m){var p=this.createNode(),g=[],y=this.parsePattern(g,"var");this.context.strict&&y.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(y.name)&&this.tolerateError(c.Messages.StrictVarName);var b=null;return this.match("=")?(this.nextToken(),b=this.isolateCoverGrammar(this.parseAssignmentExpression)):y.type!==u.Syntax.Identifier&&!m.inFor&&this.expect("="),this.finalize(p,new s.VariableDeclarator(y,b))},v.prototype.parseVariableDeclarationList=function(m){var p={inFor:m.inFor},g=[];for(g.push(this.parseVariableDeclaration(p));this.match(",");)this.nextToken(),g.push(this.parseVariableDeclaration(p));return g},v.prototype.parseVariableStatement=function(){var m=this.createNode();this.expectKeyword("var");var p=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(m,new s.VariableDeclaration(p,"var"))},v.prototype.parseEmptyStatement=function(){var m=this.createNode();return this.expect(";"),this.finalize(m,new s.EmptyStatement)},v.prototype.parseExpressionStatement=function(){var m=this.createNode(),p=this.parseExpression();return this.consumeSemicolon(),this.finalize(m,new s.ExpressionStatement(p))},v.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(c.Messages.StrictFunction),this.parseStatement()},v.prototype.parseIfStatement=function(){var m=this.createNode(),p,g=null;this.expectKeyword("if"),this.expect("(");var y=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),p=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),p=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),g=this.parseIfClause())),this.finalize(m,new s.IfStatement(y,p,g))},v.prototype.parseDoWhileStatement=function(){var m=this.createNode();this.expectKeyword("do");var p=this.context.inIteration;this.context.inIteration=!0;var g=this.parseStatement();this.context.inIteration=p,this.expectKeyword("while"),this.expect("(");var y=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(m,new s.DoWhileStatement(g,y))},v.prototype.parseWhileStatement=function(){var m=this.createNode(),p;this.expectKeyword("while"),this.expect("(");var g=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),p=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var y=this.context.inIteration;this.context.inIteration=!0,p=this.parseStatement(),this.context.inIteration=y}return this.finalize(m,new s.WhileStatement(g,p))},v.prototype.parseForStatement=function(){var m=null,p=null,g=null,y=!0,b,_,E=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){m=this.createNode(),this.nextToken();var w=this.context.allowIn;this.context.allowIn=!1;var S=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=w,S.length===1&&this.matchKeyword("in")){var A=S[0];A.init&&(A.id.type===u.Syntax.ArrayPattern||A.id.type===u.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(c.Messages.ForInOfLoopInitializer,"for-in"),m=this.finalize(m,new s.VariableDeclaration(S,"var")),this.nextToken(),b=m,_=this.parseExpression(),m=null}else S.length===1&&S[0].init===null&&this.matchContextualKeyword("of")?(m=this.finalize(m,new s.VariableDeclaration(S,"var")),this.nextToken(),b=m,_=this.parseAssignmentExpression(),m=null,y=!1):(m=this.finalize(m,new s.VariableDeclaration(S,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){m=this.createNode();var P=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")m=this.finalize(m,new s.Identifier(P)),this.nextToken(),b=m,_=this.parseExpression(),m=null;else{var w=this.context.allowIn;this.context.allowIn=!1;var S=this.parseBindingList(P,{inFor:!0});this.context.allowIn=w,S.length===1&&S[0].init===null&&this.matchKeyword("in")?(m=this.finalize(m,new s.VariableDeclaration(S,P)),this.nextToken(),b=m,_=this.parseExpression(),m=null):S.length===1&&S[0].init===null&&this.matchContextualKeyword("of")?(m=this.finalize(m,new s.VariableDeclaration(S,P)),this.nextToken(),b=m,_=this.parseAssignmentExpression(),m=null,y=!1):(this.consumeSemicolon(),m=this.finalize(m,new s.VariableDeclaration(S,P)))}}else{var C=this.lookahead,w=this.context.allowIn;if(this.context.allowIn=!1,m=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=w,this.matchKeyword("in"))(!this.context.isAssignmentTarget||m.type===u.Syntax.AssignmentExpression)&&this.tolerateError(c.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(m),b=m,_=this.parseExpression(),m=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||m.type===u.Syntax.AssignmentExpression)&&this.tolerateError(c.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(m),b=m,_=this.parseAssignmentExpression(),m=null,y=!1;else{if(this.match(",")){for(var D=[m];this.match(",");)this.nextToken(),D.push(this.isolateCoverGrammar(this.parseAssignmentExpression));m=this.finalize(this.startNode(C),new s.SequenceExpression(D))}this.expect(";")}}typeof b>"u"&&(this.match(";")||(p=this.parseExpression()),this.expect(";"),this.match(")")||(g=this.parseExpression()));var k;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),k=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var O=this.context.inIteration;this.context.inIteration=!0,k=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=O}return typeof b>"u"?this.finalize(E,new s.ForStatement(m,p,g,k)):y?this.finalize(E,new s.ForInStatement(b,_,k)):this.finalize(E,new s.ForOfStatement(b,_,k))},v.prototype.parseContinueStatement=function(){var m=this.createNode();this.expectKeyword("continue");var p=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var g=this.parseVariableIdentifier();p=g;var y="$"+g.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,y)||this.throwError(c.Messages.UnknownLabel,g.name)}return this.consumeSemicolon(),p===null&&!this.context.inIteration&&this.throwError(c.Messages.IllegalContinue),this.finalize(m,new s.ContinueStatement(p))},v.prototype.parseBreakStatement=function(){var m=this.createNode();this.expectKeyword("break");var p=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var g=this.parseVariableIdentifier(),y="$"+g.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,y)||this.throwError(c.Messages.UnknownLabel,g.name),p=g}return this.consumeSemicolon(),p===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(c.Messages.IllegalBreak),this.finalize(m,new s.BreakStatement(p))},v.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(c.Messages.IllegalReturn);var m=this.createNode();this.expectKeyword("return");var p=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,g=p?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(m,new s.ReturnStatement(g))},v.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(c.Messages.StrictModeWith);var m=this.createNode(),p;this.expectKeyword("with"),this.expect("(");var g=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),p=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),p=this.parseStatement()),this.finalize(m,new s.WithStatement(g,p))},v.prototype.parseSwitchCase=function(){var m=this.createNode(),p;this.matchKeyword("default")?(this.nextToken(),p=null):(this.expectKeyword("case"),p=this.parseExpression()),this.expect(":");for(var g=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)g.push(this.parseStatementListItem());return this.finalize(m,new s.SwitchCase(p,g))},v.prototype.parseSwitchStatement=function(){var m=this.createNode();this.expectKeyword("switch"),this.expect("(");var p=this.parseExpression();this.expect(")");var g=this.context.inSwitch;this.context.inSwitch=!0;var y=[],b=!1;for(this.expect("{");!this.match("}");){var _=this.parseSwitchCase();_.test===null&&(b&&this.throwError(c.Messages.MultipleDefaultsInSwitch),b=!0),y.push(_)}return this.expect("}"),this.context.inSwitch=g,this.finalize(m,new s.SwitchStatement(p,y))},v.prototype.parseLabelledStatement=function(){var m=this.createNode(),p=this.parseExpression(),g;if(p.type===u.Syntax.Identifier&&this.match(":")){this.nextToken();var y=p,b="$"+y.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,b)&&this.throwError(c.Messages.Redeclaration,"Label",y.name),this.context.labelSet[b]=!0;var _=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),_=this.parseClassDeclaration();else if(this.matchKeyword("function")){var E=this.lookahead,w=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(E,c.Messages.StrictFunction):w.generator&&this.tolerateUnexpectedToken(E,c.Messages.GeneratorInLegacyContext),_=w}else _=this.parseStatement();delete this.context.labelSet[b],g=new s.LabeledStatement(y,_)}else this.consumeSemicolon(),g=new s.ExpressionStatement(p);return this.finalize(m,g)},v.prototype.parseThrowStatement=function(){var m=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(c.Messages.NewlineAfterThrow);var p=this.parseExpression();return this.consumeSemicolon(),this.finalize(m,new s.ThrowStatement(p))},v.prototype.parseCatchClause=function(){var m=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var p=[],g=this.parsePattern(p),y={},b=0;b<p.length;b++){var _="$"+p[b].value;Object.prototype.hasOwnProperty.call(y,_)&&this.tolerateError(c.Messages.DuplicateBinding,p[b].value),y[_]=!0}this.context.strict&&g.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(g.name)&&this.tolerateError(c.Messages.StrictCatchVariable),this.expect(")");var E=this.parseBlock();return this.finalize(m,new s.CatchClause(g,E))},v.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},v.prototype.parseTryStatement=function(){var m=this.createNode();this.expectKeyword("try");var p=this.parseBlock(),g=this.matchKeyword("catch")?this.parseCatchClause():null,y=this.matchKeyword("finally")?this.parseFinallyClause():null;return!g&&!y&&this.throwError(c.Messages.NoCatchOrFinally),this.finalize(m,new s.TryStatement(p,g,y))},v.prototype.parseDebuggerStatement=function(){var m=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(m,new s.DebuggerStatement)},v.prototype.parseStatement=function(){var m;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:m=this.parseExpressionStatement();break;case 7:var p=this.lookahead.value;p==="{"?m=this.parseBlock():p==="("?m=this.parseExpressionStatement():p===";"?m=this.parseEmptyStatement():m=this.parseExpressionStatement();break;case 3:m=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":m=this.parseBreakStatement();break;case"continue":m=this.parseContinueStatement();break;case"debugger":m=this.parseDebuggerStatement();break;case"do":m=this.parseDoWhileStatement();break;case"for":m=this.parseForStatement();break;case"function":m=this.parseFunctionDeclaration();break;case"if":m=this.parseIfStatement();break;case"return":m=this.parseReturnStatement();break;case"switch":m=this.parseSwitchStatement();break;case"throw":m=this.parseThrowStatement();break;case"try":m=this.parseTryStatement();break;case"var":m=this.parseVariableStatement();break;case"while":m=this.parseWhileStatement();break;case"with":m=this.parseWithStatement();break;default:m=this.parseExpressionStatement();break}break;default:m=this.throwUnexpectedToken(this.lookahead)}return m},v.prototype.parseFunctionSourceElements=function(){var m=this.createNode();this.expect("{");var p=this.parseDirectivePrologues(),g=this.context.labelSet,y=this.context.inIteration,b=this.context.inSwitch,_=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)p.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=g,this.context.inIteration=y,this.context.inSwitch=b,this.context.inFunctionBody=_,this.finalize(m,new s.BlockStatement(p))},v.prototype.validateParam=function(m,p,g){var y="$"+g;this.context.strict?(this.scanner.isRestrictedWord(g)&&(m.stricted=p,m.message=c.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(m.paramSet,y)&&(m.stricted=p,m.message=c.Messages.StrictParamDupe)):m.firstRestricted||(this.scanner.isRestrictedWord(g)?(m.firstRestricted=p,m.message=c.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(g)?(m.firstRestricted=p,m.message=c.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(m.paramSet,y)&&(m.stricted=p,m.message=c.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(m.paramSet,y,{value:!0,enumerable:!0,writable:!0,configurable:!0}):m.paramSet[y]=!0},v.prototype.parseRestElement=function(m){var p=this.createNode();this.expect("...");var g=this.parsePattern(m);return this.match("=")&&this.throwError(c.Messages.DefaultRestParameter),this.match(")")||this.throwError(c.Messages.ParameterAfterRestParameter),this.finalize(p,new s.RestElement(g))},v.prototype.parseFormalParameter=function(m){for(var p=[],g=this.match("...")?this.parseRestElement(p):this.parsePatternWithDefault(p),y=0;y<p.length;y++)this.validateParam(m,p[y],p[y].value);m.simple=m.simple&&g instanceof s.Identifier,m.params.push(g)},v.prototype.parseFormalParameters=function(m){var p;if(p={simple:!0,params:[],firstRestricted:m},this.expect("("),!this.match(")"))for(p.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(p),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:p.simple,params:p.params,stricted:p.stricted,firstRestricted:p.firstRestricted,message:p.message}},v.prototype.matchAsyncFunction=function(){var m=this.matchContextualKeyword("async");if(m){var p=this.scanner.saveState();this.scanner.scanComments();var g=this.scanner.lex();this.scanner.restoreState(p),m=p.lineNumber===g.lineNumber&&g.type===4&&g.value==="function"}return m},v.prototype.parseFunctionDeclaration=function(m){var p=this.createNode(),g=this.matchContextualKeyword("async");g&&this.nextToken(),this.expectKeyword("function");var y=g?!1:this.match("*");y&&this.nextToken();var b,_=null,E=null;if(!m||!this.match("(")){var w=this.lookahead;_=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(w.value)&&this.tolerateUnexpectedToken(w,c.Messages.StrictFunctionName):this.scanner.isRestrictedWord(w.value)?(E=w,b=c.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(w.value)&&(E=w,b=c.Messages.StrictReservedWord)}var S=this.context.await,A=this.context.allowYield;this.context.await=g,this.context.allowYield=!y;var P=this.parseFormalParameters(E),C=P.params,D=P.stricted;E=P.firstRestricted,P.message&&(b=P.message);var k=this.context.strict,O=this.context.allowStrictDirective;this.context.allowStrictDirective=P.simple;var I=this.parseFunctionSourceElements();return this.context.strict&&E&&this.throwUnexpectedToken(E,b),this.context.strict&&D&&this.tolerateUnexpectedToken(D,b),this.context.strict=k,this.context.allowStrictDirective=O,this.context.await=S,this.context.allowYield=A,g?this.finalize(p,new s.AsyncFunctionDeclaration(_,C,I)):this.finalize(p,new s.FunctionDeclaration(_,C,I,y))},v.prototype.parseFunctionExpression=function(){var m=this.createNode(),p=this.matchContextualKeyword("async");p&&this.nextToken(),this.expectKeyword("function");var g=p?!1:this.match("*");g&&this.nextToken();var y,b=null,_,E=this.context.await,w=this.context.allowYield;if(this.context.await=p,this.context.allowYield=!g,!this.match("(")){var S=this.lookahead;b=!this.context.strict&&!g&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(S.value)&&this.tolerateUnexpectedToken(S,c.Messages.StrictFunctionName):this.scanner.isRestrictedWord(S.value)?(_=S,y=c.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(S.value)&&(_=S,y=c.Messages.StrictReservedWord)}var A=this.parseFormalParameters(_),P=A.params,C=A.stricted;_=A.firstRestricted,A.message&&(y=A.message);var D=this.context.strict,k=this.context.allowStrictDirective;this.context.allowStrictDirective=A.simple;var O=this.parseFunctionSourceElements();return this.context.strict&&_&&this.throwUnexpectedToken(_,y),this.context.strict&&C&&this.tolerateUnexpectedToken(C,y),this.context.strict=D,this.context.allowStrictDirective=k,this.context.await=E,this.context.allowYield=w,p?this.finalize(m,new s.AsyncFunctionExpression(b,P,O)):this.finalize(m,new s.FunctionExpression(b,P,O,g))},v.prototype.parseDirective=function(){var m=this.lookahead,p=this.createNode(),g=this.parseExpression(),y=g.type===u.Syntax.Literal?this.getTokenRaw(m).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(p,y?new s.Directive(g,y):new s.ExpressionStatement(g))},v.prototype.parseDirectivePrologues=function(){for(var m=null,p=[];;){var g=this.lookahead;if(g.type!==8)break;var y=this.parseDirective();p.push(y);var b=y.directive;if(typeof b!="string")break;b==="use strict"?(this.context.strict=!0,m&&this.tolerateUnexpectedToken(m,c.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(g,c.Messages.IllegalLanguageModeDirective)):!m&&g.octal&&(m=g)}return p},v.prototype.qualifiedPropertyName=function(m){switch(m.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return m.value==="["}return!1},v.prototype.parseGetterMethod=function(){var m=this.createNode(),p=!1,g=this.context.allowYield;this.context.allowYield=!p;var y=this.parseFormalParameters();y.params.length>0&&this.tolerateError(c.Messages.BadGetterArity);var b=this.parsePropertyMethod(y);return this.context.allowYield=g,this.finalize(m,new s.FunctionExpression(null,y.params,b,p))},v.prototype.parseSetterMethod=function(){var m=this.createNode(),p=!1,g=this.context.allowYield;this.context.allowYield=!p;var y=this.parseFormalParameters();y.params.length!==1?this.tolerateError(c.Messages.BadSetterArity):y.params[0]instanceof s.RestElement&&this.tolerateError(c.Messages.BadSetterRestParameter);var b=this.parsePropertyMethod(y);return this.context.allowYield=g,this.finalize(m,new s.FunctionExpression(null,y.params,b,p))},v.prototype.parseGeneratorMethod=function(){var m=this.createNode(),p=!0,g=this.context.allowYield;this.context.allowYield=!0;var y=this.parseFormalParameters();this.context.allowYield=!1;var b=this.parsePropertyMethod(y);return this.context.allowYield=g,this.finalize(m,new s.FunctionExpression(null,y.params,b,p))},v.prototype.isStartOfExpression=function(){var m=!0,p=this.lookahead.value;switch(this.lookahead.type){case 7:m=p==="["||p==="("||p==="{"||p==="+"||p==="-"||p==="!"||p==="~"||p==="++"||p==="--"||p==="/"||p==="/=";break;case 4:m=p==="class"||p==="delete"||p==="function"||p==="let"||p==="new"||p==="super"||p==="this"||p==="typeof"||p==="void"||p==="yield";break}return m},v.prototype.parseYieldExpression=function(){var m=this.createNode();this.expectKeyword("yield");var p=null,g=!1;if(!this.hasLineTerminator){var y=this.context.allowYield;this.context.allowYield=!1,g=this.match("*"),g?(this.nextToken(),p=this.parseAssignmentExpression()):this.isStartOfExpression()&&(p=this.parseAssignmentExpression()),this.context.allowYield=y}return this.finalize(m,new s.YieldExpression(p,g))},v.prototype.parseClassElement=function(m){var p=this.lookahead,g=this.createNode(),y="",b=null,_=null,E=!1,w=!1,S=!1,A=!1;if(this.match("*"))this.nextToken();else{E=this.match("["),b=this.parseObjectPropertyKey();var P=b;if(P.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(p=this.lookahead,S=!0,E=this.match("["),this.match("*")?this.nextToken():b=this.parseObjectPropertyKey()),p.type===3&&!this.hasLineTerminator&&p.value==="async"){var C=this.lookahead.value;C!==":"&&C!=="("&&C!=="*"&&(A=!0,p=this.lookahead,b=this.parseObjectPropertyKey(),p.type===3&&p.value==="constructor"&&this.tolerateUnexpectedToken(p,c.Messages.ConstructorIsAsync))}}var D=this.qualifiedPropertyName(this.lookahead);return p.type===3?p.value==="get"&&D?(y="get",E=this.match("["),b=this.parseObjectPropertyKey(),this.context.allowYield=!1,_=this.parseGetterMethod()):p.value==="set"&&D&&(y="set",E=this.match("["),b=this.parseObjectPropertyKey(),_=this.parseSetterMethod()):p.type===7&&p.value==="*"&&D&&(y="init",E=this.match("["),b=this.parseObjectPropertyKey(),_=this.parseGeneratorMethod(),w=!0),!y&&b&&this.match("(")&&(y="init",_=A?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),w=!0),y||this.throwUnexpectedToken(this.lookahead),y==="init"&&(y="method"),E||(S&&this.isPropertyKey(b,"prototype")&&this.throwUnexpectedToken(p,c.Messages.StaticPrototype),!S&&this.isPropertyKey(b,"constructor")&&((y!=="method"||!w||_&&_.generator)&&this.throwUnexpectedToken(p,c.Messages.ConstructorSpecialMethod),m.value?this.throwUnexpectedToken(p,c.Messages.DuplicateConstructor):m.value=!0,y="constructor")),this.finalize(g,new s.MethodDefinition(b,E,_,y,S))},v.prototype.parseClassElementList=function(){var m=[],p={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():m.push(this.parseClassElement(p));return this.expect("}"),m},v.prototype.parseClassBody=function(){var m=this.createNode(),p=this.parseClassElementList();return this.finalize(m,new s.ClassBody(p))},v.prototype.parseClassDeclaration=function(m){var p=this.createNode(),g=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var y=m&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),b=null;this.matchKeyword("extends")&&(this.nextToken(),b=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var _=this.parseClassBody();return this.context.strict=g,this.finalize(p,new s.ClassDeclaration(y,b,_))},v.prototype.parseClassExpression=function(){var m=this.createNode(),p=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var g=this.lookahead.type===3?this.parseVariableIdentifier():null,y=null;this.matchKeyword("extends")&&(this.nextToken(),y=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var b=this.parseClassBody();return this.context.strict=p,this.finalize(m,new s.ClassExpression(g,y,b))},v.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var m=this.createNode(),p=this.parseDirectivePrologues();this.lookahead.type!==2;)p.push(this.parseStatementListItem());return this.finalize(m,new s.Module(p))},v.prototype.parseScript=function(){for(var m=this.createNode(),p=this.parseDirectivePrologues();this.lookahead.type!==2;)p.push(this.parseStatementListItem());return this.finalize(m,new s.Script(p))},v.prototype.parseModuleSpecifier=function(){var m=this.createNode();this.lookahead.type!==8&&this.throwError(c.Messages.InvalidModuleSpecifier);var p=this.nextToken(),g=this.getTokenRaw(p);return this.finalize(m,new s.Literal(p.value,g))},v.prototype.parseImportSpecifier=function(){var m=this.createNode(),p,g;return this.lookahead.type===3?(p=this.parseVariableIdentifier(),g=p,this.matchContextualKeyword("as")&&(this.nextToken(),g=this.parseVariableIdentifier())):(p=this.parseIdentifierName(),g=p,this.matchContextualKeyword("as")?(this.nextToken(),g=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(m,new s.ImportSpecifier(g,p))},v.prototype.parseNamedImports=function(){this.expect("{");for(var m=[];!this.match("}");)m.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),m},v.prototype.parseImportDefaultSpecifier=function(){var m=this.createNode(),p=this.parseIdentifierName();return this.finalize(m,new s.ImportDefaultSpecifier(p))},v.prototype.parseImportNamespaceSpecifier=function(){var m=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(c.Messages.NoAsAfterImportNamespace),this.nextToken();var p=this.parseIdentifierName();return this.finalize(m,new s.ImportNamespaceSpecifier(p))},v.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(c.Messages.IllegalImportDeclaration);var m=this.createNode();this.expectKeyword("import");var p,g=[];if(this.lookahead.type===8)p=this.parseModuleSpecifier();else{if(this.match("{")?g=g.concat(this.parseNamedImports()):this.match("*")?g.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(g.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?g.push(this.parseImportNamespaceSpecifier()):this.match("{")?g=g.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var y=this.lookahead.value?c.Messages.UnexpectedToken:c.Messages.MissingFromClause;this.throwError(y,this.lookahead.value)}this.nextToken(),p=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(m,new s.ImportDeclaration(g,p))},v.prototype.parseExportSpecifier=function(){var m=this.createNode(),p=this.parseIdentifierName(),g=p;return this.matchContextualKeyword("as")&&(this.nextToken(),g=this.parseIdentifierName()),this.finalize(m,new s.ExportSpecifier(p,g))},v.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(c.Messages.IllegalExportDeclaration);var m=this.createNode();this.expectKeyword("export");var p;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var g=this.parseFunctionDeclaration(!0);p=this.finalize(m,new s.ExportDefaultDeclaration(g))}else if(this.matchKeyword("class")){var g=this.parseClassDeclaration(!0);p=this.finalize(m,new s.ExportDefaultDeclaration(g))}else if(this.matchContextualKeyword("async")){var g=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();p=this.finalize(m,new s.ExportDefaultDeclaration(g))}else{this.matchContextualKeyword("from")&&this.throwError(c.Messages.UnexpectedToken,this.lookahead.value);var g=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),p=this.finalize(m,new s.ExportDefaultDeclaration(g))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var y=this.lookahead.value?c.Messages.UnexpectedToken:c.Messages.MissingFromClause;this.throwError(y,this.lookahead.value)}this.nextToken();var b=this.parseModuleSpecifier();this.consumeSemicolon(),p=this.finalize(m,new s.ExportAllDeclaration(b))}else if(this.lookahead.type===4){var g=void 0;switch(this.lookahead.value){case"let":case"const":g=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":g=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}p=this.finalize(m,new s.ExportNamedDeclaration(g,[],null))}else if(this.matchAsyncFunction()){var g=this.parseFunctionDeclaration();p=this.finalize(m,new s.ExportNamedDeclaration(g,[],null))}else{var _=[],E=null,w=!1;for(this.expect("{");!this.match("}");)w=w||this.matchKeyword("default"),_.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),E=this.parseModuleSpecifier(),this.consumeSemicolon();else if(w){var y=this.lookahead.value?c.Messages.UnexpectedToken:c.Messages.MissingFromClause;this.throwError(y,this.lookahead.value)}else this.consumeSemicolon();p=this.finalize(m,new s.ExportNamedDeclaration(null,_,E))}return p},v}();r.Parser=d},function(n,r){Object.defineProperty(r,"__esModule",{value:!0});function a(o,i){if(!o)throw new Error("ASSERT: "+i)}r.assert=a},function(n,r){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function o(){this.errors=[],this.tolerant=!1}return o.prototype.recordError=function(i){this.errors.push(i)},o.prototype.tolerate=function(i){if(this.tolerant)this.recordError(i);else throw i},o.prototype.constructError=function(i,c){var s=new Error(i);try{throw s}catch(l){Object.create&&Object.defineProperty&&(s=Object.create(l),Object.defineProperty(s,"column",{value:c}))}return s},o.prototype.createError=function(i,c,s,l){var u="Line "+c+": "+l,f=this.constructError(u,s);return f.index=i,f.lineNumber=c,f.description=l,f},o.prototype.throwError=function(i,c,s,l){throw this.createError(i,c,s,l)},o.prototype.tolerateError=function(i,c,s,l){var u=this.createError(i,c,s,l);if(this.tolerant)this.recordError(u);else throw u},o}();r.ErrorHandler=a},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var o=a(9),i=a(4),c=a(11);function s(f){return"0123456789abcdef".indexOf(f.toLowerCase())}function l(f){return"01234567".indexOf(f)}var u=function(){function f(h,d){this.source=h,this.errorHandler=d,this.trackComment=!1,this.isModule=!1,this.length=h.length,this.index=0,this.lineNumber=h.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return f.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},f.prototype.restoreState=function(h){this.index=h.index,this.lineNumber=h.lineNumber,this.lineStart=h.lineStart},f.prototype.eof=function(){return this.index>=this.length},f.prototype.throwUnexpectedToken=function(h){return h===void 0&&(h=c.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,h)},f.prototype.tolerateUnexpectedToken=function(h){h===void 0&&(h=c.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,h)},f.prototype.skipSingleLineComment=function(h){var d=[],v,m;for(this.trackComment&&(d=[],v=this.index-h,m={start:{line:this.lineNumber,column:this.index-this.lineStart-h},end:{}});!this.eof();){var p=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(p)){if(this.trackComment){m.end={line:this.lineNumber,column:this.index-this.lineStart-1};var g={multiLine:!1,slice:[v+h,this.index-1],range:[v,this.index-1],loc:m};d.push(g)}return p===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,d}}if(this.trackComment){m.end={line:this.lineNumber,column:this.index-this.lineStart};var g={multiLine:!1,slice:[v+h,this.index],range:[v,this.index],loc:m};d.push(g)}return d},f.prototype.skipMultiLineComment=function(){var h=[],d,v;for(this.trackComment&&(h=[],d=this.index-2,v={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var m=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(m))m===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(m===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){v.end={line:this.lineNumber,column:this.index-this.lineStart};var p={multiLine:!0,slice:[d+2,this.index-2],range:[d,this.index],loc:v};h.push(p)}return h}++this.index}else++this.index}if(this.trackComment){v.end={line:this.lineNumber,column:this.index-this.lineStart};var p={multiLine:!0,slice:[d+2,this.index],range:[d,this.index],loc:v};h.push(p)}return this.tolerateUnexpectedToken(),h},f.prototype.scanComments=function(){var h;this.trackComment&&(h=[]);for(var d=this.index===0;!this.eof();){var v=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(v))++this.index;else if(i.Character.isLineTerminator(v))++this.index,v===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,d=!0;else if(v===47)if(v=this.source.charCodeAt(this.index+1),v===47){this.index+=2;var m=this.skipSingleLineComment(2);this.trackComment&&(h=h.concat(m)),d=!0}else if(v===42){this.index+=2;var m=this.skipMultiLineComment();this.trackComment&&(h=h.concat(m))}else break;else if(d&&v===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var m=this.skipSingleLineComment(3);this.trackComment&&(h=h.concat(m))}else break;else if(v===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var m=this.skipSingleLineComment(4);this.trackComment&&(h=h.concat(m))}else break;else break}return h},f.prototype.isFutureReservedWord=function(h){switch(h){case"enum":case"export":case"import":case"super":return!0;default:return!1}},f.prototype.isStrictModeReservedWord=function(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},f.prototype.isRestrictedWord=function(h){return h==="eval"||h==="arguments"},f.prototype.isKeyword=function(h){switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try"||h==="let";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}},f.prototype.codePointAt=function(h){var d=this.source.charCodeAt(h);if(d>=55296&&d<=56319){var v=this.source.charCodeAt(h+1);if(v>=56320&&v<=57343){var m=d;d=(m-55296)*1024+v-56320+65536}}return d},f.prototype.scanHexEscape=function(h){for(var d=h==="u"?4:2,v=0,m=0;m<d;++m)if(!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index)))v=v*16+s(this.source[this.index++]);else return null;return String.fromCharCode(v)},f.prototype.scanUnicodeCodePointEscape=function(){var h=this.source[this.index],d=0;for(h==="}"&&this.throwUnexpectedToken();!this.eof()&&(h=this.source[this.index++],!!i.Character.isHexDigit(h.charCodeAt(0)));)d=d*16+s(h);return(d>1114111||h!=="}")&&this.throwUnexpectedToken(),i.Character.fromCodePoint(d)},f.prototype.getIdentifier=function(){for(var h=this.index++;!this.eof();){var d=this.source.charCodeAt(this.index);if(d===92)return this.index=h,this.getComplexIdentifier();if(d>=55296&&d<57343)return this.index=h,this.getComplexIdentifier();if(i.Character.isIdentifierPart(d))++this.index;else break}return this.source.slice(h,this.index)},f.prototype.getComplexIdentifier=function(){var h=this.codePointAt(this.index),d=i.Character.fromCodePoint(h);this.index+=d.length;var v;for(h===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,v=this.scanUnicodeCodePointEscape()):(v=this.scanHexEscape("u"),(v===null||v==="\\"||!i.Character.isIdentifierStart(v.charCodeAt(0)))&&this.throwUnexpectedToken()),d=v);!this.eof()&&(h=this.codePointAt(this.index),!!i.Character.isIdentifierPart(h));)v=i.Character.fromCodePoint(h),d+=v,this.index+=v.length,h===92&&(d=d.substr(0,d.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,v=this.scanUnicodeCodePointEscape()):(v=this.scanHexEscape("u"),(v===null||v==="\\"||!i.Character.isIdentifierPart(v.charCodeAt(0)))&&this.throwUnexpectedToken()),d+=v);return d},f.prototype.octalToDecimal=function(h){var d=h!=="0",v=l(h);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(d=!0,v=v*8+l(this.source[this.index++]),"0123".indexOf(h)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(v=v*8+l(this.source[this.index++]))),{code:v,octal:d}},f.prototype.scanIdentifier=function(){var h,d=this.index,v=this.source.charCodeAt(d)===92?this.getComplexIdentifier():this.getIdentifier();if(v.length===1?h=3:this.isKeyword(v)?h=4:v==="null"?h=5:v==="true"||v==="false"?h=1:h=3,h!==3&&d+v.length!==this.index){var m=this.index;this.index=d,this.tolerateUnexpectedToken(c.Messages.InvalidEscapedReservedWord),this.index=m}return{type:h,value:v,lineNumber:this.lineNumber,lineStart:this.lineStart,start:d,end:this.index}},f.prototype.scanPunctuator=function(){var h=this.index,d=this.source[this.index];switch(d){case"(":case"{":d==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,d="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:d=this.source.substr(this.index,4),d===">>>="?this.index+=4:(d=d.substr(0,3),d==="==="||d==="!=="||d===">>>"||d==="<<="||d===">>="||d==="**="?this.index+=3:(d=d.substr(0,2),d==="&&"||d==="||"||d==="=="||d==="!="||d==="+="||d==="-="||d==="*="||d==="/="||d==="++"||d==="--"||d==="<<"||d===">>"||d==="&="||d==="|="||d==="^="||d==="%="||d==="<="||d===">="||d==="=>"||d==="**"?this.index+=2:(d=this.source[this.index],"<>=!+-*%&|^/".indexOf(d)>=0&&++this.index)))}return this.index===h&&this.throwUnexpectedToken(),{type:7,value:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},f.prototype.scanHexLiteral=function(h){for(var d="";!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];return d.length===0&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+d,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},f.prototype.scanBinaryLiteral=function(h){for(var d="",v;!this.eof()&&(v=this.source[this.index],!(v!=="0"&&v!=="1"));)d+=this.source[this.index++];return d.length===0&&this.throwUnexpectedToken(),this.eof()||(v=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(v)||i.Character.isDecimalDigit(v))&&this.throwUnexpectedToken()),{type:6,value:parseInt(d,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},f.prototype.scanOctalLiteral=function(h,d){var v="",m=!1;for(i.Character.isOctalDigit(h.charCodeAt(0))?(m=!0,v="0"+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)v+=this.source[this.index++];return!m&&v.length===0&&this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(v,8),octal:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:d,end:this.index}},f.prototype.isImplicitOctalLiteral=function(){for(var h=this.index+1;h<this.length;++h){var d=this.source[h];if(d==="8"||d==="9")return!1;if(!i.Character.isOctalDigit(d.charCodeAt(0)))return!0}return!0},f.prototype.scanNumericLiteral=function(){var h=this.index,d=this.source[h];o.assert(i.Character.isDecimalDigit(d.charCodeAt(0))||d===".","Numeric literal must start with a decimal digit or a decimal point");var v="";if(d!=="."){if(v=this.source[this.index++],d=this.source[this.index],v==="0"){if(d==="x"||d==="X")return++this.index,this.scanHexLiteral(h);if(d==="b"||d==="B")return++this.index,this.scanBinaryLiteral(h);if(d==="o"||d==="O")return this.scanOctalLiteral(d,h);if(d&&i.Character.isOctalDigit(d.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(d,h)}for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)v+=this.source[this.index++];d=this.source[this.index]}if(d==="."){for(v+=this.source[this.index++];i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)v+=this.source[this.index++];d=this.source[this.index]}if(d==="e"||d==="E")if(v+=this.source[this.index++],d=this.source[this.index],(d==="+"||d==="-")&&(v+=this.source[this.index++]),i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)v+=this.source[this.index++];else this.throwUnexpectedToken();return i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(v),lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},f.prototype.scanStringLiteral=function(){var h=this.index,d=this.source[h];o.assert(d==="'"||d==='"',"String literal must starts with a quote"),++this.index;for(var v=!1,m="";!this.eof();){var p=this.source[this.index++];if(p===d){d="";break}else if(p==="\\")if(p=this.source[this.index++],!p||!i.Character.isLineTerminator(p.charCodeAt(0)))switch(p){case"u":if(this.source[this.index]==="{")++this.index,m+=this.scanUnicodeCodePointEscape();else{var g=this.scanHexEscape(p);g===null&&this.throwUnexpectedToken(),m+=g}break;case"x":var y=this.scanHexEscape(p);y===null&&this.throwUnexpectedToken(c.Messages.InvalidHexEscapeSequence),m+=y;break;case"n":m+=`
12
12
  `;break;case"r":m+="\r";break;case"t":m+=" ";break;case"b":m+="\b";break;case"f":m+="\f";break;case"v":m+="\v";break;case"8":case"9":m+=p,this.tolerateUnexpectedToken();break;default:if(p&&i.Character.isOctalDigit(p.charCodeAt(0))){var b=this.octalToDecimal(p);v=b.octal||v,m+=String.fromCharCode(b.code)}else m+=p;break}else++this.lineNumber,p==="\r"&&this.source[this.index]===`
@@ -14,7 +14,7 @@ vars:页面设置中的全局变量`,method:"方法",params:"参数",loadType:"
14
14
  `&&++this.index,this.lineStart=this.index;else switch(y){case"n":h+=`
15
15
  `;break;case"r":h+="\r";break;case"t":h+=" ";break;case"u":if(this.source[this.index]==="{")++this.index,h+=this.scanUnicodeCodePointEscape();else{var b=this.index,_=this.scanHexEscape(y);_!==null?h+=_:(this.index=b,h+=y)}break;case"x":var E=this.scanHexEscape(y);E===null&&this.throwUnexpectedToken(c.Messages.InvalidHexEscapeSequence),h+=E;break;case"b":h+="\b";break;case"f":h+="\f";break;case"v":h+="\v";break;default:y==="0"?(i.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(c.Messages.TemplateOctalLiteral),h+="\0"):i.Character.isOctalDigit(y.charCodeAt(0))?this.throwUnexpectedToken(c.Messages.TemplateOctalLiteral):h+=y;break}else i.Character.isLineTerminator(y.charCodeAt(0))?(++this.lineNumber,y==="\r"&&this.source[this.index]===`
16
16
  `&&++this.index,this.lineStart=this.index,h+=`
17
- `):h+=y}return d||this.throwUnexpectedToken(),m||this.curlyStack.pop(),{type:10,value:this.source.slice(v+1,this.index-g),cooked:h,head:m,tail:p,lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},f.prototype.testRegExp=function(h,d){var v="￿",m=h,p=this;d.indexOf("u")>=0&&(m=m.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(g,y,b){var _=parseInt(y||b,16);return _>1114111&&p.throwUnexpectedToken(c.Messages.InvalidRegExp),_<=65535?String.fromCharCode(_):v}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v));try{RegExp(m)}catch{this.throwUnexpectedToken(c.Messages.InvalidRegExp)}try{return new RegExp(h,d)}catch{return null}},f.prototype.scanRegExpBody=function(){var h=this.source[this.index];o.assert(h==="/","Regular expression literal must start with a slash");for(var d=this.source[this.index++],v=!1,m=!1;!this.eof();)if(h=this.source[this.index++],d+=h,h==="\\")h=this.source[this.index++],i.Character.isLineTerminator(h.charCodeAt(0))&&this.throwUnexpectedToken(c.Messages.UnterminatedRegExp),d+=h;else if(i.Character.isLineTerminator(h.charCodeAt(0)))this.throwUnexpectedToken(c.Messages.UnterminatedRegExp);else if(v)h==="]"&&(v=!1);else if(h==="/"){m=!0;break}else h==="["&&(v=!0);return m||this.throwUnexpectedToken(c.Messages.UnterminatedRegExp),d.substr(1,d.length-2)},f.prototype.scanRegExpFlags=function(){for(var h="",d="";!this.eof();){var v=this.source[this.index];if(!i.Character.isIdentifierPart(v.charCodeAt(0)))break;if(++this.index,v==="\\"&&!this.eof())if(v=this.source[this.index],v==="u"){++this.index;var m=this.index,p=this.scanHexEscape("u");if(p!==null)for(d+=p,h+="\\u";m<this.index;++m)h+=this.source[m];else this.index=m,d+="u",h+="\\u";this.tolerateUnexpectedToken()}else h+="\\",this.tolerateUnexpectedToken();else d+=v,h+=v}return d},f.prototype.scanRegExp=function(){var h=this.index,d=this.scanRegExpBody(),v=this.scanRegExpFlags(),m=this.testRegExp(d,v);return{type:9,value:"",pattern:d,flags:v,regex:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},f.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var h=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(h)?this.scanIdentifier():h===40||h===41||h===59?this.scanPunctuator():h===39||h===34?this.scanStringLiteral():h===46?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(h)?this.scanNumericLiteral():h===96||h===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():h>=55296&&h<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},f}();r.Scanner=u},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TokenName={},r.TokenName[1]="Boolean",r.TokenName[2]="<end>",r.TokenName[3]="Identifier",r.TokenName[4]="Keyword",r.TokenName[5]="Null",r.TokenName[6]="Numeric",r.TokenName[7]="Punctuator",r.TokenName[8]="String",r.TokenName[9]="RegularExpression",r.TokenName[10]="Template"},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var o=a(10),i=a(12),c=a(13),s=function(){function u(){this.values=[],this.curly=this.paren=-1}return u.prototype.beforeFunctionExpression=function(f){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(f)>=0},u.prototype.isRegexStart=function(){var f=this.values[this.values.length-1],h=f!==null;switch(f){case"this":case"]":h=!1;break;case")":var d=this.values[this.paren-1];h=d==="if"||d==="while"||d==="for"||d==="with";break;case"}":if(h=!1,this.values[this.curly-3]==="function"){var v=this.values[this.curly-4];h=v?!this.beforeFunctionExpression(v):!1}else if(this.values[this.curly-4]==="function"){var v=this.values[this.curly-5];h=v?!this.beforeFunctionExpression(v):!0}break}return h},u.prototype.push=function(f){f.type===7||f.type===4?(f.value==="{"?this.curly=this.values.length:f.value==="("&&(this.paren=this.values.length),this.values.push(f.value)):this.values.push(null)},u}(),l=function(){function u(f,h){this.errorHandler=new o.ErrorHandler,this.errorHandler.tolerant=h?typeof h.tolerant=="boolean"&&h.tolerant:!1,this.scanner=new i.Scanner(f,this.errorHandler),this.scanner.trackComment=h?typeof h.comment=="boolean"&&h.comment:!1,this.trackRange=h?typeof h.range=="boolean"&&h.range:!1,this.trackLoc=h?typeof h.loc=="boolean"&&h.loc:!1,this.buffer=[],this.reader=new s}return u.prototype.errors=function(){return this.errorHandler.errors},u.prototype.getNextToken=function(){if(this.buffer.length===0){var f=this.scanner.scanComments();if(this.scanner.trackComment)for(var h=0;h<f.length;++h){var d=f[h],v=this.scanner.source.slice(d.slice[0],d.slice[1]),m={type:d.multiLine?"BlockComment":"LineComment",value:v};this.trackRange&&(m.range=d.range),this.trackLoc&&(m.loc=d.loc),this.buffer.push(m)}if(!this.scanner.eof()){var p=void 0;this.trackLoc&&(p={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var g=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),y=g?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(y);var b={type:c.TokenName[y.type],value:this.scanner.source.slice(y.start,y.end)};if(this.trackRange&&(b.range=[y.start,y.end]),this.trackLoc&&(p.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},b.loc=p),y.type===9){var _=y.pattern,E=y.flags;b.regex={pattern:_,flags:E}}this.buffer.push(b)}}return this.buffer.shift()},u}();r.Tokenizer=l}])})})(wJ);const SJ=Jm({__proto__:null,default:fg(wi)},[wi]),CJ=e=>{var t,n,r;return(r=(n=(t=e==null?void 0:e[0])==null?void 0:t.expression)==null?void 0:n.callee)==null?void 0:r.name},gD=e=>{if(e==null||e==null)return null;try{return wi.parseScript(e)}catch(t){return Hi.error("astTree",t,{script:e}),null}};function AJ(e){return hr(e)||!Ui(e)?null:gD(e==null?void 0:e.replaceAll(/return/g," "))}function yD(e){const t=[],n=AJ(e);function r(i){if(i.type===wi.Syntax.MemberExpression){const c={root:"",properties:[]};a(i,c),c.root&&t.push(c)}else i.type===wi.Syntax.CallExpression&&o(i,t);for(const c in i){const s=i[c];Array.isArray(s)?s.forEach(l=>l&&r(l)):s&&typeof s=="object"&&r(s)}}function a(i,c){var s=i.object,l=i.property;s.type===wi.Syntax.MemberExpression?a(s,c):s.type===wi.Syntax.Identifier&&(c.root=s.name),l.type===wi.Syntax.Identifier?c.properties.push(l.name):(l.type===wi.Syntax.Literal&&typeof l.value=="string"||l.type===wi.Syntax.Literal&&typeof l.value=="number")&&c.properties.push(l.value)}function o(i,c){var s;(s=i.arguments)==null||s.forEach(l=>{if(l.type===wi.Syntax.Identifier){const u={root:l.name,properties:[]};c.push(u)}})}return r(n),t}function TJ(e){var t=yD(e),n=t.map(r=>r.root);return dT(n)}function _D(){const e=()=>new Promise((n,r)=>{Promise.resolve().then(()=>zoe).then(a=>{Promise.resolve().then(()=>Uoe).then(o=>{Promise.resolve().then(()=>SJ).then(i=>{n({escodegen:a,estraverse:o,esprima:i})})})})});function t(n,r,a,o){try{const i=n==null?void 0:n.esprima.parseScript(r);return n==null||n.estraverse.traverse(i,{enter(c){c=a(c,o)}}),n==null?void 0:n.escodegen.generate(i)}catch{return r}}return{init:e,replaceVariableName:t}}const bD=(e,t,n)=>{let r="";if(n){const a=new Date;a.setTime(a.getTime()+n*60*1e3),r=`; expires=${a.toUTCString()}`}document.cookie=`${e}=${t}${r}; path=/`},DJ=e=>{const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},PJ=e=>{bD(e,"",-1)};function kJ(){const t=document.cookie.split("; "),n={};return t.forEach(r=>{const[a,o]=r.split("=");Lc(a)||(n[a]=o)}),n}const xD={get(e){return DJ(e)},set(e,t,n){bD(e,t,n)},remove(e){PJ(e)},getAll(){return kJ()}};function ED(e,t){return function(){return e.apply(t,arguments)}}const{toString:OJ}=Object.prototype,{getPrototypeOf:Sx}=Object,pg=(e=>t=>{const n=OJ.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$s=e=>(e=e.toLowerCase(),t=>pg(t)===e),hg=e=>t=>typeof t===e,{isArray:Bp}=Array,Md=hg("undefined");function BJ(e){return e!==null&&!Md(e)&&e.constructor!==null&&!Md(e.constructor)&&Mo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wD=$s("ArrayBuffer");function IJ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wD(e.buffer),t}const NJ=hg("string"),Mo=hg("function"),SD=hg("number"),dg=e=>e!==null&&typeof e=="object",FJ=e=>e===!0||e===!1,vg=e=>{if(pg(e)!=="object")return!1;const t=Sx(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},MJ=$s("Date"),LJ=$s("File"),RJ=$s("Blob"),jJ=$s("FileList"),VJ=e=>dg(e)&&Mo(e.pipe),zJ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mo(e.append)&&((t=pg(e))==="formdata"||t==="object"&&Mo(e.toString)&&e.toString()==="[object FormData]"))},UJ=$s("URLSearchParams"),HJ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ld(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Bp(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function CD(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const AD=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),TD=e=>!Md(e)&&e!==AD;function Cx(){const{caseless:e}=TD(this)&&this||{},t={},n=(r,a)=>{const o=e&&CD(t,a)||a;vg(t[o])&&vg(r)?t[o]=Cx(t[o],r):vg(r)?t[o]=Cx({},r):Bp(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Ld(arguments[r],n);return t}const WJ=(e,t,n,{allOwnKeys:r}={})=>(Ld(t,(a,o)=>{n&&Mo(a)?e[o]=ED(a,n):e[o]=a},{allOwnKeys:r}),e),GJ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),KJ=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},XJ=(e,t,n,r)=>{let a,o,i;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Sx(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},YJ=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},JJ=e=>{if(!e)return null;if(Bp(e))return e;let t=e.length;if(!SD(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ZJ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sx(Uint8Array)),QJ=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},qJ=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$J=$s("HTMLFormElement"),eZ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),DD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tZ=$s("RegExp"),PD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ld(n,(a,o)=>{t(a,o,e)!==!1&&(r[o]=a)}),Object.defineProperties(e,r)},nZ=e=>{PD(e,(t,n)=>{if(Mo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mo(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},rZ=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return Bp(e)?r(e):r(String(e).split(t)),n},iZ=()=>{},aZ=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ax="abcdefghijklmnopqrstuvwxyz",kD="0123456789",OD={DIGIT:kD,ALPHA:Ax,ALPHA_DIGIT:Ax+Ax.toUpperCase()+kD},oZ=(e=16,t=OD.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function sZ(e){return!!(e&&Mo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lZ=e=>{const t=new Array(10),n=(r,a)=>{if(dg(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const o=Bp(r)?[]:{};return Ld(r,(i,c)=>{const s=n(i,a+1);!Md(s)&&(o[c]=s)}),t[a]=void 0,o}}return r};return n(e,0)},uZ=$s("AsyncFunction"),Ot={isArray:Bp,isArrayBuffer:wD,isBuffer:BJ,isFormData:zJ,isArrayBufferView:IJ,isString:NJ,isNumber:SD,isBoolean:FJ,isObject:dg,isPlainObject:vg,isUndefined:Md,isDate:MJ,isFile:LJ,isBlob:RJ,isRegExp:tZ,isFunction:Mo,isStream:VJ,isURLSearchParams:UJ,isTypedArray:ZJ,isFileList:jJ,forEach:Ld,merge:Cx,extend:WJ,trim:HJ,stripBOM:GJ,inherits:KJ,toFlatObject:XJ,kindOf:pg,kindOfTest:$s,endsWith:YJ,toArray:JJ,forEachEntry:QJ,matchAll:qJ,isHTMLForm:$J,hasOwnProperty:DD,hasOwnProp:DD,reduceDescriptors:PD,freezeMethods:nZ,toObjectSet:rZ,toCamelCase:eZ,noop:iZ,toFiniteNumber:aZ,findKey:CD,global:AD,isContextDefined:TD,ALPHABET:OD,generateString:oZ,isSpecCompliantForm:sZ,toJSONObject:lZ,isAsyncFn:uZ,isThenable:e=>e&&(dg(e)||Mo(e))&&Mo(e.then)&&Mo(e.catch)};function Br(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}Ot.inherits(Br,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ot.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const BD=Br.prototype,ID={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ID[e]={value:e}}),Object.defineProperties(Br,ID),Object.defineProperty(BD,"isAxiosError",{value:!0}),Br.from=(e,t,n,r,a,o)=>{const i=Object.create(BD);return Ot.toFlatObject(e,i,function(s){return s!==Error.prototype},c=>c!=="isAxiosError"),Br.call(i,e.message,t,n,r,a),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const cZ=null;function Tx(e){return Ot.isPlainObject(e)||Ot.isArray(e)}function ND(e){return Ot.endsWith(e,"[]")?e.slice(0,-2):e}function FD(e,t,n){return e?e.concat(t).map(function(a,o){return a=ND(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function fZ(e){return Ot.isArray(e)&&!e.some(Tx)}const pZ=Ot.toFlatObject(Ot,{},null,function(t){return/^is[A-Z]/.test(t)});function mg(e,t,n){if(!Ot.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ot.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!Ot.isUndefined(p[m])});const r=n.metaTokens,a=n.visitor||u,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Ot.isSpecCompliantForm(t);if(!Ot.isFunction(a))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(Ot.isDate(v))return v.toISOString();if(!s&&Ot.isBlob(v))throw new Br("Blob is not supported. Use a Buffer instead.");return Ot.isArrayBuffer(v)||Ot.isTypedArray(v)?s&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,m,p){let g=v;if(v&&!p&&typeof v=="object"){if(Ot.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(Ot.isArray(v)&&fZ(v)||(Ot.isFileList(v)||Ot.endsWith(m,"[]"))&&(g=Ot.toArray(v)))return m=ND(m),g.forEach(function(b,_){!(Ot.isUndefined(b)||b===null)&&t.append(i===!0?FD([m],_,o):i===null?m:m+"[]",l(b))}),!1}return Tx(v)?!0:(t.append(FD(p,m,o),l(v)),!1)}const f=[],h=Object.assign(pZ,{defaultVisitor:u,convertValue:l,isVisitable:Tx});function d(v,m){if(!Ot.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(v),Ot.forEach(v,function(g,y){(!(Ot.isUndefined(g)||g===null)&&a.call(t,g,Ot.isString(y)?y.trim():y,m,h))===!0&&d(g,m?m.concat(y):[y])}),f.pop()}}if(!Ot.isObject(e))throw new TypeError("data must be an object");return d(e),t}function MD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Dx(e,t){this._pairs=[],e&&mg(e,this,t)}const LD=Dx.prototype;LD.append=function(t,n){this._pairs.push([t,n])},LD.toString=function(t){const n=t?function(r){return t.call(this,r,MD)}:MD;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function hZ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function RD(e,t,n){if(!t)return e;const r=n&&n.encode||hZ,a=n&&n.serialize;let o;if(a?o=a(t,n):o=Ot.isURLSearchParams(t)?t.toString():new Dx(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class dZ{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ot.forEach(this.handlers,function(r){r!==null&&t(r)})}}const jD=dZ,VD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vZ=typeof URLSearchParams<"u"?URLSearchParams:Dx,mZ=typeof FormData<"u"?FormData:null,gZ=typeof Blob<"u"?Blob:null,yZ=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),_Z=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),el={isBrowser:!0,classes:{URLSearchParams:vZ,FormData:mZ,Blob:gZ},isStandardBrowserEnv:yZ,isStandardBrowserWebWorkerEnv:_Z,protocols:["http","https","file","blob","url","data"]};function bZ(e,t){return mg(e,new el.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,o){return el.isNode&&Ot.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function xZ(e){return Ot.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function EZ(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function zD(e){function t(n,r,a,o){let i=n[o++];const c=Number.isFinite(+i),s=o>=n.length;return i=!i&&Ot.isArray(a)?a.length:i,s?(Ot.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!c):((!a[i]||!Ot.isObject(a[i]))&&(a[i]=[]),t(n,r,a[i],o)&&Ot.isArray(a[i])&&(a[i]=EZ(a[i])),!c)}if(Ot.isFormData(e)&&Ot.isFunction(e.entries)){const n={};return Ot.forEachEntry(e,(r,a)=>{t(xZ(r),a,n,0)}),n}return null}const wZ={"Content-Type":void 0};function SZ(e,t,n){if(Ot.isString(e))try{return(t||JSON.parse)(e),Ot.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const gg={transitional:VD,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=Ot.isObject(t);if(o&&Ot.isHTMLForm(t)&&(t=new FormData(t)),Ot.isFormData(t))return a&&a?JSON.stringify(zD(t)):t;if(Ot.isArrayBuffer(t)||Ot.isBuffer(t)||Ot.isStream(t)||Ot.isFile(t)||Ot.isBlob(t))return t;if(Ot.isArrayBufferView(t))return t.buffer;if(Ot.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bZ(t,this.formSerializer).toString();if((c=Ot.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return mg(c?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),SZ(t)):t}],transformResponse:[function(t){const n=this.transitional||gg.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&Ot.isString(t)&&(r&&!this.responseType||a)){const i=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?Br.from(c,Br.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:el.classes.FormData,Blob:el.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ot.forEach(["delete","get","head"],function(t){gg.headers[t]={}}),Ot.forEach(["post","put","patch"],function(t){gg.headers[t]=Ot.merge(wZ)});const Px=gg,CZ=Ot.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AZ=e=>{const t={};let n,r,a;return e&&e.split(`
17
+ `):h+=y}return d||this.throwUnexpectedToken(),m||this.curlyStack.pop(),{type:10,value:this.source.slice(v+1,this.index-g),cooked:h,head:m,tail:p,lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},f.prototype.testRegExp=function(h,d){var v="￿",m=h,p=this;d.indexOf("u")>=0&&(m=m.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(g,y,b){var _=parseInt(y||b,16);return _>1114111&&p.throwUnexpectedToken(c.Messages.InvalidRegExp),_<=65535?String.fromCharCode(_):v}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v));try{RegExp(m)}catch{this.throwUnexpectedToken(c.Messages.InvalidRegExp)}try{return new RegExp(h,d)}catch{return null}},f.prototype.scanRegExpBody=function(){var h=this.source[this.index];o.assert(h==="/","Regular expression literal must start with a slash");for(var d=this.source[this.index++],v=!1,m=!1;!this.eof();)if(h=this.source[this.index++],d+=h,h==="\\")h=this.source[this.index++],i.Character.isLineTerminator(h.charCodeAt(0))&&this.throwUnexpectedToken(c.Messages.UnterminatedRegExp),d+=h;else if(i.Character.isLineTerminator(h.charCodeAt(0)))this.throwUnexpectedToken(c.Messages.UnterminatedRegExp);else if(v)h==="]"&&(v=!1);else if(h==="/"){m=!0;break}else h==="["&&(v=!0);return m||this.throwUnexpectedToken(c.Messages.UnterminatedRegExp),d.substr(1,d.length-2)},f.prototype.scanRegExpFlags=function(){for(var h="",d="";!this.eof();){var v=this.source[this.index];if(!i.Character.isIdentifierPart(v.charCodeAt(0)))break;if(++this.index,v==="\\"&&!this.eof())if(v=this.source[this.index],v==="u"){++this.index;var m=this.index,p=this.scanHexEscape("u");if(p!==null)for(d+=p,h+="\\u";m<this.index;++m)h+=this.source[m];else this.index=m,d+="u",h+="\\u";this.tolerateUnexpectedToken()}else h+="\\",this.tolerateUnexpectedToken();else d+=v,h+=v}return d},f.prototype.scanRegExp=function(){var h=this.index,d=this.scanRegExpBody(),v=this.scanRegExpFlags(),m=this.testRegExp(d,v);return{type:9,value:"",pattern:d,flags:v,regex:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},f.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var h=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(h)?this.scanIdentifier():h===40||h===41||h===59?this.scanPunctuator():h===39||h===34?this.scanStringLiteral():h===46?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(h)?this.scanNumericLiteral():h===96||h===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():h>=55296&&h<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},f}();r.Scanner=u},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TokenName={},r.TokenName[1]="Boolean",r.TokenName[2]="<end>",r.TokenName[3]="Identifier",r.TokenName[4]="Keyword",r.TokenName[5]="Null",r.TokenName[6]="Numeric",r.TokenName[7]="Punctuator",r.TokenName[8]="String",r.TokenName[9]="RegularExpression",r.TokenName[10]="Template"},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var o=a(10),i=a(12),c=a(13),s=function(){function u(){this.values=[],this.curly=this.paren=-1}return u.prototype.beforeFunctionExpression=function(f){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(f)>=0},u.prototype.isRegexStart=function(){var f=this.values[this.values.length-1],h=f!==null;switch(f){case"this":case"]":h=!1;break;case")":var d=this.values[this.paren-1];h=d==="if"||d==="while"||d==="for"||d==="with";break;case"}":if(h=!1,this.values[this.curly-3]==="function"){var v=this.values[this.curly-4];h=v?!this.beforeFunctionExpression(v):!1}else if(this.values[this.curly-4]==="function"){var v=this.values[this.curly-5];h=v?!this.beforeFunctionExpression(v):!0}break}return h},u.prototype.push=function(f){f.type===7||f.type===4?(f.value==="{"?this.curly=this.values.length:f.value==="("&&(this.paren=this.values.length),this.values.push(f.value)):this.values.push(null)},u}(),l=function(){function u(f,h){this.errorHandler=new o.ErrorHandler,this.errorHandler.tolerant=h?typeof h.tolerant=="boolean"&&h.tolerant:!1,this.scanner=new i.Scanner(f,this.errorHandler),this.scanner.trackComment=h?typeof h.comment=="boolean"&&h.comment:!1,this.trackRange=h?typeof h.range=="boolean"&&h.range:!1,this.trackLoc=h?typeof h.loc=="boolean"&&h.loc:!1,this.buffer=[],this.reader=new s}return u.prototype.errors=function(){return this.errorHandler.errors},u.prototype.getNextToken=function(){if(this.buffer.length===0){var f=this.scanner.scanComments();if(this.scanner.trackComment)for(var h=0;h<f.length;++h){var d=f[h],v=this.scanner.source.slice(d.slice[0],d.slice[1]),m={type:d.multiLine?"BlockComment":"LineComment",value:v};this.trackRange&&(m.range=d.range),this.trackLoc&&(m.loc=d.loc),this.buffer.push(m)}if(!this.scanner.eof()){var p=void 0;this.trackLoc&&(p={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var g=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),y=g?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(y);var b={type:c.TokenName[y.type],value:this.scanner.source.slice(y.start,y.end)};if(this.trackRange&&(b.range=[y.start,y.end]),this.trackLoc&&(p.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},b.loc=p),y.type===9){var _=y.pattern,E=y.flags;b.regex={pattern:_,flags:E}}this.buffer.push(b)}}return this.buffer.shift()},u}();r.Tokenizer=l}])})})(wJ);const SJ=Jm({__proto__:null,default:fg(wi)},[wi]),CJ=e=>{var t,n,r;return(r=(n=(t=e==null?void 0:e[0])==null?void 0:t.expression)==null?void 0:n.callee)==null?void 0:r.name},gD=e=>{if(e==null||e==null)return null;try{return wi.parseScript(e)}catch(t){return Hi.error("astTree",t,{script:e}),null}};function AJ(e){return hr(e)||!Ui(e)?null:gD(e==null?void 0:e.replace(new RegExp("return","gm")," "))}function yD(e){const t=[],n=AJ(e);function r(i){if(i.type===wi.Syntax.MemberExpression){const c={root:"",properties:[]};a(i,c),c.root&&t.push(c)}else i.type===wi.Syntax.CallExpression&&o(i,t);for(const c in i){const s=i[c];Array.isArray(s)?s.forEach(l=>l&&r(l)):s&&typeof s=="object"&&r(s)}}function a(i,c){var s=i.object,l=i.property;s.type===wi.Syntax.MemberExpression?a(s,c):s.type===wi.Syntax.Identifier&&(c.root=s.name),l.type===wi.Syntax.Identifier?c.properties.push(l.name):(l.type===wi.Syntax.Literal&&typeof l.value=="string"||l.type===wi.Syntax.Literal&&typeof l.value=="number")&&c.properties.push(l.value)}function o(i,c){var s;(s=i.arguments)==null||s.forEach(l=>{if(l.type===wi.Syntax.Identifier){const u={root:l.name,properties:[]};c.push(u)}})}return r(n),t}function TJ(e){var t=yD(e),n=t.map(r=>r.root);return dT(n)}function _D(){const e=()=>new Promise((n,r)=>{Promise.resolve().then(()=>zoe).then(a=>{Promise.resolve().then(()=>Uoe).then(o=>{Promise.resolve().then(()=>SJ).then(i=>{n({escodegen:a,estraverse:o,esprima:i})})})})});function t(n,r,a,o){try{const i=n==null?void 0:n.esprima.parseScript(r);return n==null||n.estraverse.traverse(i,{enter(c){c=a(c,o)}}),n==null?void 0:n.escodegen.generate(i)}catch{return r}}return{init:e,replaceVariableName:t}}const bD=(e,t,n)=>{let r="";if(n){const a=new Date;a.setTime(a.getTime()+n*60*1e3),r=`; expires=${a.toUTCString()}`}document.cookie=`${e}=${t}${r}; path=/`},DJ=e=>{const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},PJ=e=>{bD(e,"",-1)};function kJ(){const t=document.cookie.split("; "),n={};return t.forEach(r=>{const[a,o]=r.split("=");Lc(a)||(n[a]=o)}),n}const xD={get(e){return DJ(e)},set(e,t,n){bD(e,t,n)},remove(e){PJ(e)},getAll(){return kJ()}};function ED(e,t){return function(){return e.apply(t,arguments)}}const{toString:OJ}=Object.prototype,{getPrototypeOf:Sx}=Object,pg=(e=>t=>{const n=OJ.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$s=e=>(e=e.toLowerCase(),t=>pg(t)===e),hg=e=>t=>typeof t===e,{isArray:Bp}=Array,Md=hg("undefined");function BJ(e){return e!==null&&!Md(e)&&e.constructor!==null&&!Md(e.constructor)&&Mo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wD=$s("ArrayBuffer");function IJ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wD(e.buffer),t}const NJ=hg("string"),Mo=hg("function"),SD=hg("number"),dg=e=>e!==null&&typeof e=="object",FJ=e=>e===!0||e===!1,vg=e=>{if(pg(e)!=="object")return!1;const t=Sx(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},MJ=$s("Date"),LJ=$s("File"),RJ=$s("Blob"),jJ=$s("FileList"),VJ=e=>dg(e)&&Mo(e.pipe),zJ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mo(e.append)&&((t=pg(e))==="formdata"||t==="object"&&Mo(e.toString)&&e.toString()==="[object FormData]"))},UJ=$s("URLSearchParams"),HJ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ld(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Bp(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function CD(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const AD=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),TD=e=>!Md(e)&&e!==AD;function Cx(){const{caseless:e}=TD(this)&&this||{},t={},n=(r,a)=>{const o=e&&CD(t,a)||a;vg(t[o])&&vg(r)?t[o]=Cx(t[o],r):vg(r)?t[o]=Cx({},r):Bp(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Ld(arguments[r],n);return t}const WJ=(e,t,n,{allOwnKeys:r}={})=>(Ld(t,(a,o)=>{n&&Mo(a)?e[o]=ED(a,n):e[o]=a},{allOwnKeys:r}),e),GJ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),KJ=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},XJ=(e,t,n,r)=>{let a,o,i;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Sx(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},YJ=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},JJ=e=>{if(!e)return null;if(Bp(e))return e;let t=e.length;if(!SD(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ZJ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sx(Uint8Array)),QJ=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},qJ=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$J=$s("HTMLFormElement"),eZ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),DD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tZ=$s("RegExp"),PD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ld(n,(a,o)=>{t(a,o,e)!==!1&&(r[o]=a)}),Object.defineProperties(e,r)},nZ=e=>{PD(e,(t,n)=>{if(Mo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mo(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},rZ=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return Bp(e)?r(e):r(String(e).split(t)),n},iZ=()=>{},aZ=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ax="abcdefghijklmnopqrstuvwxyz",kD="0123456789",OD={DIGIT:kD,ALPHA:Ax,ALPHA_DIGIT:Ax+Ax.toUpperCase()+kD},oZ=(e=16,t=OD.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function sZ(e){return!!(e&&Mo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lZ=e=>{const t=new Array(10),n=(r,a)=>{if(dg(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const o=Bp(r)?[]:{};return Ld(r,(i,c)=>{const s=n(i,a+1);!Md(s)&&(o[c]=s)}),t[a]=void 0,o}}return r};return n(e,0)},uZ=$s("AsyncFunction"),Ot={isArray:Bp,isArrayBuffer:wD,isBuffer:BJ,isFormData:zJ,isArrayBufferView:IJ,isString:NJ,isNumber:SD,isBoolean:FJ,isObject:dg,isPlainObject:vg,isUndefined:Md,isDate:MJ,isFile:LJ,isBlob:RJ,isRegExp:tZ,isFunction:Mo,isStream:VJ,isURLSearchParams:UJ,isTypedArray:ZJ,isFileList:jJ,forEach:Ld,merge:Cx,extend:WJ,trim:HJ,stripBOM:GJ,inherits:KJ,toFlatObject:XJ,kindOf:pg,kindOfTest:$s,endsWith:YJ,toArray:JJ,forEachEntry:QJ,matchAll:qJ,isHTMLForm:$J,hasOwnProperty:DD,hasOwnProp:DD,reduceDescriptors:PD,freezeMethods:nZ,toObjectSet:rZ,toCamelCase:eZ,noop:iZ,toFiniteNumber:aZ,findKey:CD,global:AD,isContextDefined:TD,ALPHABET:OD,generateString:oZ,isSpecCompliantForm:sZ,toJSONObject:lZ,isAsyncFn:uZ,isThenable:e=>e&&(dg(e)||Mo(e))&&Mo(e.then)&&Mo(e.catch)};function Br(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}Ot.inherits(Br,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ot.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const BD=Br.prototype,ID={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ID[e]={value:e}}),Object.defineProperties(Br,ID),Object.defineProperty(BD,"isAxiosError",{value:!0}),Br.from=(e,t,n,r,a,o)=>{const i=Object.create(BD);return Ot.toFlatObject(e,i,function(s){return s!==Error.prototype},c=>c!=="isAxiosError"),Br.call(i,e.message,t,n,r,a),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const cZ=null;function Tx(e){return Ot.isPlainObject(e)||Ot.isArray(e)}function ND(e){return Ot.endsWith(e,"[]")?e.slice(0,-2):e}function FD(e,t,n){return e?e.concat(t).map(function(a,o){return a=ND(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function fZ(e){return Ot.isArray(e)&&!e.some(Tx)}const pZ=Ot.toFlatObject(Ot,{},null,function(t){return/^is[A-Z]/.test(t)});function mg(e,t,n){if(!Ot.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ot.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!Ot.isUndefined(p[m])});const r=n.metaTokens,a=n.visitor||u,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Ot.isSpecCompliantForm(t);if(!Ot.isFunction(a))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(Ot.isDate(v))return v.toISOString();if(!s&&Ot.isBlob(v))throw new Br("Blob is not supported. Use a Buffer instead.");return Ot.isArrayBuffer(v)||Ot.isTypedArray(v)?s&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,m,p){let g=v;if(v&&!p&&typeof v=="object"){if(Ot.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(Ot.isArray(v)&&fZ(v)||(Ot.isFileList(v)||Ot.endsWith(m,"[]"))&&(g=Ot.toArray(v)))return m=ND(m),g.forEach(function(b,_){!(Ot.isUndefined(b)||b===null)&&t.append(i===!0?FD([m],_,o):i===null?m:m+"[]",l(b))}),!1}return Tx(v)?!0:(t.append(FD(p,m,o),l(v)),!1)}const f=[],h=Object.assign(pZ,{defaultVisitor:u,convertValue:l,isVisitable:Tx});function d(v,m){if(!Ot.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(v),Ot.forEach(v,function(g,y){(!(Ot.isUndefined(g)||g===null)&&a.call(t,g,Ot.isString(y)?y.trim():y,m,h))===!0&&d(g,m?m.concat(y):[y])}),f.pop()}}if(!Ot.isObject(e))throw new TypeError("data must be an object");return d(e),t}function MD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Dx(e,t){this._pairs=[],e&&mg(e,this,t)}const LD=Dx.prototype;LD.append=function(t,n){this._pairs.push([t,n])},LD.toString=function(t){const n=t?function(r){return t.call(this,r,MD)}:MD;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function hZ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function RD(e,t,n){if(!t)return e;const r=n&&n.encode||hZ,a=n&&n.serialize;let o;if(a?o=a(t,n):o=Ot.isURLSearchParams(t)?t.toString():new Dx(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class dZ{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ot.forEach(this.handlers,function(r){r!==null&&t(r)})}}const jD=dZ,VD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vZ=typeof URLSearchParams<"u"?URLSearchParams:Dx,mZ=typeof FormData<"u"?FormData:null,gZ=typeof Blob<"u"?Blob:null,yZ=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),_Z=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),el={isBrowser:!0,classes:{URLSearchParams:vZ,FormData:mZ,Blob:gZ},isStandardBrowserEnv:yZ,isStandardBrowserWebWorkerEnv:_Z,protocols:["http","https","file","blob","url","data"]};function bZ(e,t){return mg(e,new el.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,o){return el.isNode&&Ot.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function xZ(e){return Ot.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function EZ(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function zD(e){function t(n,r,a,o){let i=n[o++];const c=Number.isFinite(+i),s=o>=n.length;return i=!i&&Ot.isArray(a)?a.length:i,s?(Ot.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!c):((!a[i]||!Ot.isObject(a[i]))&&(a[i]=[]),t(n,r,a[i],o)&&Ot.isArray(a[i])&&(a[i]=EZ(a[i])),!c)}if(Ot.isFormData(e)&&Ot.isFunction(e.entries)){const n={};return Ot.forEachEntry(e,(r,a)=>{t(xZ(r),a,n,0)}),n}return null}const wZ={"Content-Type":void 0};function SZ(e,t,n){if(Ot.isString(e))try{return(t||JSON.parse)(e),Ot.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const gg={transitional:VD,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=Ot.isObject(t);if(o&&Ot.isHTMLForm(t)&&(t=new FormData(t)),Ot.isFormData(t))return a&&a?JSON.stringify(zD(t)):t;if(Ot.isArrayBuffer(t)||Ot.isBuffer(t)||Ot.isStream(t)||Ot.isFile(t)||Ot.isBlob(t))return t;if(Ot.isArrayBufferView(t))return t.buffer;if(Ot.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bZ(t,this.formSerializer).toString();if((c=Ot.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return mg(c?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),SZ(t)):t}],transformResponse:[function(t){const n=this.transitional||gg.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&Ot.isString(t)&&(r&&!this.responseType||a)){const i=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?Br.from(c,Br.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:el.classes.FormData,Blob:el.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ot.forEach(["delete","get","head"],function(t){gg.headers[t]={}}),Ot.forEach(["post","put","patch"],function(t){gg.headers[t]=Ot.merge(wZ)});const Px=gg,CZ=Ot.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AZ=e=>{const t={};let n,r,a;return e&&e.split(`
18
18
  `).forEach(function(i){a=i.indexOf(":"),n=i.substring(0,a).trim().toLowerCase(),r=i.substring(a+1).trim(),!(!n||t[n]&&CZ[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},UD=Symbol("internals");function Rd(e){return e&&String(e).trim().toLowerCase()}function yg(e){return e===!1||e==null?e:Ot.isArray(e)?e.map(yg):String(e)}function TZ(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const DZ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function kx(e,t,n,r,a){if(Ot.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!Ot.isString(t)){if(Ot.isString(r))return t.indexOf(r)!==-1;if(Ot.isRegExp(r))return r.test(t)}}function PZ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function kZ(e,t){const n=Ot.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,i){return this[r].call(this,t,a,o,i)},configurable:!0})})}class _g{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(c,s,l){const u=Rd(s);if(!u)throw new Error("header name must be a non-empty string");const f=Ot.findKey(a,u);(!f||a[f]===void 0||l===!0||l===void 0&&a[f]!==!1)&&(a[f||s]=yg(c))}const i=(c,s)=>Ot.forEach(c,(l,u)=>o(l,u,s));return Ot.isPlainObject(t)||t instanceof this.constructor?i(t,n):Ot.isString(t)&&(t=t.trim())&&!DZ(t)?i(AZ(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Rd(t),t){const r=Ot.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return TZ(a);if(Ot.isFunction(n))return n.call(this,a,r);if(Ot.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rd(t),t){const r=Ot.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||kx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(i){if(i=Rd(i),i){const c=Ot.findKey(r,i);c&&(!n||kx(r,r[c],c,n))&&(delete r[c],a=!0)}}return Ot.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||kx(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return Ot.forEach(this,(a,o)=>{const i=Ot.findKey(r,o);if(i){n[i]=yg(a),delete n[o];return}const c=t?PZ(o):String(o).trim();c!==o&&delete n[o],n[c]=yg(a),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ot.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&Ot.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
19
19
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[UD]=this[UD]={accessors:{}}).accessors,a=this.prototype;function o(i){const c=Rd(i);r[c]||(kZ(a,i),r[c]=!0)}return Ot.isArray(t)?t.forEach(o):o(t),this}}_g.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ot.freezeMethods(_g.prototype),Ot.freezeMethods(_g);const Il=_g;function Ox(e,t){const n=this||Px,r=t||n,a=Il.from(r.headers);let o=r.data;return Ot.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function HD(e){return!!(e&&e.__CANCEL__)}function jd(e,t,n){Br.call(this,e??"canceled",Br.ERR_CANCELED,t,n),this.name="CanceledError"}Ot.inherits(jd,Br,{__CANCEL__:!0});function OZ(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Br("Request failed with status code "+n.status,[Br.ERR_BAD_REQUEST,Br.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const BZ=el.isStandardBrowserEnv?function(){return{write:function(n,r,a,o,i,c){const s=[];s.push(n+"="+encodeURIComponent(r)),Ot.isNumber(a)&&s.push("expires="+new Date(a).toGMTString()),Ot.isString(o)&&s.push("path="+o),Ot.isString(i)&&s.push("domain="+i),c===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function IZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function NZ(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function WD(e,t){return e&&!IZ(t)?NZ(e,t):t}const FZ=el.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(i){const c=Ot.isString(i)?a(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function MZ(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LZ(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(s){const l=Date.now(),u=r[o];i||(i=l),n[a]=s,r[a]=l;let f=o,h=0;for(;f!==a;)h+=n[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),l-i<t)return;const d=u&&l-u;return d?Math.round(h*1e3/d):void 0}}function GD(e,t){let n=0;const r=LZ(50,250);return a=>{const o=a.loaded,i=a.lengthComputable?a.total:void 0,c=o-n,s=r(c),l=o<=i;n=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:s||void 0,estimated:s&&i&&l?(i-o)/s:void 0,event:a};u[t?"download":"upload"]=!0,e(u)}}const bg={http:cZ,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let a=e.data;const o=Il.from(e.headers).normalize(),i=e.responseType;let c;function s(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}Ot.isFormData(a)&&(el.isStandardBrowserEnv||el.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(d+":"+v))}const u=WD(e.baseURL,e.url);l.open(e.method.toUpperCase(),RD(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function f(){if(!l)return;const d=Il.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:e,request:l};OZ(function(g){n(g),s()},function(g){r(g),s()},m),l=null}if("onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(f)},l.onabort=function(){l&&(r(new Br("Request aborted",Br.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Br("Network Error",Br.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||VD;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new Br(v,m.clarifyTimeoutError?Br.ETIMEDOUT:Br.ECONNABORTED,e,l)),l=null},el.isStandardBrowserEnv){const d=(e.withCredentials||FZ(u))&&e.xsrfCookieName&&BZ.read(e.xsrfCookieName);d&&o.set(e.xsrfHeaderName,d)}a===void 0&&o.setContentType(null),"setRequestHeader"in l&&Ot.forEach(o.toJSON(),function(v,m){l.setRequestHeader(m,v)}),Ot.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",GD(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",GD(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=d=>{l&&(r(!d||d.type?new jd(null,e,l):d),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const h=MZ(u);if(h&&el.protocols.indexOf(h)===-1){r(new Br("Unsupported protocol "+h+":",Br.ERR_BAD_REQUEST,e));return}l.send(a||null)})}};Ot.forEach(bg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const RZ={getAdapter:e=>{e=Ot.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let a=0;a<t&&(n=e[a],!(r=Ot.isString(n)?bg[n.toLowerCase()]:n));a++);if(!r)throw r===!1?new Br(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Ot.hasOwnProp(bg,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!Ot.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:bg};function Bx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jd(null,e)}function KD(e){return Bx(e),e.headers=Il.from(e.headers),e.data=Ox.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),RZ.getAdapter(e.adapter||Px.adapter)(e).then(function(r){return Bx(e),r.data=Ox.call(e,e.transformResponse,r),r.headers=Il.from(r.headers),r},function(r){return HD(r)||(Bx(e),r&&r.response&&(r.response.data=Ox.call(e,e.transformResponse,r.response),r.response.headers=Il.from(r.response.headers))),Promise.reject(r)})}const XD=e=>e instanceof Il?e.toJSON():e;function Ip(e,t){t=t||{};const n={};function r(l,u,f){return Ot.isPlainObject(l)&&Ot.isPlainObject(u)?Ot.merge.call({caseless:f},l,u):Ot.isPlainObject(u)?Ot.merge({},u):Ot.isArray(u)?u.slice():u}function a(l,u,f){if(Ot.isUndefined(u)){if(!Ot.isUndefined(l))return r(void 0,l,f)}else return r(l,u,f)}function o(l,u){if(!Ot.isUndefined(u))return r(void 0,u)}function i(l,u){if(Ot.isUndefined(u)){if(!Ot.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,f){if(f in t)return r(l,u);if(f in e)return r(void 0,l)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,u)=>a(XD(l),XD(u),!0)};return Ot.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=s[u]||a,h=f(e[u],t[u],u);Ot.isUndefined(h)&&f!==c||(n[u]=h)}),n}const YD="1.4.0",Ix={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ix[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const JD={};Ix.transitional=function(t,n,r){function a(o,i){return"[Axios v"+YD+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new Br(a(i," has been removed"+(n?" in "+n:"")),Br.ERR_DEPRECATED);return n&&!JD[i]&&(JD[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function jZ(e,t,n){if(typeof e!="object")throw new Br("options must be an object",Br.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],i=t[o];if(i){const c=e[o],s=c===void 0||i(c,o,e);if(s!==!0)throw new Br("option "+o+" must be "+s,Br.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Br("Unknown option "+o,Br.ERR_BAD_OPTION)}}const Nx={assertOptions:jZ,validators:Ix},wu=Nx.validators;class xg{constructor(t){this.defaults=t,this.interceptors={request:new jD,response:new jD}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ip(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Nx.assertOptions(r,{silentJSONParsing:wu.transitional(wu.boolean),forcedJSONParsing:wu.transitional(wu.boolean),clarifyTimeoutError:wu.transitional(wu.boolean)},!1),a!=null&&(Ot.isFunction(a)?n.paramsSerializer={serialize:a}:Nx.assertOptions(a,{encode:wu.function,serialize:wu.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&Ot.merge(o.common,o[n.method]),i&&Ot.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Il.concat(i,o);const c=[];let s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(s=s&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,f=0,h;if(!s){const v=[KD.bind(this),void 0];for(v.unshift.apply(v,c),v.push.apply(v,l),h=v.length,u=Promise.resolve(n);f<h;)u=u.then(v[f++],v[f++]);return u}h=c.length;let d=n;for(f=0;f<h;){const v=c[f++],m=c[f++];try{d=v(d)}catch(p){m.call(this,p);break}}try{u=KD.call(this,d)}catch(v){return Promise.reject(v)}for(f=0,h=l.length;f<h;)u=u.then(l[f++],l[f++]);return u}getUri(t){t=Ip(this.defaults,t);const n=WD(t.baseURL,t.url);return RD(n,t.params,t.paramsSerializer)}}Ot.forEach(["delete","get","head","options"],function(t){xg.prototype[t]=function(n,r){return this.request(Ip(r||{},{method:t,url:n,data:(r||{}).data}))}}),Ot.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(Ip(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}xg.prototype[t]=n(),xg.prototype[t+"Form"]=n(!0)});const Eg=xg;class Fx{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new jd(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Fx(function(a){t=a}),cancel:t}}}const VZ=Fx;function zZ(e){return function(n){return e.apply(null,n)}}function UZ(e){return Ot.isObject(e)&&e.isAxiosError===!0}const Mx={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Mx).forEach(([e,t])=>{Mx[t]=e});const HZ=Mx;function ZD(e){const t=new Eg(e),n=ED(Eg.prototype.request,t);return Ot.extend(n,Eg.prototype,t,{allOwnKeys:!0}),Ot.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return ZD(Ip(e,a))},n}const Yi=ZD(Px);Yi.Axios=Eg,Yi.CanceledError=jd,Yi.CancelToken=VZ,Yi.isCancel=HD,Yi.VERSION=YD,Yi.toFormData=mg,Yi.AxiosError=Br,Yi.Cancel=Yi.CanceledError,Yi.all=function(t){return Promise.all(t)},Yi.spread=zZ,Yi.isAxiosError=UZ,Yi.mergeConfig=Ip,Yi.AxiosHeaders=Il,Yi.formToJSON=e=>zD(Ot.isHTMLForm(e)?new FormData(e):e),Yi.HttpStatusCode=HZ,Yi.default=Yi;const QD=Yi,WZ=e=>{let t={};return e.map(n=>{t[n.name]=n.value}),t},GZ=e=>({moduleCache:{vue:_G},getFile(t){return Promise.resolve(e)},addStyle(t){const n=Object.assign(document.createElement("style"),{textContent:t}),r=document.head.getElementsByTagName("style")[0]||null;document.head.insertBefore(n,r)}}),qD=e=>{var n;if(!e)return null;(n=e==null?void 0:e.trim())!=null&&n.includes("<template>")||(e=`<template>${e}</template>`);const t=GZ(e);return x.defineAsyncComponent({loader:async()=>{const r=await Promise.resolve().then(()=>Woe),{loadModule:a}=r;return a("/myComponent.vue",t)}})},KZ=e=>{var r;if(!e)return"";var t=/<template>(?<templateBody>[^*]+)<\/template>/,n=t.exec(e);if(n&&(n==null?void 0:n.length)>0)try{return((r=n.groups)==null?void 0:r.templateBody)||""}catch{}return""};function za(e){var s,l,u;const t=()=>x.getCurrentInstance(),n=e||t(),r=(u=(l=(s=n==null?void 0:n.appContext)==null?void 0:s.app)==null?void 0:l.config)==null?void 0:u.globalProperties,a=r==null?void 0:r.$message,o=r==null?void 0:r.$confirm,i=r==null?void 0:r.$prompt,c=n==null?void 0:n.proxy;return{getInstance:t,instance:n,proxy:c,$message:a,$confirm:o,$prompt:i,globalProperties:r}}const XZ=function(e){return $D(window.location.href,e)},$D=function(e,t){const n=wg(e);return n==null?void 0:n[t]},YZ=e=>/^(?:%[0-9A-Fa-f]{2}|[A-Za-z0-9\-_.!~*'()]|%20)*$/.test(e),e5=function(){return wg(window.location.href)},t5=e=>{var t;return((t=e==null?void 0:e.split("?"))==null?void 0:t[0])||e||""},wg=e=>{var a;const t={};let n=(a=e==null?void 0:e.split("?"))==null?void 0:a[1],r=n==null?void 0:n.split("&");for(let o=0;o<((r==null?void 0:r.length)||0);o++){let i=r==null?void 0:r[o].split("="),c=(i==null?void 0:i[0])||"",s=(i==null?void 0:i[1])||"";YZ(s)?t[c]=decodeURIComponent(s):t[c]=s}return t},n5=(e,t,n)=>{t=Object.assign(wg(e)||{},t),e=t5(e);const r=Object.entries(t).map(([a,o])=>n===!1?`${a}=${o==null?void 0:o.toString()}`:`${encodeURIComponent(a)}=${encodeURIComponent(o==null?void 0:o.toString())}`).join("&");return r?`${e}?${r}`:e},JZ=e=>n5(e,e5()),r5=e=>{try{return new URL(e),!0}catch{return!1}},ZZ=()=>{location.reload()},QZ=()=>{function e(s,l,u="",f=!1){const h=S=>{const[A,P=""]=S.split("#",2),[C,D=""]=A.split("?",2);return{path:C.replace(/^#/,"").replace(/\/+$/,""),searchParams:new URLSearchParams(D),hashFragment:P}},d=h(s),v=h(l),m=f?new URLSearchParams(d.searchParams):new URLSearchParams;v.searchParams.forEach((S,A)=>{m.set(A,S)});const p=(S,A)=>{const P=S.split("/").filter(Boolean),C=A.split("/").filter(Boolean);for(const D of C)D!=="."&&(D===".."?P.length>0&&P.pop():P.push(D));return`/${P.join("/")}`},y=((S,A)=>A.startsWith("/")?`/${A.replace(/^\/+/,"")}`:p(S,v.path))(d.path,v.path),b=m.toString(),E=`${`${y}${b?`?${b}`:""}`}${v.hashFragment?`#${v.hashFragment}`:""}`;return(a()?`/${u}#/${E}`:E).replace(/\/+/g,"/").replace(/^#\//,"#").replace(/%20/g,"+").replace(/[?#]/g,S=>S)}function t(s,l,u=""){return e(l,s,u)}const n=()=>window.location.hash,r=()=>window.location.pathname,a=()=>!!n();function o(s){const l=new URL(s);return l.pathname=l.pathname.replace(/\/{2,}/g,"/"),l.toString()}const i=s=>{const l="/";var u=window.location.href,[f]=u.split(/\/[^/]*#\//g,2);return[f,s].join(l)};return{resolveByCurrentUrl:(s,l="")=>{var f;if(r5(s))return s;const u=t(s,((f=n())==null?void 0:f.substring(1))||r(),l);return o(i(u))}}},{resolveByCurrentUrl:qZ}=QZ(),Nl={buildUrl:n5,getBaseUrl:t5,getQueryParam:$D,getLocationQueryParam:XZ,getQueryParams:wg,getLocationQueryParams:e5,buildUrlByLocalQuery:JZ,isUrl:r5,refresh:ZZ,resolveByCurrentUrl:qZ};class Lx{constructor(){z(this,"type","ok");z(this,"body")}}class $Z{constructor(t){z(this,"_app");this._app=t}open(t,n,r){if(!this._app)return;const a=document.createElement("div");document.body.appendChild(a);const o=()=>{document.body.removeChild(a)},i=x.h(t,{...n,onOk:c=>{r==null||r(this.ok({props:c,destroyDialog:o}))},onCancel:c=>{r==null||r(this.cancel({props:c,destroyDialog:o}))},onClose:c=>{r==null||r(this.close({props:c,destroyDialog:o}))}});i.appContext=this._app._context,x.render(i,a)}ok(t){const n=new Lx;return n.type="ok",n.body=t,n}cancel(t){const n=new Lx;return n.type="cancel",n.body=t,n}close(t){const n=new Lx;return n.type="close",n.body=t,n}}function eQ(e){var n,r,a,o;var t=(o=(a=(r=(n=e==null?void 0:e.appContext)==null?void 0:n.app)==null?void 0:r.config)==null?void 0:a.globalProperties)==null?void 0:o.$dzModal;if(!t)throw new Error("No DzModal installed");return t}const tQ={install(e,t){const n=new $Z(e);e.config.globalProperties.$dzModal=n}},nQ=x.defineAsyncComponent(()=>Promise.resolve().then(()=>MO));class rQ{constructor(){z(this,"fullscreen",{type:Boolean,default:!1});z(this,"width",{type:String});z(this,"height",{type:String});z(this,"title",{type:String});z(this,"url",{type:String});z(this,"dialogType",{type:Array});z(this,"callback",{type:Object})}}const iQ=new rQ,i5=(e,t)=>{const n=eQ(e);n==null||n.open(nQ,t,r=>{var c,s;const a=jt(t==null?void 0:t.callback),o=r.body,i=()=>{var l;(l=o==null?void 0:o.destroyDialog)==null||l.call(o)};r.type==="ok"?(c=a==null?void 0:a.okCallback)==null||c.call(a,{data:r.body}).then(l=>{i()}):r.type==="cancel"?(s=a==null?void 0:a.cancelCallback)==null||s.call(a,{data:r.body}).then(l=>{i()}):r.type==="close"&&i()})};class go{static findUp(t,n,r={includeSelf:!0}){try{let a=t;for(;a;){if((r.includeSelf||a!==t)&&a.name===n)return{window:a,iframe:a.frameElement};const o=a.frameElement;if((o==null?void 0:o.id)===n)return{window:a,iframe:o};if(a===a.parent)break;a=a.parent}return null}catch(a){return console.warn("findWindowUp",a),null}}static findDown(t,n){try{if(t.name===n)return{window:t,iframe:t.frameElement};if(t.frames)for(let r=0;r<t.frames.length;r++){const a=t.frames[r],o=a.frameElement;if((o==null?void 0:o.id)===n)return{window:a,iframe:o};const i=go.findDown(a,n);if(i)return i}return null}catch(r){return console.warn("findWindowDown",r),null}}static find(t,n,r="both"){const a=go.findByIframeId(n,t);if(a)return a;if(r==="up"||r==="both"){const o=go.findUp(t,n);if(o)return o}if(r==="down"||r==="both"){const o=go.findDown(t,n);if(o)return o}if(r==="both"){const o=go.findDown(this.findTop(t),n);if(o)return o}return null}static findByIframeId(t,n=window){var a;const r=(a=n==null?void 0:n.document)==null?void 0:a.getElementById(t);return r?{window:r==null?void 0:r.contentWindow,iframe:r}:null}static findTop(t=window){try{let n=t;for(;n!==n.parent;)n=n.parent;return n}catch{return t}}}const Sg=(e,t)=>e?(e.postMessage(Zr(t),"*"),!0):!1,aQ=(e,t)=>{const n=go.find(window,e);if(n)return Sg(n.window,t)},oQ=(e,t)=>Sg(e==null?void 0:e.contentWindow,t),sQ=e=>Sg(window.parent,e),lQ=(e,t=!1)=>{const n=r=>{e==null||e(r),t&&window.removeEventListener("message",n)};window.addEventListener("message",n)};function a5(){return{send:Sg,receive:lQ,sendToIframe:oQ,sendToIframeByName:aQ,sendToParent:sQ}}var Np={},uQ={get exports(){return Np},set exports(e){Np=e}};(function(e,t){(function(){var n,r=0xdeadbeefcafe,a=(r&16777215)==15715070;function o(we,ke,je){we!=null&&(typeof we=="number"?this.fromNumber(we,ke,je):ke==null&&typeof we!="string"?this.fromString(we,256):this.fromString(we,ke))}function i(){return new o(null)}function c(we,ke,je,nt,Dt,Lt){for(;--Lt>=0;){var sn=ke*this[we++]+je[nt]+Dt;Dt=Math.floor(sn/67108864),je[nt++]=sn&67108863}return Dt}function s(we,ke,je,nt,Dt,Lt){for(var sn=ke&32767,fn=ke>>15;--Lt>=0;){var Vr=this[we]&32767,si=this[we++]>>15,wa=fn*Vr+si*sn;Vr=sn*Vr+((wa&32767)<<15)+je[nt]+(Dt&1073741823),Dt=(Vr>>>30)+(wa>>>15)+fn*si+(Dt>>>30),je[nt++]=Vr&1073741823}return Dt}function l(we,ke,je,nt,Dt,Lt){for(var sn=ke&16383,fn=ke>>14;--Lt>=0;){var Vr=this[we]&16383,si=this[we++]>>14,wa=fn*Vr+si*sn;Vr=sn*Vr+((wa&16383)<<14)+je[nt]+Dt,Dt=(Vr>>28)+(wa>>14)+fn*si,je[nt++]=Vr&268435455}return Dt}var u=typeof navigator<"u";u&&a&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=s,n=30):u&&a&&navigator.appName!="Netscape"?(o.prototype.am=c,n=26):(o.prototype.am=l,n=28),o.prototype.DB=n,o.prototype.DM=(1<<n)-1,o.prototype.DV=1<<n;var f=52;o.prototype.FV=Math.pow(2,f),o.prototype.F1=f-n,o.prototype.F2=2*n-f;var h="0123456789abcdefghijklmnopqrstuvwxyz",d=new Array,v,m;for(v="0".charCodeAt(0),m=0;m<=9;++m)d[v++]=m;for(v="a".charCodeAt(0),m=10;m<36;++m)d[v++]=m;for(v="A".charCodeAt(0),m=10;m<36;++m)d[v++]=m;function p(we){return h.charAt(we)}function g(we,ke){var je=d[we.charCodeAt(ke)];return je??-1}function y(we){for(var ke=this.t-1;ke>=0;--ke)we[ke]=this[ke];we.t=this.t,we.s=this.s}function b(we){this.t=1,this.s=we<0?-1:0,we>0?this[0]=we:we<-1?this[0]=we+this.DV:this.t=0}function _(we){var ke=i();return ke.fromInt(we),ke}function E(we,ke){var je;if(ke==16)je=4;else if(ke==8)je=3;else if(ke==256)je=8;else if(ke==2)je=1;else if(ke==32)je=5;else if(ke==4)je=2;else{this.fromRadix(we,ke);return}this.t=0,this.s=0;for(var nt=we.length,Dt=!1,Lt=0;--nt>=0;){var sn=je==8?we[nt]&255:g(we,nt);if(sn<0){we.charAt(nt)=="-"&&(Dt=!0);continue}Dt=!1,Lt==0?this[this.t++]=sn:Lt+je>this.DB?(this[this.t-1]|=(sn&(1<<this.DB-Lt)-1)<<Lt,this[this.t++]=sn>>this.DB-Lt):this[this.t-1]|=sn<<Lt,Lt+=je,Lt>=this.DB&&(Lt-=this.DB)}je==8&&we[0]&128&&(this.s=-1,Lt>0&&(this[this.t-1]|=(1<<this.DB-Lt)-1<<Lt)),this.clamp(),Dt&&o.ZERO.subTo(this,this)}function w(){for(var we=this.s&this.DM;this.t>0&&this[this.t-1]==we;)--this.t}function S(we){if(this.s<0)return"-"+this.negate().toString(we);var ke;if(we==16)ke=4;else if(we==8)ke=3;else if(we==2)ke=1;else if(we==32)ke=5;else if(we==4)ke=2;else return this.toRadix(we);var je=(1<<ke)-1,nt,Dt=!1,Lt="",sn=this.t,fn=this.DB-sn*this.DB%ke;if(sn-- >0)for(fn<this.DB&&(nt=this[sn]>>fn)>0&&(Dt=!0,Lt=p(nt));sn>=0;)fn<ke?(nt=(this[sn]&(1<<fn)-1)<<ke-fn,nt|=this[--sn]>>(fn+=this.DB-ke)):(nt=this[sn]>>(fn-=ke)&je,fn<=0&&(fn+=this.DB,--sn)),nt>0&&(Dt=!0),Dt&&(Lt+=p(nt));return Dt?Lt:"0"}function A(){var we=i();return o.ZERO.subTo(this,we),we}function P(){return this.s<0?this.negate():this}function C(we){var ke=this.s-we.s;if(ke!=0)return ke;var je=this.t;if(ke=je-we.t,ke!=0)return this.s<0?-ke:ke;for(;--je>=0;)if((ke=this[je]-we[je])!=0)return ke;return 0}function D(we){var ke=1,je;return(je=we>>>16)!=0&&(we=je,ke+=16),(je=we>>8)!=0&&(we=je,ke+=8),(je=we>>4)!=0&&(we=je,ke+=4),(je=we>>2)!=0&&(we=je,ke+=2),(je=we>>1)!=0&&(we=je,ke+=1),ke}function k(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)}function O(we,ke){var je;for(je=this.t-1;je>=0;--je)ke[je+we]=this[je];for(je=we-1;je>=0;--je)ke[je]=0;ke.t=this.t+we,ke.s=this.s}function I(we,ke){for(var je=we;je<this.t;++je)ke[je-we]=this[je];ke.t=Math.max(this.t-we,0),ke.s=this.s}function N(we,ke){var je=we%this.DB,nt=this.DB-je,Dt=(1<<nt)-1,Lt=Math.floor(we/this.DB),sn=this.s<<je&this.DM,fn;for(fn=this.t-1;fn>=0;--fn)ke[fn+Lt+1]=this[fn]>>nt|sn,sn=(this[fn]&Dt)<<je;for(fn=Lt-1;fn>=0;--fn)ke[fn]=0;ke[Lt]=sn,ke.t=this.t+Lt+1,ke.s=this.s,ke.clamp()}function F(we,ke){ke.s=this.s;var je=Math.floor(we/this.DB);if(je>=this.t){ke.t=0;return}var nt=we%this.DB,Dt=this.DB-nt,Lt=(1<<nt)-1;ke[0]=this[je]>>nt;for(var sn=je+1;sn<this.t;++sn)ke[sn-je-1]|=(this[sn]&Lt)<<Dt,ke[sn-je]=this[sn]>>nt;nt>0&&(ke[this.t-je-1]|=(this.s&Lt)<<Dt),ke.t=this.t-je,ke.clamp()}function R(we,ke){for(var je=0,nt=0,Dt=Math.min(we.t,this.t);je<Dt;)nt+=this[je]-we[je],ke[je++]=nt&this.DM,nt>>=this.DB;if(we.t<this.t){for(nt-=we.s;je<this.t;)nt+=this[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt+=this.s}else{for(nt+=this.s;je<we.t;)nt-=we[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt-=we.s}ke.s=nt<0?-1:0,nt<-1?ke[je++]=this.DV+nt:nt>0&&(ke[je++]=nt),ke.t=je,ke.clamp()}function M(we,ke){var je=this.abs(),nt=we.abs(),Dt=je.t;for(ke.t=Dt+nt.t;--Dt>=0;)ke[Dt]=0;for(Dt=0;Dt<nt.t;++Dt)ke[Dt+je.t]=je.am(0,nt[Dt],ke,Dt,0,je.t);ke.s=0,ke.clamp(),this.s!=we.s&&o.ZERO.subTo(ke,ke)}function j(we){for(var ke=this.abs(),je=we.t=2*ke.t;--je>=0;)we[je]=0;for(je=0;je<ke.t-1;++je){var nt=ke.am(je,ke[je],we,2*je,0,1);(we[je+ke.t]+=ke.am(je+1,2*ke[je],we,2*je+1,nt,ke.t-je-1))>=ke.DV&&(we[je+ke.t]-=ke.DV,we[je+ke.t+1]=1)}we.t>0&&(we[we.t-1]+=ke.am(je,ke[je],we,2*je,0,1)),we.s=0,we.clamp()}function W(we,ke,je){var nt=we.abs();if(!(nt.t<=0)){var Dt=this.abs();if(Dt.t<nt.t){ke!=null&&ke.fromInt(0),je!=null&&this.copyTo(je);return}je==null&&(je=i());var Lt=i(),sn=this.s,fn=we.s,Vr=this.DB-D(nt[nt.t-1]);Vr>0?(nt.lShiftTo(Vr,Lt),Dt.lShiftTo(Vr,je)):(nt.copyTo(Lt),Dt.copyTo(je));var si=Lt.t,wa=Lt[si-1];if(wa!=0){var ea=wa*(1<<this.F1)+(si>1?Lt[si-2]>>this.F2:0),Cn=this.FV/ea,An=(1<<this.F1)/ea,Bi=1<<this.F2,Ei=je.t,du=Ei-si,ta=ke??i();for(Lt.dlShiftTo(du,ta),je.compareTo(ta)>=0&&(je[je.t++]=1,je.subTo(ta,je)),o.ONE.dlShiftTo(si,ta),ta.subTo(Lt,Lt);Lt.t<si;)Lt[Lt.t++]=0;for(;--du>=0;){var Dc=je[--Ei]==wa?this.DM:Math.floor(je[Ei]*Cn+(je[Ei-1]+Bi)*An);if((je[Ei]+=Lt.am(0,Dc,je,du,0,si))<Dc)for(Lt.dlShiftTo(du,ta),je.subTo(ta,je);je[Ei]<--Dc;)je.subTo(ta,je)}ke!=null&&(je.drShiftTo(si,ke),sn!=fn&&o.ZERO.subTo(ke,ke)),je.t=si,je.clamp(),Vr>0&&je.rShiftTo(Vr,je),sn<0&&o.ZERO.subTo(je,je)}}}function L(we){var ke=i();return this.abs().divRemTo(we,null,ke),this.s<0&&ke.compareTo(o.ZERO)>0&&we.subTo(ke,ke),ke}function U(we){this.m=we}function K(we){return we.s<0||we.compareTo(this.m)>=0?we.mod(this.m):we}function J(we){return we}function Q(we){we.divRemTo(this.m,null,we)}function q(we,ke,je){we.multiplyTo(ke,je),this.reduce(je)}function ue(we,ke){we.squareTo(ke),this.reduce(ke)}U.prototype.convert=K,U.prototype.revert=J,U.prototype.reduce=Q,U.prototype.mulTo=q,U.prototype.sqrTo=ue;function te(){if(this.t<1)return 0;var we=this[0];if(!(we&1))return 0;var ke=we&3;return ke=ke*(2-(we&15)*ke)&15,ke=ke*(2-(we&255)*ke)&255,ke=ke*(2-((we&65535)*ke&65535))&65535,ke=ke*(2-we*ke%this.DV)%this.DV,ke>0?this.DV-ke:-ke}function ne(we){this.m=we,this.mp=we.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<we.DB-15)-1,this.mt2=2*we.t}function ie(we){var ke=i();return we.abs().dlShiftTo(this.m.t,ke),ke.divRemTo(this.m,null,ke),we.s<0&&ke.compareTo(o.ZERO)>0&&this.m.subTo(ke,ke),ke}function de(we){var ke=i();return we.copyTo(ke),this.reduce(ke),ke}function G(we){for(;we.t<=this.mt2;)we[we.t++]=0;for(var ke=0;ke<this.m.t;++ke){var je=we[ke]&32767,nt=je*this.mpl+((je*this.mph+(we[ke]>>15)*this.mpl&this.um)<<15)&we.DM;for(je=ke+this.m.t,we[je]+=this.m.am(0,nt,we,ke,0,this.m.t);we[je]>=we.DV;)we[je]-=we.DV,we[++je]++}we.clamp(),we.drShiftTo(this.m.t,we),we.compareTo(this.m)>=0&&we.subTo(this.m,we)}function Z(we,ke){we.squareTo(ke),this.reduce(ke)}function re(we,ke,je){we.multiplyTo(ke,je),this.reduce(je)}ne.prototype.convert=ie,ne.prototype.revert=de,ne.prototype.reduce=G,ne.prototype.mulTo=re,ne.prototype.sqrTo=Z;function ce(){return(this.t>0?this[0]&1:this.s)==0}function fe(we,ke){if(we>4294967295||we<1)return o.ONE;var je=i(),nt=i(),Dt=ke.convert(this),Lt=D(we)-1;for(Dt.copyTo(je);--Lt>=0;)if(ke.sqrTo(je,nt),(we&1<<Lt)>0)ke.mulTo(nt,Dt,je);else{var sn=je;je=nt,nt=sn}return ke.revert(je)}function me(we,ke){var je;return we<256||ke.isEven()?je=new U(ke):je=new ne(ke),this.exp(we,je)}o.prototype.copyTo=y,o.prototype.fromInt=b,o.prototype.fromString=E,o.prototype.clamp=w,o.prototype.dlShiftTo=O,o.prototype.drShiftTo=I,o.prototype.lShiftTo=N,o.prototype.rShiftTo=F,o.prototype.subTo=R,o.prototype.multiplyTo=M,o.prototype.squareTo=j,o.prototype.divRemTo=W,o.prototype.invDigit=te,o.prototype.isEven=ce,o.prototype.exp=fe,o.prototype.toString=S,o.prototype.negate=A,o.prototype.abs=P,o.prototype.compareTo=C,o.prototype.bitLength=k,o.prototype.mod=L,o.prototype.modPowInt=me,o.ZERO=_(0),o.ONE=_(1);function pe(){var we=i();return this.copyTo(we),we}function Ee(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function Te(){return this.t==0?this.s:this[0]<<24>>24}function Ne(){return this.t==0?this.s:this[0]<<16>>16}function Re(we){return Math.floor(Math.LN2*this.DB/Math.log(we))}function X(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Y(we){if(we==null&&(we=10),this.signum()==0||we<2||we>36)return"0";var ke=this.chunkSize(we),je=Math.pow(we,ke),nt=_(je),Dt=i(),Lt=i(),sn="";for(this.divRemTo(nt,Dt,Lt);Dt.signum()>0;)sn=(je+Lt.intValue()).toString(we).substr(1)+sn,Dt.divRemTo(nt,Dt,Lt);return Lt.intValue().toString(we)+sn}function ee(we,ke){this.fromInt(0),ke==null&&(ke=10);for(var je=this.chunkSize(ke),nt=Math.pow(ke,je),Dt=!1,Lt=0,sn=0,fn=0;fn<we.length;++fn){var Vr=g(we,fn);if(Vr<0){we.charAt(fn)=="-"&&this.signum()==0&&(Dt=!0);continue}sn=ke*sn+Vr,++Lt>=je&&(this.dMultiply(nt),this.dAddOffset(sn,0),Lt=0,sn=0)}Lt>0&&(this.dMultiply(Math.pow(ke,Lt)),this.dAddOffset(sn,0)),Dt&&o.ZERO.subTo(this,this)}function ve(we,ke,je){if(typeof ke=="number")if(we<2)this.fromInt(1);else for(this.fromNumber(we,je),this.testBit(we-1)||this.bitwiseTo(o.ONE.shiftLeft(we-1),it,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(ke);)this.dAddOffset(2,0),this.bitLength()>we&&this.subTo(o.ONE.shiftLeft(we-1),this);else{var nt=new Array,Dt=we&7;nt.length=(we>>3)+1,ke.nextBytes(nt),Dt>0?nt[0]&=(1<<Dt)-1:nt[0]=0,this.fromString(nt,256)}}function Ce(){var we=this.t,ke=new Array;ke[0]=this.s;var je=this.DB-we*this.DB%8,nt,Dt=0;if(we-- >0)for(je<this.DB&&(nt=this[we]>>je)!=(this.s&this.DM)>>je&&(ke[Dt++]=nt|this.s<<this.DB-je);we>=0;)je<8?(nt=(this[we]&(1<<je)-1)<<8-je,nt|=this[--we]>>(je+=this.DB-8)):(nt=this[we]>>(je-=8)&255,je<=0&&(je+=this.DB,--we)),nt&128&&(nt|=-256),Dt==0&&(this.s&128)!=(nt&128)&&++Dt,(Dt>0||nt!=this.s)&&(ke[Dt++]=nt);return ke}function Oe(we){return this.compareTo(we)==0}function Ie(we){return this.compareTo(we)<0?this:we}function Be(we){return this.compareTo(we)>0?this:we}function We(we,ke,je){var nt,Dt,Lt=Math.min(we.t,this.t);for(nt=0;nt<Lt;++nt)je[nt]=ke(this[nt],we[nt]);if(we.t<this.t){for(Dt=we.s&this.DM,nt=Lt;nt<this.t;++nt)je[nt]=ke(this[nt],Dt);je.t=this.t}else{for(Dt=this.s&this.DM,nt=Lt;nt<we.t;++nt)je[nt]=ke(Dt,we[nt]);je.t=we.t}je.s=ke(this.s,we.s),je.clamp()}function ze(we,ke){return we&ke}function Xe(we){var ke=i();return this.bitwiseTo(we,ze,ke),ke}function it(we,ke){return we|ke}function Bt(we){var ke=i();return this.bitwiseTo(we,it,ke),ke}function yt(we,ke){return we^ke}function Rt(we){var ke=i();return this.bitwiseTo(we,yt,ke),ke}function kt(we,ke){return we&~ke}function At(we){var ke=i();return this.bitwiseTo(we,kt,ke),ke}function ft(){for(var we=i(),ke=0;ke<this.t;++ke)we[ke]=this.DM&~this[ke];return we.t=this.t,we.s=~this.s,we}function Sn(we){var ke=i();return we<0?this.rShiftTo(-we,ke):this.lShiftTo(we,ke),ke}function rt(we){var ke=i();return we<0?this.lShiftTo(-we,ke):this.rShiftTo(we,ke),ke}function lt(we){if(we==0)return-1;var ke=0;return we&65535||(we>>=16,ke+=16),we&255||(we>>=8,ke+=8),we&15||(we>>=4,ke+=4),we&3||(we>>=2,ke+=2),we&1||++ke,ke}function ae(){for(var we=0;we<this.t;++we)if(this[we]!=0)return we*this.DB+lt(this[we]);return this.s<0?this.t*this.DB:-1}function Pe(we){for(var ke=0;we!=0;)we&=we-1,++ke;return ke}function Ae(){for(var we=0,ke=this.s&this.DM,je=0;je<this.t;++je)we+=Pe(this[je]^ke);return we}function Fe(we){var ke=Math.floor(we/this.DB);return ke>=this.t?this.s!=0:(this[ke]&1<<we%this.DB)!=0}function Ue(we,ke){var je=o.ONE.shiftLeft(we);return this.bitwiseTo(je,ke,je),je}function ut(we){return this.changeBit(we,it)}function Et(we){return this.changeBit(we,kt)}function It(we){return this.changeBit(we,yt)}function Kt(we,ke){for(var je=0,nt=0,Dt=Math.min(we.t,this.t);je<Dt;)nt+=this[je]+we[je],ke[je++]=nt&this.DM,nt>>=this.DB;if(we.t<this.t){for(nt+=we.s;je<this.t;)nt+=this[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt+=this.s}else{for(nt+=this.s;je<we.t;)nt+=we[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt+=we.s}ke.s=nt<0?-1:0,nt>0?ke[je++]=nt:nt<-1&&(ke[je++]=this.DV+nt),ke.t=je,ke.clamp()}function Pn(we){var ke=i();return this.addTo(we,ke),ke}function gr(we){var ke=i();return this.subTo(we,ke),ke}function oi(we){var ke=i();return this.multiplyTo(we,ke),ke}function jr(){var we=i();return this.squareTo(we),we}function yr(we){var ke=i();return this.divRemTo(we,ke,null),ke}function sa(we){var ke=i();return this.divRemTo(we,null,ke),ke}function kr(we){var ke=i(),je=i();return this.divRemTo(we,ke,je),new Array(ke,je)}function zi(we){this[this.t]=this.am(0,we-1,this,0,0,this.t),++this.t,this.clamp()}function vo(we,ke){if(we!=0){for(;this.t<=ke;)this[this.t++]=0;for(this[ke]+=we;this[ke]>=this.DV;)this[ke]-=this.DV,++ke>=this.t&&(this[this.t++]=0),++this[ke]}}function ei(){}function no(we){return we}function Oo(we,ke,je){we.multiplyTo(ke,je)}function ja(we,ke){we.squareTo(ke)}ei.prototype.convert=no,ei.prototype.revert=no,ei.prototype.mulTo=Oo,ei.prototype.sqrTo=ja;function bs(we){return this.exp(we,new ei)}function ct(we,ke,je){var nt=Math.min(this.t+we.t,ke);for(je.s=0,je.t=nt;nt>0;)je[--nt]=0;var Dt;for(Dt=je.t-this.t;nt<Dt;++nt)je[nt+this.t]=this.am(0,we[nt],je,nt,0,this.t);for(Dt=Math.min(we.t,ke);nt<Dt;++nt)this.am(0,we[nt],je,nt,0,ke-nt);je.clamp()}function T(we,ke,je){--ke;var nt=je.t=this.t+we.t-ke;for(je.s=0;--nt>=0;)je[nt]=0;for(nt=Math.max(ke-this.t,0);nt<we.t;++nt)je[this.t+nt-ke]=this.am(ke-nt,we[nt],je,0,0,this.t+nt-ke);je.clamp(),je.drShiftTo(1,je)}function B(we){this.r2=i(),this.q3=i(),o.ONE.dlShiftTo(2*we.t,this.r2),this.mu=this.r2.divide(we),this.m=we}function V(we){if(we.s<0||we.t>2*this.m.t)return we.mod(this.m);if(we.compareTo(this.m)<0)return we;var ke=i();return we.copyTo(ke),this.reduce(ke),ke}function H(we){return we}function $(we){for(we.drShiftTo(this.m.t-1,this.r2),we.t>this.m.t+1&&(we.t=this.m.t+1,we.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);we.compareTo(this.r2)<0;)we.dAddOffset(1,this.m.t+1);for(we.subTo(this.r2,we);we.compareTo(this.m)>=0;)we.subTo(this.m,we)}function he(we,ke){we.squareTo(ke),this.reduce(ke)}function Se(we,ke,je){we.multiplyTo(ke,je),this.reduce(je)}B.prototype.convert=V,B.prototype.revert=H,B.prototype.reduce=$,B.prototype.mulTo=Se,B.prototype.sqrTo=he;function Le(we,ke){var je=we.bitLength(),nt,Dt=_(1),Lt;if(je<=0)return Dt;je<18?nt=1:je<48?nt=3:je<144?nt=4:je<768?nt=5:nt=6,je<8?Lt=new U(ke):ke.isEven()?Lt=new B(ke):Lt=new ne(ke);var sn=new Array,fn=3,Vr=nt-1,si=(1<<nt)-1;if(sn[1]=Lt.convert(this),nt>1){var wa=i();for(Lt.sqrTo(sn[1],wa);fn<=si;)sn[fn]=i(),Lt.mulTo(wa,sn[fn-2],sn[fn]),fn+=2}var ea=we.t-1,Cn,An=!0,Bi=i(),Ei;for(je=D(we[ea])-1;ea>=0;){for(je>=Vr?Cn=we[ea]>>je-Vr&si:(Cn=(we[ea]&(1<<je+1)-1)<<Vr-je,ea>0&&(Cn|=we[ea-1]>>this.DB+je-Vr)),fn=nt;!(Cn&1);)Cn>>=1,--fn;if((je-=fn)<0&&(je+=this.DB,--ea),An)sn[Cn].copyTo(Dt),An=!1;else{for(;fn>1;)Lt.sqrTo(Dt,Bi),Lt.sqrTo(Bi,Dt),fn-=2;fn>0?Lt.sqrTo(Dt,Bi):(Ei=Dt,Dt=Bi,Bi=Ei),Lt.mulTo(Bi,sn[Cn],Dt)}for(;ea>=0&&!(we[ea]&1<<je);)Lt.sqrTo(Dt,Bi),Ei=Dt,Dt=Bi,Bi=Ei,--je<0&&(je=this.DB-1,--ea)}return Lt.revert(Dt)}function Je(we){var ke=this.s<0?this.negate():this.clone(),je=we.s<0?we.negate():we.clone();if(ke.compareTo(je)<0){var nt=ke;ke=je,je=nt}var Dt=ke.getLowestSetBit(),Lt=je.getLowestSetBit();if(Lt<0)return ke;for(Dt<Lt&&(Lt=Dt),Lt>0&&(ke.rShiftTo(Lt,ke),je.rShiftTo(Lt,je));ke.signum()>0;)(Dt=ke.getLowestSetBit())>0&&ke.rShiftTo(Dt,ke),(Dt=je.getLowestSetBit())>0&&je.rShiftTo(Dt,je),ke.compareTo(je)>=0?(ke.subTo(je,ke),ke.rShiftTo(1,ke)):(je.subTo(ke,je),je.rShiftTo(1,je));return Lt>0&&je.lShiftTo(Lt,je),je}function et(we){if(we<=0)return 0;var ke=this.DV%we,je=this.s<0?we-1:0;if(this.t>0)if(ke==0)je=this[0]%we;else for(var nt=this.t-1;nt>=0;--nt)je=(ke*je+this[nt])%we;return je}function gt(we){var ke=we.isEven();if(this.isEven()&&ke||we.signum()==0)return o.ZERO;for(var je=we.clone(),nt=this.clone(),Dt=_(1),Lt=_(0),sn=_(0),fn=_(1);je.signum()!=0;){for(;je.isEven();)je.rShiftTo(1,je),ke?((!Dt.isEven()||!Lt.isEven())&&(Dt.addTo(this,Dt),Lt.subTo(we,Lt)),Dt.rShiftTo(1,Dt)):Lt.isEven()||Lt.subTo(we,Lt),Lt.rShiftTo(1,Lt);for(;nt.isEven();)nt.rShiftTo(1,nt),ke?((!sn.isEven()||!fn.isEven())&&(sn.addTo(this,sn),fn.subTo(we,fn)),sn.rShiftTo(1,sn)):fn.isEven()||fn.subTo(we,fn),fn.rShiftTo(1,fn);je.compareTo(nt)>=0?(je.subTo(nt,je),ke&&Dt.subTo(sn,Dt),Lt.subTo(fn,Lt)):(nt.subTo(je,nt),ke&&sn.subTo(Dt,sn),fn.subTo(Lt,fn))}if(nt.compareTo(o.ONE)!=0)return o.ZERO;if(fn.compareTo(we)>=0)return fn.subtract(we);if(fn.signum()<0)fn.addTo(we,fn);else return fn;return fn.signum()<0?fn.add(we):fn}var dt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ct=(1<<26)/dt[dt.length-1];function rn(we){var ke,je=this.abs();if(je.t==1&&je[0]<=dt[dt.length-1]){for(ke=0;ke<dt.length;++ke)if(je[0]==dt[ke])return!0;return!1}if(je.isEven())return!1;for(ke=1;ke<dt.length;){for(var nt=dt[ke],Dt=ke+1;Dt<dt.length&&nt<Ct;)nt*=dt[Dt++];for(nt=je.modInt(nt);ke<Dt;)if(nt%dt[ke++]==0)return!1}return je.millerRabin(we)}function vn(we){var ke=this.subtract(o.ONE),je=ke.getLowestSetBit();if(je<=0)return!1;var nt=ke.shiftRight(je);we=we+1>>1,we>dt.length&&(we=dt.length);for(var Dt=i(),Lt=0;Lt<we;++Lt){Dt.fromInt(dt[Math.floor(Math.random()*dt.length)]);var sn=Dt.modPow(nt,this);if(sn.compareTo(o.ONE)!=0&&sn.compareTo(ke)!=0){for(var fn=1;fn++<je&&sn.compareTo(ke)!=0;)if(sn=sn.modPowInt(2,this),sn.compareTo(o.ONE)==0)return!1;if(sn.compareTo(ke)!=0)return!1}}return!0}o.prototype.chunkSize=Re,o.prototype.toRadix=Y,o.prototype.fromRadix=ee,o.prototype.fromNumber=ve,o.prototype.bitwiseTo=We,o.prototype.changeBit=Ue,o.prototype.addTo=Kt,o.prototype.dMultiply=zi,o.prototype.dAddOffset=vo,o.prototype.multiplyLowerTo=ct,o.prototype.multiplyUpperTo=T,o.prototype.modInt=et,o.prototype.millerRabin=vn,o.prototype.clone=pe,o.prototype.intValue=Ee,o.prototype.byteValue=Te,o.prototype.shortValue=Ne,o.prototype.signum=X,o.prototype.toByteArray=Ce,o.prototype.equals=Oe,o.prototype.min=Ie,o.prototype.max=Be,o.prototype.and=Xe,o.prototype.or=Bt,o.prototype.xor=Rt,o.prototype.andNot=At,o.prototype.not=ft,o.prototype.shiftLeft=Sn,o.prototype.shiftRight=rt,o.prototype.getLowestSetBit=ae,o.prototype.bitCount=Ae,o.prototype.testBit=Fe,o.prototype.setBit=ut,o.prototype.clearBit=Et,o.prototype.flipBit=It,o.prototype.add=Pn,o.prototype.subtract=gr,o.prototype.multiply=oi,o.prototype.divide=yr,o.prototype.remainder=sa,o.prototype.divideAndRemainder=kr,o.prototype.modPow=Le,o.prototype.modInverse=gt,o.prototype.pow=bs,o.prototype.gcd=Je,o.prototype.isProbablePrime=rn,o.prototype.square=jr,o.prototype.Barrett=B;var Gt,Jt,bn;function Wn(we){Jt[bn++]^=we&255,Jt[bn++]^=we>>8&255,Jt[bn++]^=we>>16&255,Jt[bn++]^=we>>24&255,bn>=Pt&&(bn-=Pt)}function _r(){Wn(new Date().getTime())}if(Jt==null){Jt=new Array,bn=0;var br;if(typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var ti=new Uint8Array(32);for(window.crypto.getRandomValues(ti),br=0;br<32;++br)Jt[bn++]=ti[br]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ht=window.crypto.random(32);for(br=0;br<ht.length;++br)Jt[bn++]=ht.charCodeAt(br)&255}}for(;bn<Pt;)br=Math.floor(65536*Math.random()),Jt[bn++]=br>>>8,Jt[bn++]=br&255;bn=0,_r()}function $t(){if(Gt==null){for(_r(),Gt=bt(),Gt.init(Jt),bn=0;bn<Jt.length;++bn)Jt[bn]=0;bn=0}return Gt.next()}function cn(we){var ke;for(ke=0;ke<we.length;++ke)we[ke]=$t()}function le(){}le.prototype.nextBytes=cn;function _e(){this.i=0,this.j=0,this.S=new Array}function Ve(we){var ke,je,nt;for(ke=0;ke<256;++ke)this.S[ke]=ke;for(je=0,ke=0;ke<256;++ke)je=je+this.S[ke]+we[ke%we.length]&255,nt=this.S[ke],this.S[ke]=this.S[je],this.S[je]=nt;this.i=0,this.j=0}function qe(){var we;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,we=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=we,this.S[we+this.S[this.i]&255]}_e.prototype.init=Ve,_e.prototype.next=qe;function bt(){return new _e}var Pt=256;e.exports={default:o,BigInteger:o,SecureRandom:le}}).call(Jn)})(uQ);const{BigInteger:Fp}=Np;function cQ(e){let t=e.toString(16);if(t[0]!=="-")t.length%2===1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{t=t.substr(1);let n=t.length;n%2===1?n+=1:t.match(/^[0-7]/)||(n+=2);let r="";for(let a=0;a<n;a++)r+="f";r=new Fp(r,16),t=r.xor(e).add(Fp.ONE),t=t.toString(16).replace(/^-/,"")}return t}class o5{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const t=this.v.length/2;let n=t.toString(16);return n.length%2===1&&(n="0"+n),t<128?n:(128+n.length/2).toString(16)+n}getValue(){return""}}class s5 extends o5{constructor(t){super(),this.t="02",t&&(this.v=cQ(t))}getValue(){return this.v}}class fQ extends o5{constructor(t){super(),this.t="30",this.asn1Array=t}getValue(){return this.v=this.asn1Array.map(t=>t.getEncodedHex()).join(""),this.v}}function l5(e,t){return+e[t+2]<8?1:+e.substr(t+2,2)&127+1}function u5(e,t){const n=l5(e,t),r=e.substr(t+2,n*2);return r?(+r[0]<8?new Fp(r,16):new Fp(r.substr(2),16)).intValue():-1}function Rx(e,t){const n=l5(e,t);return t+(n+1)*2}var pQ={encodeDer(e,t){const n=new s5(e),r=new s5(t);return new fQ([n,r]).getEncodedHex()},decodeDer(e){const t=Rx(e,0),n=Rx(e,t),r=u5(e,t),a=e.substr(n,r*2),o=n+a.length,i=Rx(e,o),c=u5(e,o),s=e.substr(i,c*2),l=new Fp(a,16),u=new Fp(s,16);return{r:l,s:u}}};const{BigInteger:Ua}=Np,c5=new Ua("2"),f5=new Ua("3");class Su{constructor(t,n){this.x=n,this.q=t}equals(t){return t===this?!0:this.q.equals(t.q)&&this.x.equals(t.x)}toBigInteger(){return this.x}negate(){return new Su(this.q,this.x.negate().mod(this.q))}add(t){return new Su(this.q,this.x.add(t.toBigInteger()).mod(this.q))}subtract(t){return new Su(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))}multiply(t){return new Su(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))}divide(t){return new Su(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new Su(this.q,this.x.square().mod(this.q))}}class Cu{constructor(t,n,r,a){this.curve=t,this.x=n,this.y=r,this.z=a??Ua.ONE,this.zinv=null}getX(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}equals(t){return t===this?!0:this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(Ua.ZERO)?t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(Ua.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(Ua.ZERO)&&!this.y.toBigInteger().equals(Ua.ZERO)}negate(){return new Cu(this.curve,this.x,this.y.negate(),this.z)}add(t){if(this.isInfinity())return t;if(t.isInfinity())return this;const n=this.x.toBigInteger(),r=this.y.toBigInteger(),a=this.z,o=t.x.toBigInteger(),i=t.y.toBigInteger(),c=t.z,s=this.curve.q,l=n.multiply(c).mod(s),u=o.multiply(a).mod(s),f=l.subtract(u),h=r.multiply(c).mod(s),d=i.multiply(a).mod(s),v=h.subtract(d);if(Ua.ZERO.equals(f))return Ua.ZERO.equals(v)?this.twice():this.curve.infinity;const m=l.add(u),p=a.multiply(c).mod(s),g=f.square().mod(s),y=f.multiply(g).mod(s),b=p.multiply(v.square()).subtract(m.multiply(g)).mod(s),_=f.multiply(b).mod(s),E=v.multiply(g.multiply(l).subtract(b)).subtract(h.multiply(y)).mod(s),w=y.multiply(p).mod(s);return new Cu(this.curve,this.curve.fromBigInteger(_),this.curve.fromBigInteger(E),w)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=this.z,a=this.curve.q,o=this.curve.a.toBigInteger(),i=t.square().multiply(f5).add(o.multiply(r.square())).mod(a),c=n.shiftLeft(1).multiply(r).mod(a),s=n.square().mod(a),l=s.multiply(t).multiply(r).mod(a),u=c.square().mod(a),f=i.square().subtract(l.shiftLeft(3)).mod(a),h=c.multiply(f).mod(a),d=i.multiply(l.shiftLeft(2).subtract(f)).subtract(u.shiftLeft(1).multiply(s)).mod(a),v=c.multiply(u).mod(a);return new Cu(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(d),v)}multiply(t){if(this.isInfinity())return this;if(!t.signum())return this.curve.infinity;const n=t.multiply(f5),r=this.negate();let a=this;for(let o=n.bitLength()-2;o>0;o--){a=a.twice();const i=n.testBit(o),c=t.testBit(o);i!==c&&(a=a.add(i?this:r))}return a}}var hQ={ECPointFp:Cu,ECCurveFp:class{constructor(t,n,r){this.q=t,this.a=this.fromBigInteger(n),this.b=this.fromBigInteger(r),this.infinity=new Cu(this,null,null)}equals(t){return t===this?!0:this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)}fromBigInteger(t){return new Su(this.q,t)}decodePointHex(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const n=this.fromBigInteger(new Ua(t.substr(2),16));let r=this.fromBigInteger(n.multiply(n.square()).add(n.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new Ua("4")).add(Ua.ONE),this.q));return r.toBigInteger().mod(c5).equals(new Ua(t.substr(0,2),16).subtract(c5))||(r=r.negate()),new Cu(this,n,r);case 4:case 6:case 7:const a=(t.length-2)/2,o=t.substr(2,a),i=t.substr(a+2,a);return new Cu(this,this.fromBigInteger(new Ua(o,16)),this.fromBigInteger(new Ua(i,16)));default:return null}}}};const{BigInteger:As,SecureRandom:dQ}=Np,{ECCurveFp:vQ}=hQ,mQ=new dQ,{curve:Mp,G:gQ,n:p5}=h5();function yQ(){return Mp}function h5(){const e=new As("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),t=new As("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),n=new As("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),r=new vQ(e,t,n),a="32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7",o="BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0",i=r.decodePointHex("04"+a+o),c=new As("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:r,G:i,n:c}}function _Q(e,t,n){const a=(e?new As(e,t,n):new As(p5.bitLength(),mQ)).mod(p5.subtract(As.ONE)).add(As.ONE),o=Vd(a.toString(16),64),i=gQ.multiply(a),c=Vd(i.getX().toBigInteger().toString(16),64),s=Vd(i.getY().toBigInteger().toString(16),64),l="04"+c+s;return{privateKey:o,publicKey:l}}function bQ(e){if(e.length!==130)throw new Error("Invalid public key to compress");const t=(e.length-2)/2,n=e.substr(2,t),r=new As(e.substr(t+2,t),16);let a="03";return r.mod(new As("2")).equals(As.ZERO)&&(a="02"),a+n}function xQ(e){e=unescape(encodeURIComponent(e));const t=e.length,n=[];for(let a=0;a<t;a++)n[a>>>2]|=(e.charCodeAt(a)&255)<<24-a%4*8;const r=[];for(let a=0;a<t;a++){const o=n[a>>>2]>>>24-a%4*8&255;r.push((o>>>4).toString(16)),r.push((o&15).toString(16))}return r.join("")}function Vd(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function EQ(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function wQ(e){const t=[];let n=0;for(let r=0;r<e.length*2;r+=2)t[r>>>3]|=parseInt(e[n],10)<<24-r%8*4,n++;try{const r=[];for(let a=0;a<e.length;a++){const o=t[a>>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(o))}return decodeURIComponent(escape(r.join("")))}catch{throw new Error("Malformed UTF-8 data")}}function SQ(e){const t=[];let n=e.length;n%2!==0&&(e=Vd(e,n+1)),n=e.length;for(let r=0;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return t}function CQ(e){const t=Mp.decodePointHex(e);if(!t)return!1;const n=t.getX();return t.getY().square().equals(n.multiply(n.square()).add(n.multiply(Mp.a)).add(Mp.b))}function AQ(e,t){const n=Mp.decodePointHex(e);if(!n)return!1;const r=Mp.decodePointHex(t);return r?n.equals(r):!1}var TQ={getGlobalCurve:yQ,generateEcparam:h5,generateKeyPairHex:_Q,compressPublicKeyHex:bQ,utf8ToHex:xQ,leftPad:Vd,arrayToHex:EQ,arrayToUtf8:wQ,hexToArray:SQ,verifyPublicKey:CQ,comparePublicKeyHex:AQ};const Ts=new Uint32Array(68),jx=new Uint32Array(64);function Lo(e,t){const n=t&31;return e<<n|e>>>32-n}function d5(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n[r]=(e[r]^t[r])&255;return n}function DQ(e){return e^Lo(e,9)^Lo(e,17)}function PQ(e){return e^Lo(e,15)^Lo(e,23)}function Cg(e){let t=e.length*8,n=t%512;n=n>=448?512-n%448-1:448-n-1;const r=new Array((n-7)/8),a=new Array(8);for(let u=0,f=r.length;u<f;u++)r[u]=0;for(let u=0,f=a.length;u<f;u++)a[u]=0;t=t.toString(2);for(let u=7;u>=0;u--)if(t.length>8){const f=t.length-8;a[u]=parseInt(t.substr(f),2),t=t.substr(0,f)}else t.length>0&&(a[u]=parseInt(t,2),t="");const o=new Uint8Array([...e,128,...r,...a]),i=new DataView(o.buffer,0),c=o.length/64,s=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let u=0;u<c;u++){Ts.fill(0),jx.fill(0);const f=16*u;for(let D=0;D<16;D++)Ts[D]=i.getUint32((f+D)*4,!1);for(let D=16;D<68;D++)Ts[D]=PQ(Ts[D-16]^Ts[D-9]^Lo(Ts[D-3],15))^Lo(Ts[D-13],7)^Ts[D-6];for(let D=0;D<64;D++)jx[D]=Ts[D]^Ts[D+4];const h=2043430169,d=2055708042;let v=s[0],m=s[1],p=s[2],g=s[3],y=s[4],b=s[5],_=s[6],E=s[7],w,S,A,P,C;for(let D=0;D<64;D++)C=D>=0&&D<=15?h:d,w=Lo(Lo(v,12)+y+Lo(C,D),7),S=w^Lo(v,12),A=(D>=0&&D<=15?v^m^p:v&m|v&p|m&p)+g+S+jx[D],P=(D>=0&&D<=15?y^b^_:y&b|~y&_)+E+w+Ts[D],g=p,p=Lo(m,9),m=v,v=A,E=_,_=Lo(b,19),b=y,y=DQ(P);s[0]^=v,s[1]^=m,s[2]^=p,s[3]^=g,s[4]^=y,s[5]^=b,s[6]^=_,s[7]^=E}const l=[];for(let u=0,f=s.length;u<f;u++){const h=s[u];l.push((h&4278190080)>>>24,(h&16711680)>>>16,(h&65280)>>>8,h&255)}return l}const zd=64,v5=new Uint8Array(zd),m5=new Uint8Array(zd);for(let e=0;e<zd;e++)v5[e]=54,m5[e]=92;function kQ(e,t){for(t.length>zd&&(t=Cg(t));t.length<zd;)t.push(0);const n=d5(t,v5),r=d5(t,m5),a=Cg([...n,...e]);return Cg([...r,...a])}var g5={sm3:Cg,hmac:kQ};const{BigInteger:yo}=Np,{encodeDer:OQ,decodeDer:BQ}=pQ,ir=TQ,Lp=g5.sm3,{G:Uc,curve:y5,n:Rp}=ir.generateEcparam(),_5=0;function IQ(e,t,n=1){e=typeof e=="string"?ir.hexToArray(ir.utf8ToHex(e)):Array.prototype.slice.call(e),t=ir.getGlobalCurve().decodePointHex(t);const r=ir.generateKeyPairHex(),a=new yo(r.privateKey,16);let o=r.publicKey;o.length>128&&(o=o.substr(o.length-128));const i=t.multiply(a),c=ir.hexToArray(ir.leftPad(i.getX().toBigInteger().toRadix(16),64)),s=ir.hexToArray(ir.leftPad(i.getY().toBigInteger().toRadix(16),64)),l=ir.arrayToHex(Lp([].concat(c,e,s)));let u=1,f=0,h=[];const d=[].concat(c,s),v=()=>{h=Lp([...d,u>>24&255,u>>16&255,u>>8&255,u&255]),u++,f=0};v();for(let p=0,g=e.length;p<g;p++)f===h.length&&v(),e[p]^=h[f++]&255;const m=ir.arrayToHex(e);return n===_5?o+m+l:o+l+m}function NQ(e,t,n=1,{output:r="string"}={}){t=new yo(t,16);let a=e.substr(128,64),o=e.substr(128+64);n===_5&&(a=e.substr(e.length-64),o=e.substr(128,e.length-128-64));const i=ir.hexToArray(o),s=ir.getGlobalCurve().decodePointHex("04"+e.substr(0,128)).multiply(t),l=ir.hexToArray(ir.leftPad(s.getX().toBigInteger().toRadix(16),64)),u=ir.hexToArray(ir.leftPad(s.getY().toBigInteger().toRadix(16),64));let f=1,h=0,d=[];const v=[].concat(l,u),m=()=>{d=Lp([...v,f>>24&255,f>>16&255,f>>8&255,f&255]),f++,h=0};m();for(let g=0,y=i.length;g<y;g++)h===d.length&&m(),i[g]^=d[h++]&255;return ir.arrayToHex(Lp([].concat(l,i,u)))===a.toLowerCase()?r==="array"?i:ir.arrayToUtf8(i):r==="array"?[]:""}function FQ(e,t,{pointPool:n,der:r,hash:a,publicKey:o,userId:i}={}){let c=typeof e=="string"?ir.utf8ToHex(e):ir.arrayToHex(e);a&&(o=o||x5(t),c=b5(c,o,i));const s=new yo(t,16),l=new yo(c,16);let u=null,f=null,h=null;do{do{let d;n&&n.length?d=n.pop():d=E5(),u=d.k,f=l.add(d.x1).mod(Rp)}while(f.equals(yo.ZERO)||f.add(u).equals(Rp));h=s.add(yo.ONE).modInverse(Rp).multiply(u.subtract(f.multiply(s))).mod(Rp)}while(h.equals(yo.ZERO));return r?OQ(f,h):ir.leftPad(f.toString(16),64)+ir.leftPad(h.toString(16),64)}function MQ(e,t,n,{der:r,hash:a,userId:o}={}){let i=typeof e=="string"?ir.utf8ToHex(e):ir.arrayToHex(e);a&&(i=b5(i,n,o));let c,s;if(r){const v=BQ(t);c=v.r,s=v.s}else c=new yo(t.substring(0,64),16),s=new yo(t.substring(64),16);const l=y5.decodePointHex(n),u=new yo(i,16),f=c.add(s).mod(Rp);if(f.equals(yo.ZERO))return!1;const h=Uc.multiply(s).add(l.multiply(f)),d=u.add(h.getX().toBigInteger()).mod(Rp);return c.equals(d)}function b5(e,t,n="1234567812345678"){n=ir.utf8ToHex(n);const r=ir.leftPad(Uc.curve.a.toBigInteger().toRadix(16),64),a=ir.leftPad(Uc.curve.b.toBigInteger().toRadix(16),64),o=ir.leftPad(Uc.getX().toBigInteger().toRadix(16),64),i=ir.leftPad(Uc.getY().toBigInteger().toRadix(16),64);let c,s;if(t.length===128)c=t.substr(0,64),s=t.substr(64,64);else{const h=Uc.curve.decodePointHex(t);c=ir.leftPad(h.getX().toBigInteger().toRadix(16),64),s=ir.leftPad(h.getY().toBigInteger().toRadix(16),64)}const l=ir.hexToArray(n+r+a+o+i+c+s),u=n.length*4;l.unshift(u&255),l.unshift(u>>8&255);const f=Lp(l);return ir.arrayToHex(Lp(f.concat(ir.hexToArray(e))))}function x5(e){const t=Uc.multiply(new yo(e,16)),n=ir.leftPad(t.getX().toBigInteger().toString(16),64),r=ir.leftPad(t.getY().toBigInteger().toString(16),64);return"04"+n+r}function E5(){const e=ir.generateKeyPairHex(),t=y5.decodePointHex(e.publicKey);return e.k=new yo(e.privateKey,16),e.x1=t.getX().toBigInteger(),e}var LQ={generateKeyPairHex:ir.generateKeyPairHex,compressPublicKeyHex:ir.compressPublicKeyHex,comparePublicKeyHex:ir.comparePublicKeyHex,doEncrypt:IQ,doDecrypt:NQ,doSignature:FQ,doVerifySignature:MQ,getPublicKeyFromPrivateKey:x5,getPoint:E5,verifyPublicKey:ir.verifyPublicKey};const{sm3:RQ,hmac:jQ}=g5;function VQ(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function w5(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function zQ(e){const t=[];let n=e.length;n%2!==0&&(e=VQ(e,n+1)),n=e.length;for(let r=0;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return t}function UQ(e){const t=[];for(let n=0,r=e.length;n<r;n++){const a=e.codePointAt(n);if(a<=127)t.push(a);else if(a<=2047)t.push(192|a>>>6),t.push(128|a&63);else if(a<=55295||a>=57344&&a<=65535)t.push(224|a>>>12),t.push(128|a>>>6&63),t.push(128|a&63);else if(a>=65536&&a<=1114111)n++,t.push(240|a>>>18&28),t.push(128|a>>>12&63),t.push(128|a>>>6&63),t.push(128|a&63);else throw t.push(a),new Error("input is not supported")}return t}var HQ=function(e,t){if(e=typeof e=="string"?UQ(e):Array.prototype.slice.call(e),t){if((t.mode||"hmac")!=="hmac")throw new Error("invalid mode");let r=t.key;if(!r)throw new Error("invalid key");return r=typeof r=="string"?zQ(r):Array.prototype.slice.call(r),w5(jQ(e,r))}return w5(RQ(e))};const Au=0,WQ=32,Hc=16,Ag=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],Tg=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function Vx(e){const t=[];for(let n=0,r=e.length;n<r;n+=2)t.push(parseInt(e.substr(n,2),16));return t}function GQ(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function KQ(e){const t=[];for(let n=0,r=e.length;n<r;n++){const a=e.codePointAt(n);if(a<=127)t.push(a);else if(a<=2047)t.push(192|a>>>6),t.push(128|a&63);else if(a<=55295||a>=57344&&a<=65535)t.push(224|a>>>12),t.push(128|a>>>6&63),t.push(128|a&63);else if(a>=65536&&a<=1114111)n++,t.push(240|a>>>18&28),t.push(128|a>>>12&63),t.push(128|a>>>6&63),t.push(128|a&63);else throw t.push(a),new Error("input is not supported")}return t}function XQ(e){const t=[];for(let n=0,r=e.length;n<r;n++)e[n]>=240&&e[n]<=247?(t.push(String.fromCodePoint(((e[n]&7)<<18)+((e[n+1]&63)<<12)+((e[n+2]&63)<<6)+(e[n+3]&63))),n+=3):e[n]>=224&&e[n]<=239?(t.push(String.fromCodePoint(((e[n]&15)<<12)+((e[n+1]&63)<<6)+(e[n+2]&63))),n+=2):e[n]>=192&&e[n]<=223?(t.push(String.fromCodePoint(((e[n]&31)<<6)+(e[n+1]&63))),n++):t.push(String.fromCodePoint(e[n]));return t.join("")}function jp(e,t){const n=t&31;return e<<n|e>>>32-n}function Tu(e){return(Ag[e>>>24&255]&255)<<24|(Ag[e>>>16&255]&255)<<16|(Ag[e>>>8&255]&255)<<8|Ag[e&255]&255}function Dg(e){return e^jp(e,2)^jp(e,10)^jp(e,18)^jp(e,24)}function Pg(e){return e^jp(e,13)^jp(e,23)}function YQ(e,t,n){const r=new Array(4),a=new Array(4);for(let o=0;o<4;o++)a[0]=e[4*o]&255,a[1]=e[4*o+1]&255,a[2]=e[4*o+2]&255,a[3]=e[4*o+3]&255,r[o]=a[0]<<24|a[1]<<16|a[2]<<8|a[3];for(let o=0,i;o<32;o+=4)i=r[1]^r[2]^r[3]^n[o+0],r[0]^=Dg(Tu(i)),i=r[2]^r[3]^r[0]^n[o+1],r[1]^=Dg(Tu(i)),i=r[3]^r[0]^r[1]^n[o+2],r[2]^=Dg(Tu(i)),i=r[0]^r[1]^r[2]^n[o+3],r[3]^=Dg(Tu(i));for(let o=0;o<16;o+=4)t[o]=r[3-o/4]>>>24&255,t[o+1]=r[3-o/4]>>>16&255,t[o+2]=r[3-o/4]>>>8&255,t[o+3]=r[3-o/4]&255}function JQ(e,t,n){const r=new Array(4),a=new Array(4);for(let o=0;o<4;o++)a[0]=e[0+4*o]&255,a[1]=e[1+4*o]&255,a[2]=e[2+4*o]&255,a[3]=e[3+4*o]&255,r[o]=a[0]<<24|a[1]<<16|a[2]<<8|a[3];r[0]^=2746333894,r[1]^=1453994832,r[2]^=1736282519,r[3]^=2993693404;for(let o=0,i;o<32;o+=4)i=r[1]^r[2]^r[3]^Tg[o+0],t[o+0]=r[0]^=Pg(Tu(i)),i=r[2]^r[3]^r[0]^Tg[o+1],t[o+1]=r[1]^=Pg(Tu(i)),i=r[3]^r[0]^r[1]^Tg[o+2],t[o+2]=r[2]^=Pg(Tu(i)),i=r[0]^r[1]^r[2]^Tg[o+3],t[o+3]=r[3]^=Pg(Tu(i));if(n===Au)for(let o=0,i;o<16;o++)i=t[o],t[o]=t[31-o],t[31-o]=i}function S5(e,t,n,{padding:r="pkcs#7",mode:a,iv:o=[],output:i="string"}={}){if(a==="cbc"&&(typeof o=="string"&&(o=Vx(o)),o.length!==128/8))throw new Error("iv is invalid");if(typeof t=="string"&&(t=Vx(t)),t.length!==128/8)throw new Error("key is invalid");if(typeof e=="string"?n!==Au?e=KQ(e):e=Vx(e):e=[...e],(r==="pkcs#5"||r==="pkcs#7")&&n!==Au){const h=Hc-e.length%Hc;for(let d=0;d<h;d++)e.push(h)}const c=new Array(WQ);JQ(t,c,n);const s=[];let l=o,u=e.length,f=0;for(;u>=Hc;){const h=e.slice(f,f+16),d=new Array(16);if(a==="cbc")for(let v=0;v<Hc;v++)n!==Au&&(h[v]^=l[v]);YQ(h,d,c);for(let v=0;v<Hc;v++)a==="cbc"&&n===Au&&(d[v]^=l[v]),s[f+v]=d[v];a==="cbc"&&(n!==Au?l=d:l=h),u-=Hc,f+=Hc}if((r==="pkcs#5"||r==="pkcs#7")&&n===Au){const h=s.length,d=s[h-1];for(let v=1;v<=d;v++)if(s[h-v]!==d)throw new Error("padding is invalid");s.splice(h-d,d)}return i!=="array"?n!==Au?GQ(s):XQ(s):s}var ZQ={encrypt(e,t,n){return S5(e,t,1,n)},decrypt(e,t,n){return S5(e,t,0,n)}},kg={sm2:LQ,sm3:HQ,sm4:ZQ};const C5="04";function QQ(e,t){try{return C5+kg.sm2.doEncrypt(e,t,1)}catch{return null}}function qQ(e,t){if(e==null)return null;try{return kg.sm2.doDecrypt(e==null?void 0:e.substring(C5.length),t,1)}catch{return null}}const Ud={encrypt:QQ,decrypt:qQ},$Q="049967b032226da56be01b804ed59e6753e2731994f4c97bb25d39c0d3166af07b73e2651d09b98ae934a70303138e859545e8314e2eda20971e222a444ecd3547",eq="1e38a5c42fe3049bfbbcb2323a0cff3feb49e0b8156ac71eed525133603dbddb",A5=e=>(Es(e)&&(e=Zr(e)),Ud.encrypt(e,$Q)),T5=e=>Ud.decrypt(e,eq),D5=e=>`__${e}__mode`,tq=(e,t)=>{const n=Es(t)?2:1;n===2&&(t=Zr(t));const r=A5(t);return{[e]:r,[D5(e)]:n}},P5=e=>{e||(e=window.location.href);const t=Nl.getQueryParams(e);if(!t)return null;const n={};return Or(t).map(r=>{let a=t[r];const o=t[D5(r)];return o!=null&&(a=T5(a),o==2&&(a=ri(a))),n[r]=a,a}),n},Og={decryptFromLocation:()=>P5(window.location.href),decryptFromUrl:P5,encryptToUrl:tq,decryptData:T5,encryptData:A5};var Wc=(e=>(e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute",e.second="second",e.week="week",e))(Wc||{});function nq(e){return e%4===0&&e%100!==0||e%400===0}function rq(e){return[0,31,nq(e)?29:28,31,30,31,30,31,31,30,31,30]}function Bg(e,t){var n=new Date(e),r=new Date(t),a;n>r&&(a=n,n=r,r=a);var o=rq(n.getFullYear())[n.getMonth()];let i=r.getFullYear()-n.getFullYear();i>0&&(n.setFullYear(r.getFullYear()),r<n&&(i-=1,n.setFullYear(n.getFullYear()-1)));let c=r.getMonth()-n.getMonth();c>0&&(n.setMonth(r.getMonth()),r<n&&(c-=1,n.setMonth(n.getMonth()-1)));let s=o+r.getDate()-n.getDate();s>=o&&(s-=o,n.setDate(r.getDate()),r<n&&(s-=1,n.setDate(n.getDate()-1)));const l=Math.abs(r.getTime()-n.getTime()),u=Math.floor(l%(24*60*60*1e3)/(60*60*1e3)),f=Math.floor(l%(60*60*1e3)/(60*1e3)),h=Math.floor(l%(60*1e3)/1e3);return{years:i,months:c,days:s,hours:u,minutes:f,seconds:h}}function k5(e,t,n="day"){var r=new Date(e);switch(n){case"year":r.setFullYear(r.getFullYear()+t);break;case"month":r.setMonth(r.getMonth()+t);break;case"week":r.setDate(r.getDate()+t*7);break;case"day":r.setDate(r.getDate()+t);break;case"hour":r.setHours(r.getHours()+t);break;case"minute":r.setMinutes(r.getMinutes()+t);break;case"second":r.setSeconds(r.getSeconds()+t);break}return r}function Hd(e,t,n="day"){var r=Math.abs(new Date(e).getTime()-new Date(t).getTime());const a=Bg(e,t);switch(n){case"year":return a.years;case"month":return a.months+a.years*12;case"day":return Math.floor(r/(24*60*60*1e3));case"hour":return Math.floor(r/(60*60*1e3));case"minute":return Math.floor(r/(60*1e3));case"second":return Math.floor(r/1e3);case"week":return Math.floor(r/(7*24*60*60*1e3))}}function iq(e,t,n="day"){const r=Bg(e,t);switch(n){case"year":return r.years;case"month":return r.months;case"day":return r.days;case"hour":return r.hours;case"minute":return r.minutes;case"second":return r.seconds}return 0}function Ig(e,t){if(!t)return String(e);if(!e)return"";var n=new Date(e);const r={yyyy:n.getFullYear(),yy:n.getFullYear().toString().slice(-2),MM:(n.getMonth()+1).toString().padStart(2,"0"),M:n.getMonth()+1,dd:n.getDate().toString().padStart(2,"0"),d:n.getDate(),HH:n.getHours().toString().padStart(2,"0"),H:n.getHours(),mm:n.getMinutes().toString().padStart(2,"0"),m:n.getMinutes(),ss:n.getSeconds().toString().padStart(2,"0"),s:n.getSeconds(),SSS:n.getMilliseconds(),fff:n.getMilliseconds().toString().padStart(3,"0"),gg:"上午",aa:"下午"};let a=t;for(let o in r)a=a.replace(o,r[o]);return a}function O5(e){return!isNaN(Date.parse(e))}function aq(e){if(O5(e))return new Date(e)}function B5(e){if(e){var t=new Date;if(O5(e))return new Date(e);var n=t.getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+" "+e;return new Date(n)}}function I5(e){return Array.isArray(e)?e.map(t=>B5(t)):typeof e=="string"?B5(e):e}function oq(){return N5("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",/[xy]/g)}function Ng(){return N5("xxxxxxxxxxxxxxxxxxxxxxxxxxxx",/[xy]/g)}function N5(e,t,n=16){return e.replace(t,r=>{const a=Math.floor(Math.random()*n);return(r==="x"?a:a&3|8).toString(n)})}const Ds=function(){return Math.floor(Math.random()*1e5+Math.random()*2e4+Math.random()*5e3)},F5=()=>Ig(new Date,"yyyyMMHHmmss")+"_"+Ds();function zx(){return{addWindowName:()=>{window.name||(window.name=Ng())},addWindowHook:(a,o)=>{No(window,a,o)},openWindow:(a,o,i,c)=>{const s=o!=null&&o.target?"_blank":"_self",l=o!=null&&o.width&&(o!=null&&o.height)?`width=${o==null?void 0:o.width},height=${o==null?void 0:o.height}`:"";i||(i=window);var u=a;c&&(u=Nl.buildUrlByLocalQuery(a)),i==null||i.open(u,s,l)},disableFirefoxDefaultDrop:()=>{navigator.userAgent.toLowerCase().indexOf("firefox")!==-1&&(document.body.ondrop=function(o){o.stopPropagation(),o.preventDefault()})}}}const mi={info(e){vi.ElMessage({type:"info",message:e,dangerouslyUseHTMLString:!0})},error(e){vi.ElMessage({type:"error",message:e,dangerouslyUseHTMLString:!0})},success(e){vi.ElMessage({type:"success",message:e,dangerouslyUseHTMLString:!0})},warning(e){vi.ElMessage({type:"warning",message:e,dangerouslyUseHTMLString:!0})}},sq={delete(){return this.do(se.i18nt("designer.hint.confirmDelete"))},multiple(e){var t=e.map(n=>x.h("p",null,n));return this.do(x.h("p",null,t))},do(e){return vi.ElMessageBox.confirm(e,se.i18nt("designer.hint.prompt"),{confirmButtonText:se.i18nt("designer.hint.confirm"),cancelButtonText:se.i18nt("designer.hint.cancel"),type:"warning",appendTo:"body"})}},lq={info(e){vi.ElNotification({type:"info",message:e,dangerouslyUseHTMLString:!0})},error(e){vi.ElNotification({type:"error",message:e,dangerouslyUseHTMLString:!0})},success(e){vi.ElNotification({type:"success",message:e,dangerouslyUseHTMLString:!0})},warning(e){vi.ElNotification({type:"warning",message:e,dangerouslyUseHTMLString:!0})}},Fg=e=>{var a,o;const t=((a=e==null?void 0:e.exposed)==null?void 0:a.getRowScope())||{},n=((o=e==null?void 0:e.exposed)==null?void 0:o.getFormData())||{};var r=Og.decryptFromUrl(window.location.href);return{rowScope:t,formData:n,urlQuerys:r}};function uq(e,t,n,r){var h,d;let a=Wr((h=e==null?void 0:e.content)==null?void 0:h.widgetId,!0),o=Wr((d=e==null?void 0:e.content)==null?void 0:d.sourceId,!0);if(!a||!o)return null;const i=()=>new Promise((v,m)=>{var y;let p={};if(!a||a.length<=0){v(p);return}const g=(y=a==null?void 0:a.filter(b=>{var _;return!!((_=n==null?void 0:n.exposed)!=null&&_.findRefById(b,n))}))==null?void 0:y.map(b=>{var _;return(_=n==null?void 0:n.exposed)==null?void 0:_.findRefById(b,n)});Promise.all(g==null?void 0:g.map(b=>{var _;return(_=b==null?void 0:b.exposed)==null?void 0:_.getValue(!0)})).then(b=>{b.forEach(_=>{_!=null&&_.isSuccess&&(p=Object.assign({},p,_==null?void 0:_.data))}),v(p)}).catch(b=>{var E;const _=Array.isArray(b==null?void 0:b.message)?(E=Array.from(b==null?void 0:b.message))==null?void 0:E.map(w=>`<p class="pLine">${w}</p>`).join(""):b==null?void 0:b.message;lq.error(_||Zr(b))})}),c=v=>{var p;var m=(p=e==null?void 0:e.content)==null?void 0:p.schemaParamName;return m?{[m]:v}:{_formData:v}},s=(v,m,p)=>{if(!v)return p;const g=Fg(n);return Qs(v,{formData:p||(g==null?void 0:g.formData)||{},arg:{urlQuery:g==null?void 0:g.urlQuerys,rowScope:g==null?void 0:g.rowScope},exp:m})},l=(v,m,p,g,y)=>{if(!v)return g;const b=Fg(n);return Qs(v,{widgetId:y,respValue:g,respData:p,arg:{urlQuery:b==null?void 0:b.urlQuerys,rowScope:b==null?void 0:b.rowScope,formData:b==null?void 0:b.formData},exp:m})},u=()=>new Promise((v,m)=>{i().then(p=>{var b;var g=[];let y=c(s((b=e==null?void 0:e.content)==null?void 0:b.beforeFetch,t,p));o==null||o.forEach(_=>{var E=`${Ni.schema}.${_}`,w=ge.buildVariablePropValue(E,y);const S=ge.getValue(w,!1,!0,r);g.push({sourceId:_,params:y,resp:S})}),v(g)})}),f=v=>{v==null||v.forEach(m=>{let p=x.watch(m==null?void 0:m.resp,g=>{p==null||p(),a==null||a.forEach(y=>{var E,w,S,A,P,C;var b=(E=n==null?void 0:n.exposed)==null?void 0:E.findRefById(y);if(!b)return;const _=(w=e==null?void 0:e.content)==null?void 0:w.afterFetch;_?l(_,t,{...m,resp:g},g,y):(A=(S=b==null?void 0:b.exposed)==null?void 0:S.setValue)==null||A.call(S,g,!1),(C=(P=b==null?void 0:b.exposed)==null?void 0:P.clearChangeRecord)==null||C.call(P)})})})};u().then(v=>{f(v)})}function cq(e,t,n,r){const a=(l,u,f)=>{const{sendToIframe:h,receive:d}=a5();return new Promise((v,m)=>{var g,y;const p=Ng();d(b=>{f(p,b,_=>{_!=null&&_.isSuccess?v(!0):vi.ElNotification.error((_==null?void 0:_.message)||(b==null?void 0:b.data))})},!0),h((y=(g=l==null?void 0:l.data)==null?void 0:g.props)==null?void 0:y.iframeRef,{...u,msgId:p})})},o=(l,u)=>{var m,p;const f=((m=n==null?void 0:n.exposed)==null?void 0:m.getRowScope())||{},h=((p=n==null?void 0:n.exposed)==null?void 0:p.getFormData())||{};var d=Og.decryptFromUrl(window.location.href),v=Qs(l,{data:{urlQuery:d,rowScope:f,formData:h},exp:u});return v},i=()=>{var h,d,v,m;var l=(h=e==null?void 0:e.content)!=null&&h.withQuery?Nl.getLocationQueryParams():{};let u=Object.assign(l||{},o((d=e==null?void 0:e.content)==null?void 0:d.setQueryFn,t));const f=Nl.buildUrl((v=e==null?void 0:e.content)==null?void 0:v.url,u,(m=e==null?void 0:e.content)==null?void 0:m.encodeQuery);return Nl.resolveByCurrentUrl(f)},c=()=>{var l,u,f,h;switch((l=e==null?void 0:e.content)==null?void 0:l.windowTarget){case sg.self:return window;case sg.top:return window.top||window;case sg.parent:return window.parent;default:return(u=e==null?void 0:e.content)!=null&&u.windowTarget?(h=go.find(window,(f=e==null?void 0:e.content)==null?void 0:f.windowTarget))==null?void 0:h.window:window}};(()=>{var v,m;const{openWindow:l}=zx(),u=c(),f=i();if(((v=e==null?void 0:e.content)==null?void 0:v.windowModal)===iD.modal){var h={self:window==null?void 0:window.name,caller:u==null?void 0:u.name};const p=(A,P,C)=>{var k;const D=(k=e==null?void 0:e.content)==null?void 0:k.onReceive;D&&Qs(D,{data:{msgId:A,eventMsg:P},exp:t,callback:C})},g=A=>a(A,{command:"saveForm",args:{...h}},p),y=A=>a(A,{command:"cancelForm",args:{...h}},p),{fullscreen:b,width:_,height:E,title:w,dialogType:S}=(e==null?void 0:e.content)||{};var d={fullscreen:b,width:_,height:E,title:w,dialogType:S,url:f,callback:{okCallback:g,cancelCallback:y}};if(u)if(u!=null&&u.openModalAsync)(m=u==null?void 0:u.openModalAsync)==null||m.call(u,d);else{mi.error(se.i18nt("designer.hint.windowNotSupport"));return}else i5(n,d)}else l(f,e==null?void 0:e.content,u==null?void 0:u.window,!1)})()}function fq(e,t,n,r){var u;let a=Wr((u=e==null?void 0:e.content)==null?void 0:u.sourceId,!0);if(!a)return null;const o=(f,h,d)=>{if(!f)return d;const v=Fg(n);return Qs(f,{formData:d||(v==null?void 0:v.formData)||{},arg:{urlQuery:v==null?void 0:v.urlQuerys,rowScope:v==null?void 0:v.rowScope},exp:h})},i=()=>{var m,p,g;var f=[];const h=(m=e==null?void 0:e.content)==null?void 0:m.params,d=ri(wne(h,r));let v=(p=e==null?void 0:e.content)!=null&&p.beforeFetch?o((g=e==null?void 0:e.content)==null?void 0:g.beforeFetch,t,d):h;return a==null||a.forEach(y=>{var b=`${Ni.schema}.${y}`,_=ge.buildVariablePropValue(b,v);const E=ge.getValue(_,!1,!0,r);f.push({sourceId:y,params:v,resp:E})}),f},c=(f,h,d,v)=>{if(!f)return v;const m=Fg(n);return Qs(f,{respValue:v,respData:d,arg:{urlQuery:m==null?void 0:m.urlQuerys,rowScope:m==null?void 0:m.rowScope,formData:m==null?void 0:m.formData},exp:h})},s=f=>{f==null||f.forEach(h=>{let d=x.watch(h==null?void 0:h.resp,v=>{var m,p;d==null||d(),(m=e==null?void 0:e.content)!=null&&m.afterFetch&&c((p=e==null?void 0:e.content)==null?void 0:p.afterFetch,t,{...h,resp:v},v)})})};var l=i();return s(l),l}function pq(e,t,n,r){var a,o,i,c,s,l,u;switch(e==null?void 0:e.type){case Ss.actionCode:return Qs((a=e==null?void 0:e.content)==null?void 0:a.code,t);case Ss.actionURL:return cq(e,t,n);case Ss.actionShowWidget:{let f=(o=e==null?void 0:e.content)==null?void 0:o.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setHidden(!1)});return}case Ss.actionHideWidget:{let f=(i=e==null?void 0:e.content)==null?void 0:i.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setHidden(!0)});return}case Ss.actionEnableWidget:{let f=(c=e==null?void 0:e.content)==null?void 0:c.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setDisabled(!1)});return}case Ss.actionDisableWidget:{let f=(s=e==null?void 0:e.content)==null?void 0:s.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setDisabled(!0)});return}case Ss.actionOpenDialog:{let f=(l=e==null?void 0:e.content)==null?void 0:l.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setValue(!0)});return}case Ss.actionCloseDialog:{let f=(u=e==null?void 0:e.content)==null?void 0:u.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setValue(!1)});return}case Ss.actionSendSchema:return fq(e,t,n,r);case Ss.actionSaveFormData:return uq(e,t,n,r)}}const M5=(e,t)=>{const{state:n}=yx(async()=>{const r=await Promise.resolve().then(()=>Ome);var a=Object.entries(r).find(([o,i])=>o===e);if(a)return t!=null&&t.appContext.components[a[0]]||t==null||t.appContext.app.component(a[0],a[1]),a==null?void 0:a[1]},null);return n},hq=(e,t,n)=>{e&&e.interceptors.request.use(function(r){var a=r;return n&&(a=n(t,r)),a},function(r){return Promise.reject(r)})},dq=(e,t,n,r)=>{e&&e.interceptors.response.use(function(a){var o=a;return n&&(o=n(t,a)),o},function(a){var o=a;return r&&(o=r(t,a)),Promise.reject(o)})},Ux=(e,t)=>{const n=QD.create(e);return hq(n,t,e==null?void 0:e.willFetch),dq(n,t,e==null?void 0:e.fitFetch,e==null?void 0:e.errorFetch),new Promise((r,a)=>{n.request({url:e==null?void 0:e.url,data:e==null?void 0:e.data}).then(o=>{let i=o;var c=e==null?void 0:e.fitFetch;c&&c(t,o),r(i)}).catch(o=>{a(o)})})},vq={req:Ux,get:(e,t)=>(e.method="get",Ux(e,t)),post:(e,t)=>(e.method="post",Ux(e,t))};class mq{_emptyAndLength(t){return!!(t&&t.length===18)}_idCardRule(t){return/(^\d{17}(\d|X)$)/.test(t)}_checkProvince(t,n={}){const r={11:"北京市",12:"天津市",13:"河北省",14:"山西省",15:"内蒙古自治区",21:"辽宁省",22:"吉林省",23:"黑龙江省 ",31:"上海",32:"江苏省",33:"浙江省",34:"安徽省",35:"福建省",36:"江西省",37:"山东省",41:"河南省",42:"湖北省 ",43:"湖南省",44:"广东省",45:"广西壮族自治区",46:"海南省",50:"重庆",51:"四川省",52:"贵州省",53:"云南省",54:"西藏自治区 ",61:"陕西省",62:"甘肃省",63:"青海省",64:"宁夏回族自治区",65:"新疆维吾尔自治区",71:"台湾省",81:"香港特别行政区",82:"澳门特别行政区"},a=parseInt(t.substring(0,2));return n.provinceCode=a,n.provinceName=r[a],!!r[a]}_checkCity(t,n={}){const r=parseInt(t.substring(0,6)),a={};return n.cityCode=r,n.cityName=a[r],!0;//!!areaCodesObj[city]
20
20
  }_checkBirthday(t,n={}){const r=/^(\d{6})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|X)$/,a=t.match(r),o=parseInt(a[2]),i=parseInt(a[3]),c=parseInt(a[4]),s=new Date(o+"/"+(i<10?"0"+i:i)+"/"+(c<10?"0"+c:c));if(s.getFullYear()!=0&&(s.getMonth()<0||!s.getDate()))return!1;const l=new Date,u=Bg(s,l);return n.birthday=s,n.birthdayText=o+"-"+i+"-"+c,n.age=u==null?void 0:u.years,n.dateDiff=u,s<=l}_checkSexCode(t,n={}){var r=t==null?void 0:t.substring(16,17);if(hr(r))return!1;const a=parseInt(r)%2==0;return n.sexCode=a?"2":"1",n.sexName=a?"女":"男",!0}_checkCode(t){const n=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],r=["1","0","X","9","8","7","6","5","4","3","2"];let a=0;for(let o=0;o<17;o++)a+=parseInt(t.substring(o,o+1))*n[o];return r[a%11]===t.substring(17,18)}_overallValid(t){return!io._emptyAndLength(t)||!io._idCardRule(t)||!io._checkProvince(t)||!io._checkCity(t)||!io._checkBirthday(t)?!1:io._checkCode(t)}}class Wd{static _convertTo18(t){if(t==null)return"";if(t.length!=15)return t;var n=t.substring(0,6)+"19"+t.substring(6),r=0;const a=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],o=n==null?void 0:n.split("");for(var i=0;i<o.length;i++)r+=(o[i].charCodeAt(0)-"0".charCodeAt(0))*a[i];var c=r%11,s=["1","0","X","9","8","7","6","5","4","3","2"];return n+s[c]}isValid(t){const n=Wd._convertTo18(t);return io._overallValid(n)}convertTo18(t){return Wd._convertTo18(t)}getInfo(t){const n=Wd._convertTo18(t);let r={},a={};return!io._emptyAndLength(n)||!io._idCardRule(n)||!io._checkProvince(n,r)||!io._checkCity(n,r)||!io._checkBirthday(n,r)||!io._checkCode(n)||!io._checkSexCode(n,r)?a:r}}const io=new mq,Fl=new Wd;function L5(e){return{mode:"cbc",iv:e}}function gq(e,t,n){if(e==null)return null;try{return kg.sm4.encrypt(e,t,L5(n))}catch{return null}}function yq(e,t,n){if(e==null)return null;try{return kg.sm4.decrypt(e,t,L5(n))}catch{return null}}const Hx={encrypt:gq,decrypt:yq},R5="3.7.7",_q=R5,Vp=typeof Buffer=="function",j5=typeof TextDecoder=="function"?new TextDecoder:void 0,V5=typeof TextEncoder=="function"?new TextEncoder:void 0,bq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Gd=Array.prototype.slice.call(bq),Mg=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(Gd),xq=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,fa=String.fromCharCode.bind(String),z5=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),U5=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),H5=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),W5=e=>{let t,n,r,a,o="";const i=e.length%3;for(let c=0;c<e.length;){if((n=e.charCodeAt(c++))>255||(r=e.charCodeAt(c++))>255||(a=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|a,o+=Gd[t>>18&63]+Gd[t>>12&63]+Gd[t>>6&63]+Gd[t&63]}return i?o.slice(0,i-3)+"===".substring(i):o},Wx=typeof btoa=="function"?e=>btoa(e):Vp?e=>Buffer.from(e,"binary").toString("base64"):W5,Gx=Vp?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,a=e.length;r<a;r+=4096)n.push(fa.apply(null,e.subarray(r,r+4096)));return Wx(n.join(""))},Lg=(e,t=!1)=>t?U5(Gx(e)):Gx(e),Eq=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?fa(192|t>>>6)+fa(128|t&63):fa(224|t>>>12&15)+fa(128|t>>>6&63)+fa(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return fa(240|t>>>18&7)+fa(128|t>>>12&63)+fa(128|t>>>6&63)+fa(128|t&63)}},wq=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,G5=e=>e.replace(wq,Eq),K5=Vp?e=>Buffer.from(e,"utf8").toString("base64"):V5?e=>Gx(V5.encode(e)):e=>Wx(G5(e)),zp=(e,t=!1)=>t?U5(K5(e)):K5(e),X5=e=>zp(e,!0),Sq=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Cq=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return fa((n>>>10)+55296)+fa((n&1023)+56320);case 3:return fa((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fa((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Y5=e=>e.replace(Sq,Cq),J5=e=>{if(e=e.replace(/\s+/g,""),!xq.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,a;for(let o=0;o<e.length;)t=Mg[e.charAt(o++)]<<18|Mg[e.charAt(o++)]<<12|(r=Mg[e.charAt(o++)])<<6|(a=Mg[e.charAt(o++)]),n+=r===64?fa(t>>16&255):a===64?fa(t>>16&255,t>>8&255):fa(t>>16&255,t>>8&255,t&255);return n},Kx=typeof atob=="function"?e=>atob(H5(e)):Vp?e=>Buffer.from(e,"base64").toString("binary"):J5,Z5=Vp?e=>z5(Buffer.from(e,"base64")):e=>z5(Kx(e).split("").map(t=>t.charCodeAt(0))),Q5=e=>Z5(q5(e)),Aq=Vp?e=>Buffer.from(e,"base64").toString("utf8"):j5?e=>j5.decode(Z5(e)):e=>Y5(Kx(e)),q5=e=>H5(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Xx=e=>Aq(q5(e)),Tq=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},$5=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),eP=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,$5(n));e("fromBase64",function(){return Xx(this)}),e("toBase64",function(t){return zp(this,t)}),e("toBase64URI",function(){return zp(this,!0)}),e("toBase64URL",function(){return zp(this,!0)}),e("toUint8Array",function(){return Q5(this)})},tP=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,$5(n));e("toBase64",function(t){return Lg(this,t)}),e("toBase64URI",function(){return Lg(this,!0)}),e("toBase64URL",function(){return Lg(this,!0)})},Dq={version:R5,VERSION:_q,atob:Kx,atobPolyfill:J5,btoa:Wx,btoaPolyfill:W5,fromBase64:Xx,toBase64:zp,encode:zp,encodeURI:X5,encodeURL:X5,utob:G5,btou:Y5,decode:Xx,isValid:Tq,fromUint8Array:Lg,toUint8Array:Q5,extendString:eP,extendUint8Array:tP,extendBuiltins:()=>{eP(),tP()}};class Pq{constructor(t,n){z(this,"hexcase",0);z(this,"b64pad","");this.hexcase=t||0,this.b64pad=n||""}hex_md5(t){return this.rstr2hex(this.rstr_md5(this.str2rstr_utf8(t)))}b64_md5(t){return this.rstr2b64(this.rstr_md5(this.str2rstr_utf8(t)))}any_md5(t,n){return this.rstr2any(this.rstr_md5(this.str2rstr_utf8(t)),n)}hex_hmac_md5(t,n){return this.rstr2hex(this.rstr_hmac_md5(this.str2rstr_utf8(t),this.str2rstr_utf8(n)))}b64_hmac_md5(t,n){return this.rstr2b64(this.rstr_hmac_md5(this.str2rstr_utf8(t),this.str2rstr_utf8(n)))}any_hmac_md5(t,n,r){return this.rstr2any(this.rstr_hmac_md5(this.str2rstr_utf8(t),this.str2rstr_utf8(n)),r)}md5_vm_test(){return this.hex_md5("abc").toLowerCase()=="900150983cd24fb0d6963f7d28e17f72"}rstr_md5(t){return this.binl2rstr(this.binl_md5(this.rstr2binl(t),t.length*8))}rstr_hmac_md5(t,n){var r=this.rstr2binl(t);r.length>16&&(r=this.binl_md5(r,t.length*8));for(var a=Array(16),o=Array(16),i=0;i<16;i++)a[i]=r[i]^909522486,o[i]=r[i]^1549556828;var c=this.binl_md5(a.concat(this.rstr2binl(n)),512+n.length*8);return this.binl2rstr(this.binl_md5(o.concat(c),512+128))}rstr2hex(t){try{this.hexcase}catch{this.hexcase=0}for(var n=this.hexcase?"0123456789ABCDEF":"0123456789abcdef",r="",a,o=0;o<t.length;o++)a=t.charCodeAt(o),r+=n.charAt(a>>>4&15)+n.charAt(a&15);return r}rstr2b64(t){try{this.b64pad}catch{this.b64pad=""}for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="",a=t.length,o=0;o<a;o+=3)for(var i=t.charCodeAt(o)<<16|(o+1<a?t.charCodeAt(o+1)<<8:0)|(o+2<a?t.charCodeAt(o+2):0),c=0;c<4;c++)o*8+c*6>t.length*8?r+=this.b64pad:r+=n.charAt(i>>>6*(3-c)&63);return r}rstr2any(t,n){var r=n.length,a,o,i,c,s,l=Array(Math.ceil(t.length/2));for(a=0;a<l.length;a++)l[a]=t.charCodeAt(a*2)<<8|t.charCodeAt(a*2+1);var u=Math.ceil(t.length*8/(Math.log(n.length)/Math.log(2))),f=Array(u);for(o=0;o<u;o++){for(s=Array(),c=0,a=0;a<l.length;a++)c=(c<<16)+l[a],i=Math.floor(c/r),c-=i*r,(s.length>0||i>0)&&(s[s.length]=i);f[o]=c,l=s}var h="";for(a=f.length-1;a>=0;a--)h+=n.charAt(f[a]);return h}str2rstr_utf8(t){for(var n="",r=-1,a,o;++r<t.length;)a=t.charCodeAt(r),o=r+1<t.length?t.charCodeAt(r+1):0,55296<=a&&a<=56319&&56320<=o&&o<=57343&&(a=65536+((a&1023)<<10)+(o&1023),r++),a<=127?n+=String.fromCharCode(a):a<=2047?n+=String.fromCharCode(192|a>>>6&31,128|a&63):a<=65535?n+=String.fromCharCode(224|a>>>12&15,128|a>>>6&63,128|a&63):a<=2097151&&(n+=String.fromCharCode(240|a>>>18&7,128|a>>>12&63,128|a>>>6&63,128|a&63));return n}str2rstr_utf16le(t){for(var n="",r=0;r<t.length;r++)n+=String.fromCharCode(t.charCodeAt(r)&255,t.charCodeAt(r)>>>8&255);return n}str2rstr_utf16be(t){for(var n="",r=0;r<t.length;r++)n+=String.fromCharCode(t.charCodeAt(r)>>>8&255,t.charCodeAt(r)&255);return n}rstr2binl(t){for(var n=Array(t.length>>2),r=0;r<n.length;r++)n[r]=0;for(var r=0;r<t.length*8;r+=8)n[r>>5]|=(t.charCodeAt(r/8)&255)<<r%32;return n}binl2rstr(t){for(var n="",r=0;r<t.length*32;r+=8)n+=String.fromCharCode(t[r>>5]>>>r%32&255);return n}binl_md5(t,n){t[n>>5]|=128<<n%32,t[(n+64>>>9<<4)+14]=n;for(var r=1732584193,a=-271733879,o=-1732584194,i=271733878,c=0;c<t.length;c+=16){var s=r,l=a,u=o,f=i;r=this.md5_ff(r,a,o,i,t[c+0],7,-680876936),i=this.md5_ff(i,r,a,o,t[c+1],12,-389564586),o=this.md5_ff(o,i,r,a,t[c+2],17,606105819),a=this.md5_ff(a,o,i,r,t[c+3],22,-1044525330),r=this.md5_ff(r,a,o,i,t[c+4],7,-176418897),i=this.md5_ff(i,r,a,o,t[c+5],12,1200080426),o=this.md5_ff(o,i,r,a,t[c+6],17,-1473231341),a=this.md5_ff(a,o,i,r,t[c+7],22,-45705983),r=this.md5_ff(r,a,o,i,t[c+8],7,1770035416),i=this.md5_ff(i,r,a,o,t[c+9],12,-1958414417),o=this.md5_ff(o,i,r,a,t[c+10],17,-42063),a=this.md5_ff(a,o,i,r,t[c+11],22,-1990404162),r=this.md5_ff(r,a,o,i,t[c+12],7,1804603682),i=this.md5_ff(i,r,a,o,t[c+13],12,-40341101),o=this.md5_ff(o,i,r,a,t[c+14],17,-1502002290),a=this.md5_ff(a,o,i,r,t[c+15],22,1236535329),r=this.md5_gg(r,a,o,i,t[c+1],5,-165796510),i=this.md5_gg(i,r,a,o,t[c+6],9,-1069501632),o=this.md5_gg(o,i,r,a,t[c+11],14,643717713),a=this.md5_gg(a,o,i,r,t[c+0],20,-373897302),r=this.md5_gg(r,a,o,i,t[c+5],5,-701558691),i=this.md5_gg(i,r,a,o,t[c+10],9,38016083),o=this.md5_gg(o,i,r,a,t[c+15],14,-660478335),a=this.md5_gg(a,o,i,r,t[c+4],20,-405537848),r=this.md5_gg(r,a,o,i,t[c+9],5,568446438),i=this.md5_gg(i,r,a,o,t[c+14],9,-1019803690),o=this.md5_gg(o,i,r,a,t[c+3],14,-187363961),a=this.md5_gg(a,o,i,r,t[c+8],20,1163531501),r=this.md5_gg(r,a,o,i,t[c+13],5,-1444681467),i=this.md5_gg(i,r,a,o,t[c+2],9,-51403784),o=this.md5_gg(o,i,r,a,t[c+7],14,1735328473),a=this.md5_gg(a,o,i,r,t[c+12],20,-1926607734),r=this.md5_hh(r,a,o,i,t[c+5],4,-378558),i=this.md5_hh(i,r,a,o,t[c+8],11,-2022574463),o=this.md5_hh(o,i,r,a,t[c+11],16,1839030562),a=this.md5_hh(a,o,i,r,t[c+14],23,-35309556),r=this.md5_hh(r,a,o,i,t[c+1],4,-1530992060),i=this.md5_hh(i,r,a,o,t[c+4],11,1272893353),o=this.md5_hh(o,i,r,a,t[c+7],16,-155497632),a=this.md5_hh(a,o,i,r,t[c+10],23,-1094730640),r=this.md5_hh(r,a,o,i,t[c+13],4,681279174),i=this.md5_hh(i,r,a,o,t[c+0],11,-358537222),o=this.md5_hh(o,i,r,a,t[c+3],16,-722521979),a=this.md5_hh(a,o,i,r,t[c+6],23,76029189),r=this.md5_hh(r,a,o,i,t[c+9],4,-640364487),i=this.md5_hh(i,r,a,o,t[c+12],11,-421815835),o=this.md5_hh(o,i,r,a,t[c+15],16,530742520),a=this.md5_hh(a,o,i,r,t[c+2],23,-995338651),r=this.md5_ii(r,a,o,i,t[c+0],6,-198630844),i=this.md5_ii(i,r,a,o,t[c+7],10,1126891415),o=this.md5_ii(o,i,r,a,t[c+14],15,-1416354905),a=this.md5_ii(a,o,i,r,t[c+5],21,-57434055),r=this.md5_ii(r,a,o,i,t[c+12],6,1700485571),i=this.md5_ii(i,r,a,o,t[c+3],10,-1894986606),o=this.md5_ii(o,i,r,a,t[c+10],15,-1051523),a=this.md5_ii(a,o,i,r,t[c+1],21,-2054922799),r=this.md5_ii(r,a,o,i,t[c+8],6,1873313359),i=this.md5_ii(i,r,a,o,t[c+15],10,-30611744),o=this.md5_ii(o,i,r,a,t[c+6],15,-1560198380),a=this.md5_ii(a,o,i,r,t[c+13],21,1309151649),r=this.md5_ii(r,a,o,i,t[c+4],6,-145523070),i=this.md5_ii(i,r,a,o,t[c+11],10,-1120210379),o=this.md5_ii(o,i,r,a,t[c+2],15,718787259),a=this.md5_ii(a,o,i,r,t[c+9],21,-343485551),r=this.safe_add(r,s),a=this.safe_add(a,l),o=this.safe_add(o,u),i=this.safe_add(i,f)}return[r,a,o,i]}md5_cmn(t,n,r,a,o,i){return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(n,t),this.safe_add(a,i)),o),r)}md5_ff(t,n,r,a,o,i,c){return this.md5_cmn(n&r|~n&a,t,n,o,i,c)}md5_gg(t,n,r,a,o,i,c){return this.md5_cmn(n&a|r&~a,t,n,o,i,c)}md5_hh(t,n,r,a,o,i,c){return this.md5_cmn(n^r^a,t,n,o,i,c)}md5_ii(t,n,r,a,o,i,c){return this.md5_cmn(r^(n|~a),t,n,o,i,c)}safe_add(t,n){var r=(t&65535)+(n&65535),a=(t>>16)+(n>>16)+(r>>16);return a<<16|r&65535}bit_rol(t,n){return t<<n|t>>>32-n}}const Yx=new Pq,Jx=(e,t)=>{if(!e)return"";e.timeStamp=new Date().getTime();const n=LY(e),a=Zr(n)+t,o=Yx==null?void 0:Yx.hex_md5(a),i=Dq.encode(o);return n.dataDigest=i,n},kq={traceBody:Jx,encodeSM2:(e,t,n)=>{const r=Jx(e,t);return Ud.encrypt(Zr(r),n)},decodeSM2:(e,t)=>{if(hr(e))return null;const n=Ud.decrypt(e,t);var r=ri(n);return n!==null&&r===null&&Hi.info("decodeSM2",{sm2Decrypt:n}),r},encodeSM4:(e,t,n,r)=>{const a=Jx(e,t);return Hx.encrypt(Zr(a),n,r)},decodeSM4:(e,t,n)=>{if(hr(e))return null;const r=Hx.decrypt(e,t,n);var a=ri(r);return r!==null&&a===null&&Hi.info("decodeSM4",{sm4Decrypt:r}),a}};var Kd={},Oq={get exports(){return Kd},set exports(e){Kd=e}},Rg={},Bq={get exports(){return Rg},set exports(e){Rg=e}},Ro={},Qr={};Qr.__esModule=!0,Qr.extend=nP,Qr.indexOf=Lq,Qr.escapeExpression=Rq,Qr.isEmpty=jq,Qr.createFrame=Vq,Qr.blockParams=zq,Qr.appendContextPath=Uq;var Iq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},Nq=/[&<>"'`=]/g,Fq=/[&<>"'`=]/;function Mq(e){return Iq[e]}function nP(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var Zx=Object.prototype.toString;Qr.toString=Zx;var Qx=function(t){return typeof t=="function"};Qx(/x/)&&(Qr.isFunction=Qx=function(e){return typeof e=="function"&&Zx.call(e)==="[object Function]"}),Qr.isFunction=Qx;var rP=Array.isArray||function(e){return e&&typeof e=="object"?Zx.call(e)==="[object Array]":!1};Qr.isArray=rP;function Lq(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Rq(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Fq.test(e)?e.replace(Nq,Mq):e}function jq(e){return!e&&e!==0?!0:!!(rP(e)&&e.length===0)}function Vq(e){var t=nP({},e);return t._parent=e,t}function zq(e,t){return e.path=t,e}function Uq(e,t){return(e?e+".":"")+t}var ao={},Hq={get exports(){return ao},set exports(e){ao=e}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(a,o){var i=o&&o.loc,c=void 0,s=void 0,l=void 0,u=void 0;i&&(c=i.start.line,s=i.end.line,l=i.start.column,u=i.end.column,a+=" - "+c+":"+l);for(var f=Error.prototype.constructor.call(this,a),h=0;h<n.length;h++)this[n[h]]=f[n[h]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=c,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0})):(this.column=l,this.endColumn=u))}catch{}}r.prototype=new Error,t.default=r,e.exports=t.default})(Hq,ao);var Xd={},jg={},Wq={get exports(){return jg},set exports(e){jg=e}};(function(e,t){t.__esModule=!0;var n=Qr;t.default=function(r){r.registerHelper("blockHelperMissing",function(a,o){var i=o.inverse,c=o.fn;if(a===!0)return c(this);if(a===!1||a==null)return i(this);if(n.isArray(a))return a.length>0?(o.ids&&(o.ids=[o.name]),r.helpers.each(a,o)):i(this);if(o.data&&o.ids){var s=n.createFrame(o.data);s.contextPath=n.appendContextPath(o.data.contextPath,o.name),o={data:s}}return c(a,o)})},e.exports=t.default})(Wq,jg);var Vg={},Gq={get exports(){return Vg},set exports(e){Vg=e}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Qr,a=ao,o=n(a);t.default=function(i){i.registerHelper("each",function(c,s){if(!s)throw new o.default("Must pass iterator to #each");var l=s.fn,u=s.inverse,f=0,h="",d=void 0,v=void 0;s.data&&s.ids&&(v=r.appendContextPath(s.data.contextPath,s.ids[0])+"."),r.isFunction(c)&&(c=c.call(this)),s.data&&(d=r.createFrame(s.data));function m(_,E,w){d&&(d.key=_,d.index=E,d.first=E===0,d.last=!!w,v&&(d.contextPath=v+_)),h=h+l(c[_],{data:d,blockParams:r.blockParams([c[_],_],[v+_,null])})}if(c&&typeof c=="object")if(r.isArray(c))for(var p=c.length;f<p;f++)f in c&&m(f,f,f===c.length-1);else if(typeof Symbol=="function"&&c[Symbol.iterator]){for(var g=[],y=c[Symbol.iterator](),b=y.next();!b.done;b=y.next())g.push(b.value);c=g;for(var p=c.length;f<p;f++)m(f,f,f===c.length-1)}else(function(){var _=void 0;Object.keys(c).forEach(function(E){_!==void 0&&m(_,f-1),_=E,f++}),_!==void 0&&m(_,f-1,!0)})();return f===0&&(h=u(this)),h})},e.exports=t.default})(Gq,Vg);var zg={},Kq={get exports(){return zg},set exports(e){zg=e}};(function(e,t){t.__esModule=!0;function n(o){return o&&o.__esModule?o:{default:o}}var r=ao,a=n(r);t.default=function(o){o.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(Kq,zg);var Ug={},Xq={get exports(){return Ug},set exports(e){Ug=e}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Qr,a=ao,o=n(a);t.default=function(i){i.registerHelper("if",function(c,s){if(arguments.length!=2)throw new o.default("#if requires exactly one argument");return r.isFunction(c)&&(c=c.call(this)),!s.hash.includeZero&&!c||r.isEmpty(c)?s.inverse(this):s.fn(this)}),i.registerHelper("unless",function(c,s){if(arguments.length!=2)throw new o.default("#unless requires exactly one argument");return i.helpers.if.call(this,c,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(Xq,Ug);var Hg={},Yq={get exports(){return Hg},set exports(e){Hg=e}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var r=[void 0],a=arguments[arguments.length-1],o=0;o<arguments.length-1;o++)r.push(arguments[o]);var i=1;a.hash.level!=null?i=a.hash.level:a.data&&a.data.level!=null&&(i=a.data.level),r[0]=i,n.log.apply(n,r)})},e.exports=t.default})(Yq,Hg);var Wg={},Jq={get exports(){return Wg},set exports(e){Wg=e}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(r,a,o){return r&&o.lookupProperty(r,a)})},e.exports=t.default})(Jq,Wg);var Gg={},Zq={get exports(){return Gg},set exports(e){Gg=e}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Qr,a=ao,o=n(a);t.default=function(i){i.registerHelper("with",function(c,s){if(arguments.length!=2)throw new o.default("#with requires exactly one argument");r.isFunction(c)&&(c=c.call(this));var l=s.fn;if(r.isEmpty(c))return s.inverse(this);var u=s.data;return s.data&&s.ids&&(u=r.createFrame(s.data),u.contextPath=r.appendContextPath(s.data.contextPath,s.ids[0])),l(c,{data:u,blockParams:r.blockParams([c],[u&&u.contextPath])})})},e.exports=t.default})(Zq,Gg),Xd.__esModule=!0,Xd.registerDefaultHelpers=f$,Xd.moveHelperToHooks=p$;function Gc(e){return e&&e.__esModule?e:{default:e}}var Qq=jg,qq=Gc(Qq),$q=Vg,e$=Gc($q),t$=zg,n$=Gc(t$),r$=Ug,i$=Gc(r$),a$=Hg,o$=Gc(a$),s$=Wg,l$=Gc(s$),u$=Gg,c$=Gc(u$);function f$(e){qq.default(e),e$.default(e),n$.default(e),i$.default(e),o$.default(e),l$.default(e),c$.default(e)}function p$(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])}var qx={},Kg={},h$={get exports(){return Kg},set exports(e){Kg=e}};(function(e,t){t.__esModule=!0;var n=Qr;t.default=function(r){r.registerDecorator("inline",function(a,o,i,c){var s=a;return o.partials||(o.partials={},s=function(l,u){var f=i.partials;i.partials=n.extend({},f,o.partials);var h=a(l,u);return i.partials=f,h}),o.partials[c.args[0]]=c.fn,s})},e.exports=t.default})(h$,Kg),qx.__esModule=!0,qx.registerDefaultDecorators=g$;function d$(e){return e&&e.__esModule?e:{default:e}}var v$=Kg,m$=d$(v$);function g$(e){m$.default(e)}var Yd={},y$={get exports(){return Yd},set exports(e){Yd=e}};(function(e,t){t.__esModule=!0;var n=Qr,r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(o){if(typeof o=="string"){var i=n.indexOf(r.methodMap,o.toLowerCase());i>=0?o=i:o=parseInt(o,10)}return o},log:function(o){if(o=r.lookupLevel(o),typeof console<"u"&&r.lookupLevel(r.level)<=o){var i=r.methodMap[o];console[i]||(i="log");for(var c=arguments.length,s=Array(c>1?c-1:0),l=1;l<c;l++)s[l-1]=arguments[l];console[i].apply(console,s)}}};t.default=r,e.exports=t.default})(y$,Yd);var Up={},$x={};$x.__esModule=!0,$x.createNewLookupObject=b$;var _$=Qr;function b$(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return _$.extend.apply(void 0,[Object.create(null)].concat(t))}Up.__esModule=!0,Up.createProtoAccessControl=S$,Up.resultIsAllowed=C$,Up.resetLoggedProperties=T$;function x$(e){return e&&e.__esModule?e:{default:e}}var iP=$x,E$=Yd,w$=x$(E$),Xg=Object.create(null);function S$(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:iP.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:iP.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function C$(e,t,n){return aP(typeof e=="function"?t.methods:t.properties,n)}function aP(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(A$(t),!1)}function A$(e){Xg[e]!==!0&&(Xg[e]=!0,w$.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
@@ -66,7 +66,7 @@ Expecting `+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":k="Parse error on
66
66
  * derived from CryptoJS.mode.CTR
67
67
  * Jan Hruby jhruby.web@gmail.com
68
68
  */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function a(c){if((c>>24&255)===255){var s=c>>16&255,l=c>>8&255,u=c&255;s===255?(s=0,l===255?(l=0,u===255?u=0:++u):++l):++s,c=0,c+=s<<16,c+=l<<8,c+=u}else c+=1<<24;return c}function o(c){return(c[0]=a(c[0]))===0&&(c[1]=a(c[1])),c}var i=r.Encryptor=r.extend({processBlock:function(c,s){var l=this._cipher,u=l.blockSize,f=this._iv,h=this._counter;f&&(h=this._counter=f.slice(0),this._iv=void 0),o(h);var d=h.slice(0);l.encryptBlock(d,0);for(var v=0;v<u;v++)c[s+v]^=d[v]}});return r.Decryptor=i,r}(),n.mode.CTRGladman})}(Tte)),Cy}var Ay={},Pte={get exports(){return Ay},set exports(e){Ay=e}},ak;function kte(){return ak||(ak=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),ra())})(Jn,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),a=r.Encryptor=r.extend({processBlock:function(o,i){var c=this._cipher,s=c.blockSize,l=this._iv,u=this._keystream;l&&(u=this._keystream=l.slice(0),this._iv=void 0),c.encryptBlock(u,0);for(var f=0;f<s;f++)o[i+f]^=u[f]}});return r.Decryptor=a,r}(),n.mode.OFB})}(Pte)),Ay}var Ty={},Ote={get exports(){return Ty},set exports(e){Ty=e}},ok;function Bte(){return ok||(ok=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),ra())})(Jn,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(a,o){this._cipher.encryptBlock(a,o)}}),r.Decryptor=r.extend({processBlock:function(a,o){this._cipher.decryptBlock(a,o)}}),r}(),n.mode.ECB})}(Ote)),Ty}var Dy={},Ite={get exports(){return Dy},set exports(e){Dy=e}},sk;function Nte(){return sk||(sk=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),ra())})(Jn,function(n){return n.pad.AnsiX923={pad:function(r,a){var o=r.sigBytes,i=a*4,c=i-o%i,s=o+c-1;r.clamp(),r.words[s>>>2]|=c<<24-s%4*8,r.sigBytes+=c},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Ansix923})}(Ite)),Dy}var Py={},Fte={get exports(){return Py},set exports(e){Py=e}},lk;function Mte(){return lk||(lk=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),ra())})(Jn,function(n){return n.pad.Iso10126={pad:function(r,a){var o=a*4,i=o-r.sigBytes%o;r.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(r){var a=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=a}},n.pad.Iso10126})}(Fte)),Py}var ky={},Lte={get exports(){return ky},set exports(e){ky=e}},uk;function Rte(){return uk||(uk=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),ra())})(Jn,function(n){return n.pad.Iso97971={pad:function(r,a){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,a)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(Lte)),ky}var Oy={},jte={get exports(){return Oy},set exports(e){Oy=e}},ck;function Vte(){return ck||(ck=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),ra())})(Jn,function(n){return n.pad.ZeroPadding={pad:function(r,a){var o=a*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var a=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(a[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},n.pad.ZeroPadding})}(jte)),Oy}var By={},zte={get exports(){return By},set exports(e){By=e}},fk;function Ute(){return fk||(fk=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),ra())})(Jn,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(zte)),By}var Iy={},Hte={get exports(){return Iy},set exports(e){Iy=e}},pk;function Wte(){return pk||(pk=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),ra())})(Jn,function(n){return function(r){var a=n,o=a.lib,i=o.CipherParams,c=a.enc,s=c.Hex,l=a.format;l.Hex={stringify:function(u){return u.ciphertext.toString(s)},parse:function(u){var f=s.parse(u);return i.create({ciphertext:f})}}}(),n.format.Hex})}(Hte)),Iy}var Ny={},Gte={get exports(){return Ny},set exports(e){Ny=e}},hk;function Kte(){return hk||(hk=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),Yc(),Jc(),ku(),ra())})(Jn,function(n){return function(){var r=n,a=r.lib,o=a.BlockCipher,i=r.algo,c=[],s=[],l=[],u=[],f=[],h=[],d=[],v=[],m=[],p=[];(function(){for(var b=[],_=0;_<256;_++)_<128?b[_]=_<<1:b[_]=_<<1^283;for(var E=0,w=0,_=0;_<256;_++){var S=w^w<<1^w<<2^w<<3^w<<4;S=S>>>8^S&255^99,c[E]=S,s[S]=E;var A=b[E],P=b[A],C=b[P],D=b[S]*257^S*16843008;l[E]=D<<24|D>>>8,u[E]=D<<16|D>>>16,f[E]=D<<8|D>>>24,h[E]=D;var D=C*16843009^P*65537^A*257^E*16843008;d[S]=D<<24|D>>>8,v[S]=D<<16|D>>>16,m[S]=D<<8|D>>>24,p[S]=D,E?(E=A^b[b[b[C^A]]],w^=b[b[w]]):E=w=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],y=i.AES=o.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,E=_.words,w=_.sigBytes/4,S=this._nRounds=w+6,A=(S+1)*4,P=this._keySchedule=[],C=0;C<A;C++)C<w?P[C]=E[C]:(b=P[C-1],C%w?w>6&&C%w==4&&(b=c[b>>>24]<<24|c[b>>>16&255]<<16|c[b>>>8&255]<<8|c[b&255]):(b=b<<8|b>>>24,b=c[b>>>24]<<24|c[b>>>16&255]<<16|c[b>>>8&255]<<8|c[b&255],b^=g[C/w|0]<<24),P[C]=P[C-w]^b);for(var D=this._invKeySchedule=[],k=0;k<A;k++){var C=A-k;if(k%4)var b=P[C];else var b=P[C-4];k<4||C<=4?D[k]=b:D[k]=d[c[b>>>24]]^v[c[b>>>16&255]]^m[c[b>>>8&255]]^p[c[b&255]]}}},encryptBlock:function(b,_){this._doCryptBlock(b,_,this._keySchedule,l,u,f,h,c)},decryptBlock:function(b,_){var E=b[_+1];b[_+1]=b[_+3],b[_+3]=E,this._doCryptBlock(b,_,this._invKeySchedule,d,v,m,p,s);var E=b[_+1];b[_+1]=b[_+3],b[_+3]=E},_doCryptBlock:function(b,_,E,w,S,A,P,C){for(var D=this._nRounds,k=b[_]^E[0],O=b[_+1]^E[1],I=b[_+2]^E[2],N=b[_+3]^E[3],F=4,R=1;R<D;R++){var M=w[k>>>24]^S[O>>>16&255]^A[I>>>8&255]^P[N&255]^E[F++],j=w[O>>>24]^S[I>>>16&255]^A[N>>>8&255]^P[k&255]^E[F++],W=w[I>>>24]^S[N>>>16&255]^A[k>>>8&255]^P[O&255]^E[F++],L=w[N>>>24]^S[k>>>16&255]^A[O>>>8&255]^P[I&255]^E[F++];k=M,O=j,I=W,N=L}var M=(C[k>>>24]<<24|C[O>>>16&255]<<16|C[I>>>8&255]<<8|C[N&255])^E[F++],j=(C[O>>>24]<<24|C[I>>>16&255]<<16|C[N>>>8&255]<<8|C[k&255])^E[F++],W=(C[I>>>24]<<24|C[N>>>16&255]<<16|C[k>>>8&255]<<8|C[O&255])^E[F++],L=(C[N>>>24]<<24|C[k>>>16&255]<<16|C[O>>>8&255]<<8|C[I&255])^E[F++];b[_]=M,b[_+1]=j,b[_+2]=W,b[_+3]=L},keySize:256/32});r.AES=o._createHelper(y)}(),n.AES})}(Gte)),Ny}var Fy={},Xte={get exports(){return Fy},set exports(e){Fy=e}},dk;function Yte(){return dk||(dk=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),Yc(),Jc(),ku(),ra())})(Jn,function(n){return function(){var r=n,a=r.lib,o=a.WordArray,i=a.BlockCipher,c=r.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=c.DES=i.extend({_doReset:function(){for(var g=this._key,y=g.words,b=[],_=0;_<56;_++){var E=s[_]-1;b[_]=y[E>>>5]>>>31-E%32&1}for(var w=this._subKeys=[],S=0;S<16;S++){for(var A=w[S]=[],P=u[S],_=0;_<24;_++)A[_/6|0]|=b[(l[_]-1+P)%28]<<31-_%6,A[4+(_/6|0)]|=b[28+(l[_+24]-1+P)%28]<<31-_%6;A[0]=A[0]<<1|A[0]>>>31;for(var _=1;_<7;_++)A[_]=A[_]>>>(_-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var C=this._invSubKeys=[],_=0;_<16;_++)C[_]=w[15-_]},encryptBlock:function(g,y){this._doCryptBlock(g,y,this._subKeys)},decryptBlock:function(g,y){this._doCryptBlock(g,y,this._invSubKeys)},_doCryptBlock:function(g,y,b){this._lBlock=g[y],this._rBlock=g[y+1],v.call(this,4,252645135),v.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),v.call(this,1,1431655765);for(var _=0;_<16;_++){for(var E=b[_],w=this._lBlock,S=this._rBlock,A=0,P=0;P<8;P++)A|=f[P][((S^E[P])&h[P])>>>0];this._lBlock=S,this._rBlock=w^A}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,v.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),v.call(this,16,65535),v.call(this,4,252645135),g[y]=this._lBlock,g[y+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function v(g,y){var b=(this._lBlock>>>g^this._rBlock)&y;this._rBlock^=b,this._lBlock^=b<<g}function m(g,y){var b=(this._rBlock>>>g^this._lBlock)&y;this._lBlock^=b,this._rBlock^=b<<g}r.DES=i._createHelper(d);var p=c.TripleDES=i.extend({_doReset:function(){var g=this._key,y=g.words;if(y.length!==2&&y.length!==4&&y.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=y.slice(0,2),_=y.length<4?y.slice(0,2):y.slice(2,4),E=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=d.createEncryptor(o.create(b)),this._des2=d.createEncryptor(o.create(_)),this._des3=d.createEncryptor(o.create(E))},encryptBlock:function(g,y){this._des1.encryptBlock(g,y),this._des2.decryptBlock(g,y),this._des3.encryptBlock(g,y)},decryptBlock:function(g,y){this._des3.decryptBlock(g,y),this._des2.encryptBlock(g,y),this._des1.decryptBlock(g,y)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=i._createHelper(p)}(),n.TripleDES})}(Xte)),Fy}var My={},Jte={get exports(){return My},set exports(e){My=e}},vk;function Zte(){return vk||(vk=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),Yc(),Jc(),ku(),ra())})(Jn,function(n){return function(){var r=n,a=r.lib,o=a.StreamCipher,i=r.algo,c=i.RC4=o.extend({_doReset:function(){for(var u=this._key,f=u.words,h=u.sigBytes,d=this._S=[],v=0;v<256;v++)d[v]=v;for(var v=0,m=0;v<256;v++){var p=v%h,g=f[p>>>2]>>>24-p%4*8&255;m=(m+d[v]+g)%256;var y=d[v];d[v]=d[m],d[m]=y}this._i=this._j=0},_doProcessBlock:function(u,f){u[f]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var u=this._S,f=this._i,h=this._j,d=0,v=0;v<4;v++){f=(f+1)%256,h=(h+u[f])%256;var m=u[f];u[f]=u[h],u[h]=m,d|=u[(u[f]+u[h])%256]<<24-v*8}return this._i=f,this._j=h,d}r.RC4=o._createHelper(c);var l=i.RC4Drop=c.extend({cfg:c.cfg.extend({drop:192}),_doReset:function(){c._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)s.call(this)}});r.RC4Drop=o._createHelper(l)}(),n.RC4})}(Jte)),My}var Ly={},Qte={get exports(){return Ly},set exports(e){Ly=e}},mk;function qte(){return mk||(mk=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),Yc(),Jc(),ku(),ra())})(Jn,function(n){return function(){var r=n,a=r.lib,o=a.StreamCipher,i=r.algo,c=[],s=[],l=[],u=i.Rabbit=o.extend({_doReset:function(){for(var h=this._key.words,d=this.cfg.iv,v=0;v<4;v++)h[v]=(h[v]<<8|h[v]>>>24)&16711935|(h[v]<<24|h[v]>>>8)&4278255360;var m=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],p=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var v=0;v<4;v++)f.call(this);for(var v=0;v<8;v++)p[v]^=m[v+4&7];if(d){var g=d.words,y=g[0],b=g[1],_=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=_>>>16|E&4294901760,S=E<<16|_&65535;p[0]^=_,p[1]^=w,p[2]^=E,p[3]^=S,p[4]^=_,p[5]^=w,p[6]^=E,p[7]^=S;for(var v=0;v<4;v++)f.call(this)}},_doProcessBlock:function(h,d){var v=this._X;f.call(this),c[0]=v[0]^v[5]>>>16^v[3]<<16,c[1]=v[2]^v[7]>>>16^v[5]<<16,c[2]=v[4]^v[1]>>>16^v[7]<<16,c[3]=v[6]^v[3]>>>16^v[1]<<16;for(var m=0;m<4;m++)c[m]=(c[m]<<8|c[m]>>>24)&16711935|(c[m]<<24|c[m]>>>8)&4278255360,h[d+m]^=c[m]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,d=this._C,v=0;v<8;v++)s[v]=d[v];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<s[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<s[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<s[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<s[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<s[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<s[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<s[6]>>>0?1:0)|0,this._b=d[7]>>>0<s[7]>>>0?1:0;for(var v=0;v<8;v++){var m=h[v]+d[v],p=m&65535,g=m>>>16,y=((p*p>>>17)+p*g>>>15)+g*g,b=((m&4294901760)*m|0)+((m&65535)*m|0);l[v]=y^b}h[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,h[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,h[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,h[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,h[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,h[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,h[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,h[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}r.Rabbit=o._createHelper(u)}(),n.Rabbit})}(Qte)),Ly}var Ry={},$te={get exports(){return Ry},set exports(e){Ry=e}},gk;function ene(){return gk||(gk=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),Yc(),Jc(),ku(),ra())})(Jn,function(n){return function(){var r=n,a=r.lib,o=a.StreamCipher,i=r.algo,c=[],s=[],l=[],u=i.RabbitLegacy=o.extend({_doReset:function(){var h=this._key.words,d=this.cfg.iv,v=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],m=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var p=0;p<4;p++)f.call(this);for(var p=0;p<8;p++)m[p]^=v[p+4&7];if(d){var g=d.words,y=g[0],b=g[1],_=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=_>>>16|E&4294901760,S=E<<16|_&65535;m[0]^=_,m[1]^=w,m[2]^=E,m[3]^=S,m[4]^=_,m[5]^=w,m[6]^=E,m[7]^=S;for(var p=0;p<4;p++)f.call(this)}},_doProcessBlock:function(h,d){var v=this._X;f.call(this),c[0]=v[0]^v[5]>>>16^v[3]<<16,c[1]=v[2]^v[7]>>>16^v[5]<<16,c[2]=v[4]^v[1]>>>16^v[7]<<16,c[3]=v[6]^v[3]>>>16^v[1]<<16;for(var m=0;m<4;m++)c[m]=(c[m]<<8|c[m]>>>24)&16711935|(c[m]<<24|c[m]>>>8)&4278255360,h[d+m]^=c[m]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,d=this._C,v=0;v<8;v++)s[v]=d[v];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<s[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<s[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<s[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<s[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<s[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<s[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<s[6]>>>0?1:0)|0,this._b=d[7]>>>0<s[7]>>>0?1:0;for(var v=0;v<8;v++){var m=h[v]+d[v],p=m&65535,g=m>>>16,y=((p*p>>>17)+p*g>>>15)+g*g,b=((m&4294901760)*m|0)+((m&65535)*m|0);l[v]=y^b}h[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,h[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,h[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,h[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,h[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,h[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,h[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,h[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}r.RabbitLegacy=o._createHelper(u)}(),n.RabbitLegacy})}($te)),Ry}var jy={},tne={get exports(){return jy},set exports(e){jy=e}},yk;function nne(){return yk||(yk=1,function(e,t){(function(n,r,a){e.exports=r(Dr(),Yc(),Jc(),ku(),ra())})(Jn,function(n){return function(){var r=n,a=r.lib,o=a.BlockCipher,i=r.algo;const c=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],l=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function f(p,g){let y=g>>24&255,b=g>>16&255,_=g>>8&255,E=g&255,w=p.sbox[0][y]+p.sbox[1][b];return w=w^p.sbox[2][_],w=w+p.sbox[3][E],w}function h(p,g,y){let b=g,_=y,E;for(let w=0;w<c;++w)b=b^p.pbox[w],_=f(p,b)^_,E=b,b=_,_=E;return E=b,b=_,_=E,_=_^p.pbox[c],b=b^p.pbox[c+1],{left:b,right:_}}function d(p,g,y){let b=g,_=y,E;for(let w=c+1;w>1;--w)b=b^p.pbox[w],_=f(p,b)^_,E=b,b=_,_=E;return E=b,b=_,_=E,_=_^p.pbox[1],b=b^p.pbox[0],{left:b,right:_}}function v(p,g,y){for(let S=0;S<4;S++){p.sbox[S]=[];for(let A=0;A<256;A++)p.sbox[S][A]=l[S][A]}let b=0;for(let S=0;S<c+2;S++)p.pbox[S]=s[S]^g[b],b++,b>=y&&(b=0);let _=0,E=0,w=0;for(let S=0;S<c+2;S+=2)w=h(p,_,E),_=w.left,E=w.right,p.pbox[S]=_,p.pbox[S+1]=E;for(let S=0;S<4;S++)for(let A=0;A<256;A+=2)w=h(p,_,E),_=w.left,E=w.right,p.sbox[S][A]=_,p.sbox[S][A+1]=E;return!0}var m=i.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var p=this._keyPriorReset=this._key,g=p.words,y=p.sigBytes/4;v(u,g,y)}},encryptBlock:function(p,g){var y=h(u,p[g],p[g+1]);p[g]=y.left,p[g+1]=y.right},decryptBlock:function(p,g){var y=d(u,p[g],p[g+1]);p[g]=y.left,p[g+1]=y.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(m)}(),n.Blowfish})}(tne)),jy}(function(e,t){(function(n,r,a){e.exports=r(Dr(),oy(),ete(),nte(),Yc(),ate(),Jc(),WP(),yE(),cte(),YP(),hte(),vte(),gte(),_E(),bte(),ku(),ra(),Ste(),Ate(),Dte(),kte(),Bte(),Nte(),Mte(),Rte(),Vte(),Ute(),Wte(),Kte(),Yte(),Zte(),qte(),ene(),nne())})(Jn,function(n){return n})})(Jee);const zo=gE;function _k(e,t,n,r,a){const o=a.parse(e),i={iv:t,mode:n,padding:r};return{encrypt:(l,u)=>{const f=a.parse(l),h=zo.AES.encrypt(f,o,i);return u?zo.enc.Hex.stringify(h==null?void 0:h.ciphertext):h.toString()},decrypt:(l,u)=>{if(u){const f={ciphertext:zo.enc.Hex.parse(l)},h=zo.AES.decrypt(f,o,i);return h==null?void 0:h.toString(a)}else return zo.AES.decrypt(l,o,i)}}}function rne(e,t){var n=_k(e,t,zo.mode.CBC,zo.pad.Pkcs7,zo.enc.Utf8);return n}function ine(e,t){var n=_k(e,t,zo.mode.ECB,zo.pad.Pkcs7,zo.enc.Utf8);return n}const{openWindow:ane}=zx(),{sendToIframe:one,sendToParent:sne,receive:lne,sendToIframeByName:une,send:cne}=a5();function Zc(e){return{instance:e==null?void 0:e.instance,compParams:e==null?void 0:e.compParams,util:{url:Nl,cookie:xD,localStorage:Rc,service:vq,sysFunc:{...bk,idCardInfo:Fl,uniqueBy:VY,sortBy:jY,groupBy:mT,pageBy:gT},window:{openWindow:ane,findUp:go.findUp,findDown:go.findDown,find:go.find,findByIframeId:go.findByIframeId,findTop:go.findTop},message:{send:cne,sendToIframe:one,sendToParent:sne,sendToIframeByName:une,receive:lne},tip:{ElMessage:vi.ElMessage,ElMessageBox:vi.ElMessageBox,ElNotification:vi.ElNotification},json:{fromJson:ri,toJson:Zr},security:{CryptoJS:zo,SM:{SMWithTraceKey:kq,SM2:Ud,SM4:Hx,SecInner:Og},AES:{CBC_Pkcs7:rne,ECB_Pkcs7:ine}}}}}const bk=Gee();Hr.rowScope+"",se.i18nt("designer.var.rowScope");const bE=function(e){return{[Er.number]:/^[-+]?(\d+\.\d+|\d+|\.\d+)$/,[Er.letter]:/^[A-Za-z]+$/,[Er.letterAndNumber]:/^[A-Za-z0-9]+$/,[Er.letterStartNumberIncluded]:/^[A-Za-z]+[A-Za-z\d]*$/,[Er.mobilePhone]:/^[1][3-9][0-9]{9}$/,[Er.email]:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,[Er.url]:/^(https?|ftp):\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/,[Er.noBlankStart]:/^[^\s].*$/,[Er.noBlankEnd]:/^.*[^\s]$/,[Er.noBlankStartEnd]:/^[^\s].*[^\s]$/,[Er.weakPassword]:/^[A-Za-z\d]{6,}$/,[Er.mediumPassword]:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/,[Er.strongPassword]:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*]).{10,}$/,[Er.noChinese]:/^[^\u4e00-\u9fa5]+$/,[Er.chinese]:/^[\u4e00-\u9fa5]+$/,[Er.chinaIdcard]:Fl.isValid,[Er.required]:n=>n!=null&&n!==""&&(!Array.isArray(n)||n.length>0)}[e]},fne=(e,t,n)=>{var r=new Error(t);return r.rule=e,r.force=n,r},xk=(e,t,n,r,a)=>{e?n():n(fne(t,r,a))},Vy=function(e,t,n,r,a,o){if(rx(e)){r();return}let i=a,c=!0;kY(e)?c=e==null?void 0:e(n):c=new RegExp(e).test(n),xk(c,t,r,i,o)},Aa=function(e,t,n,r,a,o){if(hr(n)){r();return}if(Array.isArray(n)&&n.length<=0){r();return}Vy(bE(e),t,n,r,a,o)},Hp={number(e,t,n,r){Aa(Er.number,e,t,n,se.i18nt("render.hint.numberFailed"),r)},letter(e,t,n,r){Aa(Er.letter,e,t,n,se.i18nt("render.hint.letterFailed"),r)},letterAndNumber(e,t,n,r){Aa(Er.letterAndNumber,e,t,n,se.i18nt("render.hint.letterAndNumberFailed"),r)},mobilePhone(e,t,n,r){Aa(Er.mobilePhone,e,t,n,se.i18nt("render.hint.mobilePhoneFailed"),r)},noBlankStart(e,t,n,r){Aa(Er.noBlankStart,e,t,n,se.i18nt("render.hint.noBlankStartFailed"),r)},noBlankEnd(e,t,n,r){Aa(Er.noBlankEnd,e,t,n,se.i18nt("render.hint.noBlankEndFailed"),r)},noBlankStartEnd(e,t,n,r){Aa(Er.noBlankStartEnd,e,t,n,se.i18nt("render.hint.noBlankStartEndFailed"),r)},letterStartNumberIncluded(e,t,n,r){Aa(Er.letterStartNumberIncluded,e,t,n,se.i18nt("render.hint.letterStartNumberIncludedFailed"),r)},noChinese(e,t,n,r){Aa(Er.noChinese,e,t,n,se.i18nt("render.hint.noChineseFailed"),r)},chinese(e,t,n,r){Aa(Er.chinese,e,t,n,se.i18nt("render.hint.chineseFailed"),r)},email(e,t,n,r){Aa(Er.email,e,t,n,se.i18nt("render.hint.emailFailed"),r)},url(e,t,n,r){Aa(Er.url,e,t,n,se.i18nt("render.hint.urlFailed"),r)},chinaIdcard(e,t,n,r){Aa(Er.chinaIdcard,e,t,n,se.i18nt("render.hint.chinaIdcardFailed"),r)},weakPassword(e,t,n,r){Aa(Er.weakPassword,e,t,n,se.i18nt("render.hint.weakPasswordFailed"),r)},mediumPassword(e,t,n,r){Aa(Er.mediumPassword,e,t,n,se.i18nt("render.hint.mediumPasswordFailed"),r)},strongPassword(e,t,n,r){Aa(Er.strongPassword,e,t,n,se.i18nt("render.hint.strongPasswordFailed"),r)},required(e,t,n,r,a){let o=a||se.i18nt("render.hint.fieldRequired");Vy(bE(Er.required),e,t,n,o,r)},regExp(e,t,n,r,a,o){return Vy(o,e,t,n,a||"invalid value",r)},range(e,t,n,r,a,o){return Vy(o,e,t,n,a||"invalid value",r)}};function Uo(e,t,n,r){const a=t==null?void 0:t.designState,o=t,i=X=>e?pt.getOptions(e,X,!0)!=null:!1,c=(X,Y=!1)=>e?pt.getOptions(e,X,Y,!a,o):null,s=(X,Y)=>{if(e)return pt.setOptions(e,X,Y)},l=(X,Y)=>{na(e==null?void 0:e.options,X)&&s(X,Y)},u=X=>{const Y=pt.getOrgOption(e,X);return m(Y)},f=(X,Y,ee=!1)=>{var Oe;const ve=(Oe=e==null?void 0:e.options)==null?void 0:Oe[X];var Ce=ee?ge.getValue(ve,!1,!a,{...o,schemaParams:Y}):u(X);return Ce},h=(X,Y,ee,ve)=>{if(!Y)return;ee==null||ee();const Ce=Or(E.value).includes(Y)?E:Or(S.value).includes(Y)?S:null;if(X&&Ce)x.watch(()=>{var Oe;return(Oe=Ce==null?void 0:Ce.value)==null?void 0:Oe[Y]},(Oe,Ie)=>{ve==null||ve(Oe,Ie)},{immediate:!0});else{const Oe=c(Y);x.isRef(Oe)?x.watch(Oe,(Ie,Be)=>{ve==null||ve(Ie,Be)},{immediate:!0}):ve==null||ve(Oe,null)}},d=(X,Y)=>{e&&pt.setEnable(e,X,Y)},v=(X,Y,ee)=>pq(X,Y,ee,t),m=X=>{var Y=ge.getType(X),ee=ge.getValue(X,!1,!a,o);switch(Y){case be.dataObject:{const ve=pt.getOptions(X,"type");if(Ui(ee)&&ve){if([He.array,He.object].includes(ve))return ee==null||ee===""?null:ri(String(ee||""));if([He.bigint,He.number].includes(ve))return _u(ee)}return ee}case be.slot:return qD(ee);case be.icon:{const{instance:ve}=za(r);return ve?M5(ee,ve):ee}case be.event:case be.placerHook:case be.hook:{if(hr(ee)||ee===""||a)break;return(...Ce)=>{let Oe={};var Ie=1;Ce==null||Ce.map(Xe=>Oe["args"+Ie++]=Xe);const{instance:Be}=za(r||(o==null?void 0:o.instance)),We=Zc({instance:Be,compParams:o==null?void 0:o.globalConfig});Oe[$n.externalArgs]=We;const ze=ee;return ze!=null&&ze.type?v(ze,Oe,Be):Qs(ee,Oe)}}default:return ee}},p=(X,Y,ee)=>{var ve=ge.getOptions(X),Ce={};return Ce.slotName=(ve==null?void 0:ve.slotName)||Y,(X==null?void 0:X.widgetList)===void 0?Ce.widgetList=[]:Ce.widgetList=X==null?void 0:X.widgetList,Ce.default=ee?x.shallowRef(ee):null,Object.assign(X,Ce)},g=(X,Y=!1,ee)=>{var Ce;var ve={};return!e||!e.options||(Ce=Object.entries(e==null?void 0:e.options))==null||Ce.forEach(([Oe,Ie])=>{if(!(ee&&!(ee!=null&&ee(Oe)))){var Be=ge.getOrgType(Ie);if(X.includes(Be)){var We=Y?ge.getValue(Ie,!1,!a,o):u(Oe);Be===be.slot?ve[Oe]=p(Ie,Oe,We):Xi(We)||(ve[Oe]=We)}else Be||[be.prop].some(ze=>X.includes(ze))&&(ve[Oe]=Ie)}}),ve},y=X=>{const Y=X==null?void 0:X.type;var ee=[];return Y&&(ee=[],X.formItemFlag&&(ee=ee.concat(["name","defaultValue"]))),ee},b=X=>{const Y=c(Xt.state);Y!=null&&x.isRef(Y)&&(X.readonly=x.computed(()=>Fo(Y)===kl.readonly),X.disabled=x.computed(()=>{var ee=!i(kl.readonly),ve=Fo(Y)===kl.disabled,Ce=Fo(Y)===kl.readonly;return ee?ve:ve||Ce}),X.hidden=x.computed(()=>Fo(Y)===kl.hidden),X.custom=x.computed(()=>Fo(Y)===kl.custom))},_=()=>{var X=y(e)||[],Y=g([be.icon,be.hook,be.variable,be.prop,be.dataObject],!1,ee=>{var ve=!(n!=null&&n.fn_attr)||(n==null?void 0:n.fn_attr(ee)),Ce=!X.includes(ee);return Ce&&ve});return b(Y),x.reactive(Y)},E=n!=null&&n.s_attr?x.computed(()=>_()):x.ref(),w=()=>{var X=g([be.placer,be.placerHook]);return x.reactive(X)},S=n!=null&&n.s_extendAttr?x.computed(()=>w()):x.ref(),A=n!=null&&n.s_events?x.computed(()=>g([be.event])):x.ref(),P=n!=null&&n.s_fieldName?x.computed({get:()=>c(Xt.name),set:X=>{s(Xt.name,X)}}):x.ref(),C=X=>ge.isComplexValue(e==null?void 0:e.options[X]),D=(X=!1)=>{var Y=c($n.defaultValue,!0);return na(e==null?void 0:e.options,$n.defaultValue)&&(!X||Y!=null)},k=()=>{var Y,ee,ve,Ce,Oe;if(!D())return;let X=c($n.defaultValue);if(na(e==null?void 0:e.options,Xt.optionItems)&&!C($n.defaultValue)){const Ie=Fo(c($n.multiple));if((Ie||Array.isArray(X))&&((Y=jt(X))==null?void 0:Y.length)<=0)return(ve=(ee=Fo(M==null?void 0:M.value))==null?void 0:ee.filter(Be=>Be==null?void 0:Be.isdefault))==null?void 0:ve.map(Be=>Be==null?void 0:Be.value);if((Ie===!1||hr(Ie)||!Array.isArray(X))&&hr(X))return(Oe=(Ce=Fo(M==null?void 0:M.value))==null?void 0:Ce.find(Be=>Be==null?void 0:Be.isdefault))==null?void 0:Oe.value}return X},O=n!=null&&n.s_slots?x.computed(()=>{var X=g([be.slot]);return Object.values(X)}):x.ref(),I=n!=null&&n.s_slots?x.computed(()=>{var X=g([be.slot],!0);return Object.values(X)}):x.ref(),N=X=>{var Y=Xt.optionItems;const ee=pt.getOrgOption(e,Y);ge.isComplexValue(ee)||s(Y,yT(X))},F=X=>{if(na(E.value,X)){var Y=E.value[X];return x.isRef(Y)?Y:x.computed(()=>R(E.value[X]))}else if(na(S.value,X)){var ee=S.value[X];return x.isRef(ee)?ee:x.computed(()=>R(S.value[X]))}else{var ve=c(X);return x.isRef(ve)?ve:x.computed(()=>R(c(X)))}},R=X=>{if(X==null)return X;if(x.isRef(X))return Fo(X);var Y=Yn(X);return ox(Y,(ee,ve,Ce)=>{ge.needCalcValue(Ce)&&(ee[ve]=ge.getValue(Ce,!0,!a,o))}),Y===void 0?null:x.reactive(Y)};let M=null;n!=null&&n.s_optionItems&&na(e==null?void 0:e.options,Xt.optionItems)&&(M=F(Xt.optionItems));const j=X=>!!X.isdefault,W=X=>L(X,M==null?void 0:M.value),L=(X,Y)=>{if(!Array.isArray(Y))return;let ee=[];return vT(Y,"children",ve=>X(ve),ve=>{ee.push(ve)}),ee},U=n!=null&&n.s_optionItems?x.computed(()=>W(j)):x.ref(),K=n!=null&&n.s_optionItems?x.computed(()=>{var X,Y;if(Array.isArray(M==null?void 0:M.value)){const ee=(X=U==null?void 0:U.value)==null?void 0:X.length;return ee?(Y=U==null?void 0:U.value)==null?void 0:Y[ee-1]:void 0}}):x.ref(),J=n!=null&&n.s_optionItems?x.computed(()=>{var X;if(Array.isArray(M==null?void 0:M.value)){const Y=(X=M==null?void 0:M.value)==null?void 0:X.findIndex(ee=>j(ee));return!isNaN(Y)&&Y>-1?Y:0}return 0}):x.ref(0),Q=(X,Y)=>{const ee=Fo(c($n.valueKey,!1));return L(ve=>{var Ce=Wr(X,!0);return Ce==null?void 0:Ce.includes(ve==null?void 0:ve[ee])},Y||(M==null?void 0:M.value))},q=X=>c($n.multiple,!1)||X,ue=(X,Y)=>{var Ce;const ee=Fo(c($n.labelKey,!1)),ve=(Ce=Q(X))==null?void 0:Ce.map(Oe=>Oe==null?void 0:Oe[ee]);return q(Y)?ve:ve==null?void 0:ve[0]},te=(X,Y)=>{var Ce;const ee=Fo(c($n.valueKey,!1)),ve=(Ce=Q(X))==null?void 0:Ce.map(Oe=>Oe==null?void 0:Oe[ee]);return q(Y)?ve:ve==null?void 0:ve[0]},ne=(X,Y)=>{var ee;return(ee=Wr(ue(X,Y),!0))==null?void 0:ee.join(",")},ie=[],de=()=>{e!=null&&e.formItemFlag&&ie.splice(0,ie.length)},G=X=>{var Y=c("required",!0);const ee=jt(Y==null?void 0:Y.options);if(ee!=null&&ee.enable)return{name:"required",label:X,required:!0,validator:(ve,Ce,Oe)=>{var Ie=qs(ee==null?void 0:ee.errorMsg,{...ee,label:X});Hp[Er.required](ve,Ce,Oe,ee==null?void 0:ee.forceMatch,Ie)}}},Z=X=>{var Y=c("rangeValidate",!0);const ee=jt(Y==null?void 0:Y.options);if(!(ee!=null&&ee.enable))return;let{minValue:ve,maxValue:Ce,includeMaxValue:Oe,includeMinValue:Ie}=ee,Be="range";var We=Xe=>{if(hr(Xe))return!0;const it=parseFloat(Xe),Bt=parseFloat(ve),yt=parseFloat(Ce),Rt=()=>isNaN(Bt)||hr(ve)||(Ie?it>=Bt:it>Bt),kt=()=>isNaN(yt)||hr(Ce)||(Oe?it<=yt:it<yt);return isNaN(it)||Rt()&&kt()};const ze=(Xe,it,Bt,yt)=>{var Rt="";const kt=!hr(Xe)&&(Xe+"").trim()!="",At=!hr(Bt)&&(Bt+"").trim()!="",ft="值",Sn=(ae,Pe,Ae,Fe)=>{const Ue="<",ut=">",Et="=";return Fe?Ae?`${ut}${ae?Et:""} ${Pe}`:`${Ue}${ae?Et:""} ${Pe}`:Ae?`${Pe} ${ut}${ae?Et:""}`:`${Pe} ${Ue}${ae?Et:""}`};if(kt&&At){var rt=Sn(it,Xe,!1,!1),lt=Sn(yt,Bt,!1,!0);Rt=`${rt} ${ft} ${lt}`}else kt&&!At?Rt=`${ft} ${Sn(it,Xe,!0,!0)}`:!kt&&At&&(Rt=`${ft} ${Sn(it,Bt,!1,!0)}`);return Rt};return{name:Be,label:X,trigger:[],validator:(Xe,it,Bt)=>{var yt=qs(ee==null?void 0:ee.errorMsg,{...ee,label:X});Hp[Be](Xe,it,Bt,ee==null?void 0:ee.forceMatch,yt||ze(ve,Ie,Ce,Oe),We)}}},re=X=>{var Y=c("expValidate",!0);const ee=jt(Y==null?void 0:Y.options);if(!(ee!=null&&ee.enable))return;let ve=ee==null?void 0:ee.expression,Ce=ve;if(Ce){var Oe=Hp[Ce],Ie=!!Oe;return Ie||(Ce="regExp"),{name:Ce,label:X,trigger:[],validator:(Be,We,ze)=>{var Xe=qs(ee==null?void 0:ee.errorMsg,{...ee,label:X});Ie?Hp[Ce](Be,We,ze,ee==null?void 0:ee.forceMatch,Xe):Hp[Ce](Be,We,ze,ee==null?void 0:ee.forceMatch,Xe,ve)}}}},ce=X=>{var Y=c("fnValidate",!0);const ee=jt(Y==null?void 0:Y.options);if(!(ee!=null&&ee.enable)||!ee.func)return;const{instance:ve}=za(r),Ce=ee==null?void 0:ee.errorMsg;return{name:"userDefine",label:X,trigger:[],validator:(Oe,Ie,Be)=>{Qs(ee.func,{rule:Oe,value:Ie,callback:We=>{xk(!We,Oe,Be,Ce,ee==null?void 0:ee.forceMatch)},errorMsg:Ce,ctx:ve})}}},fe=()=>{if(e!=null&&e.formItemFlag&&!c("hidden")){de();var X=c("label"),Y=[G(X),re(X),ce(X),Z(X)];return Y==null||Y.forEach(ee=>{ee&&ie.push(ee)}),pe(),ie}},me=()=>{ie&&ie.forEach(X=>{Ee(X)})},pe=()=>{ie&&ie.forEach(X=>{Te(X)})},Ee=X=>{X.trigger&&X.trigger.splice(0,X.trigger.length)},Te=X=>{X.trigger&&(X.trigger.push("blur"),X.name!=="required"&&X.trigger.push("change"))};return{attrs:E,extendAttrs:S,events:A,slots:O,originSlots:I,computedDefaultValue:k,fieldName:P,hasDefaultValue:D,optionItems:M,activeOptionItems:U,activeOptionItem:K,activeOptionItemIndex:J,filterOptionItems:W,getCheckedOptionLabels:ue,getCheckedOptionValues:te,getCheckedOptionItems:Q,getCheckedOptionText:ne,setOptionItems:N,setFieldEnable:d,setWidgetOption:l,getWidgetOption:u,getWidgetOptionByPropValue:m,hasFieldOptions:i,getFieldOptions:c,setFieldOptions:s,rules:ie,buildRules:fe,clearRules:de,disableChangeRule:Ee,disableChangeValidate:me,enableChangeRule:Te,enableChangeValidate:pe,addCssClass:X=>{var Y=c("customClass");Y?Y.push(X):Y=[X],s("customClass",Y)},removeCssClass:X=>{var Y=c("customClass");if(!Y)return;let ee=-1;Y.map((ve,Ce)=>{ve===X&&(ee=Ce)}),ee>-1&&(Y.splice(ee,1),s("customClass",Y))},singleOption:f,watchOption:h}}function pne(e,t){const{getWidgetOptionByPropValue:n}=Uo({name:e.name,options:e},t),r=(m,p)=>{var g=ri(qs(Zr(m),p));if(g)return WZ(g)},a=m=>r(e.headers,m),o=m=>r(e.params,m),i=m=>qs(e.url,m),c=()=>({timeout:e.timeout,withCredentials:e.withCredentials,maxBodyLength:e.maxBodyLength,maxContentLength:e.maxContentLength,responseType:e.responseType,responseEncoding:e.responseEncoding,method:e.method}),s=(m,p)=>{m&&m.interceptors.request.use(function(g){var y=g,b=v(e.willFetch,p,[g]);return b.result&&(y=b.data),y},function(g){return Promise.reject(g)})},l=(m,p)=>{m&&m.interceptors.response.use(function(g){var y=g,b=v(e.fitFetch,p,[g]);return b.result&&(y=b.data),y},function(g){var y=g,b=v(e.errorFetch,p,[g]);return b.result&&(y=b.data),Promise.reject(y)})},u=m=>{var p=qs(e.shouldFetch,m);return Lc(e.shouldFetch)||p+""=="true"||p+""=="1"},f=m=>{if(e.data==null||e.data===void 0)return"";var p=Es(e.data);return p?ri(qs(Zr(e.data),m)):qs(e.data+"",m)},h=m=>{if(!u(m))return;const p=QD.create(c());return s(p,m),l(p,m),new Promise((g,y)=>{const b=i(m),_=f(m),E=a(m),w=o(m);if(!b)return;const S={url:b,data:_,headers:E,params:w};p.request(S).then(A=>{let P=A;var C=v(e.didFetch,m,[A]);C.result&&(P=C.data),g(P)}).catch(A=>{Hi.error("request",A,S),y(A)})})},d=m=>!!ge.getValue(m),v=(m,p,g)=>{let y={result:!1,data:null};if(d(m)){y.result=!0;const b=n(m);y.data=b({data:p},...g)}return y};return{req:h}}function zy(e){const t=e==null?void 0:e.pageConfig,n=()=>{var d;return jt((d=t==null?void 0:t.schema)==null?void 0:d.value)},r=(d,v,m)=>{var p=ge.getEnable(m==null?void 0:m[d]),g=ge.getEnable(v==null?void 0:v[d]);return!g&&p&&v&&(v[d]=m==null?void 0:m[d]),v},a=(d,v)=>{let m=Yn(d);["didFetch","willFetch","errorFetch","fitFetch"].forEach(g=>{m=r(g,m,t)});const{req:p}=pne(m,e);return p(v)},o=()=>{let d={};const v=Og.decryptFromUrl(window.location.href);d=Object.assign(d,{[Hr.urlParams]:v});const m=e==null?void 0:e.globalConfig;return d=Object.assign(d,{[Hr.compParams]:m}),d},i=d=>{var p,g;let v={};v=Object.assign(v,{schemaParams:d}),Object.assign(v,o()),v=Object.assign(v,{cookies:xD.getAll()});var m={};return(g=(p=n==null?void 0:n())==null?void 0:p.filter(y=>y.protocal===Vc.VALUE))==null||g.forEach(y=>{m=Object.assign(m,{[y.name]:qs(String(y==null?void 0:y.initialData),v)})}),v=Object.assign(v,{vars:m}),v},c=d=>{var v;return(v=n==null?void 0:n())==null?void 0:v.find(m=>m.name===d)},s=(d,v)=>{var m={};return d==null||d.forEach(p=>{p&&(m[p]=l(p,v))}),m},l=(d,v)=>{if(!d)return;const m=o(),p=m[Hr.urlParams],g=m[Hr.compParams];if(d==Hr.urlParams)return p;if(d==Hr.compParams)return g;const y=c(d),b=y==null?void 0:y.protocal,_=i(v);let E=null;switch(b){case Vc.VALUE:E=qs(String(y==null?void 0:y.initialData),_),HY(E)&&(E=ri(E));break;case Vc.REMOTE:E=y?a(y,_):null;break}return E},u=(d,v)=>{var m=l(d,v);return hT(m)?m:new Promise((p,g)=>{p(m)})},f=(d,v,m)=>new Promise((p,g)=>{const y=d==null?void 0:d.length;let b=0;var _=d==null?void 0:d.map(w=>u(w,v));let E=0;Promise.all(_.map(w=>w.then(S=>{var D;b++;var A=Math.round(b/y*100);const P=d[E++],C=(D=c(P))==null?void 0:D.description;return m==null||m(A,S,E,P,C),S}))).then(w=>{m==null||m(100,w,E,"completedAll","completedAll"),p(w)})});return{loadSchemaData:n,remoteReadSchemaData:s,readSchemaData:l,findSchema:c,getSchemaDataObject:(d,v,m)=>new Promise((p,g)=>{f(d,v,m).then(y=>{var b={};y.forEach(_=>{b=Qn(b,_,!0)}),p(b)})}),getOneSchemaData:u,getSchemaDatas:f}}const Uy=(e,t=!1,n=" ")=>e==null?void 0:e.map(r=>l0(r,t)).join(n),Ek=(e,t)=>t?`(FROMJSON '${e}')`:e,l0=(e,t=!1)=>{var n;return(e==null?void 0:e.type)===wi.Syntax.Literal?e.raw:(e==null?void 0:e.type)===wi.Syntax.Identifier?e.name:e.type===wi.Syntax.ExpressionStatement?l0(e.expression,void 0):(e==null?void 0:e.type)===wi.Syntax.CallExpression?`(${(n=e.callee)==null?void 0:n.name} ${Uy(e.arguments,!0)})`:(e==null?void 0:e.type)===wi.Syntax.UnaryExpression?`${e.operator}${l0(e==null?void 0:e.argument)}`:(e==null?void 0:e.type)===wi.Syntax.ObjectExpression?Ek(`{${Uy(e==null?void 0:e.properties,t,",")}}`,t):(e==null?void 0:e.type)===wi.Syntax.ArrayExpression?Ek(`[${Uy(e.elements,t,",")}]`,t):(e==null?void 0:e.type)===wi.Syntax.Property?`${l0(e==null?void 0:e.key)}:${l0(e==null?void 0:e.value)}`:""};function xE(){var e=["GETCHECKEDNAMES","GETCHECKEDNAME"];return{specialFuncNames:e,matchSpecialNode:r=>e.some(a=>r==null?void 0:r.includes(a)),specialNode:(r,a)=>{var o,i,c,s,l,u,f,h;if(r.type===wi.Syntax.CallExpression){let d=Yn(r.arguments);if(e.includes((o=r.callee)==null?void 0:o.name)){const v=(i=r.arguments)==null?void 0:i[0];(a==null?void 0:a[`${v.name}${gu.checkedOptions}`])!=null&&(d[0].name=`${v.name}${gu.checkedOptions}`)}if(e.includes((s=(c=r.callee)==null?void 0:c.property)==null?void 0:s.name)){const v=(l=r.arguments)==null?void 0:l[0];let m=`${(u=v==null?void 0:v.property)==null?void 0:u.name}${gu.checkedOptions}`,p=(f=v==null?void 0:v.object)==null?void 0:f.name;p?((h=a==null?void 0:a[p])==null?void 0:h[m])!=null&&(d[0].property.name=m):(a==null?void 0:a[m])!=null&&(d[0].property.name=m)}r.arguments=d}return r}}}const hne=e=>{var t=gD(e),n=Uy(t.body);n.startsWith("(")&&(n=n.substring(1)),n.endsWith(")")&&(n=n.substring(0,n.length-1));var r=CJ(t.body);return{expression:n,funcname:r}},dne=Object.freeze(Object.defineProperty({__proto__:null,getScriptResult:(e,t)=>new Promise((n,r)=>{if(!e||Lc(e)){n(null);return}const a=c=>{var s=TJ(c);if(!(s!=null&&s.some(u=>!na(t,u)))){s==null||s.forEach(u=>{t[u]===void 0&&(t[u]=null)});var l=hne(c);return Kee(`{{${l.expression}}}`,t,l.funcname)}},{specialNode:o,matchSpecialNode:i}=xE();if(i(e)){const{init:c,replaceVariableName:s}=_D();c().then(l=>{e=s(l,e,o,t),n(a(e))})}else n(a(e))}),useSpecialNode:xE},Symbol.toStringTag,{value:"Module"})),EE=e=>typeof(e==null?void 0:e.value)=="boolean"?!1:null,wE=(e,t)=>{let n={};if(!Va(e))return n;var r=t==null?void 0:t.instance;return ox(Id(e),(a,o,i)=>{var l,u,f,h;const c=(u=(l=r==null?void 0:r.exposed)==null?void 0:l.findRefByName)==null?void 0:u.call(l,o);if(!c)return;const s=(h=(f=c==null?void 0:c.exposed)==null?void 0:f.getField)==null?void 0:h.call(f);s&&s.id&&(n[s.id]=o)}),n},SE=e=>{var a,o,i,c,s;var t=e==null?void 0:e.instance,n=((o=(a=t==null?void 0:t.exposed)==null?void 0:a.getRowScope)==null?void 0:o.call(a))||((i=t==null?void 0:t.provides)==null?void 0:i.rowScope);const r=Object.assign({},(s=(c=t==null?void 0:t.exposed)==null?void 0:c.getFormData)==null?void 0:s.call(c),e==null?void 0:e.formData);return{[Ni.sysVar]:{[Hr.rowScope]:n},[Ni.sysData]:r}},vne=(e,t,n)=>{const{remoteReadSchemaData:r}=zy(n);var a=vD(e),o=yD(a),i=o.filter(u=>[Ni.schema.toString()].includes(u.root)),c=i==null?void 0:i.map(u=>{var f,h;return(h=(f=u==null?void 0:u.properties)==null?void 0:f[0])==null?void 0:h.toString()});let s=null;t&&(s=ri(t));var l=r(c,s||{});return l},CE=(e,t,n,r)=>{var s;if(!e)return"";let a=e;const{updateFomula:o}=Eu(),{variableWithNameExp:i}=qY();if(r){var c=t==null?void 0:t[Ni.sysData];c&&(a=o(a,n||{},(l,u)=>Xi(u)?null:`${(c==null?void 0:c[u])||""}`)),(s=Or(t==null?void 0:t[Ni.sysVar]))==null||s.forEach(l=>{var u;c=(u=t==null?void 0:t[Ni.sysVar])==null?void 0:u[l],c&&(a=o(a,c,(f,h)=>Xi(h)?null:h,i("sysVar."+l)))})}else return a=o(a,n||{},(l,u)=>u?`${Ni.sysData}.${u}`:(t||(t={}),t[Ni.sysData]||(t[Ni.sysData]={}),t[Ni.sysData][l]===void 0&&(t[Ni.sysData][l]=null),`${Ni.sysData}.${l}`)),a;return a},mne=(e,t)=>{if(ge.isFormula(e)){const{transFormula:i}=Eu(),s=SE(t)[Ni.sysData];let l=wE(s,t);var n=jt(e),r=jt(n==null?void 0:n.value),a=i(r==null?void 0:r.complexValue,l),o=yne(a,s);return jt(o)}},wk=(e,t)=>{const n=SE(t);let r=wE(n[Ni.sysData],t);var a=CE(e==null?void 0:e.expr,n,r,!1),o=CE(e==null?void 0:e.params,n,r,!0);const i=vne(a,o,t);var c={[Ni.sysFunc]:bk,[Ni.schema]:i,...n};const s=[Ni.schema];var l=jt(gne(a,c,s));return l},gne=(e,t,n)=>{if(Lc(e))return;const{state:r}=yx(async()=>{var m;var{specialNode:a,matchSpecialNode:o}=xE(),{init:i,replaceVariableName:c}=_D(),s=e;if(o(e)){var l=await i();s=EJ(e,p=>c(l,p,a,t))}if(t&&n&&((n==null?void 0:n.length)||0)>0)for(var u=0;u<n.length;u++){var f=n==null?void 0:n[u],h=t==null?void 0:t[f];if(Va(h)){var d=(m=Or(h))==null?void 0:m.some(p=>hT(h[p]));if(d){var v=await sx(h);t[f]=v}}}return Ex(s,t)},null);return r},yne=(e,t)=>{const{state:n}=yx(async()=>{const r=await Promise.resolve().then(()=>dne);var a=await(r==null?void 0:r.getScriptResult(e,t||{}));return a},null,{immediate:!0});return n},_ne=(e,t)=>{if(ge.isVariable(e)){var n=ge.getVariable(e);return wk(n,t)}},bne=(e,t)=>{if(ge.isSchemaData(e)){var n=ge.getSchemaData(e);return wk(n,t)}},xne=(e,t=!1,n)=>{var r=jt(e),a=r==null?void 0:r.value,o=jt(a);return ge.isVariable(e)&&!(o!=null&&o.complexType)?t?_ne(e,n):e==null?void 0:e.value:ge.isFormula(e)?t?mne(e,n):EE():ge.isSchemaData(e)?t?bne(e,n):EE():jt(a)},Ene=(e,t=!1,n=!1,r)=>{if(!ge.isComplex(e))return e;if(!t&&!ge.getEnable(e))return EE();var a=jt(e),o=a==null?void 0:a.value;return!ge.isVariable(e)&&o===null?null:jt(xne(e,n,r))},wne=(e,t)=>{const n=SE(t);let r=wE(n[Ni.sysData],t);return CE(e,n,r,!0)};class ge{constructor(t,n,r,a,o){z(this,"type",be.prop);z(this,"propType");z(this,"value","");z(this,"variable");z(this,"options");this.type=t,n!==void 0&&(this.value=n),r!==void 0&&(this.options=r),a!==void 0&&(this.variable=a),o!==void 0&&Qn(this,o)}static get(t,n){if(n)return t==null?void 0:t[n]}static set(t,n,r){n&&t&&(t[n]=r)}static isComplex(t){const n=this.getType(t);return gx(be).includes(n);//!!hasConfig(prop, 'type');
69
- }static hasComplexValue(t){return!!na(t,"value")}static isComplexValue(t){var n;return ge.hasComplexValue(t)&&!!((n=jt(t==null?void 0:t.value))!=null&&n.complexType)}static buildVariablePropValue(t,n){return{type:be.variable,variable:{expr:"${"+t+"}",params:n}}}static getOrgType(t){var r;var n=(r=this.getOptions(t))==null?void 0:r.origin;return n?this.getType(n):this.getType(t)}static getType(t){var n;return(n=jt(t))==null?void 0:n.type}static getOptions(t){var n;return(n=jt(t))==null?void 0:n.options}static needCalcValue(t){return this.isFormula(t)||this.isVariable(t)||this.isSchemaData(t)}static isComplexType(t,n){return this.isComplex(t)&&this.getType(t)===n}static isSchemaData(t){var n;return this.hasComplexValue(t)&&((n=jt(t==null?void 0:t.value))==null?void 0:n.complexType)===be.schemaData}static clearSchemaData(t){var r;var n=Yn(t);return this.isComplex(t)?(r=jt(n))==null?void 0:r.value:n}static setSchemaData(t,n){var r=Yn(t),a=new oD(be.schemaData,n);return this.isComplex(r)?r=a:r=new ge(be.prop,a),r}static getSchemaData(t){var r;var n=jt(t);return(r=jt(n==null?void 0:n.value))==null?void 0:r.complexValue}static isFormula(t){var n;return this.hasComplexValue(t)&&((n=jt(t==null?void 0:t.value))==null?void 0:n.complexType)===be.formula}static setFormula(t,n){var r=Yn(t),a=new oD(be.formula,n);return this.isComplex(r)?r=a:r=new ge(be.prop,a),r}static getFormula(t){var n;return(n=jt(t==null?void 0:t.value))==null?void 0:n.complexValue}static getFormulaRelatedField(t){const{getFormulaFields:n}=Eu();return n(Zr(jt(t)))}static isVariable(t){var n;return this.isComplex(t)&&((n=jt(t))==null?void 0:n.type)===be.variable}static clearVariable(t){var r;var n=Yn(t);if(this.isComplex(t)){const a=jt(n),o=(r=a.options)==null?void 0:r.origin;return this.isComplex(o)?(jt(o).value=a==null?void 0:a.value,o):a==null?void 0:a.value}return n}static setVariable(t,n){var r=Yn(t);if(this.isComplex(r)){let a=r==null?void 0:r.options;return r.type!==be.variable&&(a=Object.assign(a||{},{origin:Yn(r)})),new ge(be.variable,r==null?void 0:r.value,a,n)}else return new ge(be.variable,r||null,r==null?void 0:r.options,n)}static getVariable(t){var n;return(n=jt(t))==null?void 0:n.variable}static getValue(t,n=!1,r=!1,a){return Ene(t,n,r,a)}static setValue(t,n,r){if(!t||!n)return!1;var a=this.get(t,n);const o=this.getType(a);if(!this.isComplex(a))this.set(t,n,r);else{let i=r;o===be.dataObject&&Ui(i)&&(i=ri(r)),jt(a).value=i}return!0}static getEnable(t){var r;if(!this.isComplex(t))return!1;var n=this.getOptions(t);return na(n,"enable")?(r=jt(n))==null?void 0:r.enable:!0}static setEnable(t,n,r){var a=this.get(t,n);if(this.isComplex(a)){var o=jt(a);return o.options===void 0&&(o.options={}),o.options.enable=r,!0}return!1}}class u0{static getKeys(){var t=new this;return Or(t)}}class Hy extends u0{constructor(){super(...arguments);z(this,"name","")}}class AE extends u0{constructor(){super(...arguments);z(this,"isdefault",!1)}}class Wy extends Hy{constructor(){super(...arguments);z(this,"ctrlWidth",new ge(be.placer,"auto"));z(this,"ctrlHeight",new ge(be.placer,"auto"));z(this,"customClass",new ge(be.placer,[]));z(this,"componentWrapperClass",new ge(be.placer,[]));z(this,"displayLayout",new ge(be.placer,Pl.block));z(this,"created",new ge(be.event,void 0,new ot));z(this,"mounted",new ge(be.event,void 0,new ot))}}class Mi extends Wy{constructor(){super(...arguments);z(this,"hidden",new ge(be.placer,!1))}}class TE extends Mi{constructor(){super(...arguments);z(this,"content",new ge(be.placer,""))}}class ks extends TE{constructor(){super(...arguments);z(this,"slotable",new ge(be.placer,!1));z(this,"default",new ge(be.slot,void 0,new jn))}}class Sne extends Mi{constructor(){super(...arguments);z(this,"slotable",new ge(be.placer,!1));z(this,"default",new ge(be.slot,void 0,new jn))}}class Gy extends ot{constructor(n){super(n);z(this,"forceMatch",!0);z(this,"errorMsg","");Qn(this,n)}}class Cne extends Gy{constructor(n){super(n);z(this,"expression","");Qn(this,n)}}class Ane extends Gy{constructor(n){super(n);z(this,"func","");Qn(this,n)}}class Tne extends Gy{constructor(n){super(n);z(this,"minValue",null);z(this,"includeMinValue",!1);z(this,"maxValue",null);z(this,"includeMaxValue",!1);Qn(this,n)}}class jn extends ot{constructor(n){super(n);z(this,"allowDrag",!1);z(this,"slotName");Qn(this,n)}}class Vn{constructor(){z(this,"widgetList",[])}}class Wp extends Mi{constructor(){super(...arguments);z(this,"label",new ge(be.placer,""));z(this,"defaultValue",null);z(this,"state",new ge(be.placer,kl.custom));z(this,"readonly",!1);z(this,"disabled",!1);z(this,"size","");z(this,"tabindex","");z(this,"labelHidden",new ge(be.placer,!1));z(this,"labelAlign",new ge(be.placer,""));z(this,"labelWidth",new ge(be.placer,""));z(this,"labelIconClass",new ge(be.icon));z(this,"labelIconPosition",new ge(be.placer,jc.rear));z(this,"labelTooltip",new ge(be.placer,""));z(this,"change",new ge(be.event,void 0,new ot));z(this,"focus",new ge(be.event,void 0,new ot));z(this,"blur",new ge(be.event,void 0,new ot));z(this,"click",new ge(be.event,void 0,new ot));z(this,"validateEvent",!0);z(this,"required",new ge(be.placer,!0,new Gy));z(this,"expValidate",new ge(be.placer,void 0,new Cne));z(this,"rangeValidate",new ge(be.placer,void 0,new Tne));z(this,"fnValidate",new ge(be.placer,void 0,new Ane))}}class Ho extends Wp{constructor(){super(...arguments);z(this,"placeholder","")}}class _o extends AE{constructor(){super(...arguments);z(this,"label","");z(this,"value","")}}class DE extends _o{constructor(){super(...arguments);z(this,"children",[])}}class Sk extends DE{constructor(){super(...arguments);z(this,"isopen",!1)}}const Xm=class{constructor(){z(this,"type",tt.none);z(this,"icon","");z(this,"id","");z(this,"options",{});z(this,"category",bu.normal);z(this,"init",(t=!0)=>{var n,r;this.id||(this.id=PE.newId((n=this.type)==null?void 0:n.toString())),this.icon||(this.icon=PE.getIcon((r=this.type)==null?void 0:r.toString(),t&&this.category!=bu.container))})}static newId(t){return((t==null?void 0:t.replace(/-/g,""))||"")+Ds()}static getIcon(t,n=!0){return"@widget-"+(t||"")+(n?"-field":"")}};let pt=Xm;z(pt,"isContainer",t=>t.category===bu.container),z(pt,"getWidgetTypeName",t=>t?se.i18n2t(`designer.widgetLabel.${t}`,`extension.widgetLabel.${t}`):""),z(pt,"getWidgetName",t=>{var n;return t.type?((n=t.type)==null?void 0:n.trim())+"-widget":""}),z(pt,"getName",t=>Xm.getOrgOption(t,Xt.name)),z(pt,"setName",(t,n)=>{Xm.setOptions(t,Xt.name,n)}),z(pt,"getOrgOption",(t,n)=>{var r;return(r=t==null?void 0:t.options)==null?void 0:r[n]}),z(pt,"setOrgOption",(t,n,r)=>{!t||!t.options||(t.options[n]=r)}),z(pt,"getOptions",(t,n,r=!1,a=!1,o)=>{var i=Xm.getOrgOption(t,n);if(r)return i;var c=ge.getValue(i,!1,a,o);if(c!==null)return c}),z(pt,"setOptions",(t,n,r)=>{ge.setValue(t==null?void 0:t.options,n,r)}),z(pt,"setEnable",(t,n,r)=>{ge.setEnable(t==null?void 0:t.options,n,r)});class PE extends pt{constructor(){super();z(this,"dynamicItemFlag",!1);z(this,"formItemFlag",!1);z(this,"options",{});this.formItemFlag=!0}}class Fn extends PE{constructor(t,n,r=!1,a){super(),a!=null&&a.autoWidth&&na(n,Xt.ctrlWidth)&&(n.ctrlWidth=new ge(be.placer,mx.auto)),a!=null&&a.inlineLayout&&na(n,Xt.displayLayout)&&(n.displayLayout=new ge(be.placer,Pl.inline)),Xi(a==null?void 0:a.dynamicItemFlag)||(this.dynamicItemFlag=a==null?void 0:a.dynamicItemFlag),this.formItemFlag=r,this.type=t,this.options=n,Object.entries(n).map(([o,i])=>{var c;ge.getType(i)===be.slot&&((c=ge.getOptions(i))!=null&&c.allowDrag)&&(i.widgetList=[])}),this.init(r)}}function Dne(){let e=new Map;const t=r=>{var a=pt.getWidgetName(r),o=null;return a&&(pt.isContainer(r)?o=x.defineAsyncComponent(()=>NA(Object.assign({"./container-widget/cont-cell-widget.vue":()=>Promise.resolve().then(()=>xO),"./container-widget/cont-widget.vue":()=>Promise.resolve().then(()=>EO),"./container-widget/form-widget.vue":()=>Promise.resolve().then(()=>wO),"./container-widget/grid-col-widget.vue":()=>Promise.resolve().then(()=>CO),"./container-widget/grid-widget.vue":()=>Promise.resolve().then(()=>AO),"./container-widget/ltable-col-widget.vue":()=>Promise.resolve().then(()=>DO),"./container-widget/ltable-widget.vue":()=>Promise.resolve().then(()=>PO),"./container-widget/tab-pane-widget.vue":()=>Promise.resolve().then(()=>OO),"./container-widget/tabs-widget.vue":()=>Promise.resolve().then(()=>BO),"./container-widget/wrapper-widget.vue":()=>Promise.resolve().then(()=>IO)}),`./container-widget/${a}.vue`)):o=x.defineAsyncComponent(()=>NA(Object.assign({"./field-widget/affix-widget.vue":()=>Promise.resolve().then(()=>Rme),"./field-widget/alert-widget.vue":()=>Promise.resolve().then(()=>zme),"./field-widget/anchor-link-widget.vue":()=>Promise.resolve().then(()=>Ume),"./field-widget/anchor-widget.vue":()=>Promise.resolve().then(()=>Gme),"./field-widget/auto-complete-widget.vue":()=>Promise.resolve().then(()=>$me),"./field-widget/avatar-widget.vue":()=>Promise.resolve().then(()=>nge),"./field-widget/backtop-widget.vue":()=>Promise.resolve().then(()=>age),"./field-widget/badge-widget.vue":()=>Promise.resolve().then(()=>lge),"./field-widget/breadcrumb-widget.vue":()=>Promise.resolve().then(()=>pge),"./field-widget/button-widget.vue":()=>Promise.resolve().then(()=>vge),"./field-widget/cache-widget.vue":()=>Promise.resolve().then(()=>yge),"./field-widget/card-widget.vue":()=>Promise.resolve().then(()=>xge),"./field-widget/carousel-widget.vue":()=>Promise.resolve().then(()=>Sge),"./field-widget/cascader-widget.vue":()=>Promise.resolve().then(()=>Tge),"./field-widget/chart-widget.vue":()=>Promise.resolve().then(()=>kge),"./field-widget/checkbox-widget.vue":()=>Promise.resolve().then(()=>Ige),"./field-widget/collapse-widget.vue":()=>Promise.resolve().then(()=>Mge),"./field-widget/color-picker-widget.vue":()=>Promise.resolve().then(()=>jge),"./field-widget/content-wrapper.vue":()=>Promise.resolve().then(()=>Ime),"./field-widget/date-picker-range-widget.vue":()=>Promise.resolve().then(()=>Uge),"./field-widget/date-picker-widget.vue":()=>Promise.resolve().then(()=>Gge),"./field-widget/default-slot-widget.vue":()=>Promise.resolve().then(()=>Fme),"./field-widget/descriptions-widget.vue":()=>Promise.resolve().then(()=>Jge),"./field-widget/dialog-widget.vue":()=>Promise.resolve().then(()=>$ge),"./field-widget/divider-widget.vue":()=>Promise.resolve().then(()=>nye),"./field-widget/drawer-widget.vue":()=>Promise.resolve().then(()=>iye),"./field-widget/dropdown-widget.vue":()=>Promise.resolve().then(()=>lye),"./field-widget/empty-widget.vue":()=>Promise.resolve().then(()=>fye),"./field-widget/feedback-widget.vue":()=>Promise.resolve().then(()=>Qge),"./field-widget/file-upload-widget.vue":()=>Promise.resolve().then(()=>gye),"./field-widget/form-item-wrapper.vue":()=>Promise.resolve().then(()=>Zme),"./field-widget/html-text-widget.vue":()=>Promise.resolve().then(()=>bye),"./field-widget/icon-widget.vue":()=>Promise.resolve().then(()=>wye),"./field-widget/iframe-widget.vue":()=>Promise.resolve().then(()=>Dye),"./field-widget/image-widget.vue":()=>Promise.resolve().then(()=>Oye),"./field-widget/input-number-widget.vue":()=>Promise.resolve().then(()=>Mye),"./field-widget/input-widget.vue":()=>Promise.resolve().then(()=>jye),"./field-widget/label-wrapper.vue":()=>Promise.resolve().then(()=>Xme),"./field-widget/link-widget.vue":()=>Promise.resolve().then(()=>Uye),"./field-widget/menu-widget.vue":()=>Promise.resolve().then(()=>Kye),"./field-widget/model-widget.vue":()=>Promise.resolve().then(()=>Zye),"./field-widget/multirow-widget.vue":()=>Promise.resolve().then(()=>_1e),"./field-widget/pagination-widget.vue":()=>Promise.resolve().then(()=>E1e),"./field-widget/picture-upload-widget.vue":()=>Promise.resolve().then(()=>A1e),"./field-widget/progress-widget.vue":()=>Promise.resolve().then(()=>B1e),"./field-widget/radio-widget.vue":()=>Promise.resolve().then(()=>F1e),"./field-widget/range-widget.vue":()=>Promise.resolve().then(()=>U1e),"./field-widget/rate-widget.vue":()=>Promise.resolve().then(()=>G1e),"./field-widget/result-widget.vue":()=>Promise.resolve().then(()=>Y1e),"./field-widget/rich-editor-widget.vue":()=>Promise.resolve().then(()=>Q1e),"./field-widget/router-widget.vue":()=>Promise.resolve().then(()=>t_e),"./field-widget/select-widget.vue":()=>Promise.resolve().then(()=>a_e),"./field-widget/slider-widget.vue":()=>Promise.resolve().then(()=>l_e),"./field-widget/static-text-widget.vue":()=>Promise.resolve().then(()=>f_e),"./field-widget/steps-widget.vue":()=>Promise.resolve().then(()=>m_e),"./field-widget/subMenu-widget.vue":()=>Promise.resolve().then(()=>Hye),"./field-widget/switch-widget.vue":()=>Promise.resolve().then(()=>__e),"./field-widget/table-col-widget.vue":()=>Promise.resolve().then(()=>b_e),"./field-widget/table-widget.vue":()=>Promise.resolve().then(()=>S_e),"./field-widget/tag-widget.vue":()=>Promise.resolve().then(()=>T_e),"./field-widget/text-widget.vue":()=>Promise.resolve().then(()=>k_e),"./field-widget/textarea-widget.vue":()=>Promise.resolve().then(()=>I_e),"./field-widget/time-picker-range-widget.vue":()=>Promise.resolve().then(()=>M_e),"./field-widget/time-picker-widget.vue":()=>Promise.resolve().then(()=>j_e),"./field-widget/time-select-widget.vue":()=>Promise.resolve().then(()=>U_e),"./field-widget/tmpl-widget.vue":()=>Promise.resolve().then(()=>G_e),"./field-widget/tree-select-widget.vue":()=>Promise.resolve().then(()=>Y_e),"./field-widget/tree-widget.vue":()=>Promise.resolve().then(()=>Q_e),"./field-widget/vertical-progress-widget.vue":()=>Promise.resolve().then(()=>P1e)}),`./field-widget/${a}.vue`))),o};return{components:r=>{var a=pt.getWidgetName(r);if(e.has(a))return e.get(a);var o=t(r);return e.set(a,o),o}}}function Pne(e){return e=e||Object.create(null),{on:function(n,r){(e[n]||(e[n]=[])).push(r)},off:function(n,r){e[n]&&e[n].splice(e[n].indexOf(r)>>>0,1)},emit:function(n,r){(e[n]||[]).map(function(a){a(r)}),(e["*"]||[]).map(function(a){a(n,r)})}}}const kE=new Pne,Ck={$on:kE.on,$off:kE.off,$emit:kE.emit};function Ak(e){var t={index:-1,maxStep:20,steps:[]};e&&!(e!=null&&e.historyData)&&(e.historyData=t);const n=x.reactive((e==null?void 0:e.historyData)||t),r=`widget__list__backup__${e==null?void 0:e.key}`,a=`form__config__backup__${e==null?void 0:e.key}`,o=x.computed({get:()=>(n.index<0&&(n.index=0),n.steps[n.index]),set:g=>{n.index<0&&(n.index=0),n.steps[n.index]=g}}),i=()=>{const g=o==null?void 0:o.value;e.version=F5(),e.widgetList=Yn(g==null?void 0:g.widgetList),e.pageConfig=Yn(g==null?void 0:g.pageConfig)},c=g=>{const y=o;y.value=Yn({detail:g,widgetList:e.widgetList,pageConfig:e.pageConfig})},s=()=>{p(),n.index=n.index+1,c("initHistory")},l=g=>{var y;n.index==n.maxStep-1?(y=n.steps)==null||y.shift():n.index=n.index+1,u(g),n.index<n.steps.length-1&&(n.steps=n.steps.slice(0,n.index+1))},u=g=>{c(g),m()},f=()=>{n.index!==0&&n.index--,i()},h=()=>{var g;n.index!==((g=n.steps)==null?void 0:g.length)-1&&n.index++,i()},d=()=>{var g;return n.index>0&&((g=n.steps)==null?void 0:g.length)>0},v=()=>{var g;return n.index<((g=n.steps)==null?void 0:g.length)-1},m=()=>{Rc.set(r,e.widgetList),Rc.set(a,e.pageConfig)},p=()=>{let g=Rc.get(r);g&&Qn(e.widgetList,ri(g));let y=Rc.get(a);y&&Qn(e.pageConfig,ri(y))};return{initHistoryData:s,emitHistoryChange:l,saveCurrentHistoryStep:u,undoHistoryStep:f,redoHistoryStep:h,undoEnabled:d,redoEnabled:v,saveFormContentToStorage:m,loadFormContentFromStorage:p}}class kne extends Mi{constructor(){super(...arguments);z(this,"labelHidden",new ge(be.placer,!1));z(this,"label",new ge(be.placer,""));z(this,"defaultValue",null);z(this,"state",new ge(be.placer,kl.custom));z(this,"readonly",!1);z(this,"disabled",!1);z(this,"change",new ge(be.event,void 0,new ot))}}class One extends Ho{constructor(){super(...arguments);z(this,"type",OT.text);z(this,"minlength",0);z(this,"maxlength",1e4);z(this,"prefixIcon",new ge(be.icon));z(this,"suffixIcon",new ge(be.icon));z(this,"clearable",!0);z(this,"showPassword",!1);z(this,"showWordLimit",!1);z(this,"formatter",new ge(be.hook,void 0,new ot));z(this,"parser",new ge(be.hook,void 0,new ot));z(this,"input",new ge(be.event,void 0,new ot));z(this,"clear",new ge(be.event,void 0,new ot));z(this,"slotable",new ge(be.placer,!1));z(this,"prepend",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"append",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn))}}class Bne extends Ho{constructor(){super(...arguments);z(this,"resize",PT.none);z(this,"rows",3);z(this,"minlength",0);z(this,"maxlength",1e4);z(this,"showWordLimit",!1);z(this,"autosize",!1);z(this,"input",new ge(be.event,void 0,new ot))}}class Ine extends Ho{constructor(){super(...arguments);z(this,"defaultValue",null);z(this,"min",0);z(this,"max",1e4);z(this,"precision",0);z(this,"step",1);z(this,"stepStrictly",!1);z(this,"controls",!0);z(this,"controlsPosition",IT.none);z(this,"valueOnClear",kT.min);z(this,"unitText",new ge(be.placer,""));z(this,"input",new ge(be.event,void 0,new ot))}}class Nne extends Ho{constructor(){super(...arguments);z(this,"clearable",!0);z(this,"select",new ge(be.event,void 0,new ot));z(this,"fetchSuggestions",new ge(be.hook,void 0,new ot));z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"valueKey","value");z(this,"debounce",300);z(this,"placement",kp.bottomStart);z(this,"triggerOnFocus",!1);z(this,"selectWhenUnmatched",!1);z(this,"hideLoading",!1);z(this,"popperClass","");z(this,"popperAppendToBody",!1);z(this,"teleported",!1);z(this,"highlightFirstItem",!1);z(this,"fitInputWidth",!1);z(this,"slotable",new ge(be.placer,!1));z(this,"prefix",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"suffix",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"prepend",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"append",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn))}}class Fne extends Wp{constructor(){super(...arguments);z(this,"displayStyle",new ge(be.placer,Pl.inline));z(this,"buttonStyle",!1);z(this,"textColor","");z(this,"fill","");z(this,"border",!1);z(this,"valueKey",new ge(be.placer,"value"));z(this,"labelKey",new ge(be.placer,"label"));z(this,"withAttachData",new ge(be.placer,!0));z(this,"textName",new ge(be.placer,""));z(this,"optionName",new ge(be.placer,""));z(this,"labelName",new ge(be.placer,""));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})));z(this,"relate",new ge(be.placer,void 0))}}class Tk extends _o{constructor(){super(...arguments);z(this,"border",!1);z(this,"disabled",!1)}}class Mne extends Wp{constructor(){super(...arguments);z(this,"defaultValue",[]);z(this,"min",0);z(this,"max",1e3);z(this,"displayStyle",new ge(be.placer,Pl.inline));z(this,"buttonStyle",!1);z(this,"border",!1);z(this,"textColor","#ffffff");z(this,"fill","#409EFF");z(this,"tag","div");z(this,"valueKey",new ge(be.placer,"value"));z(this,"labelKey",new ge(be.placer,"label"));z(this,"withAttachData",new ge(be.placer,!0));z(this,"textName",new ge(be.placer,""));z(this,"optionName",new ge(be.placer,""));z(this,"labelName",new ge(be.placer,""));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})));z(this,"relate",new ge(be.placer,[]))}}class Dk extends _o{constructor(){super(...arguments);z(this,"border",!1);z(this,"disabled",!1)}}class Pk extends Ho{constructor(){super(...arguments);z(this,"defaultFirstOption",!1);z(this,"noDataText","");z(this,"allowCreate",!1);z(this,"automaticDropdown",!1);z(this,"showGroup",new ge(be.placer,!1));z(this,"teleported",!0);z(this,"persistent",!0);z(this,"fitInputWidth",!1);z(this,"clearable",!0);z(this,"clearIcon",new ge(be.icon,"CircleClose"));z(this,"suffixTransition",!0);z(this,"suffixIcon",new ge(be.icon,"ArrowDown"));z(this,"tagType",cx.info);z(this,"placement",kp.bottomStart);z(this,"effect",Pp.light);z(this,"multiple",!1);z(this,"multipleLimit",0);z(this,"collapseTags",!1);z(this,"collapseTagsTooltip",!1);z(this,"maxCollapseTags",1);z(this,"selectOnlyOneGroup",new ge(be.placer,!1));z(this,"filterable",!1);z(this,"reserveKeyword",!0);z(this,"remote",!1);z(this,"remoteShowSuffix",!1);z(this,"loadingText","");z(this,"noMatchText","");z(this,"filterMethod",new ge(be.hook,void 0,new ot));z(this,"remoteMethod",new ge(be.hook,void 0,new ot));z(this,"popperClass","");z(this,"popperOptions",{});z(this,"slotable",new ge(be.placer,!1));z(this,"visibleChange",new ge(be.event,void 0,new ot));z(this,"removeTag",new ge(be.event,void 0,new ot));z(this,"clear",new ge(be.event,void 0,new ot));z(this,"optionDefault",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"prefix",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})));z(this,"relate",new ge(be.placer,void 0));z(this,"valueKey",new ge(be.placer,"value"));z(this,"labelKey",new ge(be.placer,"label"));z(this,"allItemAsValue",new ge(be.placer,!1));z(this,"withAttachData",new ge(be.placer,!0));z(this,"textName",new ge(be.placer,""));z(this,"optionName",new ge(be.placer,""));z(this,"labelName",new ge(be.placer,""))}}class kk extends Ho{constructor(){super(...arguments);z(this,"format",$T.time1);z(this,"prefixIcon",new ge(be.icon,"Clock"));z(this,"clearIcon",new ge(be.icon,"CircleClose"));z(this,"clearable",!0);z(this,"editable",!1);z(this,"isRange",!1);z(this,"arrowControl",!1);z(this,"popperClass","");z(this,"teleported",!0);z(this,"disabledHours",new ge(be.hook,void 0,new ot));z(this,"disabledMinutes",new ge(be.hook,void 0,new ot));z(this,"disabledSeconds",new ge(be.hook,void 0,new ot));z(this,"visibleChange",new ge(be.event,void 0,new ot))}}class Lne extends kk{constructor(){super(...arguments);z(this,"placeholder","")}}class Rne extends kk{constructor(){super(...arguments);z(this,"rangeSeparator","-");z(this,"startPlaceholder","");z(this,"endPlaceholder","");z(this,"isRange",!0)}}class Ok extends Ho{constructor(){super(...arguments);z(this,"editable",!0);z(this,"clearable",!0);z(this,"defaultValue",null);z(this,"defaultTime",null);z(this,"format",vx.date1);z(this,"valueFormat",vx.date1);z(this,"prefixIcon",new ge(be.icon));z(this,"clearIcon",new ge(be.icon));z(this,"disabledDate",new ge(be.hook,void 0,new ot));z(this,"shortcuts",new ge(be.hook));z(this,"cellClassName",new ge(be.hook,void 0,new ot));z(this,"teleported",!0);z(this,"popperClass","");z(this,"popperOptions",{});z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"visibleChange",new ge(be.event,void 0,new ot));z(this,"panelChange",new ge(be.event,void 0,new ot));z(this,"calendarChange",new ge(be.event,void 0,new ot))}}class jne extends Ok{constructor(){super(...arguments);z(this,"placeholder","");z(this,"type",zT.date)}}class Vne extends Ok{constructor(){super(...arguments);z(this,"type",UT.daterange);z(this,"defaultValue",null);z(this,"defaultTime",null);z(this,"unlinkPanels",!1);z(this,"startPlaceholder","");z(this,"endPlaceholder","");z(this,"rangeSeparator",new ge(be.slot,void 0,new jn,void 0,new Vn))}}class zne extends Ho{constructor(){super(...arguments);z(this,"clearable",!0);z(this,"effect",Pp.light);z(this,"prefixIcon",new ge(be.icon,"Clock"));z(this,"clearIcon",new ge(be.icon,"CircleClose"));z(this,"start","09:00");z(this,"end","18:00");z(this,"step","00:30");z(this,"minTime","");z(this,"maxTime","");z(this,"format","HH:mm");z(this,"emptyValues",new ge(be.dataObject,null,new wr({type:He.array,enable:!0})));z(this,"valueOnClear",new ge(be.hook,void 0,new ot));z(this,"clear",new ge(be.event,void 0,new ot))}}class Une extends Ho{constructor(){super(...arguments);z(this,"width","40px");z(this,"inlinePrompt",!1);z(this,"activeIcon",new ge(be.icon));z(this,"inactiveIcon",new ge(be.icon));z(this,"activeActionIcon",new ge(be.icon));z(this,"inactiveActionIcon",new ge(be.icon));z(this,"activeText","");z(this,"inactiveText","");z(this,"valueType",new ge(be.placer,He.boolean));z(this,"activeValue",!0);z(this,"inactiveValue",!1);z(this,"beforeChange",new ge(be.hook,void 0,new ot))}}class Hne extends Wp{constructor(){super(...arguments);z(this,"max",5);z(this,"lowThreshold",2);z(this,"highThreshold",4);z(this,"allowHalf",!0);z(this,"showText",!0);z(this,"showScore",!0)}}class Wne extends Sne{constructor(){super(...arguments);z(this,"percentage",0);z(this,"duration",3);z(this,"width",126);z(this,"strokeWidth",6);z(this,"type",Nd.line);z(this,"status",wT.none);z(this,"strokeLinecap",ST.round);z(this,"color",new ge(be.hook,void 0,new ot));z(this,"trackColor",new ge(be.hook,void 0,new ot));z(this,"format",new ge(be.hook,void 0,new ot));z(this,"textInside",!1);z(this,"indeterminate",!1);z(this,"showText",!0);z(this,"striped",!1);z(this,"stripedFlow",!1);z(this,"direction",new ge(be.placer,Cs.horizontal));z(this,"completeSec",new ge(be.placer,0));z(this,"completed",new ge(be.placerHook,void 0,new ot))}}class Gne extends Wp{constructor(){super(...arguments);z(this,"colorFormat",eD.rgb);z(this,"showAlpha",!1);z(this,"popperClass","");z(this,"predefine",new ge(be.dataObject,[],new wr({type:He.array,enable:!0})))}}class Kne extends Ho{constructor(){super(...arguments);z(this,"min",0);z(this,"max",100);z(this,"step",10);z(this,"debounce",0);z(this,"showStops",!0);z(this,"vertical",!1);z(this,"height","");z(this,"range",!1);z(this,"marks",new ge(be.dataObject,{},new wr({type:He.object,enable:!0})));z(this,"showInput",!1);z(this,"showInputControls",!0);z(this,"inputSize",mo.default);z(this,"showTooltip",!0);z(this,"placement",kp.top);z(this,"formatTooltip",new ge(be.hook,void 0,new ot));z(this,"tooltipClass","")}}class Bk extends Wp{constructor(){super(...arguments);z(this,"fileList",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})));z(this,"accept",new ge(be.placer,[],new wr({type:He.array,enable:!0})));z(this,"listType",og.text);z(this,"limit",3);z(this,"fileMaxSize",new ge(be.placer,5));z(this,"multiple",!1);z(this,"showFileList",!0);z(this,"autoUpload",!0);z(this,"drag",!1);z(this,"action","");z(this,"dataName",new ge(be.placer,"file"));z(this,"method",rD.post);z(this,"uploadTip",new ge(be.placer,""));z(this,"uploadTriggerTip",new ge(be.placer,""));z(this,"submitUploadTip",new ge(be.placer,""));z(this,"getHeader",new ge(be.placerHook,void 0,new ot));z(this,"getData",new ge(be.placerHook,void 0,new ot));z(this,"withCredentials",!1);z(this,"httpRequest",new ge(be.hook,void 0,new ot));z(this,"beforeUpload",new ge(be.hook,void 0,new ot));z(this,"beforeRemove",new ge(be.hook,void 0,new ot));z(this,"onChange",new ge(be.hook,void 0,new ot));z(this,"onExceed",new ge(be.hook,void 0,new ot));z(this,"onProgress",new ge(be.hook,void 0,new ot));z(this,"onPreview",new ge(be.hook,void 0,new ot));z(this,"onSuccess",new ge(be.hook,void 0,new ot));z(this,"onError",new ge(be.hook,void 0,new ot));z(this,"onRemove",new ge(be.hook,void 0,new ot));z(this,"isUploadSuccess",new ge(be.placerHook,void 0,new ot));z(this,"onBuildUrl",new ge(be.placerHook,void 0,new ot));z(this,"slotable",new ge(be.placer,!1));z(this,"trigger",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!1}),void 0,new Vn));z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!1}),void 0,new Vn));z(this,"tip",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!1}),void 0,new Vn));z(this,"file",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!1}),void 0,new Vn))}}class Xne{constructor(){let t=new Bk;ge.setValue(t,"accept",gx(nD)),ge.setValue(t,"listType",og.pictureCard);const n=["file","drag"];return n==null||n.forEach(r=>delete t[r]),t}}class Yne{constructor(){let t=new Bk;return ge.setValue(t,"accept",gx(tD)),t}}class Jne extends Ho{}class Zne extends Ho{constructor(){super(...arguments);z(this,"clearable",!0);z(this,"checkStrictly",new ge(be.placer,!1));z(this,"showAllLevels",!0);z(this,"emitPath",new ge(be.placer,!0));z(this,"separator"," / ");z(this,"debounce",300);z(this,"hoverThreshold",new ge(be.placer,500));z(this,"expandTrigger",new ge(be.placer,ag.click));z(this,"tagType",cx.info);z(this,"tagEffect",ux.light);z(this,"lazy",new ge(be.placer,!1));z(this,"lazyLoad",new ge(be.placerHook,void 0,new ot));z(this,"filterable",!1);z(this,"filterMethod",new ge(be.hook,void 0,new ot));z(this,"beforeFilter",new ge(be.hook,void 0,new ot));z(this,"multiple",new ge(be.placer,!1));z(this,"collapseTags",!1);z(this,"collapseTagsTooltip",!1);z(this,"maxCollapseTags",1);z(this,"emptyValues",new ge(be.dataObject,null,new wr({type:He.array,enable:!0})));z(this,"valueOnClear",new ge(be.hook,void 0,new ot));z(this,"popperClass","");z(this,"teleported",!0);z(this,"persistent",!0);z(this,"valueProp",new ge(be.placer,"value"));z(this,"labelProp",new ge(be.placer,"label"));z(this,"childrenProp",new ge(be.placer,"children"));z(this,"disabledProp",new ge(be.placer,"disabled"));z(this,"leafProp",new ge(be.placer,"leaf"));z(this,"withAttachData",new ge(be.placer,!0));z(this,"textName",new ge(be.placer,""));z(this,"optionName",new ge(be.placer,""));z(this,"labelName",new ge(be.placer,""));z(this,"visibleChange",new ge(be.event,void 0,new ot));z(this,"removeTag",new ge(be.event,void 0,new ot));z(this,"expandChange",new ge(be.event,void 0,new ot));z(this,"clear",new ge(be.event,void 0,new ot));z(this,"empty",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"optionDefault",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})));z(this,"relate",new ge(be.placer,void 0))}}class Ik extends Mi{constructor(){super(...arguments);z(this,"renderAfterExpand",!0);z(this,"highlightCurrent",!1);z(this,"defaultExpandAll",!1);z(this,"expandOnClickNode",!0);z(this,"checkOnClickNode",!1);z(this,"autoExpandParent",!0);z(this,"showCheckbox",!1);z(this,"checkStrictly",!1);z(this,"accordion",!1);z(this,"draggable",!1);z(this,"lazy",!1);z(this,"load",new ge(be.hook,void 0,new ot));z(this,"filterNodeMethod",new ge(be.hook,void 0,new ot));z(this,"renderContent",new ge(be.hook,void 0,new ot));z(this,"allowDrag",new ge(be.hook,void 0,new ot));z(this,"allowDrop",new ge(be.hook,void 0,new ot));z(this,"empty",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"optionDefault",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"nodeClick",new ge(be.event,void 0,new ot));z(this,"nodeContextmenu",new ge(be.event,void 0,new ot));z(this,"checkChange",new ge(be.event,void 0,new ot));z(this,"check",new ge(be.event,void 0,new ot));z(this,"currentChange",new ge(be.event,void 0,new ot));z(this,"nodeExpand",new ge(be.event,void 0,new ot));z(this,"nodeCollapse",new ge(be.event,void 0,new ot));z(this,"nodeDragStart",new ge(be.event,void 0,new ot));z(this,"nodeDragEnter",new ge(be.event,void 0,new ot));z(this,"nodeDragLeave",new ge(be.event,void 0,new ot));z(this,"nodeDragOver",new ge(be.event,void 0,new ot));z(this,"nodeDragEnd",new ge(be.event,void 0,new ot));z(this,"nodeDrop",new ge(be.event,void 0,new ot));z(this,"indent",18);z(this,"icon",new ge(be.icon,""));z(this,"emptyText","");z(this,"labelProp",new ge(be.placerHook,void 0,new ot));z(this,"childrenProp",new ge(be.placerHook,void 0,new ot));z(this,"disabledProp",new ge(be.placerHook,void 0,new ot));z(this,"isLeafProp",new ge(be.placerHook,void 0,new ot));z(this,"classProp",new ge(be.placer,void 0,new ot));z(this,"nodeKey","value");z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Qne extends TE{}class qne extends TE{}class $ne extends ks{constructor(){super(...arguments);z(this,"label",new ge(be.placer,""));z(this,"type",fx.default);z(this,"size",mo.default);z(this,"tag","span");z(this,"truncated",!1)}}class ere extends ks{constructor(){super(...arguments);z(this,"type",mo.default);z(this,"underline",!0);z(this,"disabled",!1);z(this,"href","");z(this,"target",QT.blank);z(this,"prefixIcon",new ge(be.placer,""));z(this,"suffixIcon",new ge(be.placer,""));z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn))}}class tre extends ks{constructor(){super(...arguments);z(this,"type",rg.primary);z(this,"size",mo.default);z(this,"effect",ux.light);z(this,"color","");z(this,"round",!1);z(this,"closable",!1);z(this,"disableTransitions",!1);z(this,"hit",!1);z(this,"click",new ge(be.event,void 0,new ot));z(this,"close",new ge(be.event,void 0,new ot))}}class nre extends ks{constructor(){super(...arguments);z(this,"size",mo.default);z(this,"disabled",!1);z(this,"type",fx.default);z(this,"buttonType",MT.default);z(this,"text",!1);z(this,"plain",!1);z(this,"round",!1);z(this,"circle",!1);z(this,"link",!1);z(this,"icon",new ge(be.icon));z(this,"bg",!1);z(this,"loading",!1);z(this,"loadingIcon",new ge(be.icon,"Loading"));z(this,"autofocus",!1);z(this,"autoInsertSpace",!1);z(this,"color","");z(this,"dark",!1);z(this,"tag","button");z(this,"click",new ge(be.event,new nJ,new ot));z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn))}}class rre extends ks{constructor(){super(...arguments);z(this,"direction",Cs.horizontal);z(this,"contentPosition",xu.center);z(this,"borderStyle",JT.solid)}}class ire extends Mi{constructor(){super(...arguments);z(this,"chartOption",new ge(be.hook,void 0,new ot));z(this,"dataSource",new ge(be.dataObject,null,new wr({type:He.array,enable:!0})))}}class are extends ks{constructor(){super(...arguments);z(this,"target","");z(this,"offset",0);z(this,"position",AT.top);z(this,"zIndex",100);z(this,"change",new ge(be.event,void 0,new ot));z(this,"scroll",new ge(be.event,void 0,new ot))}}class ore extends Mi{constructor(){super(...arguments);z(this,"sizeDef",new ge(be.placer,""));z(this,"color","");z(this,"size",0);z(this,"icon",new ge(be.icon,"Apple"))}}class sre extends ks{constructor(){super(...arguments);z(this,"image","");z(this,"imageSize");z(this,"description","")}}class lre extends ks{constructor(){super(...arguments);z(this,"value","");z(this,"max",99);z(this,"isDot",!1);z(this,"hidden",new ge(be.placer,!1));z(this,"type",rg.danger)}}class ure extends ks{constructor(){super(...arguments);z(this,"type",rg.primary);z(this,"size",mo.default);z(this,"maxHeight");z(this,"showTimeout",250);z(this,"hideTimeout",150);z(this,"placement",kp.bottom);z(this,"trigger",YT.hover);z(this,"splitButton",!1);z(this,"disabled",!1);z(this,"hideOnClick",!0);z(this,"tabindex",0);z(this,"slotable",new ge(be.placer,!1));z(this,"popperClass","menu");z(this,"popperOptions",{});z(this,"teleported",!0);z(this,"click",new ge(be.event,void 0,new ot));z(this,"command",new ge(be.event,void 0,new ot));z(this,"visibleChange",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Nk extends _o{constructor(){super(...arguments);z(this,"command","");z(this,"icon",new ge(be.icon));z(this,"disabled",!1);z(this,"divided",!1)}}class cre extends ks{constructor(){super(...arguments);z(this,"size",mo.default);z(this,"shape",DT.circle);z(this,"src","");z(this,"fit",dx.cover);z(this,"icon",new ge(be.icon));z(this,"error",new ge(be.event,void 0,new ot))}}class fre extends Mi{constructor(){super(...arguments);z(this,"icon",ET.info);z(this,"title",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"subTitle",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"extra",new ge(be.slot,void 0,new jn,void 0,new Vn))}}class pre extends ks{constructor(){super(...arguments);z(this,"target","");z(this,"visibilityHeight",200);z(this,"right",40);z(this,"bottom",40);z(this,"click",new ge(be.event,void 0,new ot))}}class hre extends Mi{constructor(){super(...arguments);z(this,"container","");z(this,"offset",0);z(this,"bound",15);z(this,"duration",300);z(this,"type",ZT.default);z(this,"direction",Cs.vertical);z(this,"marker",!0);z(this,"change",new ge(be.event,void 0,new ot));z(this,"click",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Fk extends AE{constructor(){super(...arguments);z(this,"title","");z(this,"href","");z(this,"children")}}class dre extends Mi{constructor(){super(...arguments);z(this,"height","");z(this,"initialIndex",0);z(this,"indicatorPosition",HT.none);z(this,"trigger",ag.hover);z(this,"arrow",WT.hover);z(this,"type",GT.none);z(this,"direction",Cs.horizontal);z(this,"loop",!0);z(this,"autoplay",!0);z(this,"pauseOnHover",!0);z(this,"interval",3e3);z(this,"change",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Mk extends _o{constructor(){super(...arguments);z(this,"slotContent",new ge(be.slot,void 0,new jn({slotName:"content"}),void 0,new Vn))}}class vre extends Mi{constructor(){super(...arguments);z(this,"accordion",!1);z(this,"change",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Lk extends AE{constructor(){super(...arguments);z(this,"title","");z(this,"content","");z(this,"slotTitle",new ge(be.slot,void 0,new jn({slotName:"title"}),void 0,new Vn));z(this,"slotContent",new ge(be.slot,void 0,new jn({slotName:"content"}),void 0,new Vn));z(this,"disabled",!1)}}class mre extends Mi{constructor(){super(...arguments);z(this,"border",!1);z(this,"column",3);z(this,"direction",Cs.horizontal);z(this,"size",mo.default);z(this,"title","");z(this,"extra","");z(this,"slotable",new ge(be.placer,!1));z(this,"slotTitle",new ge(be.slot,void 0,new jn({allowDrag:!0,slotName:"title"}),void 0,new Vn));z(this,"slotExtra",new ge(be.slot,void 0,new jn({allowDrag:!0,slotName:"extra"}),void 0,new Vn));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Rk extends _o{constructor(){super(...arguments);z(this,"content",new ge(be.placer,""));z(this,"span",1);z(this,"width","");z(this,"minWidth","");z(this,"align",xu.left);z(this,"labelAlign",xu.left);z(this,"className","");z(this,"labelClassName","")}}class gre extends Mi{constructor(){super(...arguments);z(this,"width",new ge(be.placer,""));z(this,"height",new ge(be.placer,""));z(this,"src","");z(this,"fit",dx.empty);z(this,"loading",KT.eager);z(this,"hideOnClickModal",!1);z(this,"lazy",!1);z(this,"closeOnPressEscape",!0);z(this,"previewTeleported",!1);z(this,"infinite",!0);z(this,"scrollContainer","");z(this,"referrerpolicy","");z(this,"previewSrcList",new ge(be.dataObject,[],new wr({type:He.array,enable:!0})));z(this,"zIndex",999999);z(this,"initialIndex",0);z(this,"zoomRate",1.2);z(this,"placeholder",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"slotError",new ge(be.slot,void 0,new jn({slotName:"error"}),void 0,new Vn));z(this,"viewer",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"load",new ge(be.event,void 0,new ot));z(this,"error",new ge(be.event,void 0,new ot));z(this,"switch",new ge(be.event,void 0,new ot));z(this,"close",new ge(be.event,void 0,new ot));z(this,"show",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class yre extends Mi{constructor(){super(...arguments);z(this,"separator","");z(this,"separatorIcon",new ge(be.icon));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class jk extends _o{constructor(){super(...arguments);z(this,"to","");z(this,"replace",!1);z(this,"useRouter",!1)}}class _re extends Mi{constructor(){super(...arguments);z(this,"uniqueOpened",!1);z(this,"router",!1);z(this,"collapseTransition",!0);z(this,"collapse",!1);z(this,"ellipsis",!1);z(this,"ellipsisIcon","");z(this,"backgroundColor","#ffffff");z(this,"textColor","#303133");z(this,"activeTextColor","#409EFF");z(this,"mode",Cs.vertical);z(this,"menuTrigger",ag.hover);z(this,"popperEffect",Pp.dark);z(this,"closeOnClickOutside",!1);z(this,"popperClass","");z(this,"showTimeout",0);z(this,"hideTimeout",0);z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Vk extends _o{constructor(){super(...arguments);z(this,"disabled",!1);z(this,"icon","");z(this,"route","");z(this,"click",new ge(be.event,void 0,new ot));z(this,"menuItemType",Ol.None);z(this,"showTimeout",0);z(this,"hideTimeout",0);z(this,"popperOffset",0);z(this,"expandCloseIcon","");z(this,"expandOpenIcon","");z(this,"collapseCloseIcon","");z(this,"collapseOpenIcon","");z(this,"popperClass","");z(this,"teleported",!0);z(this,"children")}}class bre extends Mi{constructor(){super(...arguments);z(this,"label");z(this,"displayLayout",new ge(be.placer,Pl.inline))}}class xre extends Mi{constructor(){super(...arguments);z(this,"direction",Cs.horizontal);z(this,"space","");z(this,"processStatus",px.process);z(this,"finishStatus",px.finish);z(this,"alignCenter",!1);z(this,"simple",!1);z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class zk extends _o{constructor(){super(...arguments);z(this,"description","");z(this,"icon","");z(this,"status","")}}class Ere extends Mi{constructor(){super(...arguments);z(this,"ctrlWidth",new ge(be.placer,"100%"));z(this,"data",new ge(be.singleOption,null));z(this,"height","200px");z(this,"maxHeight","200px");z(this,"emptyText","");z(this,"size",mo.default);z(this,"defaultSort",new ge(be.dataObject,{},new wr({type:He.array,enable:!1})));z(this,"tableLayout",NT.fixed);z(this,"stripe",!1);z(this,"border",!1);z(this,"fit",!0);z(this,"showHeader",!0);z(this,"scrollbarAlwaysOn",!1);z(this,"flexible",!1);z(this,"beforeTableRender",new ge(be.placerHook,void 0,new ot));z(this,"highlightCurrentRow",!1);z(this,"currentRowKey","");z(this,"rowClassName",new ge(be.hook,void 0,new ot));z(this,"rowStyle",new ge(be.hook,void 0,new ot));z(this,"headerRowClassName",new ge(be.hook,void 0,new ot));z(this,"headerRowStyle",new ge(be.hook,void 0,new ot));z(this,"rowKey",new ge(be.hook,void 0,new ot));z(this,"expandRowKeys",new ge(be.dataObject,[],new wr({type:He.array,enable:!1})));z(this,"cellClassName",new ge(be.hook,void 0,new ot));z(this,"cellStyle",new ge(be.hook,void 0,new ot));z(this,"headerCellClassName",new ge(be.hook,void 0,new ot));z(this,"headerCellStyle",new ge(be.hook,void 0,new ot));z(this,"defaultExpandAll",!1);z(this,"showSummary",!1);z(this,"selectOnIndeterminate",!0);z(this,"sumText","Sum");z(this,"summaryMethod",new ge(be.hook,void 0,new ot));z(this,"spanMethod",new ge(be.hook,void 0,new ot));z(this,"treeProps",new ge(be.dataObject,{},new wr({type:He.object,enable:!1})));z(this,"indent",16);z(this,"lazy",!1);z(this,"load",new ge(be.hook,void 0,new ot));z(this,"showOverflowTooltip",!1);z(this,"tooltipEffect",Pp.dark);z(this,"tooltipOptions",null);z(this,"allowPage",new ge(be.placer,!1));z(this,"pageSize",new ge(be.placer,10));z(this,"pageSizes",new ge(be.placer,[10,20,30,40,50,100]));z(this,"hideOnSinglePage",new ge(be.placer,!1));z(this,"layout",new ge(be.placer,["prev","pager","next","jumper","->","total"]));z(this,"select",new ge(be.event,void 0,new ot));z(this,"selectAll",new ge(be.event,void 0,new ot));z(this,"selectionChange",new ge(be.event,void 0,new ot));z(this,"cellMouseEnter",new ge(be.event,void 0,new ot));z(this,"cellMouseLeave",new ge(be.event,void 0,new ot));z(this,"cellClick",new ge(be.event,void 0,new ot));z(this,"cellDblclick",new ge(be.event,void 0,new ot));z(this,"cellContextmenu",new ge(be.event,void 0,new ot));z(this,"rowClick",new ge(be.event,void 0,new ot));z(this,"rowContextmenu",new ge(be.event,void 0,new ot));z(this,"rowDblclick",new ge(be.event,void 0,new ot));z(this,"headerClick",new ge(be.event,void 0,new ot));z(this,"headerContextmenu",new ge(be.event,void 0,new ot));z(this,"sortChange",new ge(be.event,void 0,new ot));z(this,"filterChange",new ge(be.event,void 0,new ot));z(this,"currentChange",new ge(be.event,void 0,new ot));z(this,"headerDragend",new ge(be.event,void 0,new ot));z(this,"expandChange",new ge(be.event,void 0,new ot));z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"append",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"empty",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Uk extends u0{constructor(){super(...arguments);z(this,"type",LT.default);z(this,"index",new ge(be.hook,void 0,new ot));z(this,"label","");z(this,"prop","");z(this,"width","");z(this,"minWidth","");z(this,"fixed",!1);z(this,"resizable",!0);z(this,"showOverflowTooltip",!1);z(this,"reserveSelection",!1);z(this,"renderHeader",new ge(be.hook,void 0,new ot));z(this,"formatter",new ge(be.hook,void 0,new ot));z(this,"selectable",new ge(be.hook,void 0,new ot));z(this,"align",xu.left);z(this,"headerAlign",xu.left);z(this,"className","");z(this,"labelClassName","");z(this,"sortable",!1);z(this,"sortOrders",new ge(be.dataObject,["ascending","descending",null],new wr({type:He.array})));z(this,"sortMethod",new ge(be.hook,void 0,new ot));z(this,"sortBy",new ge(be.hook,void 0,new ot));z(this,"filters",new ge(be.dataObject,void 0,new wr({type:He.object})));z(this,"filteredValue",new ge(be.dataObject,void 0,new wr({type:He.array,enable:!0})));z(this,"filterMethod",new ge(be.hook,void 0,new ot));z(this,"filterMultiple",!0);z(this,"filterPlacement",kp.top);z(this,"filterClassName","");z(this,"columnKey","");z(this,"header",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"default",{widgetList:[],...new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!0}),void 0,new Vn)});z(this,"slotable",new ge(be.placer,!1));z(this,"uuid",new ge(be.placer,Ds()))}}class c0 extends Hy{constructor(){super(...arguments);z(this,"customClass",new ge(be.placer,[]));z(this,"displayLayout",new ge(be.placer,Pl.block))}}class Ou extends c0{constructor(){super(...arguments);z(this,"componentWrapperClass",new ge(be.placer,[]))}}class wre extends c0{constructor(){super(...arguments);z(this,"hidden",!1);z(this,"colHeight",new ge(be.placer,""));z(this,"gutter",0);z(this,"justify",jT.start);z(this,"align",VT.middle);z(this,"tag","div");z(this,"cols",new ge(be.placer,[]))}}class Hk extends Ou{constructor(){super(...arguments);z(this,"hidden",!1);z(this,"responsive",!1);z(this,"span",12);z(this,"xs",12);z(this,"sm",12);z(this,"md",12);z(this,"lg",12);z(this,"xl",12);z(this,"offset",0);z(this,"push",0);z(this,"pull",0);z(this,"tag","div");z(this,"horizontalAlign",new ge(be.placer,""))}}class Sre extends c0{constructor(){super(...arguments);z(this,"hidden",!1)}}class Cre extends Ou{constructor(){super(...arguments);z(this,"cellWidth","");z(this,"cellHeight","");z(this,"colspan",0);z(this,"rowspan",0)}}class Are extends Ou{constructor(){super(...arguments);z(this,"label","");z(this,"title","");z(this,"defaultValue",!1);z(this,"width","50%");z(this,"fullscreen",!1);z(this,"top","");z(this,"modal",!0);z(this,"modalClass","");z(this,"lockScroll",!0);z(this,"draggable",!1);z(this,"overflow",!1);z(this,"center",!1);z(this,"alignCenter",!1);z(this,"closeOnClickModal",!0);z(this,"closeOnPressEscape",!0);z(this,"showClose",!0);z(this,"destroyOnClose",!1);z(this,"openDelay",0);z(this,"closeDelay",0);z(this,"closeIcon",new ge(be.icon,"Close"));z(this,"beforeClose",new ge(be.hook,void 0,new ot));z(this,"appendToBody",!1);z(this,"appendTo","body");z(this,"zIndex",1e4);z(this,"header",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"footer",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"open",new ge(be.event,void 0,new ot));z(this,"opened",new ge(be.event,void 0,new ot));z(this,"close",new ge(be.event,void 0,new ot));z(this,"closed",new ge(be.event,void 0,new ot));z(this,"openAutoFocus",new ge(be.event,void 0,new ot));z(this,"closeAutoFocus",new ge(be.event,void 0,new ot))}}class Tre extends Ou{constructor(){super(...arguments);z(this,"ctrlWidth",new ge(be.placer,"100%"));z(this,"title","title");z(this,"type",XT.info);z(this,"description","description");z(this,"closable",!0);z(this,"center",!1);z(this,"closeText","");z(this,"showIcon",!1);z(this,"slotable",new ge(be.placer,!1));z(this,"effect",Pp.light);z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"titleSlot",new ge(be.slot,void 0,new jn({allowDrag:!0,slotName:"title"}),void 0,new Vn));z(this,"close",new ge(be.event,void 0,new ot))}}class Dre extends Ou{constructor(){super(...arguments);z(this,"label","");z(this,"title","");z(this,"defaultValue",!1);z(this,"size","30%");z(this,"modal",!0);z(this,"modalClass","");z(this,"appendToBody",!1);z(this,"lockScroll",!0);z(this,"withHeader",!0);z(this,"showClose",!0);z(this,"closeOnClickModal",!0);z(this,"closeOnPressEscape",!0);z(this,"destroyOnClose",!1);z(this,"beforeClose",new ge(be.hook,void 0,new ot));z(this,"direction",RT.rtl);z(this,"openDelay",0);z(this,"closeDelay",0);z(this,"zIndex",1e4);z(this,"header",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"footer",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"open",new ge(be.event,void 0,new ot));z(this,"opened",new ge(be.event,void 0,new ot));z(this,"close",new ge(be.event,void 0,new ot));z(this,"closed",new ge(be.event,void 0,new ot));z(this,"openAutoFocus",new ge(be.event,void 0,new ot));z(this,"closeAutoFocus",new ge(be.event,void 0,new ot))}}class Pre extends Mi{constructor(){super(...arguments);z(this,"background",!1);z(this,"hideOnSinglePage",!1);z(this,"size",mo.default);z(this,"defaultPageSize",10);z(this,"pagerCount",7);z(this,"defaultCurrentPage",1);z(this,"layout",new ge(be.dataObject,["prev","pager","next","jumper","->","total"]));z(this,"pageSizes",new ge(be.dataObject,[10,20,30,40,50,100],new wr({type:He.array,enable:!0})));z(this,"popperClass","");z(this,"prevText","");z(this,"nextText","");z(this,"prevIcon",new ge(be.icon,"ArrowLeft"));z(this,"nextIcon",new ge(be.icon,"ArrowRight"));z(this,"disabled",!1);z(this,"teleported",!0);z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"sizeChange",new ge(be.event,void 0,new ot));z(this,"currentChange",new ge(be.event,void 0,new ot));z(this,"change",new ge(be.event,void 0,new ot));z(this,"prevClick",new ge(be.event,void 0,new ot));z(this,"nextClick",new ge(be.event,void 0,new ot))}}class kre extends Ou{constructor(){super(...arguments);z(this,"newDataSource",new ge(be.singleOption,null,new wr({type:He.object,enable:!0})));z(this,"editDataSource",new ge(be.singleOption,null,new wr({type:He.object,enable:!0})));z(this,"loadDataWhenInit",new ge(be.placer,!1));z(this,"showLoading",new ge(be.placer,!1));z(this,"loadingText",new ge(be.placer,""));z(this,"inline",!1);z(this,"disabled",!1);z(this,"labelAlign",new ge(be.placer,""));z(this,"labelPosition",FT.right);z(this,"labelWidth","");z(this,"labelSuffix","");z(this,"statusIcon",!1);z(this,"hideRequiredAsterisk",!1);z(this,"requireAsteriskPosition",CT.left);z(this,"showMessage",!0);z(this,"inlineMessage",!1);z(this,"validateOnRuleChange",!0);z(this,"scrollToError",!1);z(this,"scrollIntoViewOptions",new ge(be.dataObject,void 0,new wr({type:He.object,enable:!0})));z(this,"size",mo.default);z(this,"customClass",new ge(be.placer,[]));z(this,"validate",new ge(be.event,void 0,new ot));z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"modelName",new ge(be.placer,"formData"));z(this,"refName",new ge(be.placer,"vForm"));z(this,"rulesName",new ge(be.placer,"rules"));z(this,"formCreated",new ge(be.event,void 0,new ot));z(this,"formMounted",new ge(be.event,void 0,new ot));z(this,"formDataChange",new ge(be.event,void 0,new ot));z(this,"formDataLoaded",new ge(be.placerHook,void 0,new ot));z(this,"needFormAdd",new ge(be.placerHook,void 0,new ot))}}class Ore extends c0{constructor(){super(...arguments);z(this,"cols",new ge(be.placer,[]))}}class Bre extends c0{constructor(){super(...arguments);z(this,"hidden",!1);z(this,"closable",!1);z(this,"addable",!1);z(this,"editable",!1);z(this,"stretch",!1);z(this,"showLoading",new ge(be.placer,!1));z(this,"loadingText",new ge(be.placer,""));z(this,"type",hx.borderCard);z(this,"tabPosition",TT.top);z(this,"beforeLeave",new ge(be.hook,void 0,new ot));z(this,"tabs",new ge(be.placer,void 0,new ot));z(this,"tabChange",new ge(be.event,void 0,new ot));z(this,"tabClick",new ge(be.event,void 0,new ot));z(this,"tabAdd",new ge(be.event,void 0,new ot));z(this,"edit",new ge(be.event,void 0,new ot));z(this,"tabRemove",new ge(be.event,void 0,new ot));z(this,"created",new ge(be.event,void 0,new ot));z(this,"mounted",new ge(be.event,void 0,new ot))}}class OE extends Ou{constructor(){super(...arguments);z(this,"hidden",!1);z(this,"label","");z(this,"disabled",!1);z(this,"lazy",!1);z(this,"isdefault",!1)}}class Ire extends Ou{constructor(){super(...arguments);z(this,"ctrlWidth",new ge(be.placer,"100%"));z(this,"hidden",!1);z(this,"slotable",new ge(be.placer,!1));z(this,"label",new ge(be.placer,"card"));z(this,"folded",new ge(be.placer,!1));z(this,"showFold",new ge(be.placer,!1));z(this,"shadow",BT.always);z(this,"bodyStyle",new ge(be.placer,void 0,new ot));z(this,"header",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn))}}class Nre extends Wy{constructor(){super(...arguments);z(this,"label",new ge(be.placer,""));z(this,"hidden",!1);z(this,"minRowNum",1);z(this,"maxRowNum",50);z(this,"showMode",ig.line);z(this,"addRecordText","");z(this,"deleteRecordText","");z(this,"sortUpText","");z(this,"sortDownText","");z(this,"showHeader",!0);z(this,"showDetail",!1);z(this,"onlyOneAddButton",!1);z(this,"showBorder",!0);z(this,"showLimit",!1);z(this,"sortable",!1);z(this,"allowAdd",!0);z(this,"allowDelete",!0);z(this,"allowDefaultAdd",!1);z(this,"row",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!0}),void 0,new Vn));z(this,"detail",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!0}),void 0,new Vn));z(this,"addRow",new ge(be.event,void 0,new ot));z(this,"deleteRow",new ge(be.event,void 0,new ot));z(this,"change",new ge(be.event,void 0,new ot));z(this,"click",new ge(be.event,void 0,new ot));z(this,"dataFormat",new ge(be.hook,void 0,new ot));z(this,"rowDataFormat",new ge(be.hook,void 0,new ot))}}class Fre extends Wy{constructor(){super(...arguments);z(this,"label",new ge(be.placer,""));z(this,"data",new ge(be.singleOption,null));z(this,"alwaysShow",!1);z(this,"hidden",!1);z(this,"showLoading",!1);z(this,"loadingText","");z(this,"loadDataWhenInit",new ge(be.placer,!1));z(this,"noData","");z(this,"completed",new ge(be.event,void 0,new ot));z(this,"row",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!0}),void 0,new Vn));z(this,"click",new ge(be.event,void 0,new ot))}}class Mre extends Hy{constructor(){super(...arguments);z(this,"label","");z(this,"compName",tt.tag);z(this,"appendOnClick",!0);z(this,"showSaveButton",!0);z(this,"showAddButton",!0);z(this,"labelKey","label");z(this,"contentKey","value");z(this,"relatedIds",new ge(be.dataObject,[],new wr({type:He.array,enable:!0})));z(this,"addButtonText","");z(this,"saveButtonText","");z(this,"operateData",new ge(be.dataObject,{},new wr({type:He.object,enable:!0})));z(this,"hidden",!1);z(this,"click",new ge(be.event,void 0,new ot));z(this,"save",new ge(be.event,void 0,new ot));z(this,"add",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Wk extends Hy{constructor(){super(...arguments);z(this,"label");z(this,"value")}}class Lre extends Mi{constructor(){super(...arguments);z(this,"src","");z(this,"withQuery",new ge(be.placer,!1));z(this,"hashRouter",new ge(be.placer,!1));z(this,"onLoaded",new ge(be.event,void 0,new ot))}}const Ta={autoWidth:!0,inlineLayout:!0},Gk=[new Fn(tt.text,new $ne,!1,Ta),new Fn(tt.link,new ere,!1,Ta),new Fn(tt.button,new nre,!1,Ta),new Fn(tt.tag,new tre,!1,Ta),new Fn(tt.icon,new ore,!1,Ta)];class Qc extends pt{constructor(){super(),this.category=bu.container}}class BE extends pt{constructor(){super();z(this,"widgetList",[]);this.category=bu.container}}class Rre extends Qc{constructor(){super();z(this,"cols",[]);this.type=tt.cont,this.options=new Ore,this.init(!1)}}class IE extends u0{constructor(){super(...arguments);z(this,"direction",Cs.vertical);z(this,"partName",new ge(be.placer,Bl.container));z(this,"cellWidth",new ge(be.placer,""));z(this,"cellHeight",new ge(be.placer,""));z(this,"customClass",new ge(be.placer,[]));z(this,"componentWrapperClass",new ge(be.placer,[]));z(this,"children",[]);z(this,"widgetList",[])}}class jre extends Qc{constructor(){super();z(this,"cols",[]);this.type=tt.grid,this.options=new wre,this.init(!1)}}class Vre extends BE{constructor(){super();z(this,"internal",!0);this.type=tt.gridCol,this.options=new Hk,this.init(!1)}}class zre extends Qc{constructor(){super();z(this,"rows",[]);this.type=tt.table,this.options=new Sre,this.init(!1)}}class Ure extends Qc{constructor(){super();z(this,"internal",!0);z(this,"cols",[]);this.type=tt.tableRow,this.init(!1)}}class Hre extends BE{constructor(){super();z(this,"internal",!0);z(this,"merged",!1);this.type=tt.tableCol,this.options=new Cre,this.init(!1)}}class Wre extends Qc{constructor(){super();z(this,"displayType",hx.borderCard);z(this,"tabs",[]);this.type=tt.tabs,this.options=new Bre,this.init(!1)}}class Gre extends BE{constructor(){super();z(this,"internal",!0);this.type=tt.tabPane,this.options=new OE,this.init(!1)}}class Kre extends Qc{constructor(){super();z(this,"slots",[]);z(this,"widgetList",[]);this.type=tt.form,this.options=new kre,this.init(!1)}}class Xre extends Qc{constructor(){super();z(this,"widgetList",[]);this.type=tt.wrapper,this.options=new Yre,this.init(!1)}}class Yre extends Wy{constructor(){super(...arguments);z(this,"hidden",!1);z(this,"disabled",!1);z(this,"lazy",!1);z(this,"showLoading",new ge(be.placer,!1));z(this,"loadingText",new ge(be.placer,""))}}class Jre extends Mi{constructor(){super(...arguments);z(this,"label","");z(this,"labelHidden",new ge(be.placer,!1));z(this,"labelAlign",new ge(be.placer,""));z(this,"labelWidth",new ge(be.placer,""));z(this,"labelIconClass",new ge(be.icon));z(this,"labelIconPosition",new ge(be.placer,jc.rear));z(this,"labelTooltip",new ge(be.placer,""))}}class Zre extends Jre{constructor(){super(...arguments);z(this,"splitText","-");z(this,"unitText","");z(this,"left",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"right",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn))}}const Kk=[new jre,new Vre,new zre,new Ure,new Hre,new Rre,new Xre],Xk=[new Kre,new Fn(tt.input,new One,!0),new Fn(tt.textarea,new Bne,!0),new Fn(tt.number,new Ine,!0),new Fn(tt.radio,new Fne,!0),new Fn(tt.checkbox,new Mne,!0),new Fn(tt.autoComplete,new Nne,!0),new Fn(tt.select,new Pk,!0),new Fn(tt.cascader,new Zne,!0),new Fn(tt.treeSelect,{treeDivider:"",...new Ik,selectDivider:"",...new Pk},!0),new Fn(tt.switch,new Une,!0),new Fn(tt.timeSelect,new zne,!0),new Fn(tt.timePicker,new Lne,!0),new Fn(tt.timePickerRange,new Rne,!0),new Fn(tt.datePicker,new jne,!0),new Fn(tt.datePickerRange,new Vne,!0),new Fn(tt.pictureUpload,new Xne,!0),new Fn(tt.fileUpload,new Yne,!0),new Fn(tt.rate,new Hne,!0),new Fn(tt.colorPicker,new Gne,!0),new Fn(tt.slider,new Kne,!0),new Fn(tt.richEditor,new Jne,!0),new Fn(tt.cache,new kne,!0)],Yk=[new Fn(tt.multirow,new Nre,!0,{dynamicItemFlag:!0}),new Fn(tt.tmpl,new Fre,!1,{dynamicItemFlag:!0}),new Fn(tt.model,new Mre,!1),new Fn(tt.range,new Zre,!1)],Jk=[],Zk=[new Fn(tt.avatar,new cre,!1,Ta),new Fn(tt.badge,new lre,!1,Ta),new Fn(tt.empty,new sre,!1),new Fn(tt.result,new fre,!1),new Fn(tt.card,new Ire,!1),new Fn(tt.collapse,new vre,!1),new Fn(tt.descriptions,new mre,!1),new Fn(tt.carousel,new dre,!1),new Fn(tt.image,new gre,!1,Ta),new Fn(tt.eltable,new Ere,!1),new Fn(tt.pagination,new Pre,!1),new Fn(tt.progress,new Wne,!1,Ta),new Fn(tt.tree,new Ik,!1)],Qk=[new Fn(tt.router,new bre,!1,Ta),new Wre,new Gre,new Fn(tt.steps,new xre,!1),new Fn(tt.dropdown,new ure,!1,Ta),new Fn(tt.menu,new _re,!1),new Fn(tt.breadcrumb,new yre,!1),new Fn(tt.affix,new are,!1,Ta),new Fn(tt.backtop,new pre,!1,Ta),new Fn(tt.anchor,new hre,!1,Ta)],qk=[new Fn(tt.dialog,new Are,!1),new Fn(tt.drawer,new Dre,!1),new Fn(tt.alert,new Tre,!1)],$k=[new Fn(tt.staticText,new Qne,!1,Ta),new Fn(tt.htmlText,new qne,!1,Ta),new Fn(tt.divider,new rre,!1),new Fn(tt.chart,new ire,!1),new Fn(tt.iframe,new Lre,!1)],Qre=[...Kk,...Gk,...Xk,...Jk,...Yk,...Zk,...qk,...Qk,...$k],qre={containers:Kk,basicFields:Gk,formFields:Xk,systemFields:Jk,advancedFields:Yk,dataFields:Zk,navFields:Qk,feedBackFields:qk,otherFields:$k,allWidgets:Qre},qc=(e,t)=>{var r;if(!e||!t)return!1;let n=Bu(e==null?void 0:e.type);return!n||!(n!=null&&n.options)?!1:((r=Or(n==null?void 0:n.options))==null?void 0:r.indexOf(t))>-1},Bu=e=>{var t;return(t=qre.allWidgets)==null?void 0:t.find(n=>n.type===e)},$re=e=>{const t=e.id;if(!t)return null;const n=pt.getName(e);return{id:t,name:n}},Wo=(e,t,n)=>{if(!e)return jt(e);var r=e==null?void 0:e.id,a=e.type+Ds(),o=a;n&&(o=n(r,a));const i=$re(e);return eie(e,o,t),i&&(t!=null&&t.recordSource)&&Qn(e,{_source:i}),jt(e)},eie=(e,t,n)=>(na(e,Xt.id)&&(e.id=t),e.options=tie(e.options,t,n),e),tie=(e,t,n)=>(na(e,Xt.name)&&(n==null?void 0:n.newName)!=!1&&(e.name=t.replaceAll("-","")),na(e,Xt.label)&&!(e!=null&&e.label)&&(n==null?void 0:n.newLabel)!=!1&&(e.label=t.replaceAll("-","")),e),eO=e=>{const t="id@";return{idClass:`${t}${e==null?void 0:e.id}`,getIdByIdClass:o=>o==null?void 0:o.substring(t.length),isIdClass:o=>o==null?void 0:o.startsWith(t)}};function tO(){const e=D=>pt.getOptions(D,"rowspan")||1,t=D=>pt.getOptions(D,"colspan")||1,n=(D,k)=>{pt.setOptions(D,"rowspan",k)},r=(D,k)=>{pt.setOptions(D,"colspan",k)},a=(D,k,O)=>{let I=Yn(D.rows[k]);return w(I),D.rows.splice(O,0,I),!0},o=(D,k)=>(D.rows.forEach(O=>{let I=S();O.cols.splice(k,0,I)}),!0),i=D=>{let k=D.rows.length;return a(D,k-1,k),!0},c=D=>{let k=D.rows[0].cols.length;return o(D,k),!0},s=(D,k,O,I,N)=>{let F=N?k:k+1;if(!N){let M=F,j=!1;for(;M<D.rows.length;)if(D.rows[M].cols[I].merged)M++;else{F=M,j=!0;break}j&&(F=D.rows.length)}a(D,O,F);let R=0;for(;F<D.rows.length-1&&R<D.rows[0].cols.length;){const M=D.rows[F+1].cols[R];if(M.merged){let W=D.rows,L={},U=0;for(let K=F;K>=0;K--)if(!W[K].cols[R].merged&&e(W[K].cols[R])>1){U=K,L=W[K].cols[R];break}if(L.options){let K=e(L)+1;f(D.rows,U,R,t(L),K),R+=t(L)}else R+=1}else R+=t(M)}return!0},l=(D,k,O,I)=>{let N=I?k:k+1;if(!I){let R=N,M=!1;for(;R<D.rows[O].cols.length;){if(D.rows[O].cols[R].merged)R++;else{N=R,M=!0;break}M||(N=D.rows[O].cols.length)}}o(D,N);let F=0;for(;N<D.rows[0].cols.length-1&&F<D.rows.length;){const R=D.rows[F].cols[N+1];if(R.merged){let j=D.rows[F].cols,W={},L=null;for(let U=N;U>=0;U--)if(!j[U].merged&&t(j[U])>1){L=U,W=j[U];break}if(W.options){let U=t(W)+1;u(D.rows,F,L,U,e(W)),F+=e(W)}else F+=1}else F+=e(R)}return!0},u=(D,k,O,I,N)=>{for(let F=k;F<k+N;F++)for(let R=O;R<O+I;R++){if(F===k&&R===O){r(D[F].cols[R],I);continue}D[F].cols[R].merged=!0,r(D[F].cols[R],I),D[F].cols[R].widgetList=[]}},f=(D,k,O,I,N)=>{for(let F=k;F<k+N;F++)for(let R=O;R<O+I;R++){if(F===k&&R===O){n(D[F].cols[R],N);continue}D[F].cols[R].merged=!0,n(D[F].cols[R],N),D[F].cols[R].widgetList=[]}},h=(D,k,O,I,N)=>{for(let F=k;F<k+N;F++)for(let R=O;R<O+I;R++)D[F].cols[R].merged=!1,n(D[F].cols[R],1),r(D[F].cols[R],1)},d=(D,k,O,I,N)=>{for(let F=k;F<k+N;F++)for(let R=O;R<O+I;R++)D[F].cols[R].merged=!1,n(D[F].cols[R],1),r(D[F].cols[R],1)},v=(D,k,O,I)=>{let N=pt.getOptions(D[O].cols[0],"rowspan"),F=!1;for(let M=1;M<D[O].cols.length;M++)if(e(D[O].cols[M])!==N){F=!0;break}if(F)return mi.info(se.i18nt("designer.hint.rowspanNotConsistentForMergeEntireRow")),!1;let R=k.filter(M=>!M.merged&&!!M.widgetList&&M.widgetList.length>0);return R&&R.length>0&&R[0].id!==k[0].id&&(!k[0].widgetList||k[0].widgetList.length<=0)&&(k[0].widgetList=Yn(R[0].widgetList)),u(D,O,0,k.length,e(k[I])),!0},m=(D,k,O,I,N)=>{let F=I?k:k+e(N),R=I?k-1:k;if(I){let j=R;for(;j>=0;)if(D[j].cols[O].merged)j--;else{R=j;break}}D[F].cols[O].widgetList&&D[F].cols[O].widgetList.length>0&&(!D[R].cols[O].widgetList||D[R].cols[O].widgetList.length===0)&&(D[R].cols[O].widgetList=Yn(D[F].cols[O].widgetList));let M=e(D[F].cols[O])*1+e(D[R].cols[O])*1;return f(D,R,O,t(N),M),!0},p=(D,k,O,I)=>{let N=pt.getOptions(D[0].cols[I],"colspan"),F=!1;for(let j=1;j<D.length;j++)if(t(D[j].cols[I])!==N){F=!0;break}if(F)return mi.info(se.i18nt("designer.hint.colspanNotConsistentForMergeEntireColumn")),!1;let R=[];D.forEach(j=>{let W=j.cols[I];!W.merged&&W.widgetList&&W.widgetList.length>0&&R.push(W)});let M=D[0].cols[I];return R&&R.length>0&&R[0].id!==M.id&&(!M.widgetList||M.widgetList.length<=0)&&(M.widgetList=Yn(R[0].widgetList)),f(D,0,I,t(M),D.length),!0},g=(D,k,O,I,N,F)=>{let R=N?I:I+(pt.getOptions(k[I],"colspan")||1),M=N?I-1:I;if(N){let W=M;for(;W>=0;)if(D[O].cols[W].merged)W--;else{M=W;break}}k[R].widgetList&&k[R].widgetList.length>0&&(!k[M].widgetList||k[M].widgetList.length===0)&&(k[M].widgetList=Yn(k[R].widgetList));let j=t(k[R])*1+t(k[M])*1;return u(D,O,M,j,e(F)),!0},y=(D,k,O,I,N)=>(h(D,k,O,I,N),!0),b=(D,k,O,I,N)=>(d(D,k,O,I,N),!0),_=(D,k)=>{let O=!0;if(D.forEach(F=>{t(F.cols[0])!==D[0].cols.length&&(O=!1)}),O)return mi.info(se.i18nt("designer.hint.lastColCannotBeDeleted")),!1;let I=t(D[0].cols[k]),N=!1;for(let F=1;F<D.length;F++)if(t(D[F].cols[k])!==I){N=!0;break}return N?(mi.info(se.i18nt("designer.hint.colspanNotConsistentForDeleteEntireColumn")),!1):(D.forEach(F=>{F.cols.splice(k,I)}),!0)},E=(D,k)=>{let O=!0;if(D[0].cols.forEach(F=>{e(F)!==D.length&&(O=!1)}),O)return mi.info(se.i18nt("designer.hint.lastRowCannotBeDeleted")),!1;let I=e(D[k].cols[0]),N=!1;for(let F=1;F<D[k].cols.length;F++)if(e(D[k].cols[F])!==I){N=!0;break}return N?(mi.info(se.i18nt("designer.hint.rowspanNotConsistentForDeleteEntireRow")),!1):(D.splice(k,I),!0)},w=D=>{let k=D||{cols:[]};return k=Wo({...k,type:tt.tableRow,id:""}),k.merged=!1,D?k.cols.forEach(O=>{S(O)}):k.cols.push(S()),k},S=D=>{let k=D||Yn(Bu(tt.tableCol));return Wo(k),k.merged=!1,r(k,1),n(k,1),k.widgetList.length=0,k},A=D=>{let k=D||Yn(Bu(tt.table));return Wo(k),k};return{appendTableRow:i,appendTableCol:c,insertTableRow:s,insertTableCol:l,mergeTableWholeRow:v,mergeTableRow:m,mergeTableCol:g,mergeTableWholeCol:p,undoMergeTableCol:y,undoMergeTableRow:b,deleteTableWholeCol:_,deleteTableWholeRow:E,initTableRow:w,initTable:A,initCloneTable:D=>{let k=A();return jt(D).rows.forEach(O=>{let I=jt(Yn(O));Wo(I),I.cols.forEach(N=>{Wo(N),N.widgetList=[]}),jt(k).rows.push(I)}),k},isTable:D=>(D==null?void 0:D.type)===tt.table}}function nO(){const e=()=>{let l=jt(Yn(Bu(tt.tabs)));return l=Wo(l),l},t=(l,u)=>{let f=jt(Yn(Bu(tt.tabPane)));var h=Wo(f);return l&&pt.setOptions(h,Xt.label,l),u!==void 0&&pt.setOptions(h,Xt.isdefault,u),h},n=l=>{var f;let u=e();return(f=jt(l).tabs)==null||f.forEach(h=>{var v;let d=r(h);(v=jt(u).tabs)==null||v.push(d)}),u},r=l=>{var u=Yn(l);return Wo(u),pt.setOptions(u,Xt.isdefault,!1),u.widgetList=[],u};return{initTab:e,initCloneTab:n,initTabPane:t,initCloneTabPane:r,addTabPaneOfTabs:(l,u)=>{let f=l==null?void 0:l.tabs;return f||(f=[]),u=u||t(),u&&f.push(u),!0},deleteTabPaneOfTabs:(l,u)=>{var f;if(((f=l.tabs)==null?void 0:f.length)===1){mi.info(se.i18nt("designer.hint.lastPaneCannotBeDeleted"));return}return l.tabs.splice(u,1),!0},findTabPaneOfTabs:(l,u)=>{var f;return(f=l.tabs)==null?void 0:f.findIndex(h=>pt.getName(h)===u)},getActiveTab:l=>{var f,h;let u=(f=l==null?void 0:l.tabs)==null?void 0:f[0];return(h=l==null?void 0:l.tabs)==null||h.forEach(d=>{pt.getOptions(d,Xt.isdefault)&&(u=d)}),u},isTabs:l=>(l==null?void 0:l.type)===tt.tabs}}var rO={},nie={get exports(){return rO},set exports(e){rO=e}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,a,o){function i(l,u){if(!a[l]){if(!r[l]){var f=typeof s0=="function"&&s0;if(!u&&f)return f(l,!0);if(c)return c(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var d=a[l]={exports:{}};r[l][0].call(d.exports,function(v){var m=r[l][1][v];return i(m||v)},d,d.exports,n,r,a,o)}return a[l].exports}for(var c=typeof s0=="function"&&s0,s=0;s<o.length;s++)i(o[s]);return i}({"./aesprim":[function(n,r,a){(function(o,i){i(typeof a<"u"?a:o.esprima={})})(this,function(o){var i,c,s,l,u,f,h,d,v,m,p,g,y,b,_,E,w,S;i={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},c={},c[i.BooleanLiteral]="Boolean",c[i.EOF]="<end>",c[i.Identifier]="Identifier",c[i.Keyword]="Keyword",c[i.NullLiteral]="Null",c[i.NumericLiteral]="Numeric",c[i.Punctuator]="Punctuator",c[i.StringLiteral]="String",c[i.RegularExpression]="RegularExpression",s=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],l={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},u={Data:1,Get:2,Set:4},f={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},h={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function A(le,_e){if(!le)throw new Error("ASSERT: "+_e)}function P(le){return le>=48&&le<=57}function C(le){return"0123456789abcdefABCDEF".indexOf(le)>=0}function D(le){return"01234567".indexOf(le)>=0}function k(le){return le===32||le===9||le===11||le===12||le===160||le>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(le)>=0}function O(le){return le===10||le===13||le===8232||le===8233}function I(le){return le==64||le===36||le===95||le>=65&&le<=90||le>=97&&le<=122||le===92||le>=128&&h.NonAsciiIdentifierStart.test(String.fromCharCode(le))}function N(le){return le===36||le===95||le>=65&&le<=90||le>=97&&le<=122||le>=48&&le<=57||le===92||le>=128&&h.NonAsciiIdentifierPart.test(String.fromCharCode(le))}function F(le){switch(le){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function R(le){switch(le){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function M(le){return le==="eval"||le==="arguments"}function j(le){if(m&&R(le))return!0;switch(le.length){case 2:return le==="if"||le==="in"||le==="do";case 3:return le==="var"||le==="for"||le==="new"||le==="try"||le==="let";case 4:return le==="this"||le==="else"||le==="case"||le==="void"||le==="with"||le==="enum";case 5:return le==="while"||le==="break"||le==="catch"||le==="throw"||le==="const"||le==="yield"||le==="class"||le==="super";case 6:return le==="return"||le==="typeof"||le==="delete"||le==="switch"||le==="export"||le==="import";case 7:return le==="default"||le==="finally"||le==="extends";case 8:return le==="function"||le==="continue"||le==="debugger";case 10:return le==="instanceof";default:return!1}}function W(le,_e,Ve,qe,bt){var Pt;A(typeof Ve=="number","Comment must have valid position"),!(w.lastCommentStart>=Ve)&&(w.lastCommentStart=Ve,Pt={type:le,value:_e},S.range&&(Pt.range=[Ve,qe]),S.loc&&(Pt.loc=bt),S.comments.push(Pt),S.attachComment&&(S.leadingComments.push(Pt),S.trailingComments.push(Pt)))}function L(le){var _e,Ve,qe,bt;for(_e=p-le,Ve={start:{line:g,column:p-y-le}};p<b;)if(qe=v.charCodeAt(p),++p,O(qe)){S.comments&&(bt=v.slice(_e+le,p-1),Ve.end={line:g,column:p-y-1},W("Line",bt,_e,p-1,Ve)),qe===13&&v.charCodeAt(p)===10&&++p,++g,y=p;return}S.comments&&(bt=v.slice(_e+le,p),Ve.end={line:g,column:p-y},W("Line",bt,_e,p,Ve))}function U(){var le,_e,Ve,qe;for(S.comments&&(le=p-2,_e={start:{line:g,column:p-y-2}});p<b;)if(Ve=v.charCodeAt(p),O(Ve))Ve===13&&v.charCodeAt(p+1)===10&&++p,++g,++p,y=p,p>=b&&Ce({},f.UnexpectedToken,"ILLEGAL");else if(Ve===42){if(v.charCodeAt(p+1)===47){++p,++p,S.comments&&(qe=v.slice(le+2,p-2),_e.end={line:g,column:p-y},W("Block",qe,le,p,_e));return}++p}else++p;Ce({},f.UnexpectedToken,"ILLEGAL")}function K(){var le,_e;for(_e=p===0;p<b;)if(le=v.charCodeAt(p),k(le))++p;else if(O(le))++p,le===13&&v.charCodeAt(p)===10&&++p,++g,y=p,_e=!0;else if(le===47)if(le=v.charCodeAt(p+1),le===47)++p,++p,L(2),_e=!0;else if(le===42)++p,++p,U();else break;else if(_e&&le===45)if(v.charCodeAt(p+1)===45&&v.charCodeAt(p+2)===62)p+=3,L(3);else break;else if(le===60)if(v.slice(p+1,p+4)==="!--")++p,++p,++p,++p,L(4);else break;else break}function J(le){var _e,Ve,qe,bt=0;for(Ve=le==="u"?4:2,_e=0;_e<Ve;++_e)if(p<b&&C(v[p]))qe=v[p++],bt=bt*16+"0123456789abcdef".indexOf(qe.toLowerCase());else return"";return String.fromCharCode(bt)}function Q(){var le,_e;for(le=v.charCodeAt(p++),_e=String.fromCharCode(le),le===92&&(v.charCodeAt(p)!==117&&Ce({},f.UnexpectedToken,"ILLEGAL"),++p,le=J("u"),(!le||le==="\\"||!I(le.charCodeAt(0)))&&Ce({},f.UnexpectedToken,"ILLEGAL"),_e=le);p<b&&(le=v.charCodeAt(p),!!N(le));)++p,_e+=String.fromCharCode(le),le===92&&(_e=_e.substr(0,_e.length-1),v.charCodeAt(p)!==117&&Ce({},f.UnexpectedToken,"ILLEGAL"),++p,le=J("u"),(!le||le==="\\"||!N(le.charCodeAt(0)))&&Ce({},f.UnexpectedToken,"ILLEGAL"),_e+=le);return _e}function q(){var le,_e;for(le=p++;p<b;){if(_e=v.charCodeAt(p),_e===92)return p=le,Q();if(N(_e))++p;else break}return v.slice(le,p)}function ue(){var le,_e,Ve;return le=p,_e=v.charCodeAt(p)===92?Q():q(),_e.length===1?Ve=i.Identifier:j(_e)?Ve=i.Keyword:_e==="null"?Ve=i.NullLiteral:_e==="true"||_e==="false"?Ve=i.BooleanLiteral:Ve=i.Identifier,{type:Ve,value:_e,lineNumber:g,lineStart:y,start:le,end:p}}function te(){var le=p,_e=v.charCodeAt(p),Ve,qe=v[p],bt,Pt,we;switch(_e){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++p,S.tokenize&&(_e===40?S.openParenToken=S.tokens.length:_e===123&&(S.openCurlyToken=S.tokens.length)),{type:i.Punctuator,value:String.fromCharCode(_e),lineNumber:g,lineStart:y,start:le,end:p};default:if(Ve=v.charCodeAt(p+1),Ve===61)switch(_e){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return p+=2,{type:i.Punctuator,value:String.fromCharCode(_e)+String.fromCharCode(Ve),lineNumber:g,lineStart:y,start:le,end:p};case 33:case 61:return p+=2,v.charCodeAt(p)===61&&++p,{type:i.Punctuator,value:v.slice(le,p),lineNumber:g,lineStart:y,start:le,end:p}}}if(we=v.substr(p,4),we===">>>=")return p+=4,{type:i.Punctuator,value:we,lineNumber:g,lineStart:y,start:le,end:p};if(Pt=we.substr(0,3),Pt===">>>"||Pt==="<<="||Pt===">>=")return p+=3,{type:i.Punctuator,value:Pt,lineNumber:g,lineStart:y,start:le,end:p};if(bt=Pt.substr(0,2),qe===bt[1]&&"+-<>&|".indexOf(qe)>=0||bt==="=>")return p+=2,{type:i.Punctuator,value:bt,lineNumber:g,lineStart:y,start:le,end:p};if("<>=!+-*%&|^/".indexOf(qe)>=0)return++p,{type:i.Punctuator,value:qe,lineNumber:g,lineStart:y,start:le,end:p};Ce({},f.UnexpectedToken,"ILLEGAL")}function ne(le){for(var _e="";p<b&&C(v[p]);)_e+=v[p++];return _e.length===0&&Ce({},f.UnexpectedToken,"ILLEGAL"),I(v.charCodeAt(p))&&Ce({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseInt("0x"+_e,16),lineNumber:g,lineStart:y,start:le,end:p}}function ie(le){for(var _e="0"+v[p++];p<b&&D(v[p]);)_e+=v[p++];return(I(v.charCodeAt(p))||P(v.charCodeAt(p)))&&Ce({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseInt(_e,8),octal:!0,lineNumber:g,lineStart:y,start:le,end:p}}function de(){var le,_e,Ve;if(Ve=v[p],A(P(Ve.charCodeAt(0))||Ve===".","Numeric literal must start with a decimal digit or a decimal point"),_e=p,le="",Ve!=="."){if(le=v[p++],Ve=v[p],le==="0"){if(Ve==="x"||Ve==="X")return++p,ne(_e);if(D(Ve))return ie(_e);Ve&&P(Ve.charCodeAt(0))&&Ce({},f.UnexpectedToken,"ILLEGAL")}for(;P(v.charCodeAt(p));)le+=v[p++];Ve=v[p]}if(Ve==="."){for(le+=v[p++];P(v.charCodeAt(p));)le+=v[p++];Ve=v[p]}if(Ve==="e"||Ve==="E")if(le+=v[p++],Ve=v[p],(Ve==="+"||Ve==="-")&&(le+=v[p++]),P(v.charCodeAt(p)))for(;P(v.charCodeAt(p));)le+=v[p++];else Ce({},f.UnexpectedToken,"ILLEGAL");return I(v.charCodeAt(p))&&Ce({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseFloat(le),lineNumber:g,lineStart:y,start:_e,end:p}}function G(){var le="",_e,Ve,qe,bt,Pt,we,ke=!1,je,nt;for(je=g,nt=y,_e=v[p],A(_e==="'"||_e==='"',"String literal must starts with a quote"),Ve=p,++p;p<b;)if(qe=v[p++],qe===_e){_e="";break}else if(qe==="\\")if(qe=v[p++],!qe||!O(qe.charCodeAt(0)))switch(qe){case"u":case"x":we=p,Pt=J(qe),Pt?le+=Pt:(p=we,le+=qe);break;case"n":le+=`
69
+ }static hasComplexValue(t){return!!na(t,"value")}static isComplexValue(t){var n;return ge.hasComplexValue(t)&&!!((n=jt(t==null?void 0:t.value))!=null&&n.complexType)}static buildVariablePropValue(t,n){return{type:be.variable,variable:{expr:"${"+t+"}",params:n}}}static getOrgType(t){var r;var n=(r=this.getOptions(t))==null?void 0:r.origin;return n?this.getType(n):this.getType(t)}static getType(t){var n;return(n=jt(t))==null?void 0:n.type}static getOptions(t){var n;return(n=jt(t))==null?void 0:n.options}static needCalcValue(t){return this.isFormula(t)||this.isVariable(t)||this.isSchemaData(t)}static isComplexType(t,n){return this.isComplex(t)&&this.getType(t)===n}static isSchemaData(t){var n;return this.hasComplexValue(t)&&((n=jt(t==null?void 0:t.value))==null?void 0:n.complexType)===be.schemaData}static clearSchemaData(t){var r;var n=Yn(t);return this.isComplex(t)?(r=jt(n))==null?void 0:r.value:n}static setSchemaData(t,n){var r=Yn(t),a=new oD(be.schemaData,n);return this.isComplex(r)?r=a:r=new ge(be.prop,a),r}static getSchemaData(t){var r;var n=jt(t);return(r=jt(n==null?void 0:n.value))==null?void 0:r.complexValue}static isFormula(t){var n;return this.hasComplexValue(t)&&((n=jt(t==null?void 0:t.value))==null?void 0:n.complexType)===be.formula}static setFormula(t,n){var r=Yn(t),a=new oD(be.formula,n);return this.isComplex(r)?r=a:r=new ge(be.prop,a),r}static getFormula(t){var n;return(n=jt(t==null?void 0:t.value))==null?void 0:n.complexValue}static getFormulaRelatedField(t){const{getFormulaFields:n}=Eu();return n(Zr(jt(t)))}static isVariable(t){var n;return this.isComplex(t)&&((n=jt(t))==null?void 0:n.type)===be.variable}static clearVariable(t){var r;var n=Yn(t);if(this.isComplex(t)){const a=jt(n),o=(r=a.options)==null?void 0:r.origin;return this.isComplex(o)?(jt(o).value=a==null?void 0:a.value,o):a==null?void 0:a.value}return n}static setVariable(t,n){var r=Yn(t);if(this.isComplex(r)){let a=r==null?void 0:r.options;return r.type!==be.variable&&(a=Object.assign(a||{},{origin:Yn(r)})),new ge(be.variable,r==null?void 0:r.value,a,n)}else return new ge(be.variable,r||null,r==null?void 0:r.options,n)}static getVariable(t){var n;return(n=jt(t))==null?void 0:n.variable}static getValue(t,n=!1,r=!1,a){return Ene(t,n,r,a)}static setValue(t,n,r){if(!t||!n)return!1;var a=this.get(t,n);const o=this.getType(a);if(!this.isComplex(a))this.set(t,n,r);else{let i=r;o===be.dataObject&&Ui(i)&&(i=ri(r)),jt(a).value=i}return!0}static getEnable(t){var r;if(!this.isComplex(t))return!1;var n=this.getOptions(t);return na(n,"enable")?(r=jt(n))==null?void 0:r.enable:!0}static setEnable(t,n,r){var a=this.get(t,n);if(this.isComplex(a)){var o=jt(a);return o.options===void 0&&(o.options={}),o.options.enable=r,!0}return!1}}class u0{static getKeys(){var t=new this;return Or(t)}}class Hy extends u0{constructor(){super(...arguments);z(this,"name","")}}class AE extends u0{constructor(){super(...arguments);z(this,"isdefault",!1)}}class Wy extends Hy{constructor(){super(...arguments);z(this,"ctrlWidth",new ge(be.placer,"auto"));z(this,"ctrlHeight",new ge(be.placer,"auto"));z(this,"customClass",new ge(be.placer,[]));z(this,"componentWrapperClass",new ge(be.placer,[]));z(this,"displayLayout",new ge(be.placer,Pl.block));z(this,"created",new ge(be.event,void 0,new ot));z(this,"mounted",new ge(be.event,void 0,new ot))}}class Mi extends Wy{constructor(){super(...arguments);z(this,"hidden",new ge(be.placer,!1))}}class TE extends Mi{constructor(){super(...arguments);z(this,"content",new ge(be.placer,""))}}class ks extends TE{constructor(){super(...arguments);z(this,"slotable",new ge(be.placer,!1));z(this,"default",new ge(be.slot,void 0,new jn))}}class Sne extends Mi{constructor(){super(...arguments);z(this,"slotable",new ge(be.placer,!1));z(this,"default",new ge(be.slot,void 0,new jn))}}class Gy extends ot{constructor(n){super(n);z(this,"forceMatch",!0);z(this,"errorMsg","");Qn(this,n)}}class Cne extends Gy{constructor(n){super(n);z(this,"expression","");Qn(this,n)}}class Ane extends Gy{constructor(n){super(n);z(this,"func","");Qn(this,n)}}class Tne extends Gy{constructor(n){super(n);z(this,"minValue",null);z(this,"includeMinValue",!1);z(this,"maxValue",null);z(this,"includeMaxValue",!1);Qn(this,n)}}class jn extends ot{constructor(n){super(n);z(this,"allowDrag",!1);z(this,"slotName");Qn(this,n)}}class Vn{constructor(){z(this,"widgetList",[])}}class Wp extends Mi{constructor(){super(...arguments);z(this,"label",new ge(be.placer,""));z(this,"defaultValue",null);z(this,"state",new ge(be.placer,kl.custom));z(this,"readonly",!1);z(this,"disabled",!1);z(this,"size","");z(this,"tabindex","");z(this,"labelHidden",new ge(be.placer,!1));z(this,"labelAlign",new ge(be.placer,""));z(this,"labelWidth",new ge(be.placer,""));z(this,"labelIconClass",new ge(be.icon));z(this,"labelIconPosition",new ge(be.placer,jc.rear));z(this,"labelTooltip",new ge(be.placer,""));z(this,"change",new ge(be.event,void 0,new ot));z(this,"focus",new ge(be.event,void 0,new ot));z(this,"blur",new ge(be.event,void 0,new ot));z(this,"click",new ge(be.event,void 0,new ot));z(this,"validateEvent",!0);z(this,"required",new ge(be.placer,!0,new Gy));z(this,"expValidate",new ge(be.placer,void 0,new Cne));z(this,"rangeValidate",new ge(be.placer,void 0,new Tne));z(this,"fnValidate",new ge(be.placer,void 0,new Ane))}}class Ho extends Wp{constructor(){super(...arguments);z(this,"placeholder","")}}class _o extends AE{constructor(){super(...arguments);z(this,"label","");z(this,"value","")}}class DE extends _o{constructor(){super(...arguments);z(this,"children",[])}}class Sk extends DE{constructor(){super(...arguments);z(this,"isopen",!1)}}const Xm=class{constructor(){z(this,"type",tt.none);z(this,"icon","");z(this,"id","");z(this,"options",{});z(this,"category",bu.normal);z(this,"init",(t=!0)=>{var n,r;this.id||(this.id=PE.newId((n=this.type)==null?void 0:n.toString())),this.icon||(this.icon=PE.getIcon((r=this.type)==null?void 0:r.toString(),t&&this.category!=bu.container))})}static newId(t){return((t==null?void 0:t.replace(/-/g,""))||"")+Ds()}static getIcon(t,n=!0){return"@widget-"+(t||"")+(n?"-field":"")}};let pt=Xm;z(pt,"isContainer",t=>t.category===bu.container),z(pt,"getWidgetTypeName",t=>t?se.i18n2t(`designer.widgetLabel.${t}`,`extension.widgetLabel.${t}`):""),z(pt,"getWidgetName",t=>{var n;return t.type?((n=t.type)==null?void 0:n.trim())+"-widget":""}),z(pt,"getName",t=>Xm.getOrgOption(t,Xt.name)),z(pt,"setName",(t,n)=>{Xm.setOptions(t,Xt.name,n)}),z(pt,"getOrgOption",(t,n)=>{var r;return(r=t==null?void 0:t.options)==null?void 0:r[n]}),z(pt,"setOrgOption",(t,n,r)=>{!t||!t.options||(t.options[n]=r)}),z(pt,"getOptions",(t,n,r=!1,a=!1,o)=>{var i=Xm.getOrgOption(t,n);if(r)return i;var c=ge.getValue(i,!1,a,o);if(c!==null)return c}),z(pt,"setOptions",(t,n,r)=>{ge.setValue(t==null?void 0:t.options,n,r)}),z(pt,"setEnable",(t,n,r)=>{ge.setEnable(t==null?void 0:t.options,n,r)});class PE extends pt{constructor(){super();z(this,"dynamicItemFlag",!1);z(this,"formItemFlag",!1);z(this,"options",{});this.formItemFlag=!0}}class Fn extends PE{constructor(t,n,r=!1,a){super(),a!=null&&a.autoWidth&&na(n,Xt.ctrlWidth)&&(n.ctrlWidth=new ge(be.placer,mx.auto)),a!=null&&a.inlineLayout&&na(n,Xt.displayLayout)&&(n.displayLayout=new ge(be.placer,Pl.inline)),Xi(a==null?void 0:a.dynamicItemFlag)||(this.dynamicItemFlag=a==null?void 0:a.dynamicItemFlag),this.formItemFlag=r,this.type=t,this.options=n,Object.entries(n).map(([o,i])=>{var c;ge.getType(i)===be.slot&&((c=ge.getOptions(i))!=null&&c.allowDrag)&&(i.widgetList=[])}),this.init(r)}}function Dne(){let e=new Map;const t=r=>{var a=pt.getWidgetName(r),o=null;return a&&(pt.isContainer(r)?o=x.defineAsyncComponent(()=>NA(Object.assign({"./container-widget/cont-cell-widget.vue":()=>Promise.resolve().then(()=>xO),"./container-widget/cont-widget.vue":()=>Promise.resolve().then(()=>EO),"./container-widget/form-widget.vue":()=>Promise.resolve().then(()=>wO),"./container-widget/grid-col-widget.vue":()=>Promise.resolve().then(()=>CO),"./container-widget/grid-widget.vue":()=>Promise.resolve().then(()=>AO),"./container-widget/ltable-col-widget.vue":()=>Promise.resolve().then(()=>DO),"./container-widget/ltable-widget.vue":()=>Promise.resolve().then(()=>PO),"./container-widget/tab-pane-widget.vue":()=>Promise.resolve().then(()=>OO),"./container-widget/tabs-widget.vue":()=>Promise.resolve().then(()=>BO),"./container-widget/wrapper-widget.vue":()=>Promise.resolve().then(()=>IO)}),`./container-widget/${a}.vue`)):o=x.defineAsyncComponent(()=>NA(Object.assign({"./field-widget/affix-widget.vue":()=>Promise.resolve().then(()=>Rme),"./field-widget/alert-widget.vue":()=>Promise.resolve().then(()=>zme),"./field-widget/anchor-link-widget.vue":()=>Promise.resolve().then(()=>Ume),"./field-widget/anchor-widget.vue":()=>Promise.resolve().then(()=>Gme),"./field-widget/auto-complete-widget.vue":()=>Promise.resolve().then(()=>$me),"./field-widget/avatar-widget.vue":()=>Promise.resolve().then(()=>nge),"./field-widget/backtop-widget.vue":()=>Promise.resolve().then(()=>age),"./field-widget/badge-widget.vue":()=>Promise.resolve().then(()=>lge),"./field-widget/breadcrumb-widget.vue":()=>Promise.resolve().then(()=>pge),"./field-widget/button-widget.vue":()=>Promise.resolve().then(()=>vge),"./field-widget/cache-widget.vue":()=>Promise.resolve().then(()=>yge),"./field-widget/card-widget.vue":()=>Promise.resolve().then(()=>xge),"./field-widget/carousel-widget.vue":()=>Promise.resolve().then(()=>Sge),"./field-widget/cascader-widget.vue":()=>Promise.resolve().then(()=>Tge),"./field-widget/chart-widget.vue":()=>Promise.resolve().then(()=>kge),"./field-widget/checkbox-widget.vue":()=>Promise.resolve().then(()=>Ige),"./field-widget/collapse-widget.vue":()=>Promise.resolve().then(()=>Mge),"./field-widget/color-picker-widget.vue":()=>Promise.resolve().then(()=>jge),"./field-widget/content-wrapper.vue":()=>Promise.resolve().then(()=>Ime),"./field-widget/date-picker-range-widget.vue":()=>Promise.resolve().then(()=>Uge),"./field-widget/date-picker-widget.vue":()=>Promise.resolve().then(()=>Gge),"./field-widget/default-slot-widget.vue":()=>Promise.resolve().then(()=>Fme),"./field-widget/descriptions-widget.vue":()=>Promise.resolve().then(()=>Jge),"./field-widget/dialog-widget.vue":()=>Promise.resolve().then(()=>$ge),"./field-widget/divider-widget.vue":()=>Promise.resolve().then(()=>nye),"./field-widget/drawer-widget.vue":()=>Promise.resolve().then(()=>iye),"./field-widget/dropdown-widget.vue":()=>Promise.resolve().then(()=>lye),"./field-widget/empty-widget.vue":()=>Promise.resolve().then(()=>fye),"./field-widget/feedback-widget.vue":()=>Promise.resolve().then(()=>Qge),"./field-widget/file-upload-widget.vue":()=>Promise.resolve().then(()=>gye),"./field-widget/form-item-wrapper.vue":()=>Promise.resolve().then(()=>Zme),"./field-widget/html-text-widget.vue":()=>Promise.resolve().then(()=>bye),"./field-widget/icon-widget.vue":()=>Promise.resolve().then(()=>wye),"./field-widget/iframe-widget.vue":()=>Promise.resolve().then(()=>Dye),"./field-widget/image-widget.vue":()=>Promise.resolve().then(()=>Oye),"./field-widget/input-number-widget.vue":()=>Promise.resolve().then(()=>Mye),"./field-widget/input-widget.vue":()=>Promise.resolve().then(()=>jye),"./field-widget/label-wrapper.vue":()=>Promise.resolve().then(()=>Xme),"./field-widget/link-widget.vue":()=>Promise.resolve().then(()=>Uye),"./field-widget/menu-widget.vue":()=>Promise.resolve().then(()=>Kye),"./field-widget/model-widget.vue":()=>Promise.resolve().then(()=>Zye),"./field-widget/multirow-widget.vue":()=>Promise.resolve().then(()=>_1e),"./field-widget/pagination-widget.vue":()=>Promise.resolve().then(()=>E1e),"./field-widget/picture-upload-widget.vue":()=>Promise.resolve().then(()=>A1e),"./field-widget/progress-widget.vue":()=>Promise.resolve().then(()=>B1e),"./field-widget/radio-widget.vue":()=>Promise.resolve().then(()=>F1e),"./field-widget/range-widget.vue":()=>Promise.resolve().then(()=>U1e),"./field-widget/rate-widget.vue":()=>Promise.resolve().then(()=>G1e),"./field-widget/result-widget.vue":()=>Promise.resolve().then(()=>Y1e),"./field-widget/rich-editor-widget.vue":()=>Promise.resolve().then(()=>Q1e),"./field-widget/router-widget.vue":()=>Promise.resolve().then(()=>t_e),"./field-widget/select-widget.vue":()=>Promise.resolve().then(()=>a_e),"./field-widget/slider-widget.vue":()=>Promise.resolve().then(()=>l_e),"./field-widget/static-text-widget.vue":()=>Promise.resolve().then(()=>f_e),"./field-widget/steps-widget.vue":()=>Promise.resolve().then(()=>m_e),"./field-widget/subMenu-widget.vue":()=>Promise.resolve().then(()=>Hye),"./field-widget/switch-widget.vue":()=>Promise.resolve().then(()=>__e),"./field-widget/table-col-widget.vue":()=>Promise.resolve().then(()=>b_e),"./field-widget/table-widget.vue":()=>Promise.resolve().then(()=>S_e),"./field-widget/tag-widget.vue":()=>Promise.resolve().then(()=>T_e),"./field-widget/text-widget.vue":()=>Promise.resolve().then(()=>k_e),"./field-widget/textarea-widget.vue":()=>Promise.resolve().then(()=>I_e),"./field-widget/time-picker-range-widget.vue":()=>Promise.resolve().then(()=>M_e),"./field-widget/time-picker-widget.vue":()=>Promise.resolve().then(()=>j_e),"./field-widget/time-select-widget.vue":()=>Promise.resolve().then(()=>U_e),"./field-widget/tmpl-widget.vue":()=>Promise.resolve().then(()=>G_e),"./field-widget/tree-select-widget.vue":()=>Promise.resolve().then(()=>Y_e),"./field-widget/tree-widget.vue":()=>Promise.resolve().then(()=>Q_e),"./field-widget/vertical-progress-widget.vue":()=>Promise.resolve().then(()=>P1e)}),`./field-widget/${a}.vue`))),o};return{components:r=>{var a=pt.getWidgetName(r);if(e.has(a))return e.get(a);var o=t(r);return e.set(a,o),o}}}function Pne(e){return e=e||Object.create(null),{on:function(n,r){(e[n]||(e[n]=[])).push(r)},off:function(n,r){e[n]&&e[n].splice(e[n].indexOf(r)>>>0,1)},emit:function(n,r){(e[n]||[]).map(function(a){a(r)}),(e["*"]||[]).map(function(a){a(n,r)})}}}const kE=new Pne,Ck={$on:kE.on,$off:kE.off,$emit:kE.emit};function Ak(e){var t={index:-1,maxStep:20,steps:[]};e&&!(e!=null&&e.historyData)&&(e.historyData=t);const n=x.reactive((e==null?void 0:e.historyData)||t),r=`widget__list__backup__${e==null?void 0:e.key}`,a=`form__config__backup__${e==null?void 0:e.key}`,o=x.computed({get:()=>(n.index<0&&(n.index=0),n.steps[n.index]),set:g=>{n.index<0&&(n.index=0),n.steps[n.index]=g}}),i=()=>{const g=o==null?void 0:o.value;e.version=F5(),e.widgetList=Yn(g==null?void 0:g.widgetList),e.pageConfig=Yn(g==null?void 0:g.pageConfig)},c=g=>{const y=o;y.value=Yn({detail:g,widgetList:e.widgetList,pageConfig:e.pageConfig})},s=()=>{p(),n.index=n.index+1,c("initHistory")},l=g=>{var y;n.index==n.maxStep-1?(y=n.steps)==null||y.shift():n.index=n.index+1,u(g),n.index<n.steps.length-1&&(n.steps=n.steps.slice(0,n.index+1))},u=g=>{c(g),m()},f=()=>{n.index!==0&&n.index--,i()},h=()=>{var g;n.index!==((g=n.steps)==null?void 0:g.length)-1&&n.index++,i()},d=()=>{var g;return n.index>0&&((g=n.steps)==null?void 0:g.length)>0},v=()=>{var g;return n.index<((g=n.steps)==null?void 0:g.length)-1},m=()=>{Rc.set(r,e.widgetList),Rc.set(a,e.pageConfig)},p=()=>{let g=Rc.get(r);g&&Qn(e.widgetList,ri(g));let y=Rc.get(a);y&&Qn(e.pageConfig,ri(y))};return{initHistoryData:s,emitHistoryChange:l,saveCurrentHistoryStep:u,undoHistoryStep:f,redoHistoryStep:h,undoEnabled:d,redoEnabled:v,saveFormContentToStorage:m,loadFormContentFromStorage:p}}class kne extends Mi{constructor(){super(...arguments);z(this,"labelHidden",new ge(be.placer,!1));z(this,"label",new ge(be.placer,""));z(this,"defaultValue",null);z(this,"state",new ge(be.placer,kl.custom));z(this,"readonly",!1);z(this,"disabled",!1);z(this,"change",new ge(be.event,void 0,new ot))}}class One extends Ho{constructor(){super(...arguments);z(this,"type",OT.text);z(this,"minlength",0);z(this,"maxlength",1e4);z(this,"prefixIcon",new ge(be.icon));z(this,"suffixIcon",new ge(be.icon));z(this,"clearable",!0);z(this,"showPassword",!1);z(this,"showWordLimit",!1);z(this,"formatter",new ge(be.hook,void 0,new ot));z(this,"parser",new ge(be.hook,void 0,new ot));z(this,"input",new ge(be.event,void 0,new ot));z(this,"clear",new ge(be.event,void 0,new ot));z(this,"slotable",new ge(be.placer,!1));z(this,"prepend",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"append",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn))}}class Bne extends Ho{constructor(){super(...arguments);z(this,"resize",PT.none);z(this,"rows",3);z(this,"minlength",0);z(this,"maxlength",1e4);z(this,"showWordLimit",!1);z(this,"autosize",!1);z(this,"input",new ge(be.event,void 0,new ot))}}class Ine extends Ho{constructor(){super(...arguments);z(this,"defaultValue",null);z(this,"min",0);z(this,"max",1e4);z(this,"precision",0);z(this,"step",1);z(this,"stepStrictly",!1);z(this,"controls",!0);z(this,"controlsPosition",IT.none);z(this,"valueOnClear",kT.min);z(this,"unitText",new ge(be.placer,""));z(this,"input",new ge(be.event,void 0,new ot))}}class Nne extends Ho{constructor(){super(...arguments);z(this,"clearable",!0);z(this,"select",new ge(be.event,void 0,new ot));z(this,"fetchSuggestions",new ge(be.hook,void 0,new ot));z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"valueKey","value");z(this,"debounce",300);z(this,"placement",kp.bottomStart);z(this,"triggerOnFocus",!1);z(this,"selectWhenUnmatched",!1);z(this,"hideLoading",!1);z(this,"popperClass","");z(this,"popperAppendToBody",!1);z(this,"teleported",!1);z(this,"highlightFirstItem",!1);z(this,"fitInputWidth",!1);z(this,"slotable",new ge(be.placer,!1));z(this,"prefix",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"suffix",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"prepend",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"append",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn))}}class Fne extends Wp{constructor(){super(...arguments);z(this,"displayStyle",new ge(be.placer,Pl.inline));z(this,"buttonStyle",!1);z(this,"textColor","");z(this,"fill","");z(this,"border",!1);z(this,"valueKey",new ge(be.placer,"value"));z(this,"labelKey",new ge(be.placer,"label"));z(this,"withAttachData",new ge(be.placer,!0));z(this,"textName",new ge(be.placer,""));z(this,"optionName",new ge(be.placer,""));z(this,"labelName",new ge(be.placer,""));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})));z(this,"relate",new ge(be.placer,void 0))}}class Tk extends _o{constructor(){super(...arguments);z(this,"border",!1);z(this,"disabled",!1)}}class Mne extends Wp{constructor(){super(...arguments);z(this,"defaultValue",[]);z(this,"min",0);z(this,"max",1e3);z(this,"displayStyle",new ge(be.placer,Pl.inline));z(this,"buttonStyle",!1);z(this,"border",!1);z(this,"textColor","#ffffff");z(this,"fill","#409EFF");z(this,"tag","div");z(this,"valueKey",new ge(be.placer,"value"));z(this,"labelKey",new ge(be.placer,"label"));z(this,"withAttachData",new ge(be.placer,!0));z(this,"textName",new ge(be.placer,""));z(this,"optionName",new ge(be.placer,""));z(this,"labelName",new ge(be.placer,""));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})));z(this,"relate",new ge(be.placer,[]))}}class Dk extends _o{constructor(){super(...arguments);z(this,"border",!1);z(this,"disabled",!1)}}class Pk extends Ho{constructor(){super(...arguments);z(this,"defaultFirstOption",!1);z(this,"noDataText","");z(this,"allowCreate",!1);z(this,"automaticDropdown",!1);z(this,"showGroup",new ge(be.placer,!1));z(this,"teleported",!0);z(this,"persistent",!0);z(this,"fitInputWidth",!1);z(this,"clearable",!0);z(this,"clearIcon",new ge(be.icon,"CircleClose"));z(this,"suffixTransition",!0);z(this,"suffixIcon",new ge(be.icon,"ArrowDown"));z(this,"tagType",cx.info);z(this,"placement",kp.bottomStart);z(this,"effect",Pp.light);z(this,"multiple",!1);z(this,"multipleLimit",0);z(this,"collapseTags",!1);z(this,"collapseTagsTooltip",!1);z(this,"maxCollapseTags",1);z(this,"selectOnlyOneGroup",new ge(be.placer,!1));z(this,"filterable",!1);z(this,"reserveKeyword",!0);z(this,"remote",!1);z(this,"remoteShowSuffix",!1);z(this,"loadingText","");z(this,"noMatchText","");z(this,"filterMethod",new ge(be.hook,void 0,new ot));z(this,"remoteMethod",new ge(be.hook,void 0,new ot));z(this,"popperClass","");z(this,"popperOptions",{});z(this,"slotable",new ge(be.placer,!1));z(this,"visibleChange",new ge(be.event,void 0,new ot));z(this,"removeTag",new ge(be.event,void 0,new ot));z(this,"clear",new ge(be.event,void 0,new ot));z(this,"optionDefault",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"prefix",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})));z(this,"relate",new ge(be.placer,void 0));z(this,"valueKey",new ge(be.placer,"value"));z(this,"labelKey",new ge(be.placer,"label"));z(this,"allItemAsValue",new ge(be.placer,!1));z(this,"withAttachData",new ge(be.placer,!0));z(this,"textName",new ge(be.placer,""));z(this,"optionName",new ge(be.placer,""));z(this,"labelName",new ge(be.placer,""))}}class kk extends Ho{constructor(){super(...arguments);z(this,"format",$T.time1);z(this,"prefixIcon",new ge(be.icon,"Clock"));z(this,"clearIcon",new ge(be.icon,"CircleClose"));z(this,"clearable",!0);z(this,"editable",!1);z(this,"isRange",!1);z(this,"arrowControl",!1);z(this,"popperClass","");z(this,"teleported",!0);z(this,"disabledHours",new ge(be.hook,void 0,new ot));z(this,"disabledMinutes",new ge(be.hook,void 0,new ot));z(this,"disabledSeconds",new ge(be.hook,void 0,new ot));z(this,"visibleChange",new ge(be.event,void 0,new ot))}}class Lne extends kk{constructor(){super(...arguments);z(this,"placeholder","")}}class Rne extends kk{constructor(){super(...arguments);z(this,"rangeSeparator","-");z(this,"startPlaceholder","");z(this,"endPlaceholder","");z(this,"isRange",!0)}}class Ok extends Ho{constructor(){super(...arguments);z(this,"editable",!0);z(this,"clearable",!0);z(this,"defaultValue",null);z(this,"defaultTime",null);z(this,"format",vx.date1);z(this,"valueFormat",vx.date1);z(this,"prefixIcon",new ge(be.icon));z(this,"clearIcon",new ge(be.icon));z(this,"disabledDate",new ge(be.hook,void 0,new ot));z(this,"shortcuts",new ge(be.hook));z(this,"cellClassName",new ge(be.hook,void 0,new ot));z(this,"teleported",!0);z(this,"popperClass","");z(this,"popperOptions",{});z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"visibleChange",new ge(be.event,void 0,new ot));z(this,"panelChange",new ge(be.event,void 0,new ot));z(this,"calendarChange",new ge(be.event,void 0,new ot))}}class jne extends Ok{constructor(){super(...arguments);z(this,"placeholder","");z(this,"type",zT.date)}}class Vne extends Ok{constructor(){super(...arguments);z(this,"type",UT.daterange);z(this,"defaultValue",null);z(this,"defaultTime",null);z(this,"unlinkPanels",!1);z(this,"startPlaceholder","");z(this,"endPlaceholder","");z(this,"rangeSeparator",new ge(be.slot,void 0,new jn,void 0,new Vn))}}class zne extends Ho{constructor(){super(...arguments);z(this,"clearable",!0);z(this,"effect",Pp.light);z(this,"prefixIcon",new ge(be.icon,"Clock"));z(this,"clearIcon",new ge(be.icon,"CircleClose"));z(this,"start","09:00");z(this,"end","18:00");z(this,"step","00:30");z(this,"minTime","");z(this,"maxTime","");z(this,"format","HH:mm");z(this,"emptyValues",new ge(be.dataObject,null,new wr({type:He.array,enable:!0})));z(this,"valueOnClear",new ge(be.hook,void 0,new ot));z(this,"clear",new ge(be.event,void 0,new ot))}}class Une extends Ho{constructor(){super(...arguments);z(this,"width","40px");z(this,"inlinePrompt",!1);z(this,"activeIcon",new ge(be.icon));z(this,"inactiveIcon",new ge(be.icon));z(this,"activeActionIcon",new ge(be.icon));z(this,"inactiveActionIcon",new ge(be.icon));z(this,"activeText","");z(this,"inactiveText","");z(this,"valueType",new ge(be.placer,He.boolean));z(this,"activeValue",!0);z(this,"inactiveValue",!1);z(this,"beforeChange",new ge(be.hook,void 0,new ot))}}class Hne extends Wp{constructor(){super(...arguments);z(this,"max",5);z(this,"lowThreshold",2);z(this,"highThreshold",4);z(this,"allowHalf",!0);z(this,"showText",!0);z(this,"showScore",!0)}}class Wne extends Sne{constructor(){super(...arguments);z(this,"percentage",0);z(this,"duration",3);z(this,"width",126);z(this,"strokeWidth",6);z(this,"type",Nd.line);z(this,"status",wT.none);z(this,"strokeLinecap",ST.round);z(this,"color",new ge(be.hook,void 0,new ot));z(this,"trackColor",new ge(be.hook,void 0,new ot));z(this,"format",new ge(be.hook,void 0,new ot));z(this,"textInside",!1);z(this,"indeterminate",!1);z(this,"showText",!0);z(this,"striped",!1);z(this,"stripedFlow",!1);z(this,"direction",new ge(be.placer,Cs.horizontal));z(this,"completeSec",new ge(be.placer,0));z(this,"completed",new ge(be.placerHook,void 0,new ot))}}class Gne extends Wp{constructor(){super(...arguments);z(this,"colorFormat",eD.rgb);z(this,"showAlpha",!1);z(this,"popperClass","");z(this,"predefine",new ge(be.dataObject,[],new wr({type:He.array,enable:!0})))}}class Kne extends Ho{constructor(){super(...arguments);z(this,"min",0);z(this,"max",100);z(this,"step",10);z(this,"debounce",0);z(this,"showStops",!0);z(this,"vertical",!1);z(this,"height","");z(this,"range",!1);z(this,"marks",new ge(be.dataObject,{},new wr({type:He.object,enable:!0})));z(this,"showInput",!1);z(this,"showInputControls",!0);z(this,"inputSize",mo.default);z(this,"showTooltip",!0);z(this,"placement",kp.top);z(this,"formatTooltip",new ge(be.hook,void 0,new ot));z(this,"tooltipClass","")}}class Bk extends Wp{constructor(){super(...arguments);z(this,"fileList",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})));z(this,"accept",new ge(be.placer,[],new wr({type:He.array,enable:!0})));z(this,"listType",og.text);z(this,"limit",3);z(this,"fileMaxSize",new ge(be.placer,5));z(this,"multiple",!1);z(this,"showFileList",!0);z(this,"autoUpload",!0);z(this,"drag",!1);z(this,"action","");z(this,"dataName",new ge(be.placer,"file"));z(this,"method",rD.post);z(this,"uploadTip",new ge(be.placer,""));z(this,"uploadTriggerTip",new ge(be.placer,""));z(this,"submitUploadTip",new ge(be.placer,""));z(this,"getHeader",new ge(be.placerHook,void 0,new ot));z(this,"getData",new ge(be.placerHook,void 0,new ot));z(this,"withCredentials",!1);z(this,"httpRequest",new ge(be.hook,void 0,new ot));z(this,"beforeUpload",new ge(be.hook,void 0,new ot));z(this,"beforeRemove",new ge(be.hook,void 0,new ot));z(this,"onChange",new ge(be.hook,void 0,new ot));z(this,"onExceed",new ge(be.hook,void 0,new ot));z(this,"onProgress",new ge(be.hook,void 0,new ot));z(this,"onPreview",new ge(be.hook,void 0,new ot));z(this,"onSuccess",new ge(be.hook,void 0,new ot));z(this,"onError",new ge(be.hook,void 0,new ot));z(this,"onRemove",new ge(be.hook,void 0,new ot));z(this,"isUploadSuccess",new ge(be.placerHook,void 0,new ot));z(this,"onBuildUrl",new ge(be.placerHook,void 0,new ot));z(this,"slotable",new ge(be.placer,!1));z(this,"trigger",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!1}),void 0,new Vn));z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!1}),void 0,new Vn));z(this,"tip",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!1}),void 0,new Vn));z(this,"file",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!1}),void 0,new Vn))}}class Xne{constructor(){let t=new Bk;ge.setValue(t,"accept",gx(nD)),ge.setValue(t,"listType",og.pictureCard);const n=["file","drag"];return n==null||n.forEach(r=>delete t[r]),t}}class Yne{constructor(){let t=new Bk;return ge.setValue(t,"accept",gx(tD)),t}}class Jne extends Ho{}class Zne extends Ho{constructor(){super(...arguments);z(this,"clearable",!0);z(this,"checkStrictly",new ge(be.placer,!1));z(this,"showAllLevels",!0);z(this,"emitPath",new ge(be.placer,!0));z(this,"separator"," / ");z(this,"debounce",300);z(this,"hoverThreshold",new ge(be.placer,500));z(this,"expandTrigger",new ge(be.placer,ag.click));z(this,"tagType",cx.info);z(this,"tagEffect",ux.light);z(this,"lazy",new ge(be.placer,!1));z(this,"lazyLoad",new ge(be.placerHook,void 0,new ot));z(this,"filterable",!1);z(this,"filterMethod",new ge(be.hook,void 0,new ot));z(this,"beforeFilter",new ge(be.hook,void 0,new ot));z(this,"multiple",new ge(be.placer,!1));z(this,"collapseTags",!1);z(this,"collapseTagsTooltip",!1);z(this,"maxCollapseTags",1);z(this,"emptyValues",new ge(be.dataObject,null,new wr({type:He.array,enable:!0})));z(this,"valueOnClear",new ge(be.hook,void 0,new ot));z(this,"popperClass","");z(this,"teleported",!0);z(this,"persistent",!0);z(this,"valueProp",new ge(be.placer,"value"));z(this,"labelProp",new ge(be.placer,"label"));z(this,"childrenProp",new ge(be.placer,"children"));z(this,"disabledProp",new ge(be.placer,"disabled"));z(this,"leafProp",new ge(be.placer,"leaf"));z(this,"withAttachData",new ge(be.placer,!0));z(this,"textName",new ge(be.placer,""));z(this,"optionName",new ge(be.placer,""));z(this,"labelName",new ge(be.placer,""));z(this,"visibleChange",new ge(be.event,void 0,new ot));z(this,"removeTag",new ge(be.event,void 0,new ot));z(this,"expandChange",new ge(be.event,void 0,new ot));z(this,"clear",new ge(be.event,void 0,new ot));z(this,"empty",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"optionDefault",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})));z(this,"relate",new ge(be.placer,void 0))}}class Ik extends Mi{constructor(){super(...arguments);z(this,"renderAfterExpand",!0);z(this,"highlightCurrent",!1);z(this,"defaultExpandAll",!1);z(this,"expandOnClickNode",!0);z(this,"checkOnClickNode",!1);z(this,"autoExpandParent",!0);z(this,"showCheckbox",!1);z(this,"checkStrictly",!1);z(this,"accordion",!1);z(this,"draggable",!1);z(this,"lazy",!1);z(this,"load",new ge(be.hook,void 0,new ot));z(this,"filterNodeMethod",new ge(be.hook,void 0,new ot));z(this,"renderContent",new ge(be.hook,void 0,new ot));z(this,"allowDrag",new ge(be.hook,void 0,new ot));z(this,"allowDrop",new ge(be.hook,void 0,new ot));z(this,"empty",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"optionDefault",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"nodeClick",new ge(be.event,void 0,new ot));z(this,"nodeContextmenu",new ge(be.event,void 0,new ot));z(this,"checkChange",new ge(be.event,void 0,new ot));z(this,"check",new ge(be.event,void 0,new ot));z(this,"currentChange",new ge(be.event,void 0,new ot));z(this,"nodeExpand",new ge(be.event,void 0,new ot));z(this,"nodeCollapse",new ge(be.event,void 0,new ot));z(this,"nodeDragStart",new ge(be.event,void 0,new ot));z(this,"nodeDragEnter",new ge(be.event,void 0,new ot));z(this,"nodeDragLeave",new ge(be.event,void 0,new ot));z(this,"nodeDragOver",new ge(be.event,void 0,new ot));z(this,"nodeDragEnd",new ge(be.event,void 0,new ot));z(this,"nodeDrop",new ge(be.event,void 0,new ot));z(this,"indent",18);z(this,"icon",new ge(be.icon,""));z(this,"emptyText","");z(this,"labelProp",new ge(be.placerHook,void 0,new ot));z(this,"childrenProp",new ge(be.placerHook,void 0,new ot));z(this,"disabledProp",new ge(be.placerHook,void 0,new ot));z(this,"isLeafProp",new ge(be.placerHook,void 0,new ot));z(this,"classProp",new ge(be.placer,void 0,new ot));z(this,"nodeKey","value");z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Qne extends TE{}class qne extends TE{}class $ne extends ks{constructor(){super(...arguments);z(this,"label",new ge(be.placer,""));z(this,"type",fx.default);z(this,"size",mo.default);z(this,"tag","span");z(this,"truncated",!1)}}class ere extends ks{constructor(){super(...arguments);z(this,"type",mo.default);z(this,"underline",!0);z(this,"disabled",!1);z(this,"href","");z(this,"target",QT.blank);z(this,"prefixIcon",new ge(be.placer,""));z(this,"suffixIcon",new ge(be.placer,""));z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn))}}class tre extends ks{constructor(){super(...arguments);z(this,"type",rg.primary);z(this,"size",mo.default);z(this,"effect",ux.light);z(this,"color","");z(this,"round",!1);z(this,"closable",!1);z(this,"disableTransitions",!1);z(this,"hit",!1);z(this,"click",new ge(be.event,void 0,new ot));z(this,"close",new ge(be.event,void 0,new ot))}}class nre extends ks{constructor(){super(...arguments);z(this,"size",mo.default);z(this,"disabled",!1);z(this,"type",fx.default);z(this,"buttonType",MT.default);z(this,"text",!1);z(this,"plain",!1);z(this,"round",!1);z(this,"circle",!1);z(this,"link",!1);z(this,"icon",new ge(be.icon));z(this,"bg",!1);z(this,"loading",!1);z(this,"loadingIcon",new ge(be.icon,"Loading"));z(this,"autofocus",!1);z(this,"autoInsertSpace",!1);z(this,"color","");z(this,"dark",!1);z(this,"tag","button");z(this,"click",new ge(be.event,new nJ,new ot));z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn))}}class rre extends ks{constructor(){super(...arguments);z(this,"direction",Cs.horizontal);z(this,"contentPosition",xu.center);z(this,"borderStyle",JT.solid)}}class ire extends Mi{constructor(){super(...arguments);z(this,"chartOption",new ge(be.hook,void 0,new ot));z(this,"dataSource",new ge(be.dataObject,null,new wr({type:He.array,enable:!0})))}}class are extends ks{constructor(){super(...arguments);z(this,"target","");z(this,"offset",0);z(this,"position",AT.top);z(this,"zIndex",100);z(this,"change",new ge(be.event,void 0,new ot));z(this,"scroll",new ge(be.event,void 0,new ot))}}class ore extends Mi{constructor(){super(...arguments);z(this,"sizeDef",new ge(be.placer,""));z(this,"color","");z(this,"size",0);z(this,"icon",new ge(be.icon,"Apple"))}}class sre extends ks{constructor(){super(...arguments);z(this,"image","");z(this,"imageSize");z(this,"description","")}}class lre extends ks{constructor(){super(...arguments);z(this,"value","");z(this,"max",99);z(this,"isDot",!1);z(this,"hidden",new ge(be.placer,!1));z(this,"type",rg.danger)}}class ure extends ks{constructor(){super(...arguments);z(this,"type",rg.primary);z(this,"size",mo.default);z(this,"maxHeight");z(this,"showTimeout",250);z(this,"hideTimeout",150);z(this,"placement",kp.bottom);z(this,"trigger",YT.hover);z(this,"splitButton",!1);z(this,"disabled",!1);z(this,"hideOnClick",!0);z(this,"tabindex",0);z(this,"slotable",new ge(be.placer,!1));z(this,"popperClass","menu");z(this,"popperOptions",{});z(this,"teleported",!0);z(this,"click",new ge(be.event,void 0,new ot));z(this,"command",new ge(be.event,void 0,new ot));z(this,"visibleChange",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Nk extends _o{constructor(){super(...arguments);z(this,"command","");z(this,"icon",new ge(be.icon));z(this,"disabled",!1);z(this,"divided",!1)}}class cre extends ks{constructor(){super(...arguments);z(this,"size",mo.default);z(this,"shape",DT.circle);z(this,"src","");z(this,"fit",dx.cover);z(this,"icon",new ge(be.icon));z(this,"error",new ge(be.event,void 0,new ot))}}class fre extends Mi{constructor(){super(...arguments);z(this,"icon",ET.info);z(this,"title",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"subTitle",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"extra",new ge(be.slot,void 0,new jn,void 0,new Vn))}}class pre extends ks{constructor(){super(...arguments);z(this,"target","");z(this,"visibilityHeight",200);z(this,"right",40);z(this,"bottom",40);z(this,"click",new ge(be.event,void 0,new ot))}}class hre extends Mi{constructor(){super(...arguments);z(this,"container","");z(this,"offset",0);z(this,"bound",15);z(this,"duration",300);z(this,"type",ZT.default);z(this,"direction",Cs.vertical);z(this,"marker",!0);z(this,"change",new ge(be.event,void 0,new ot));z(this,"click",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Fk extends AE{constructor(){super(...arguments);z(this,"title","");z(this,"href","");z(this,"children")}}class dre extends Mi{constructor(){super(...arguments);z(this,"height","");z(this,"initialIndex",0);z(this,"indicatorPosition",HT.none);z(this,"trigger",ag.hover);z(this,"arrow",WT.hover);z(this,"type",GT.none);z(this,"direction",Cs.horizontal);z(this,"loop",!0);z(this,"autoplay",!0);z(this,"pauseOnHover",!0);z(this,"interval",3e3);z(this,"change",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Mk extends _o{constructor(){super(...arguments);z(this,"slotContent",new ge(be.slot,void 0,new jn({slotName:"content"}),void 0,new Vn))}}class vre extends Mi{constructor(){super(...arguments);z(this,"accordion",!1);z(this,"change",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Lk extends AE{constructor(){super(...arguments);z(this,"title","");z(this,"content","");z(this,"slotTitle",new ge(be.slot,void 0,new jn({slotName:"title"}),void 0,new Vn));z(this,"slotContent",new ge(be.slot,void 0,new jn({slotName:"content"}),void 0,new Vn));z(this,"disabled",!1)}}class mre extends Mi{constructor(){super(...arguments);z(this,"border",!1);z(this,"column",3);z(this,"direction",Cs.horizontal);z(this,"size",mo.default);z(this,"title","");z(this,"extra","");z(this,"slotable",new ge(be.placer,!1));z(this,"slotTitle",new ge(be.slot,void 0,new jn({allowDrag:!0,slotName:"title"}),void 0,new Vn));z(this,"slotExtra",new ge(be.slot,void 0,new jn({allowDrag:!0,slotName:"extra"}),void 0,new Vn));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Rk extends _o{constructor(){super(...arguments);z(this,"content",new ge(be.placer,""));z(this,"span",1);z(this,"width","");z(this,"minWidth","");z(this,"align",xu.left);z(this,"labelAlign",xu.left);z(this,"className","");z(this,"labelClassName","")}}class gre extends Mi{constructor(){super(...arguments);z(this,"width",new ge(be.placer,""));z(this,"height",new ge(be.placer,""));z(this,"src","");z(this,"fit",dx.empty);z(this,"loading",KT.eager);z(this,"hideOnClickModal",!1);z(this,"lazy",!1);z(this,"closeOnPressEscape",!0);z(this,"previewTeleported",!1);z(this,"infinite",!0);z(this,"scrollContainer","");z(this,"referrerpolicy","");z(this,"previewSrcList",new ge(be.dataObject,[],new wr({type:He.array,enable:!0})));z(this,"zIndex",999999);z(this,"initialIndex",0);z(this,"zoomRate",1.2);z(this,"placeholder",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"slotError",new ge(be.slot,void 0,new jn({slotName:"error"}),void 0,new Vn));z(this,"viewer",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"load",new ge(be.event,void 0,new ot));z(this,"error",new ge(be.event,void 0,new ot));z(this,"switch",new ge(be.event,void 0,new ot));z(this,"close",new ge(be.event,void 0,new ot));z(this,"show",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class yre extends Mi{constructor(){super(...arguments);z(this,"separator","");z(this,"separatorIcon",new ge(be.icon));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class jk extends _o{constructor(){super(...arguments);z(this,"to","");z(this,"replace",!1);z(this,"useRouter",!1)}}class _re extends Mi{constructor(){super(...arguments);z(this,"uniqueOpened",!1);z(this,"router",!1);z(this,"collapseTransition",!0);z(this,"collapse",!1);z(this,"ellipsis",!1);z(this,"ellipsisIcon","");z(this,"backgroundColor","#ffffff");z(this,"textColor","#303133");z(this,"activeTextColor","#409EFF");z(this,"mode",Cs.vertical);z(this,"menuTrigger",ag.hover);z(this,"popperEffect",Pp.dark);z(this,"closeOnClickOutside",!1);z(this,"popperClass","");z(this,"showTimeout",0);z(this,"hideTimeout",0);z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Vk extends _o{constructor(){super(...arguments);z(this,"disabled",!1);z(this,"icon","");z(this,"route","");z(this,"click",new ge(be.event,void 0,new ot));z(this,"menuItemType",Ol.None);z(this,"showTimeout",0);z(this,"hideTimeout",0);z(this,"popperOffset",0);z(this,"expandCloseIcon","");z(this,"expandOpenIcon","");z(this,"collapseCloseIcon","");z(this,"collapseOpenIcon","");z(this,"popperClass","");z(this,"teleported",!0);z(this,"children")}}class bre extends Mi{constructor(){super(...arguments);z(this,"label");z(this,"displayLayout",new ge(be.placer,Pl.inline))}}class xre extends Mi{constructor(){super(...arguments);z(this,"direction",Cs.horizontal);z(this,"space","");z(this,"processStatus",px.process);z(this,"finishStatus",px.finish);z(this,"alignCenter",!1);z(this,"simple",!1);z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class zk extends _o{constructor(){super(...arguments);z(this,"description","");z(this,"icon","");z(this,"status","")}}class Ere extends Mi{constructor(){super(...arguments);z(this,"ctrlWidth",new ge(be.placer,"100%"));z(this,"data",new ge(be.singleOption,null));z(this,"height","200px");z(this,"maxHeight","200px");z(this,"emptyText","");z(this,"size",mo.default);z(this,"defaultSort",new ge(be.dataObject,{},new wr({type:He.array,enable:!1})));z(this,"tableLayout",NT.fixed);z(this,"stripe",!1);z(this,"border",!1);z(this,"fit",!0);z(this,"showHeader",!0);z(this,"scrollbarAlwaysOn",!1);z(this,"flexible",!1);z(this,"beforeTableRender",new ge(be.placerHook,void 0,new ot));z(this,"highlightCurrentRow",!1);z(this,"currentRowKey","");z(this,"rowClassName",new ge(be.hook,void 0,new ot));z(this,"rowStyle",new ge(be.hook,void 0,new ot));z(this,"headerRowClassName",new ge(be.hook,void 0,new ot));z(this,"headerRowStyle",new ge(be.hook,void 0,new ot));z(this,"rowKey",new ge(be.hook,void 0,new ot));z(this,"expandRowKeys",new ge(be.dataObject,[],new wr({type:He.array,enable:!1})));z(this,"cellClassName",new ge(be.hook,void 0,new ot));z(this,"cellStyle",new ge(be.hook,void 0,new ot));z(this,"headerCellClassName",new ge(be.hook,void 0,new ot));z(this,"headerCellStyle",new ge(be.hook,void 0,new ot));z(this,"defaultExpandAll",!1);z(this,"showSummary",!1);z(this,"selectOnIndeterminate",!0);z(this,"sumText","Sum");z(this,"summaryMethod",new ge(be.hook,void 0,new ot));z(this,"spanMethod",new ge(be.hook,void 0,new ot));z(this,"treeProps",new ge(be.dataObject,{},new wr({type:He.object,enable:!1})));z(this,"indent",16);z(this,"lazy",!1);z(this,"load",new ge(be.hook,void 0,new ot));z(this,"showOverflowTooltip",!1);z(this,"tooltipEffect",Pp.dark);z(this,"tooltipOptions",null);z(this,"allowPage",new ge(be.placer,!1));z(this,"pageSize",new ge(be.placer,10));z(this,"pageSizes",new ge(be.placer,[10,20,30,40,50,100]));z(this,"hideOnSinglePage",new ge(be.placer,!1));z(this,"layout",new ge(be.placer,["prev","pager","next","jumper","->","total"]));z(this,"select",new ge(be.event,void 0,new ot));z(this,"selectAll",new ge(be.event,void 0,new ot));z(this,"selectionChange",new ge(be.event,void 0,new ot));z(this,"cellMouseEnter",new ge(be.event,void 0,new ot));z(this,"cellMouseLeave",new ge(be.event,void 0,new ot));z(this,"cellClick",new ge(be.event,void 0,new ot));z(this,"cellDblclick",new ge(be.event,void 0,new ot));z(this,"cellContextmenu",new ge(be.event,void 0,new ot));z(this,"rowClick",new ge(be.event,void 0,new ot));z(this,"rowContextmenu",new ge(be.event,void 0,new ot));z(this,"rowDblclick",new ge(be.event,void 0,new ot));z(this,"headerClick",new ge(be.event,void 0,new ot));z(this,"headerContextmenu",new ge(be.event,void 0,new ot));z(this,"sortChange",new ge(be.event,void 0,new ot));z(this,"filterChange",new ge(be.event,void 0,new ot));z(this,"currentChange",new ge(be.event,void 0,new ot));z(this,"headerDragend",new ge(be.event,void 0,new ot));z(this,"expandChange",new ge(be.event,void 0,new ot));z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"append",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"empty",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Uk extends u0{constructor(){super(...arguments);z(this,"type",LT.default);z(this,"index",new ge(be.hook,void 0,new ot));z(this,"label","");z(this,"prop","");z(this,"width","");z(this,"minWidth","");z(this,"fixed",!1);z(this,"resizable",!0);z(this,"showOverflowTooltip",!1);z(this,"reserveSelection",!1);z(this,"renderHeader",new ge(be.hook,void 0,new ot));z(this,"formatter",new ge(be.hook,void 0,new ot));z(this,"selectable",new ge(be.hook,void 0,new ot));z(this,"align",xu.left);z(this,"headerAlign",xu.left);z(this,"className","");z(this,"labelClassName","");z(this,"sortable",!1);z(this,"sortOrders",new ge(be.dataObject,["ascending","descending",null],new wr({type:He.array})));z(this,"sortMethod",new ge(be.hook,void 0,new ot));z(this,"sortBy",new ge(be.hook,void 0,new ot));z(this,"filters",new ge(be.dataObject,void 0,new wr({type:He.object})));z(this,"filteredValue",new ge(be.dataObject,void 0,new wr({type:He.array,enable:!0})));z(this,"filterMethod",new ge(be.hook,void 0,new ot));z(this,"filterMultiple",!0);z(this,"filterPlacement",kp.top);z(this,"filterClassName","");z(this,"columnKey","");z(this,"header",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"default",{widgetList:[],...new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!0}),void 0,new Vn)});z(this,"slotable",new ge(be.placer,!1));z(this,"uuid",new ge(be.placer,Ds()))}}class c0 extends Hy{constructor(){super(...arguments);z(this,"customClass",new ge(be.placer,[]));z(this,"displayLayout",new ge(be.placer,Pl.block))}}class Ou extends c0{constructor(){super(...arguments);z(this,"componentWrapperClass",new ge(be.placer,[]))}}class wre extends c0{constructor(){super(...arguments);z(this,"hidden",!1);z(this,"colHeight",new ge(be.placer,""));z(this,"gutter",0);z(this,"justify",jT.start);z(this,"align",VT.middle);z(this,"tag","div");z(this,"cols",new ge(be.placer,[]))}}class Hk extends Ou{constructor(){super(...arguments);z(this,"hidden",!1);z(this,"responsive",!1);z(this,"span",12);z(this,"xs",12);z(this,"sm",12);z(this,"md",12);z(this,"lg",12);z(this,"xl",12);z(this,"offset",0);z(this,"push",0);z(this,"pull",0);z(this,"tag","div");z(this,"horizontalAlign",new ge(be.placer,""))}}class Sre extends c0{constructor(){super(...arguments);z(this,"hidden",!1)}}class Cre extends Ou{constructor(){super(...arguments);z(this,"cellWidth","");z(this,"cellHeight","");z(this,"colspan",0);z(this,"rowspan",0)}}class Are extends Ou{constructor(){super(...arguments);z(this,"label","");z(this,"title","");z(this,"defaultValue",!1);z(this,"width","50%");z(this,"fullscreen",!1);z(this,"top","");z(this,"modal",!0);z(this,"modalClass","");z(this,"lockScroll",!0);z(this,"draggable",!1);z(this,"overflow",!1);z(this,"center",!1);z(this,"alignCenter",!1);z(this,"closeOnClickModal",!0);z(this,"closeOnPressEscape",!0);z(this,"showClose",!0);z(this,"destroyOnClose",!1);z(this,"openDelay",0);z(this,"closeDelay",0);z(this,"closeIcon",new ge(be.icon,"Close"));z(this,"beforeClose",new ge(be.hook,void 0,new ot));z(this,"appendToBody",!1);z(this,"appendTo","body");z(this,"zIndex",1e4);z(this,"header",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"footer",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"open",new ge(be.event,void 0,new ot));z(this,"opened",new ge(be.event,void 0,new ot));z(this,"close",new ge(be.event,void 0,new ot));z(this,"closed",new ge(be.event,void 0,new ot));z(this,"openAutoFocus",new ge(be.event,void 0,new ot));z(this,"closeAutoFocus",new ge(be.event,void 0,new ot))}}class Tre extends Ou{constructor(){super(...arguments);z(this,"ctrlWidth",new ge(be.placer,"100%"));z(this,"title","title");z(this,"type",XT.info);z(this,"description","description");z(this,"closable",!0);z(this,"center",!1);z(this,"closeText","");z(this,"showIcon",!1);z(this,"slotable",new ge(be.placer,!1));z(this,"effect",Pp.light);z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"titleSlot",new ge(be.slot,void 0,new jn({allowDrag:!0,slotName:"title"}),void 0,new Vn));z(this,"close",new ge(be.event,void 0,new ot))}}class Dre extends Ou{constructor(){super(...arguments);z(this,"label","");z(this,"title","");z(this,"defaultValue",!1);z(this,"size","30%");z(this,"modal",!0);z(this,"modalClass","");z(this,"appendToBody",!1);z(this,"lockScroll",!0);z(this,"withHeader",!0);z(this,"showClose",!0);z(this,"closeOnClickModal",!0);z(this,"closeOnPressEscape",!0);z(this,"destroyOnClose",!1);z(this,"beforeClose",new ge(be.hook,void 0,new ot));z(this,"direction",RT.rtl);z(this,"openDelay",0);z(this,"closeDelay",0);z(this,"zIndex",1e4);z(this,"header",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"footer",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"open",new ge(be.event,void 0,new ot));z(this,"opened",new ge(be.event,void 0,new ot));z(this,"close",new ge(be.event,void 0,new ot));z(this,"closed",new ge(be.event,void 0,new ot));z(this,"openAutoFocus",new ge(be.event,void 0,new ot));z(this,"closeAutoFocus",new ge(be.event,void 0,new ot))}}class Pre extends Mi{constructor(){super(...arguments);z(this,"background",!1);z(this,"hideOnSinglePage",!1);z(this,"size",mo.default);z(this,"defaultPageSize",10);z(this,"pagerCount",7);z(this,"defaultCurrentPage",1);z(this,"layout",new ge(be.dataObject,["prev","pager","next","jumper","->","total"]));z(this,"pageSizes",new ge(be.dataObject,[10,20,30,40,50,100],new wr({type:He.array,enable:!0})));z(this,"popperClass","");z(this,"prevText","");z(this,"nextText","");z(this,"prevIcon",new ge(be.icon,"ArrowLeft"));z(this,"nextIcon",new ge(be.icon,"ArrowRight"));z(this,"disabled",!1);z(this,"teleported",!0);z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"sizeChange",new ge(be.event,void 0,new ot));z(this,"currentChange",new ge(be.event,void 0,new ot));z(this,"change",new ge(be.event,void 0,new ot));z(this,"prevClick",new ge(be.event,void 0,new ot));z(this,"nextClick",new ge(be.event,void 0,new ot))}}class kre extends Ou{constructor(){super(...arguments);z(this,"newDataSource",new ge(be.singleOption,null,new wr({type:He.object,enable:!0})));z(this,"editDataSource",new ge(be.singleOption,null,new wr({type:He.object,enable:!0})));z(this,"loadDataWhenInit",new ge(be.placer,!1));z(this,"showLoading",new ge(be.placer,!1));z(this,"loadingText",new ge(be.placer,""));z(this,"inline",!1);z(this,"disabled",!1);z(this,"labelAlign",new ge(be.placer,""));z(this,"labelPosition",FT.right);z(this,"labelWidth","");z(this,"labelSuffix","");z(this,"statusIcon",!1);z(this,"hideRequiredAsterisk",!1);z(this,"requireAsteriskPosition",CT.left);z(this,"showMessage",!0);z(this,"inlineMessage",!1);z(this,"validateOnRuleChange",!0);z(this,"scrollToError",!1);z(this,"scrollIntoViewOptions",new ge(be.dataObject,void 0,new wr({type:He.object,enable:!0})));z(this,"size",mo.default);z(this,"customClass",new ge(be.placer,[]));z(this,"validate",new ge(be.event,void 0,new ot));z(this,"default",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"modelName",new ge(be.placer,"formData"));z(this,"refName",new ge(be.placer,"vForm"));z(this,"rulesName",new ge(be.placer,"rules"));z(this,"formCreated",new ge(be.event,void 0,new ot));z(this,"formMounted",new ge(be.event,void 0,new ot));z(this,"formDataChange",new ge(be.event,void 0,new ot));z(this,"formDataLoaded",new ge(be.placerHook,void 0,new ot));z(this,"needFormAdd",new ge(be.placerHook,void 0,new ot))}}class Ore extends c0{constructor(){super(...arguments);z(this,"cols",new ge(be.placer,[]))}}class Bre extends c0{constructor(){super(...arguments);z(this,"hidden",!1);z(this,"closable",!1);z(this,"addable",!1);z(this,"editable",!1);z(this,"stretch",!1);z(this,"showLoading",new ge(be.placer,!1));z(this,"loadingText",new ge(be.placer,""));z(this,"type",hx.borderCard);z(this,"tabPosition",TT.top);z(this,"beforeLeave",new ge(be.hook,void 0,new ot));z(this,"tabs",new ge(be.placer,void 0,new ot));z(this,"tabChange",new ge(be.event,void 0,new ot));z(this,"tabClick",new ge(be.event,void 0,new ot));z(this,"tabAdd",new ge(be.event,void 0,new ot));z(this,"edit",new ge(be.event,void 0,new ot));z(this,"tabRemove",new ge(be.event,void 0,new ot));z(this,"created",new ge(be.event,void 0,new ot));z(this,"mounted",new ge(be.event,void 0,new ot))}}class OE extends Ou{constructor(){super(...arguments);z(this,"hidden",!1);z(this,"label","");z(this,"disabled",!1);z(this,"lazy",!1);z(this,"isdefault",!1)}}class Ire extends Ou{constructor(){super(...arguments);z(this,"ctrlWidth",new ge(be.placer,"100%"));z(this,"hidden",!1);z(this,"slotable",new ge(be.placer,!1));z(this,"label",new ge(be.placer,"card"));z(this,"folded",new ge(be.placer,!1));z(this,"showFold",new ge(be.placer,!1));z(this,"shadow",BT.always);z(this,"bodyStyle",new ge(be.placer,void 0,new ot));z(this,"header",new ge(be.slot,void 0,new jn,void 0,new Vn));z(this,"default",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn))}}class Nre extends Wy{constructor(){super(...arguments);z(this,"label",new ge(be.placer,""));z(this,"hidden",!1);z(this,"minRowNum",1);z(this,"maxRowNum",50);z(this,"showMode",ig.line);z(this,"addRecordText","");z(this,"deleteRecordText","");z(this,"sortUpText","");z(this,"sortDownText","");z(this,"showHeader",!0);z(this,"showDetail",!1);z(this,"onlyOneAddButton",!1);z(this,"showBorder",!0);z(this,"showLimit",!1);z(this,"sortable",!1);z(this,"allowAdd",!0);z(this,"allowDelete",!0);z(this,"allowDefaultAdd",!1);z(this,"row",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!0}),void 0,new Vn));z(this,"detail",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!0}),void 0,new Vn));z(this,"addRow",new ge(be.event,void 0,new ot));z(this,"deleteRow",new ge(be.event,void 0,new ot));z(this,"change",new ge(be.event,void 0,new ot));z(this,"click",new ge(be.event,void 0,new ot));z(this,"dataFormat",new ge(be.hook,void 0,new ot));z(this,"rowDataFormat",new ge(be.hook,void 0,new ot))}}class Fre extends Wy{constructor(){super(...arguments);z(this,"label",new ge(be.placer,""));z(this,"data",new ge(be.singleOption,null));z(this,"alwaysShow",!1);z(this,"hidden",!1);z(this,"showLoading",!1);z(this,"loadingText","");z(this,"loadDataWhenInit",new ge(be.placer,!1));z(this,"noData","");z(this,"completed",new ge(be.event,void 0,new ot));z(this,"row",new ge(be.slot,void 0,new jn({allowDrag:!0,enable:!0}),void 0,new Vn));z(this,"click",new ge(be.event,void 0,new ot))}}class Mre extends Hy{constructor(){super(...arguments);z(this,"label","");z(this,"compName",tt.tag);z(this,"appendOnClick",!0);z(this,"showSaveButton",!0);z(this,"showAddButton",!0);z(this,"labelKey","label");z(this,"contentKey","value");z(this,"relatedIds",new ge(be.dataObject,[],new wr({type:He.array,enable:!0})));z(this,"addButtonText","");z(this,"saveButtonText","");z(this,"operateData",new ge(be.dataObject,{},new wr({type:He.object,enable:!0})));z(this,"hidden",!1);z(this,"click",new ge(be.event,void 0,new ot));z(this,"save",new ge(be.event,void 0,new ot));z(this,"add",new ge(be.event,void 0,new ot));z(this,"optionItems",new ge(be.singleOption,[],new wr({type:He.array,enable:!0})))}}class Wk extends Hy{constructor(){super(...arguments);z(this,"label");z(this,"value")}}class Lre extends Mi{constructor(){super(...arguments);z(this,"src","");z(this,"withQuery",new ge(be.placer,!1));z(this,"hashRouter",new ge(be.placer,!1));z(this,"onLoaded",new ge(be.event,void 0,new ot))}}const Ta={autoWidth:!0,inlineLayout:!0},Gk=[new Fn(tt.text,new $ne,!1,Ta),new Fn(tt.link,new ere,!1,Ta),new Fn(tt.button,new nre,!1,Ta),new Fn(tt.tag,new tre,!1,Ta),new Fn(tt.icon,new ore,!1,Ta)];class Qc extends pt{constructor(){super(),this.category=bu.container}}class BE extends pt{constructor(){super();z(this,"widgetList",[]);this.category=bu.container}}class Rre extends Qc{constructor(){super();z(this,"cols",[]);this.type=tt.cont,this.options=new Ore,this.init(!1)}}class IE extends u0{constructor(){super(...arguments);z(this,"direction",Cs.vertical);z(this,"partName",new ge(be.placer,Bl.container));z(this,"cellWidth",new ge(be.placer,""));z(this,"cellHeight",new ge(be.placer,""));z(this,"customClass",new ge(be.placer,[]));z(this,"componentWrapperClass",new ge(be.placer,[]));z(this,"children",[]);z(this,"widgetList",[])}}class jre extends Qc{constructor(){super();z(this,"cols",[]);this.type=tt.grid,this.options=new wre,this.init(!1)}}class Vre extends BE{constructor(){super();z(this,"internal",!0);this.type=tt.gridCol,this.options=new Hk,this.init(!1)}}class zre extends Qc{constructor(){super();z(this,"rows",[]);this.type=tt.table,this.options=new Sre,this.init(!1)}}class Ure extends Qc{constructor(){super();z(this,"internal",!0);z(this,"cols",[]);this.type=tt.tableRow,this.init(!1)}}class Hre extends BE{constructor(){super();z(this,"internal",!0);z(this,"merged",!1);this.type=tt.tableCol,this.options=new Cre,this.init(!1)}}class Wre extends Qc{constructor(){super();z(this,"displayType",hx.borderCard);z(this,"tabs",[]);this.type=tt.tabs,this.options=new Bre,this.init(!1)}}class Gre extends BE{constructor(){super();z(this,"internal",!0);this.type=tt.tabPane,this.options=new OE,this.init(!1)}}class Kre extends Qc{constructor(){super();z(this,"slots",[]);z(this,"widgetList",[]);this.type=tt.form,this.options=new kre,this.init(!1)}}class Xre extends Qc{constructor(){super();z(this,"widgetList",[]);this.type=tt.wrapper,this.options=new Yre,this.init(!1)}}class Yre extends Wy{constructor(){super(...arguments);z(this,"hidden",!1);z(this,"disabled",!1);z(this,"lazy",!1);z(this,"showLoading",new ge(be.placer,!1));z(this,"loadingText",new ge(be.placer,""))}}class Jre extends Mi{constructor(){super(...arguments);z(this,"label","");z(this,"labelHidden",new ge(be.placer,!1));z(this,"labelAlign",new ge(be.placer,""));z(this,"labelWidth",new ge(be.placer,""));z(this,"labelIconClass",new ge(be.icon));z(this,"labelIconPosition",new ge(be.placer,jc.rear));z(this,"labelTooltip",new ge(be.placer,""))}}class Zre extends Jre{constructor(){super(...arguments);z(this,"splitText","-");z(this,"unitText","");z(this,"left",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn));z(this,"right",new ge(be.slot,void 0,new jn({allowDrag:!0}),void 0,new Vn))}}const Kk=[new jre,new Vre,new zre,new Ure,new Hre,new Rre,new Xre],Xk=[new Kre,new Fn(tt.input,new One,!0),new Fn(tt.textarea,new Bne,!0),new Fn(tt.number,new Ine,!0),new Fn(tt.radio,new Fne,!0),new Fn(tt.checkbox,new Mne,!0),new Fn(tt.autoComplete,new Nne,!0),new Fn(tt.select,new Pk,!0),new Fn(tt.cascader,new Zne,!0),new Fn(tt.treeSelect,{treeDivider:"",...new Ik,selectDivider:"",...new Pk},!0),new Fn(tt.switch,new Une,!0),new Fn(tt.timeSelect,new zne,!0),new Fn(tt.timePicker,new Lne,!0),new Fn(tt.timePickerRange,new Rne,!0),new Fn(tt.datePicker,new jne,!0),new Fn(tt.datePickerRange,new Vne,!0),new Fn(tt.pictureUpload,new Xne,!0),new Fn(tt.fileUpload,new Yne,!0),new Fn(tt.rate,new Hne,!0),new Fn(tt.colorPicker,new Gne,!0),new Fn(tt.slider,new Kne,!0),new Fn(tt.richEditor,new Jne,!0),new Fn(tt.cache,new kne,!0)],Yk=[new Fn(tt.multirow,new Nre,!0,{dynamicItemFlag:!0}),new Fn(tt.tmpl,new Fre,!1,{dynamicItemFlag:!0}),new Fn(tt.model,new Mre,!1),new Fn(tt.range,new Zre,!1)],Jk=[],Zk=[new Fn(tt.avatar,new cre,!1,Ta),new Fn(tt.badge,new lre,!1,Ta),new Fn(tt.empty,new sre,!1),new Fn(tt.result,new fre,!1),new Fn(tt.card,new Ire,!1),new Fn(tt.collapse,new vre,!1),new Fn(tt.descriptions,new mre,!1),new Fn(tt.carousel,new dre,!1),new Fn(tt.image,new gre,!1,Ta),new Fn(tt.eltable,new Ere,!1),new Fn(tt.pagination,new Pre,!1),new Fn(tt.progress,new Wne,!1,Ta),new Fn(tt.tree,new Ik,!1)],Qk=[new Fn(tt.router,new bre,!1,Ta),new Wre,new Gre,new Fn(tt.steps,new xre,!1),new Fn(tt.dropdown,new ure,!1,Ta),new Fn(tt.menu,new _re,!1),new Fn(tt.breadcrumb,new yre,!1),new Fn(tt.affix,new are,!1,Ta),new Fn(tt.backtop,new pre,!1,Ta),new Fn(tt.anchor,new hre,!1,Ta)],qk=[new Fn(tt.dialog,new Are,!1),new Fn(tt.drawer,new Dre,!1),new Fn(tt.alert,new Tre,!1)],$k=[new Fn(tt.staticText,new Qne,!1,Ta),new Fn(tt.htmlText,new qne,!1,Ta),new Fn(tt.divider,new rre,!1),new Fn(tt.chart,new ire,!1),new Fn(tt.iframe,new Lre,!1)],Qre=[...Kk,...Gk,...Xk,...Jk,...Yk,...Zk,...qk,...Qk,...$k],qre={containers:Kk,basicFields:Gk,formFields:Xk,systemFields:Jk,advancedFields:Yk,dataFields:Zk,navFields:Qk,feedBackFields:qk,otherFields:$k,allWidgets:Qre},qc=(e,t)=>{var r;if(!e||!t)return!1;let n=Bu(e==null?void 0:e.type);return!n||!(n!=null&&n.options)?!1:((r=Or(n==null?void 0:n.options))==null?void 0:r.indexOf(t))>-1},Bu=e=>{var t;return(t=qre.allWidgets)==null?void 0:t.find(n=>n.type===e)},$re=e=>{const t=e.id;if(!t)return null;const n=pt.getName(e);return{id:t,name:n}},Wo=(e,t,n)=>{if(!e)return jt(e);var r=e==null?void 0:e.id,a=e.type+Ds(),o=a;n&&(o=n(r,a));const i=$re(e);return eie(e,o,t),i&&(t!=null&&t.recordSource)&&Qn(e,{_source:i}),jt(e)},eie=(e,t,n)=>(na(e,Xt.id)&&(e.id=t),e.options=tie(e.options,t,n),e),tie=(e,t,n)=>(na(e,Xt.name)&&(n==null?void 0:n.newName)!=!1&&(e.name=t.replace(new RegExp("-","gm"),"")),na(e,Xt.label)&&!(e!=null&&e.label)&&(n==null?void 0:n.newLabel)!=!1&&(e.label=t.replace(new RegExp("-","gm"),"")),e),eO=e=>{const t="id@";return{idClass:`${t}${e==null?void 0:e.id}`,getIdByIdClass:o=>o==null?void 0:o.substring(t.length),isIdClass:o=>o==null?void 0:o.startsWith(t)}};function tO(){const e=D=>pt.getOptions(D,"rowspan")||1,t=D=>pt.getOptions(D,"colspan")||1,n=(D,k)=>{pt.setOptions(D,"rowspan",k)},r=(D,k)=>{pt.setOptions(D,"colspan",k)},a=(D,k,O)=>{let I=Yn(D.rows[k]);return w(I),D.rows.splice(O,0,I),!0},o=(D,k)=>(D.rows.forEach(O=>{let I=S();O.cols.splice(k,0,I)}),!0),i=D=>{let k=D.rows.length;return a(D,k-1,k),!0},c=D=>{let k=D.rows[0].cols.length;return o(D,k),!0},s=(D,k,O,I,N)=>{let F=N?k:k+1;if(!N){let M=F,j=!1;for(;M<D.rows.length;)if(D.rows[M].cols[I].merged)M++;else{F=M,j=!0;break}j&&(F=D.rows.length)}a(D,O,F);let R=0;for(;F<D.rows.length-1&&R<D.rows[0].cols.length;){const M=D.rows[F+1].cols[R];if(M.merged){let W=D.rows,L={},U=0;for(let K=F;K>=0;K--)if(!W[K].cols[R].merged&&e(W[K].cols[R])>1){U=K,L=W[K].cols[R];break}if(L.options){let K=e(L)+1;f(D.rows,U,R,t(L),K),R+=t(L)}else R+=1}else R+=t(M)}return!0},l=(D,k,O,I)=>{let N=I?k:k+1;if(!I){let R=N,M=!1;for(;R<D.rows[O].cols.length;){if(D.rows[O].cols[R].merged)R++;else{N=R,M=!0;break}M||(N=D.rows[O].cols.length)}}o(D,N);let F=0;for(;N<D.rows[0].cols.length-1&&F<D.rows.length;){const R=D.rows[F].cols[N+1];if(R.merged){let j=D.rows[F].cols,W={},L=null;for(let U=N;U>=0;U--)if(!j[U].merged&&t(j[U])>1){L=U,W=j[U];break}if(W.options){let U=t(W)+1;u(D.rows,F,L,U,e(W)),F+=e(W)}else F+=1}else F+=e(R)}return!0},u=(D,k,O,I,N)=>{for(let F=k;F<k+N;F++)for(let R=O;R<O+I;R++){if(F===k&&R===O){r(D[F].cols[R],I);continue}D[F].cols[R].merged=!0,r(D[F].cols[R],I),D[F].cols[R].widgetList=[]}},f=(D,k,O,I,N)=>{for(let F=k;F<k+N;F++)for(let R=O;R<O+I;R++){if(F===k&&R===O){n(D[F].cols[R],N);continue}D[F].cols[R].merged=!0,n(D[F].cols[R],N),D[F].cols[R].widgetList=[]}},h=(D,k,O,I,N)=>{for(let F=k;F<k+N;F++)for(let R=O;R<O+I;R++)D[F].cols[R].merged=!1,n(D[F].cols[R],1),r(D[F].cols[R],1)},d=(D,k,O,I,N)=>{for(let F=k;F<k+N;F++)for(let R=O;R<O+I;R++)D[F].cols[R].merged=!1,n(D[F].cols[R],1),r(D[F].cols[R],1)},v=(D,k,O,I)=>{let N=pt.getOptions(D[O].cols[0],"rowspan"),F=!1;for(let M=1;M<D[O].cols.length;M++)if(e(D[O].cols[M])!==N){F=!0;break}if(F)return mi.info(se.i18nt("designer.hint.rowspanNotConsistentForMergeEntireRow")),!1;let R=k.filter(M=>!M.merged&&!!M.widgetList&&M.widgetList.length>0);return R&&R.length>0&&R[0].id!==k[0].id&&(!k[0].widgetList||k[0].widgetList.length<=0)&&(k[0].widgetList=Yn(R[0].widgetList)),u(D,O,0,k.length,e(k[I])),!0},m=(D,k,O,I,N)=>{let F=I?k:k+e(N),R=I?k-1:k;if(I){let j=R;for(;j>=0;)if(D[j].cols[O].merged)j--;else{R=j;break}}D[F].cols[O].widgetList&&D[F].cols[O].widgetList.length>0&&(!D[R].cols[O].widgetList||D[R].cols[O].widgetList.length===0)&&(D[R].cols[O].widgetList=Yn(D[F].cols[O].widgetList));let M=e(D[F].cols[O])*1+e(D[R].cols[O])*1;return f(D,R,O,t(N),M),!0},p=(D,k,O,I)=>{let N=pt.getOptions(D[0].cols[I],"colspan"),F=!1;for(let j=1;j<D.length;j++)if(t(D[j].cols[I])!==N){F=!0;break}if(F)return mi.info(se.i18nt("designer.hint.colspanNotConsistentForMergeEntireColumn")),!1;let R=[];D.forEach(j=>{let W=j.cols[I];!W.merged&&W.widgetList&&W.widgetList.length>0&&R.push(W)});let M=D[0].cols[I];return R&&R.length>0&&R[0].id!==M.id&&(!M.widgetList||M.widgetList.length<=0)&&(M.widgetList=Yn(R[0].widgetList)),f(D,0,I,t(M),D.length),!0},g=(D,k,O,I,N,F)=>{let R=N?I:I+(pt.getOptions(k[I],"colspan")||1),M=N?I-1:I;if(N){let W=M;for(;W>=0;)if(D[O].cols[W].merged)W--;else{M=W;break}}k[R].widgetList&&k[R].widgetList.length>0&&(!k[M].widgetList||k[M].widgetList.length===0)&&(k[M].widgetList=Yn(k[R].widgetList));let j=t(k[R])*1+t(k[M])*1;return u(D,O,M,j,e(F)),!0},y=(D,k,O,I,N)=>(h(D,k,O,I,N),!0),b=(D,k,O,I,N)=>(d(D,k,O,I,N),!0),_=(D,k)=>{let O=!0;if(D.forEach(F=>{t(F.cols[0])!==D[0].cols.length&&(O=!1)}),O)return mi.info(se.i18nt("designer.hint.lastColCannotBeDeleted")),!1;let I=t(D[0].cols[k]),N=!1;for(let F=1;F<D.length;F++)if(t(D[F].cols[k])!==I){N=!0;break}return N?(mi.info(se.i18nt("designer.hint.colspanNotConsistentForDeleteEntireColumn")),!1):(D.forEach(F=>{F.cols.splice(k,I)}),!0)},E=(D,k)=>{let O=!0;if(D[0].cols.forEach(F=>{e(F)!==D.length&&(O=!1)}),O)return mi.info(se.i18nt("designer.hint.lastRowCannotBeDeleted")),!1;let I=e(D[k].cols[0]),N=!1;for(let F=1;F<D[k].cols.length;F++)if(e(D[k].cols[F])!==I){N=!0;break}return N?(mi.info(se.i18nt("designer.hint.rowspanNotConsistentForDeleteEntireRow")),!1):(D.splice(k,I),!0)},w=D=>{let k=D||{cols:[]};return k=Wo({...k,type:tt.tableRow,id:""}),k.merged=!1,D?k.cols.forEach(O=>{S(O)}):k.cols.push(S()),k},S=D=>{let k=D||Yn(Bu(tt.tableCol));return Wo(k),k.merged=!1,r(k,1),n(k,1),k.widgetList.length=0,k},A=D=>{let k=D||Yn(Bu(tt.table));return Wo(k),k};return{appendTableRow:i,appendTableCol:c,insertTableRow:s,insertTableCol:l,mergeTableWholeRow:v,mergeTableRow:m,mergeTableCol:g,mergeTableWholeCol:p,undoMergeTableCol:y,undoMergeTableRow:b,deleteTableWholeCol:_,deleteTableWholeRow:E,initTableRow:w,initTable:A,initCloneTable:D=>{let k=A();return jt(D).rows.forEach(O=>{let I=jt(Yn(O));Wo(I),I.cols.forEach(N=>{Wo(N),N.widgetList=[]}),jt(k).rows.push(I)}),k},isTable:D=>(D==null?void 0:D.type)===tt.table}}function nO(){const e=()=>{let l=jt(Yn(Bu(tt.tabs)));return l=Wo(l),l},t=(l,u)=>{let f=jt(Yn(Bu(tt.tabPane)));var h=Wo(f);return l&&pt.setOptions(h,Xt.label,l),u!==void 0&&pt.setOptions(h,Xt.isdefault,u),h},n=l=>{var f;let u=e();return(f=jt(l).tabs)==null||f.forEach(h=>{var v;let d=r(h);(v=jt(u).tabs)==null||v.push(d)}),u},r=l=>{var u=Yn(l);return Wo(u),pt.setOptions(u,Xt.isdefault,!1),u.widgetList=[],u};return{initTab:e,initCloneTab:n,initTabPane:t,initCloneTabPane:r,addTabPaneOfTabs:(l,u)=>{let f=l==null?void 0:l.tabs;return f||(f=[]),u=u||t(),u&&f.push(u),!0},deleteTabPaneOfTabs:(l,u)=>{var f;if(((f=l.tabs)==null?void 0:f.length)===1){mi.info(se.i18nt("designer.hint.lastPaneCannotBeDeleted"));return}return l.tabs.splice(u,1),!0},findTabPaneOfTabs:(l,u)=>{var f;return(f=l.tabs)==null?void 0:f.findIndex(h=>pt.getName(h)===u)},getActiveTab:l=>{var f,h;let u=(f=l==null?void 0:l.tabs)==null?void 0:f[0];return(h=l==null?void 0:l.tabs)==null||h.forEach(d=>{pt.getOptions(d,Xt.isdefault)&&(u=d)}),u},isTabs:l=>(l==null?void 0:l.type)===tt.tabs}}var rO={},nie={get exports(){return rO},set exports(e){rO=e}};/*! jsonpath 1.1.1 */(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,a,o){function i(l,u){if(!a[l]){if(!r[l]){var f=typeof s0=="function"&&s0;if(!u&&f)return f(l,!0);if(c)return c(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var d=a[l]={exports:{}};r[l][0].call(d.exports,function(v){var m=r[l][1][v];return i(m||v)},d,d.exports,n,r,a,o)}return a[l].exports}for(var c=typeof s0=="function"&&s0,s=0;s<o.length;s++)i(o[s]);return i}({"./aesprim":[function(n,r,a){(function(o,i){i(typeof a<"u"?a:o.esprima={})})(this,function(o){var i,c,s,l,u,f,h,d,v,m,p,g,y,b,_,E,w,S;i={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},c={},c[i.BooleanLiteral]="Boolean",c[i.EOF]="<end>",c[i.Identifier]="Identifier",c[i.Keyword]="Keyword",c[i.NullLiteral]="Null",c[i.NumericLiteral]="Numeric",c[i.Punctuator]="Punctuator",c[i.StringLiteral]="String",c[i.RegularExpression]="RegularExpression",s=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],l={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},u={Data:1,Get:2,Set:4},f={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},h={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function A(le,_e){if(!le)throw new Error("ASSERT: "+_e)}function P(le){return le>=48&&le<=57}function C(le){return"0123456789abcdefABCDEF".indexOf(le)>=0}function D(le){return"01234567".indexOf(le)>=0}function k(le){return le===32||le===9||le===11||le===12||le===160||le>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(le)>=0}function O(le){return le===10||le===13||le===8232||le===8233}function I(le){return le==64||le===36||le===95||le>=65&&le<=90||le>=97&&le<=122||le===92||le>=128&&h.NonAsciiIdentifierStart.test(String.fromCharCode(le))}function N(le){return le===36||le===95||le>=65&&le<=90||le>=97&&le<=122||le>=48&&le<=57||le===92||le>=128&&h.NonAsciiIdentifierPart.test(String.fromCharCode(le))}function F(le){switch(le){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function R(le){switch(le){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function M(le){return le==="eval"||le==="arguments"}function j(le){if(m&&R(le))return!0;switch(le.length){case 2:return le==="if"||le==="in"||le==="do";case 3:return le==="var"||le==="for"||le==="new"||le==="try"||le==="let";case 4:return le==="this"||le==="else"||le==="case"||le==="void"||le==="with"||le==="enum";case 5:return le==="while"||le==="break"||le==="catch"||le==="throw"||le==="const"||le==="yield"||le==="class"||le==="super";case 6:return le==="return"||le==="typeof"||le==="delete"||le==="switch"||le==="export"||le==="import";case 7:return le==="default"||le==="finally"||le==="extends";case 8:return le==="function"||le==="continue"||le==="debugger";case 10:return le==="instanceof";default:return!1}}function W(le,_e,Ve,qe,bt){var Pt;A(typeof Ve=="number","Comment must have valid position"),!(w.lastCommentStart>=Ve)&&(w.lastCommentStart=Ve,Pt={type:le,value:_e},S.range&&(Pt.range=[Ve,qe]),S.loc&&(Pt.loc=bt),S.comments.push(Pt),S.attachComment&&(S.leadingComments.push(Pt),S.trailingComments.push(Pt)))}function L(le){var _e,Ve,qe,bt;for(_e=p-le,Ve={start:{line:g,column:p-y-le}};p<b;)if(qe=v.charCodeAt(p),++p,O(qe)){S.comments&&(bt=v.slice(_e+le,p-1),Ve.end={line:g,column:p-y-1},W("Line",bt,_e,p-1,Ve)),qe===13&&v.charCodeAt(p)===10&&++p,++g,y=p;return}S.comments&&(bt=v.slice(_e+le,p),Ve.end={line:g,column:p-y},W("Line",bt,_e,p,Ve))}function U(){var le,_e,Ve,qe;for(S.comments&&(le=p-2,_e={start:{line:g,column:p-y-2}});p<b;)if(Ve=v.charCodeAt(p),O(Ve))Ve===13&&v.charCodeAt(p+1)===10&&++p,++g,++p,y=p,p>=b&&Ce({},f.UnexpectedToken,"ILLEGAL");else if(Ve===42){if(v.charCodeAt(p+1)===47){++p,++p,S.comments&&(qe=v.slice(le+2,p-2),_e.end={line:g,column:p-y},W("Block",qe,le,p,_e));return}++p}else++p;Ce({},f.UnexpectedToken,"ILLEGAL")}function K(){var le,_e;for(_e=p===0;p<b;)if(le=v.charCodeAt(p),k(le))++p;else if(O(le))++p,le===13&&v.charCodeAt(p)===10&&++p,++g,y=p,_e=!0;else if(le===47)if(le=v.charCodeAt(p+1),le===47)++p,++p,L(2),_e=!0;else if(le===42)++p,++p,U();else break;else if(_e&&le===45)if(v.charCodeAt(p+1)===45&&v.charCodeAt(p+2)===62)p+=3,L(3);else break;else if(le===60)if(v.slice(p+1,p+4)==="!--")++p,++p,++p,++p,L(4);else break;else break}function J(le){var _e,Ve,qe,bt=0;for(Ve=le==="u"?4:2,_e=0;_e<Ve;++_e)if(p<b&&C(v[p]))qe=v[p++],bt=bt*16+"0123456789abcdef".indexOf(qe.toLowerCase());else return"";return String.fromCharCode(bt)}function Q(){var le,_e;for(le=v.charCodeAt(p++),_e=String.fromCharCode(le),le===92&&(v.charCodeAt(p)!==117&&Ce({},f.UnexpectedToken,"ILLEGAL"),++p,le=J("u"),(!le||le==="\\"||!I(le.charCodeAt(0)))&&Ce({},f.UnexpectedToken,"ILLEGAL"),_e=le);p<b&&(le=v.charCodeAt(p),!!N(le));)++p,_e+=String.fromCharCode(le),le===92&&(_e=_e.substr(0,_e.length-1),v.charCodeAt(p)!==117&&Ce({},f.UnexpectedToken,"ILLEGAL"),++p,le=J("u"),(!le||le==="\\"||!N(le.charCodeAt(0)))&&Ce({},f.UnexpectedToken,"ILLEGAL"),_e+=le);return _e}function q(){var le,_e;for(le=p++;p<b;){if(_e=v.charCodeAt(p),_e===92)return p=le,Q();if(N(_e))++p;else break}return v.slice(le,p)}function ue(){var le,_e,Ve;return le=p,_e=v.charCodeAt(p)===92?Q():q(),_e.length===1?Ve=i.Identifier:j(_e)?Ve=i.Keyword:_e==="null"?Ve=i.NullLiteral:_e==="true"||_e==="false"?Ve=i.BooleanLiteral:Ve=i.Identifier,{type:Ve,value:_e,lineNumber:g,lineStart:y,start:le,end:p}}function te(){var le=p,_e=v.charCodeAt(p),Ve,qe=v[p],bt,Pt,we;switch(_e){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++p,S.tokenize&&(_e===40?S.openParenToken=S.tokens.length:_e===123&&(S.openCurlyToken=S.tokens.length)),{type:i.Punctuator,value:String.fromCharCode(_e),lineNumber:g,lineStart:y,start:le,end:p};default:if(Ve=v.charCodeAt(p+1),Ve===61)switch(_e){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return p+=2,{type:i.Punctuator,value:String.fromCharCode(_e)+String.fromCharCode(Ve),lineNumber:g,lineStart:y,start:le,end:p};case 33:case 61:return p+=2,v.charCodeAt(p)===61&&++p,{type:i.Punctuator,value:v.slice(le,p),lineNumber:g,lineStart:y,start:le,end:p}}}if(we=v.substr(p,4),we===">>>=")return p+=4,{type:i.Punctuator,value:we,lineNumber:g,lineStart:y,start:le,end:p};if(Pt=we.substr(0,3),Pt===">>>"||Pt==="<<="||Pt===">>=")return p+=3,{type:i.Punctuator,value:Pt,lineNumber:g,lineStart:y,start:le,end:p};if(bt=Pt.substr(0,2),qe===bt[1]&&"+-<>&|".indexOf(qe)>=0||bt==="=>")return p+=2,{type:i.Punctuator,value:bt,lineNumber:g,lineStart:y,start:le,end:p};if("<>=!+-*%&|^/".indexOf(qe)>=0)return++p,{type:i.Punctuator,value:qe,lineNumber:g,lineStart:y,start:le,end:p};Ce({},f.UnexpectedToken,"ILLEGAL")}function ne(le){for(var _e="";p<b&&C(v[p]);)_e+=v[p++];return _e.length===0&&Ce({},f.UnexpectedToken,"ILLEGAL"),I(v.charCodeAt(p))&&Ce({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseInt("0x"+_e,16),lineNumber:g,lineStart:y,start:le,end:p}}function ie(le){for(var _e="0"+v[p++];p<b&&D(v[p]);)_e+=v[p++];return(I(v.charCodeAt(p))||P(v.charCodeAt(p)))&&Ce({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseInt(_e,8),octal:!0,lineNumber:g,lineStart:y,start:le,end:p}}function de(){var le,_e,Ve;if(Ve=v[p],A(P(Ve.charCodeAt(0))||Ve===".","Numeric literal must start with a decimal digit or a decimal point"),_e=p,le="",Ve!=="."){if(le=v[p++],Ve=v[p],le==="0"){if(Ve==="x"||Ve==="X")return++p,ne(_e);if(D(Ve))return ie(_e);Ve&&P(Ve.charCodeAt(0))&&Ce({},f.UnexpectedToken,"ILLEGAL")}for(;P(v.charCodeAt(p));)le+=v[p++];Ve=v[p]}if(Ve==="."){for(le+=v[p++];P(v.charCodeAt(p));)le+=v[p++];Ve=v[p]}if(Ve==="e"||Ve==="E")if(le+=v[p++],Ve=v[p],(Ve==="+"||Ve==="-")&&(le+=v[p++]),P(v.charCodeAt(p)))for(;P(v.charCodeAt(p));)le+=v[p++];else Ce({},f.UnexpectedToken,"ILLEGAL");return I(v.charCodeAt(p))&&Ce({},f.UnexpectedToken,"ILLEGAL"),{type:i.NumericLiteral,value:parseFloat(le),lineNumber:g,lineStart:y,start:_e,end:p}}function G(){var le="",_e,Ve,qe,bt,Pt,we,ke=!1,je,nt;for(je=g,nt=y,_e=v[p],A(_e==="'"||_e==='"',"String literal must starts with a quote"),Ve=p,++p;p<b;)if(qe=v[p++],qe===_e){_e="";break}else if(qe==="\\")if(qe=v[p++],!qe||!O(qe.charCodeAt(0)))switch(qe){case"u":case"x":we=p,Pt=J(qe),Pt?le+=Pt:(p=we,le+=qe);break;case"n":le+=`
70
70
  `;break;case"r":le+="\r";break;case"t":le+=" ";break;case"b":le+="\b";break;case"f":le+="\f";break;case"v":le+="\v";break;default:D(qe)?(bt="01234567".indexOf(qe),bt!==0&&(ke=!0),p<b&&D(v[p])&&(ke=!0,bt=bt*8+"01234567".indexOf(v[p++]),"0123".indexOf(qe)>=0&&p<b&&D(v[p])&&(bt=bt*8+"01234567".indexOf(v[p++]))),le+=String.fromCharCode(bt)):le+=qe;break}else++g,qe==="\r"&&v[p]===`
71
71
  `&&++p,y=p;else{if(O(qe.charCodeAt(0)))break;le+=qe}return _e!==""&&Ce({},f.UnexpectedToken,"ILLEGAL"),{type:i.StringLiteral,value:le,octal:ke,startLineNumber:je,startLineStart:nt,lineNumber:g,lineStart:y,start:Ve,end:p}}function Z(le,_e){var Ve;try{Ve=new RegExp(le,_e)}catch{Ce({},f.InvalidRegExp)}return Ve}function re(){var le,_e,Ve,qe,bt;for(le=v[p],A(le==="/","Regular expression literal must start with a slash"),_e=v[p++],Ve=!1,qe=!1;p<b;)if(le=v[p++],_e+=le,le==="\\")le=v[p++],O(le.charCodeAt(0))&&Ce({},f.UnterminatedRegExp),_e+=le;else if(O(le.charCodeAt(0)))Ce({},f.UnterminatedRegExp);else if(Ve)le==="]"&&(Ve=!1);else if(le==="/"){qe=!0;break}else le==="["&&(Ve=!0);return qe||Ce({},f.UnterminatedRegExp),bt=_e.substr(1,_e.length-2),{value:bt,literal:_e}}function ce(){var le,_e,Ve,qe;for(_e="",Ve="";p<b&&(le=v[p],!!N(le.charCodeAt(0)));)if(++p,le==="\\"&&p<b)if(le=v[p],le==="u"){if(++p,qe=p,le=J("u"),le)for(Ve+=le,_e+="\\u";qe<p;++qe)_e+=v[qe];else p=qe,Ve+="u",_e+="\\u";Oe({},f.UnexpectedToken,"ILLEGAL")}else _e+="\\",Oe({},f.UnexpectedToken,"ILLEGAL");else Ve+=le,_e+=le;return{value:Ve,literal:_e}}function fe(){var le,_e,Ve,qe;return E=null,K(),le=p,_e=re(),Ve=ce(),qe=Z(_e.value,Ve.value),S.tokenize?{type:i.RegularExpression,value:qe,lineNumber:g,lineStart:y,start:le,end:p}:{literal:_e.literal+Ve.literal,value:qe,start:le,end:p}}function me(){var le,_e,Ve,qe;return K(),le=p,_e={start:{line:g,column:p-y}},Ve=fe(),_e.end={line:g,column:p-y},S.tokenize||(S.tokens.length>0&&(qe=S.tokens[S.tokens.length-1],qe.range[0]===le&&qe.type==="Punctuator"&&(qe.value==="/"||qe.value==="/=")&&S.tokens.pop()),S.tokens.push({type:"RegularExpression",value:Ve.literal,range:[le,p],loc:_e})),Ve}function pe(le){return le.type===i.Identifier||le.type===i.Keyword||le.type===i.BooleanLiteral||le.type===i.NullLiteral}function Ee(){var le,_e;if(le=S.tokens[S.tokens.length-1],!le)return me();if(le.type==="Punctuator"){if(le.value==="]")return te();if(le.value===")")return _e=S.tokens[S.openParenToken-1],_e&&_e.type==="Keyword"&&(_e.value==="if"||_e.value==="while"||_e.value==="for"||_e.value==="with")?me():te();if(le.value==="}"){if(S.tokens[S.openCurlyToken-3]&&S.tokens[S.openCurlyToken-3].type==="Keyword"){if(_e=S.tokens[S.openCurlyToken-4],!_e)return te()}else if(S.tokens[S.openCurlyToken-4]&&S.tokens[S.openCurlyToken-4].type==="Keyword"){if(_e=S.tokens[S.openCurlyToken-5],!_e)return me()}else return te();return s.indexOf(_e.value)>=0?te():me()}return me()}return le.type==="Keyword"?me():te()}function Te(){var le;return K(),p>=b?{type:i.EOF,lineNumber:g,lineStart:y,start:p,end:p}:(le=v.charCodeAt(p),I(le)?ue():le===40||le===41||le===59?te():le===39||le===34?G():le===46?P(v.charCodeAt(p+1))?de():te():P(le)?de():S.tokenize&&le===47?Ee():te())}function Ne(){var le,_e,Ve;return K(),le={start:{line:g,column:p-y}},_e=Te(),le.end={line:g,column:p-y},_e.type!==i.EOF&&(Ve=v.slice(_e.start,_e.end),S.tokens.push({type:c[_e.type],value:Ve,range:[_e.start,_e.end],loc:le})),_e}function Re(){var le;return le=E,p=le.end,g=le.lineNumber,y=le.lineStart,E=typeof S.tokens<"u"?Ne():Te(),p=le.end,g=le.lineNumber,y=le.lineStart,le}function X(){var le,_e,Ve;le=p,_e=g,Ve=y,E=typeof S.tokens<"u"?Ne():Te(),p=le,g=_e,y=Ve}function Y(le,_e){this.line=le,this.column=_e}function ee(le,_e,Ve,qe){this.start=new Y(le,_e),this.end=new Y(Ve,qe)}d={name:"SyntaxTree",processComment:function(le){var _e,Ve;if(!(le.type===l.Program&&le.body.length>0)){for(S.trailingComments.length>0?S.trailingComments[0].range[0]>=le.range[1]?(Ve=S.trailingComments,S.trailingComments=[]):S.trailingComments.length=0:S.bottomRightStack.length>0&&S.bottomRightStack[S.bottomRightStack.length-1].trailingComments&&S.bottomRightStack[S.bottomRightStack.length-1].trailingComments[0].range[0]>=le.range[1]&&(Ve=S.bottomRightStack[S.bottomRightStack.length-1].trailingComments,delete S.bottomRightStack[S.bottomRightStack.length-1].trailingComments);S.bottomRightStack.length>0&&S.bottomRightStack[S.bottomRightStack.length-1].range[0]>=le.range[0];)_e=S.bottomRightStack.pop();_e?_e.leadingComments&&_e.leadingComments[_e.leadingComments.length-1].range[1]<=le.range[0]&&(le.leadingComments=_e.leadingComments,delete _e.leadingComments):S.leadingComments.length>0&&S.leadingComments[S.leadingComments.length-1].range[1]<=le.range[0]&&(le.leadingComments=S.leadingComments,S.leadingComments=[]),Ve&&(le.trailingComments=Ve),S.bottomRightStack.push(le)}},markEnd:function(le,_e){return S.range&&(le.range=[_e.start,p]),S.loc&&(le.loc=new ee(_e.startLineNumber===void 0?_e.lineNumber:_e.startLineNumber,_e.start-(_e.startLineStart===void 0?_e.lineStart:_e.startLineStart),g,p-y),this.postProcess(le)),S.attachComment&&this.processComment(le),le},postProcess:function(le){return S.source&&(le.loc.source=S.source),le},createArrayExpression:function(le){return{type:l.ArrayExpression,elements:le}},createAssignmentExpression:function(le,_e,Ve){return{type:l.AssignmentExpression,operator:le,left:_e,right:Ve}},createBinaryExpression:function(le,_e,Ve){var qe=le==="||"||le==="&&"?l.LogicalExpression:l.BinaryExpression;return{type:qe,operator:le,left:_e,right:Ve}},createBlockStatement:function(le){return{type:l.BlockStatement,body:le}},createBreakStatement:function(le){return{type:l.BreakStatement,label:le}},createCallExpression:function(le,_e){return{type:l.CallExpression,callee:le,arguments:_e}},createCatchClause:function(le,_e){return{type:l.CatchClause,param:le,body:_e}},createConditionalExpression:function(le,_e,Ve){return{type:l.ConditionalExpression,test:le,consequent:_e,alternate:Ve}},createContinueStatement:function(le){return{type:l.ContinueStatement,label:le}},createDebuggerStatement:function(){return{type:l.DebuggerStatement}},createDoWhileStatement:function(le,_e){return{type:l.DoWhileStatement,body:le,test:_e}},createEmptyStatement:function(){return{type:l.EmptyStatement}},createExpressionStatement:function(le){return{type:l.ExpressionStatement,expression:le}},createForStatement:function(le,_e,Ve,qe){return{type:l.ForStatement,init:le,test:_e,update:Ve,body:qe}},createForInStatement:function(le,_e,Ve){return{type:l.ForInStatement,left:le,right:_e,body:Ve,each:!1}},createFunctionDeclaration:function(le,_e,Ve,qe){return{type:l.FunctionDeclaration,id:le,params:_e,defaults:Ve,body:qe,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(le,_e,Ve,qe){return{type:l.FunctionExpression,id:le,params:_e,defaults:Ve,body:qe,rest:null,generator:!1,expression:!1}},createIdentifier:function(le){return{type:l.Identifier,name:le}},createIfStatement:function(le,_e,Ve){return{type:l.IfStatement,test:le,consequent:_e,alternate:Ve}},createLabeledStatement:function(le,_e){return{type:l.LabeledStatement,label:le,body:_e}},createLiteral:function(le){return{type:l.Literal,value:le.value,raw:v.slice(le.start,le.end)}},createMemberExpression:function(le,_e,Ve){return{type:l.MemberExpression,computed:le==="[",object:_e,property:Ve}},createNewExpression:function(le,_e){return{type:l.NewExpression,callee:le,arguments:_e}},createObjectExpression:function(le){return{type:l.ObjectExpression,properties:le}},createPostfixExpression:function(le,_e){return{type:l.UpdateExpression,operator:le,argument:_e,prefix:!1}},createProgram:function(le){return{type:l.Program,body:le}},createProperty:function(le,_e,Ve){return{type:l.Property,key:_e,value:Ve,kind:le}},createReturnStatement:function(le){return{type:l.ReturnStatement,argument:le}},createSequenceExpression:function(le){return{type:l.SequenceExpression,expressions:le}},createSwitchCase:function(le,_e){return{type:l.SwitchCase,test:le,consequent:_e}},createSwitchStatement:function(le,_e){return{type:l.SwitchStatement,discriminant:le,cases:_e}},createThisExpression:function(){return{type:l.ThisExpression}},createThrowStatement:function(le){return{type:l.ThrowStatement,argument:le}},createTryStatement:function(le,_e,Ve,qe){return{type:l.TryStatement,block:le,guardedHandlers:_e,handlers:Ve,finalizer:qe}},createUnaryExpression:function(le,_e){return le==="++"||le==="--"?{type:l.UpdateExpression,operator:le,argument:_e,prefix:!0}:{type:l.UnaryExpression,operator:le,argument:_e,prefix:!0}},createVariableDeclaration:function(le,_e){return{type:l.VariableDeclaration,declarations:le,kind:_e}},createVariableDeclarator:function(le,_e){return{type:l.VariableDeclarator,id:le,init:_e}},createWhileStatement:function(le,_e){return{type:l.WhileStatement,test:le,body:_e}},createWithStatement:function(le,_e){return{type:l.WithStatement,object:le,body:_e}}};function ve(){var le,_e,Ve,qe;return le=p,_e=g,Ve=y,K(),qe=g!==_e,p=le,g=_e,y=Ve,qe}function Ce(le,_e){var Ve,qe=Array.prototype.slice.call(arguments,2),bt=_e.replace(/%(\d)/g,function(Pt,we){return A(we<qe.length,"Message reference must be in range"),qe[we]});throw typeof le.lineNumber=="number"?(Ve=new Error("Line "+le.lineNumber+": "+bt),Ve.index=le.start,Ve.lineNumber=le.lineNumber,Ve.column=le.start-y+1):(Ve=new Error("Line "+g+": "+bt),Ve.index=p,Ve.lineNumber=g,Ve.column=p-y+1),Ve.description=bt,Ve}function Oe(){try{Ce.apply(null,arguments)}catch(le){if(S.errors)S.errors.push(le);else throw le}}function Ie(le){if(le.type===i.EOF&&Ce(le,f.UnexpectedEOS),le.type===i.NumericLiteral&&Ce(le,f.UnexpectedNumber),le.type===i.StringLiteral&&Ce(le,f.UnexpectedString),le.type===i.Identifier&&Ce(le,f.UnexpectedIdentifier),le.type===i.Keyword){if(F(le.value))Ce(le,f.UnexpectedReserved);else if(m&&R(le.value)){Oe(le,f.StrictReservedWord);return}Ce(le,f.UnexpectedToken,le.value)}Ce(le,f.UnexpectedToken,le.value)}function Be(le){var _e=Re();(_e.type!==i.Punctuator||_e.value!==le)&&Ie(_e)}function We(le){var _e=Re();(_e.type!==i.Keyword||_e.value!==le)&&Ie(_e)}function ze(le){return E.type===i.Punctuator&&E.value===le}function Xe(le){return E.type===i.Keyword&&E.value===le}function it(){var le;return E.type!==i.Punctuator?!1:(le=E.value,le==="="||le==="*="||le==="/="||le==="%="||le==="+="||le==="-="||le==="<<="||le===">>="||le===">>>="||le==="&="||le==="^="||le==="|=")}function Bt(){var le;if(v.charCodeAt(p)===59||ze(";")){Re();return}le=g,K(),g===le&&E.type!==i.EOF&&!ze("}")&&Ie(E)}function yt(le){return le.type===l.Identifier||le.type===l.MemberExpression}function Rt(){var le=[],_e;for(_e=E,Be("[");!ze("]");)ze(",")?(Re(),le.push(null)):(le.push(jr()),ze("]")||Be(","));return Re(),_.markEnd(_.createArrayExpression(le),_e)}function kt(le,_e){var Ve,qe,bt;return Ve=m,bt=E,qe=Gt(),_e&&m&&M(le[0].name)&&Oe(_e,f.StrictParamName),m=Ve,_.markEnd(_.createFunctionExpression(null,le,[],qe),bt)}function At(){var le,_e;return _e=E,le=Re(),le.type===i.StringLiteral||le.type===i.NumericLiteral?(m&&le.octal&&Oe(le,f.StrictOctalLiteral),_.markEnd(_.createLiteral(le),_e)):_.markEnd(_.createIdentifier(le.value),_e)}function ft(){var le,_e,Ve,qe,bt,Pt;if(le=E,Pt=E,le.type===i.Identifier)return Ve=At(),le.value==="get"&&!ze(":")?(_e=At(),Be("("),Be(")"),qe=kt([]),_.markEnd(_.createProperty("get",_e,qe),Pt)):le.value==="set"&&!ze(":")?(_e=At(),Be("("),le=E,le.type!==i.Identifier?(Be(")"),Oe(le,f.UnexpectedToken,le.value),qe=kt([])):(bt=[zi()],Be(")"),qe=kt(bt,le)),_.markEnd(_.createProperty("set",_e,qe),Pt)):(Be(":"),qe=jr(),_.markEnd(_.createProperty("init",Ve,qe),Pt));if(le.type===i.EOF||le.type===i.Punctuator)Ie(le);else return _e=At(),Be(":"),qe=jr(),_.markEnd(_.createProperty("init",_e,qe),Pt)}function Sn(){var le=[],_e,Ve,qe,bt,Pt={},we=String,ke;for(ke=E,Be("{");!ze("}");)_e=ft(),_e.key.type===l.Identifier?Ve=_e.key.name:Ve=we(_e.key.value),bt=_e.kind==="init"?u.Data:_e.kind==="get"?u.Get:u.Set,qe="$"+Ve,Object.prototype.hasOwnProperty.call(Pt,qe)?(Pt[qe]===u.Data?m&&bt===u.Data?Oe({},f.StrictDuplicateProperty):bt!==u.Data&&Oe({},f.AccessorDataProperty):bt===u.Data?Oe({},f.AccessorDataProperty):Pt[qe]&bt&&Oe({},f.AccessorGetSet),Pt[qe]|=bt):Pt[qe]=bt,le.push(_e),ze("}")||Be(",");return Be("}"),_.markEnd(_.createObjectExpression(le),ke)}function rt(){var le;return Be("("),le=yr(),Be(")"),le}function lt(){var le,_e,Ve,qe;if(ze("("))return rt();if(ze("["))return Rt();if(ze("{"))return Sn();if(le=E.type,qe=E,le===i.Identifier)Ve=_.createIdentifier(Re().value);else if(le===i.StringLiteral||le===i.NumericLiteral)m&&E.octal&&Oe(E,f.StrictOctalLiteral),Ve=_.createLiteral(Re());else if(le===i.Keyword){if(Xe("function"))return Wn();Xe("this")?(Re(),Ve=_.createThisExpression()):Ie(Re())}else le===i.BooleanLiteral?(_e=Re(),_e.value=_e.value==="true",Ve=_.createLiteral(_e)):le===i.NullLiteral?(_e=Re(),_e.value=null,Ve=_.createLiteral(_e)):ze("/")||ze("/=")?(typeof S.tokens<"u"?Ve=_.createLiteral(me()):Ve=_.createLiteral(fe()),X()):Ie(Re());return _.markEnd(Ve,qe)}function ae(){var le=[];if(Be("("),!ze(")"))for(;p<b&&(le.push(jr()),!ze(")"));)Be(",");return Be(")"),le}function Pe(){var le,_e;return _e=E,le=Re(),pe(le)||Ie(le),_.markEnd(_.createIdentifier(le.value),_e)}function Ae(){return Be("."),Pe()}function Fe(){var le;return Be("["),le=yr(),Be("]"),le}function Ue(){var le,_e,Ve;return Ve=E,We("new"),le=Et(),_e=ze("(")?ae():[],_.markEnd(_.createNewExpression(le,_e),Ve)}function ut(){var le,_e,Ve,qe,bt;for(bt=E,le=w.allowIn,w.allowIn=!0,_e=Xe("new")?Ue():lt(),w.allowIn=le;;){if(ze("."))qe=Ae(),_e=_.createMemberExpression(".",_e,qe);else if(ze("("))Ve=ae(),_e=_.createCallExpression(_e,Ve);else if(ze("["))qe=Fe(),_e=_.createMemberExpression("[",_e,qe);else break;_.markEnd(_e,bt)}return _e}function Et(){var le,_e,Ve,qe;for(qe=E,le=w.allowIn,_e=Xe("new")?Ue():lt(),w.allowIn=le;ze(".")||ze("[");)ze("[")?(Ve=Fe(),_e=_.createMemberExpression("[",_e,Ve)):(Ve=Ae(),_e=_.createMemberExpression(".",_e,Ve)),_.markEnd(_e,qe);return _e}function It(){var le,_e,Ve=E;return le=ut(),E.type===i.Punctuator&&(ze("++")||ze("--"))&&!ve()&&(m&&le.type===l.Identifier&&M(le.name)&&Oe({},f.StrictLHSPostfix),yt(le)||Oe({},f.InvalidLHSInAssignment),_e=Re(),le=_.markEnd(_.createPostfixExpression(_e.value,le),Ve)),le}function Kt(){var le,_e,Ve;return E.type!==i.Punctuator&&E.type!==i.Keyword?_e=It():ze("++")||ze("--")?(Ve=E,le=Re(),_e=Kt(),m&&_e.type===l.Identifier&&M(_e.name)&&Oe({},f.StrictLHSPrefix),yt(_e)||Oe({},f.InvalidLHSInAssignment),_e=_.createUnaryExpression(le.value,_e),_e=_.markEnd(_e,Ve)):ze("+")||ze("-")||ze("~")||ze("!")?(Ve=E,le=Re(),_e=Kt(),_e=_.createUnaryExpression(le.value,_e),_e=_.markEnd(_e,Ve)):Xe("delete")||Xe("void")||Xe("typeof")?(Ve=E,le=Re(),_e=Kt(),_e=_.createUnaryExpression(le.value,_e),_e=_.markEnd(_e,Ve),m&&_e.operator==="delete"&&_e.argument.type===l.Identifier&&Oe({},f.StrictDelete)):_e=It(),_e}function Pn(le,_e){var Ve=0;if(le.type!==i.Punctuator&&le.type!==i.Keyword)return 0;switch(le.value){case"||":Ve=1;break;case"&&":Ve=2;break;case"|":Ve=3;break;case"^":Ve=4;break;case"&":Ve=5;break;case"==":case"!=":case"===":case"!==":Ve=6;break;case"<":case">":case"<=":case">=":case"instanceof":Ve=7;break;case"in":Ve=_e?7:0;break;case"<<":case">>":case">>>":Ve=8;break;case"+":case"-":Ve=9;break;case"*":case"/":case"%":Ve=11;break}return Ve}function gr(){var le,_e,Ve,qe,bt,Pt,we,ke,je,nt;if(le=E,je=Kt(),qe=E,bt=Pn(qe,w.allowIn),bt===0)return je;for(qe.prec=bt,Re(),_e=[le,E],we=Kt(),Pt=[je,qe,we];(bt=Pn(E,w.allowIn))>0;){for(;Pt.length>2&&bt<=Pt[Pt.length-2].prec;)we=Pt.pop(),ke=Pt.pop().value,je=Pt.pop(),Ve=_.createBinaryExpression(ke,je,we),_e.pop(),le=_e[_e.length-1],_.markEnd(Ve,le),Pt.push(Ve);qe=Re(),qe.prec=bt,Pt.push(qe),_e.push(E),Ve=Kt(),Pt.push(Ve)}for(nt=Pt.length-1,Ve=Pt[nt],_e.pop();nt>1;)Ve=_.createBinaryExpression(Pt[nt-1].value,Pt[nt-2],Ve),nt-=2,le=_e.pop(),_.markEnd(Ve,le);return Ve}function oi(){var le,_e,Ve,qe,bt;return bt=E,le=gr(),ze("?")&&(Re(),_e=w.allowIn,w.allowIn=!0,Ve=jr(),w.allowIn=_e,Be(":"),qe=jr(),le=_.createConditionalExpression(le,Ve,qe),_.markEnd(le,bt)),le}function jr(){var le,_e,Ve,qe,bt;return le=E,bt=E,qe=_e=oi(),it()&&(yt(_e)||Oe({},f.InvalidLHSInAssignment),m&&_e.type===l.Identifier&&M(_e.name)&&Oe(le,f.StrictLHSAssignment),le=Re(),Ve=jr(),qe=_.markEnd(_.createAssignmentExpression(le.value,_e,Ve),bt)),qe}function yr(){var le,_e=E;if(le=jr(),ze(",")){for(le=_.createSequenceExpression([le]);p<b&&ze(",");)Re(),le.expressions.push(jr());_.markEnd(le,_e)}return le}function sa(){for(var le=[],_e;p<b&&!(ze("}")||(_e=_r(),typeof _e>"u"));)le.push(_e);return le}function kr(){var le,_e;return _e=E,Be("{"),le=sa(),Be("}"),_.markEnd(_.createBlockStatement(le),_e)}function zi(){var le,_e;return _e=E,le=Re(),le.type!==i.Identifier&&Ie(le),_.markEnd(_.createIdentifier(le.value),_e)}function vo(le){var _e=null,Ve,qe;return qe=E,Ve=zi(),m&&M(Ve.name)&&Oe({},f.StrictVarName),le==="const"?(Be("="),_e=jr()):ze("=")&&(Re(),_e=jr()),_.markEnd(_.createVariableDeclarator(Ve,_e),qe)}function ei(le){var _e=[];do{if(_e.push(vo(le)),!ze(","))break;Re()}while(p<b);return _e}function no(){var le;return We("var"),le=ei(),Bt(),_.createVariableDeclaration(le,"var")}function Oo(le){var _e,Ve;return Ve=E,We(le),_e=ei(le),Bt(),_.markEnd(_.createVariableDeclaration(_e,le),Ve)}function ja(){return Be(";"),_.createEmptyStatement()}function bs(){var le=yr();return Bt(),_.createExpressionStatement(le)}function ct(){var le,_e,Ve;return We("if"),Be("("),le=yr(),Be(")"),_e=vn(),Xe("else")?(Re(),Ve=vn()):Ve=null,_.createIfStatement(le,_e,Ve)}function T(){var le,_e,Ve;return We("do"),Ve=w.inIteration,w.inIteration=!0,le=vn(),w.inIteration=Ve,We("while"),Be("("),_e=yr(),Be(")"),ze(";")&&Re(),_.createDoWhileStatement(le,_e)}function B(){var le,_e,Ve;return We("while"),Be("("),le=yr(),Be(")"),Ve=w.inIteration,w.inIteration=!0,_e=vn(),w.inIteration=Ve,_.createWhileStatement(le,_e)}function V(){var le,_e,Ve;return Ve=E,le=Re(),_e=ei(),_.markEnd(_.createVariableDeclaration(_e,le.value),Ve)}function H(){var le,_e,Ve,qe,bt,Pt,we;return le=_e=Ve=null,We("for"),Be("("),ze(";")?Re():(Xe("var")||Xe("let")?(w.allowIn=!1,le=V(),w.allowIn=!0,le.declarations.length===1&&Xe("in")&&(Re(),qe=le,bt=yr(),le=null)):(w.allowIn=!1,le=yr(),w.allowIn=!0,Xe("in")&&(yt(le)||Oe({},f.InvalidLHSInForIn),Re(),qe=le,bt=yr(),le=null)),typeof qe>"u"&&Be(";")),typeof qe>"u"&&(ze(";")||(_e=yr()),Be(";"),ze(")")||(Ve=yr())),Be(")"),we=w.inIteration,w.inIteration=!0,Pt=vn(),w.inIteration=we,typeof qe>"u"?_.createForStatement(le,_e,Ve,Pt):_.createForInStatement(qe,bt,Pt)}function $(){var le=null,_e;return We("continue"),v.charCodeAt(p)===59?(Re(),w.inIteration||Ce({},f.IllegalContinue),_.createContinueStatement(null)):ve()?(w.inIteration||Ce({},f.IllegalContinue),_.createContinueStatement(null)):(E.type===i.Identifier&&(le=zi(),_e="$"+le.name,Object.prototype.hasOwnProperty.call(w.labelSet,_e)||Ce({},f.UnknownLabel,le.name)),Bt(),le===null&&!w.inIteration&&Ce({},f.IllegalContinue),_.createContinueStatement(le))}function he(){var le=null,_e;return We("break"),v.charCodeAt(p)===59?(Re(),w.inIteration||w.inSwitch||Ce({},f.IllegalBreak),_.createBreakStatement(null)):ve()?(w.inIteration||w.inSwitch||Ce({},f.IllegalBreak),_.createBreakStatement(null)):(E.type===i.Identifier&&(le=zi(),_e="$"+le.name,Object.prototype.hasOwnProperty.call(w.labelSet,_e)||Ce({},f.UnknownLabel,le.name)),Bt(),le===null&&!(w.inIteration||w.inSwitch)&&Ce({},f.IllegalBreak),_.createBreakStatement(le))}function Se(){var le=null;return We("return"),w.inFunctionBody||Oe({},f.IllegalReturn),v.charCodeAt(p)===32&&I(v.charCodeAt(p+1))?(le=yr(),Bt(),_.createReturnStatement(le)):ve()?_.createReturnStatement(null):(ze(";")||!ze("}")&&E.type!==i.EOF&&(le=yr()),Bt(),_.createReturnStatement(le))}function Le(){var le,_e;return m&&(K(),Oe({},f.StrictModeWith)),We("with"),Be("("),le=yr(),Be(")"),_e=vn(),_.createWithStatement(le,_e)}function Je(){var le,_e=[],Ve,qe;for(qe=E,Xe("default")?(Re(),le=null):(We("case"),le=yr()),Be(":");p<b&&!(ze("}")||Xe("default")||Xe("case"));)Ve=vn(),_e.push(Ve);return _.markEnd(_.createSwitchCase(le,_e),qe)}function et(){var le,_e,Ve,qe,bt;if(We("switch"),Be("("),le=yr(),Be(")"),Be("{"),_e=[],ze("}"))return Re(),_.createSwitchStatement(le,_e);for(qe=w.inSwitch,w.inSwitch=!0,bt=!1;p<b&&!ze("}");)Ve=Je(),Ve.test===null&&(bt&&Ce({},f.MultipleDefaultsInSwitch),bt=!0),_e.push(Ve);return w.inSwitch=qe,Be("}"),_.createSwitchStatement(le,_e)}function gt(){var le;return We("throw"),ve()&&Ce({},f.NewlineAfterThrow),le=yr(),Bt(),_.createThrowStatement(le)}function dt(){var le,_e,Ve;return Ve=E,We("catch"),Be("("),ze(")")&&Ie(E),le=zi(),m&&M(le.name)&&Oe({},f.StrictCatchVariable),Be(")"),_e=kr(),_.markEnd(_.createCatchClause(le,_e),Ve)}function Ct(){var le,_e=[],Ve=null;return We("try"),le=kr(),Xe("catch")&&_e.push(dt()),Xe("finally")&&(Re(),Ve=kr()),_e.length===0&&!Ve&&Ce({},f.NoCatchOrFinally),_.createTryStatement(le,[],_e,Ve)}function rn(){return We("debugger"),Bt(),_.createDebuggerStatement()}function vn(){var le=E.type,_e,Ve,qe,bt;if(le===i.EOF&&Ie(E),le===i.Punctuator&&E.value==="{")return kr();if(bt=E,le===i.Punctuator)switch(E.value){case";":return _.markEnd(ja(),bt);case"(":return _.markEnd(bs(),bt)}if(le===i.Keyword)switch(E.value){case"break":return _.markEnd(he(),bt);case"continue":return _.markEnd($(),bt);case"debugger":return _.markEnd(rn(),bt);case"do":return _.markEnd(T(),bt);case"for":return _.markEnd(H(),bt);case"function":return _.markEnd(bn(),bt);case"if":return _.markEnd(ct(),bt);case"return":return _.markEnd(Se(),bt);case"switch":return _.markEnd(et(),bt);case"throw":return _.markEnd(gt(),bt);case"try":return _.markEnd(Ct(),bt);case"var":return _.markEnd(no(),bt);case"while":return _.markEnd(B(),bt);case"with":return _.markEnd(Le(),bt)}return _e=yr(),_e.type===l.Identifier&&ze(":")?(Re(),qe="$"+_e.name,Object.prototype.hasOwnProperty.call(w.labelSet,qe)&&Ce({},f.Redeclaration,"Label",_e.name),w.labelSet[qe]=!0,Ve=vn(),delete w.labelSet[qe],_.markEnd(_.createLabeledStatement(_e,Ve),bt)):(Bt(),_.markEnd(_.createExpressionStatement(_e),bt))}function Gt(){var le,_e=[],Ve,qe,bt,Pt,we,ke,je,nt;for(nt=E,Be("{");p<b&&!(E.type!==i.StringLiteral||(Ve=E,le=_r(),_e.push(le),le.expression.type!==l.Literal));)qe=v.slice(Ve.start+1,Ve.end-1),qe==="use strict"?(m=!0,bt&&Oe(bt,f.StrictOctalLiteral)):!bt&&Ve.octal&&(bt=Ve);for(Pt=w.labelSet,we=w.inIteration,ke=w.inSwitch,je=w.inFunctionBody,w.labelSet={},w.inIteration=!1,w.inSwitch=!1,w.inFunctionBody=!0;p<b&&!(ze("}")||(le=_r(),typeof le>"u"));)_e.push(le);return Be("}"),w.labelSet=Pt,w.inIteration=we,w.inSwitch=ke,w.inFunctionBody=je,_.markEnd(_.createBlockStatement(_e),nt)}function Jt(le){var _e,Ve=[],qe,bt,Pt,we,ke;if(Be("("),!ze(")"))for(Pt={};p<b&&(qe=E,_e=zi(),we="$"+qe.value,m?(M(qe.value)&&(bt=qe,ke=f.StrictParamName),Object.prototype.hasOwnProperty.call(Pt,we)&&(bt=qe,ke=f.StrictParamDupe)):le||(M(qe.value)?(le=qe,ke=f.StrictParamName):R(qe.value)?(le=qe,ke=f.StrictReservedWord):Object.prototype.hasOwnProperty.call(Pt,we)&&(le=qe,ke=f.StrictParamDupe)),Ve.push(_e),Pt[we]=!0,!ze(")"));)Be(",");return Be(")"),{params:Ve,stricted:bt,firstRestricted:le,message:ke}}function bn(){var le,_e=[],Ve,qe,bt,Pt,we,ke,je,nt;return nt=E,We("function"),qe=E,le=zi(),m?M(qe.value)&&Oe(qe,f.StrictFunctionName):M(qe.value)?(we=qe,ke=f.StrictFunctionName):R(qe.value)&&(we=qe,ke=f.StrictReservedWord),Pt=Jt(we),_e=Pt.params,bt=Pt.stricted,we=Pt.firstRestricted,Pt.message&&(ke=Pt.message),je=m,Ve=Gt(),m&&we&&Ce(we,ke),m&&bt&&Oe(bt,ke),m=je,_.markEnd(_.createFunctionDeclaration(le,_e,[],Ve),nt)}function Wn(){var le,_e=null,Ve,qe,bt,Pt,we=[],ke,je,nt;return nt=E,We("function"),ze("(")||(le=E,_e=zi(),m?M(le.value)&&Oe(le,f.StrictFunctionName):M(le.value)?(qe=le,bt=f.StrictFunctionName):R(le.value)&&(qe=le,bt=f.StrictReservedWord)),Pt=Jt(qe),we=Pt.params,Ve=Pt.stricted,qe=Pt.firstRestricted,Pt.message&&(bt=Pt.message),je=m,ke=Gt(),m&&qe&&Ce(qe,bt),m&&Ve&&Oe(Ve,bt),m=je,_.markEnd(_.createFunctionExpression(_e,we,[],ke),nt)}function _r(){if(E.type===i.Keyword)switch(E.value){case"const":case"let":return Oo(E.value);case"function":return bn();default:return vn()}if(E.type!==i.EOF)return vn()}function br(){for(var le,_e=[],Ve,qe,bt;p<b&&(Ve=E,!(Ve.type!==i.StringLiteral||(le=_r(),_e.push(le),le.expression.type!==l.Literal)));)qe=v.slice(Ve.start+1,Ve.end-1),qe==="use strict"?(m=!0,bt&&Oe(bt,f.StrictOctalLiteral)):!bt&&Ve.octal&&(bt=Ve);for(;p<b&&(le=_r(),!(typeof le>"u"));)_e.push(le);return _e}function ti(){var le,_e;return K(),X(),_e=E,m=!1,le=br(),_.markEnd(_.createProgram(le),_e)}function ht(){var le,_e,Ve,qe=[];for(le=0;le<S.tokens.length;++le)_e=S.tokens[le],Ve={type:_e.type,value:_e.value},S.range&&(Ve.range=_e.range),S.loc&&(Ve.loc=_e.loc),qe.push(Ve);S.tokens=qe}function $t(le,_e){var Ve,qe,bt;Ve=String,typeof le!="string"&&!(le instanceof String)&&(le=Ve(le)),_=d,v=le,p=0,g=v.length>0?1:0,y=0,b=v.length,E=null,w={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},S={},_e=_e||{},_e.tokens=!0,S.tokens=[],S.tokenize=!0,S.openParenToken=-1,S.openCurlyToken=-1,S.range=typeof _e.range=="boolean"&&_e.range,S.loc=typeof _e.loc=="boolean"&&_e.loc,typeof _e.comment=="boolean"&&_e.comment&&(S.comments=[]),typeof _e.tolerant=="boolean"&&_e.tolerant&&(S.errors=[]);try{if(X(),E.type===i.EOF)return S.tokens;for(qe=Re();E.type!==i.EOF;)try{qe=Re()}catch(Pt){if(qe=E,S.errors){S.errors.push(Pt);break}else throw Pt}ht(),bt=S.tokens,typeof S.comments<"u"&&(bt.comments=S.comments),typeof S.errors<"u"&&(bt.errors=S.errors)}catch(Pt){throw Pt}finally{S={}}return bt}function cn(le,_e){var Ve,qe;qe=String,typeof le!="string"&&!(le instanceof String)&&(le=qe(le)),_=d,v=le,p=0,g=v.length>0?1:0,y=0,b=v.length,E=null,w={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},S={},typeof _e<"u"&&(S.range=typeof _e.range=="boolean"&&_e.range,S.loc=typeof _e.loc=="boolean"&&_e.loc,S.attachComment=typeof _e.attachComment=="boolean"&&_e.attachComment,S.loc&&_e.source!==null&&_e.source!==void 0&&(S.source=qe(_e.source)),typeof _e.tokens=="boolean"&&_e.tokens&&(S.tokens=[]),typeof _e.comment=="boolean"&&_e.comment&&(S.comments=[]),typeof _e.tolerant=="boolean"&&_e.tolerant&&(S.errors=[]),S.attachComment&&(S.range=!0,S.comments=[],S.bottomRightStack=[],S.trailingComments=[],S.leadingComments=[]));try{Ve=ti(),typeof S.comments<"u"&&(Ve.comments=S.comments),typeof S.tokens<"u"&&(ht(),Ve.tokens=S.tokens),typeof S.errors<"u"&&(Ve.errors=S.errors)}catch(bt){throw bt}finally{S={}}return Ve}o.version="1.2.2",o.tokenize=$t,o.parse=cn,o.Syntax=function(){var le,_e={};typeof Object.create=="function"&&(_e=Object.create(null));for(le in l)l.hasOwnProperty(le)&&(_e[le]=l[le]);return typeof Object.freeze=="function"&&Object.freeze(_e),_e}()})},{}],1:[function(n,r,a){(function(o){var i=function(){var c={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(h,d,v,m,p,g,y){m.ast||(m.ast=s,s.initialize());var b=g.length-1;switch(p){case 1:return m.ast.set({expression:{type:"root",value:g[b]}}),m.ast.unshift(),m.ast.yield();case 2:return m.ast.set({expression:{type:"root",value:g[b-1]}}),m.ast.unshift(),m.ast.yield();case 3:return m.ast.unshift(),m.ast.yield();case 4:return m.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:g[b-1]}}),m.ast.unshift(),m.ast.yield();case 5:break;case 6:break;case 7:m.ast.set({operation:"member"}),m.ast.push();break;case 8:m.ast.set({operation:"subscript"}),m.ast.push();break;case 9:m.ast.set({scope:"child"});break;case 10:m.ast.set({scope:"descendant"});break;case 11:break;case 12:m.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:m.ast.set({expression:{type:"wildcard",value:g[b]}});break;case 15:m.ast.set({expression:{type:"identifier",value:g[b]}});break;case 16:m.ast.set({expression:{type:"script_expression",value:g[b]}});break;case 17:m.ast.set({expression:{type:"numeric_literal",value:parseInt(g[b])}});break;case 18:break;case 19:m.ast.set({scope:"child"});break;case 20:m.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:g[b].length>1?m.ast.set({expression:{type:"union",value:g[b]}}):this.$=g[b];break;case 25:this.$=[g[b]];break;case 26:this.$=g[b-2].concat(g[b]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(g[b])}},m.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:g[b]}},m.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:g[b]}},m.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:g[b]}},m.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:g[b]}},m.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:g[b]}},m.ast.set(this.$);break;case 33:this.$=g[b];break;case 34:this.$=g[b];break}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(h,d){if(d.recoverable)this.trace(h);else throw new Error(h)},parse:function(h){var d=this,v=[0],m=[null],p=[],g=this.table,y="",b=0,_=0,E=2,w=1,S=p.slice.call(arguments,1);this.lexer.setInput(h),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var A=this.lexer.yylloc;p.push(A);var P=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function C(){var L;return L=d.lexer.lex()||w,typeof L!="number"&&(L=d.symbols_[L]||L),L}for(var D,k,O,I,N={},F,R,M,j;;){if(k=v[v.length-1],this.defaultActions[k]?O=this.defaultActions[k]:((D===null||typeof D>"u")&&(D=C()),O=g[k]&&g[k][D]),typeof O>"u"||!O.length||!O[0]){var W="";j=[];for(F in g[k])this.terminals_[F]&&F>E&&j.push("'"+this.terminals_[F]+"'");this.lexer.showPosition?W="Parse error on line "+(b+1)+`:
72
72
  `+this.lexer.showPosition()+`
@@ -87,7 +87,7 @@ Expecting `+j.join(", ")+", got '"+(this.terminals_[D]||D)+"'":W="Parse error on
87
87
  `)+" "+Q[1]:Q[0]+J+" "+K.join(", ")+" "+Q[1]}function _(K){return Array.isArray(K)}a.isArray=_;function E(K){return typeof K=="boolean"}a.isBoolean=E;function w(K){return K===null}a.isNull=w;function S(K){return K==null}a.isNullOrUndefined=S;function A(K){return typeof K=="number"}a.isNumber=A;function P(K){return typeof K=="string"}a.isString=P;function C(K){return typeof K=="symbol"}a.isSymbol=C;function D(K){return K===void 0}a.isUndefined=D;function k(K){return O(K)&&M(K)==="[object RegExp]"}a.isRegExp=k;function O(K){return typeof K=="object"&&K!==null}a.isObject=O;function I(K){return O(K)&&M(K)==="[object Date]"}a.isDate=I;function N(K){return O(K)&&(M(K)==="[object Error]"||K instanceof Error)}a.isError=N;function F(K){return typeof K=="function"}a.isFunction=F;function R(K){return K===null||typeof K=="boolean"||typeof K=="number"||typeof K=="string"||typeof K=="symbol"||typeof K>"u"}a.isPrimitive=R,a.isBuffer=n("./support/isBuffer");function M(K){return Object.prototype.toString.call(K)}function j(K){return K<10?"0"+K.toString(10):K.toString(10)}var W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var K=new Date,J=[j(K.getHours()),j(K.getMinutes()),j(K.getSeconds())].join(":");return[K.getDate(),W[K.getMonth()],J].join(" ")}a.log=function(){console.log("%s - %s",L(),a.format.apply(a,arguments))},a.inherits=n("inherits"),a._extend=function(K,J){if(!J||!O(J))return K;for(var Q=Object.keys(J),q=Q.length;q--;)K[Q[q]]=J[Q[q]];return K};function U(K,J){return Object.prototype.hasOwnProperty.call(K,J)}}).call(this,n("_process"),typeof Jn<"u"?Jn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,r,a){},{}],13:[function(n,r,a){(function(o){function i(u,f){for(var h=0,d=u.length-1;d>=0;d--){var v=u[d];v==="."?u.splice(d,1):v===".."?(u.splice(d,1),h++):h&&(u.splice(d,1),h--)}if(f)for(;h--;h)u.unshift("..");return u}a.resolve=function(){for(var u="",f=!1,h=arguments.length-1;h>=-1&&!f;h--){var d=h>=0?arguments[h]:o.cwd();if(typeof d!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!d)continue;u=d+"/"+u,f=d.charAt(0)==="/"}return u=i(s(u.split("/"),function(v){return!!v}),!f).join("/"),(f?"/":"")+u||"."},a.normalize=function(u){var f=a.isAbsolute(u),h=l(u,-1)==="/";return u=i(s(u.split("/"),function(d){return!!d}),!f).join("/"),!u&&!f&&(u="."),u&&h&&(u+="/"),(f?"/":"")+u},a.isAbsolute=function(u){return u.charAt(0)==="/"},a.join=function(){var u=Array.prototype.slice.call(arguments,0);return a.normalize(s(u,function(f,h){if(typeof f!="string")throw new TypeError("Arguments to path.join must be strings");return f}).join("/"))},a.relative=function(u,f){u=a.resolve(u).substr(1),f=a.resolve(f).substr(1);function h(b){for(var _=0;_<b.length&&b[_]==="";_++);for(var E=b.length-1;E>=0&&b[E]==="";E--);return _>E?[]:b.slice(_,E-_+1)}for(var d=h(u.split("/")),v=h(f.split("/")),m=Math.min(d.length,v.length),p=m,g=0;g<m;g++)if(d[g]!==v[g]){p=g;break}for(var y=[],g=p;g<d.length;g++)y.push("..");return y=y.concat(v.slice(p)),y.join("/")},a.sep="/",a.delimiter=":",a.dirname=function(u){if(typeof u!="string"&&(u=u+""),u.length===0)return".";for(var f=u.charCodeAt(0),h=f===47,d=-1,v=!0,m=u.length-1;m>=1;--m)if(f=u.charCodeAt(m),f===47){if(!v){d=m;break}}else v=!1;return d===-1?h?"/":".":h&&d===1?"/":u.slice(0,d)};function c(u){typeof u!="string"&&(u=u+"");var f=0,h=-1,d=!0,v;for(v=u.length-1;v>=0;--v)if(u.charCodeAt(v)===47){if(!d){f=v+1;break}}else h===-1&&(d=!1,h=v+1);return h===-1?"":u.slice(f,h)}a.basename=function(u,f){var h=c(u);return f&&h.substr(-1*f.length)===f&&(h=h.substr(0,h.length-f.length)),h},a.extname=function(u){typeof u!="string"&&(u=u+"");for(var f=-1,h=0,d=-1,v=!0,m=0,p=u.length-1;p>=0;--p){var g=u.charCodeAt(p);if(g===47){if(!v){h=p+1;break}continue}d===-1&&(v=!1,d=p+1),g===46?f===-1?f=p:m!==1&&(m=1):f!==-1&&(m=-1)}return f===-1||d===-1||m===0||m===1&&f===d-1&&f===h+1?"":u.slice(f,d)};function s(u,f){if(u.filter)return u.filter(f);for(var h=[],d=0;d<u.length;d++)f(u[d],d,u)&&h.push(u[d]);return h}var l="ab".substr(-1)==="b"?function(u,f,h){return u.substr(f,h)}:function(u,f,h){return f<0&&(f=u.length+f),u.substr(f,h)}}).call(this,n("_process"))},{_process:14}],14:[function(n,r,a){var o=r.exports={},i,c;function s(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?i=setTimeout:i=s}catch{i=s}try{typeof clearTimeout=="function"?c=clearTimeout:c=l}catch{c=l}})();function u(_){if(i===setTimeout)return setTimeout(_,0);if((i===s||!i)&&setTimeout)return i=setTimeout,setTimeout(_,0);try{return i(_,0)}catch{try{return i.call(null,_,0)}catch{return i.call(this,_,0)}}}function f(_){if(c===clearTimeout)return clearTimeout(_);if((c===l||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(_);try{return c(_)}catch{try{return c.call(null,_)}catch{return c.call(this,_)}}}var h=[],d=!1,v,m=-1;function p(){!d||!v||(d=!1,v.length?h=v.concat(h):m=-1,h.length&&g())}function g(){if(!d){var _=u(p);d=!0;for(var E=h.length;E;){for(v=h,h=[];++m<E;)v&&v[m].run();m=-1,E=h.length}v=null,d=!1,f(_)}}o.nextTick=function(_){var E=new Array(arguments.length-1);if(arguments.length>1)for(var w=1;w<arguments.length;w++)E[w-1]=arguments[w];h.push(new y(_,E)),h.length===1&&!d&&u(g)};function y(_,E){this.fun=_,this.array=E}y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function b(){}o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(_){return[]},o.binding=function(_){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(_){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],15:[function(n,r,a){var o=n("escodegen").generate;r.exports=function(i,c){c||(c={});var s={},l=function u(f,h){if(f.type==="Literal")return f.value;if(f.type==="UnaryExpression"){var d=u(f.argument);return f.operator==="+"?+d:f.operator==="-"?-d:f.operator==="~"?~d:f.operator==="!"?!d:s}else if(f.type==="ArrayExpression"){for(var v=[],m=0,p=f.elements.length;m<p;m++){var g=u(f.elements[m]);if(g===s)return s;v.push(g)}return v}else if(f.type==="ObjectExpression"){for(var y={},m=0;m<f.properties.length;m++){var b=f.properties[m],_=b.value===null?b.value:u(b.value);if(_===s)return s;y[b.key.value||b.key.name]=_}return y}else if(f.type==="BinaryExpression"||f.type==="LogicalExpression"){var p=u(f.left);if(p===s)return s;var E=u(f.right);if(E===s)return s;var w=f.operator;return w==="=="?p==E:w==="==="?p===E:w==="!="?p!=E:w==="!=="?p!==E:w==="+"?p+E:w==="-"?p-E:w==="*"?p*E:w==="/"?p/E:w==="%"?p%E:w==="<"?p<E:w==="<="?p<=E:w===">"?p>E:w===">="?p>=E:w==="|"?p|E:w==="&"?p&E:w==="^"?p^E:w==="&&"?p&&E:w==="||"?p||E:s}else{if(f.type==="Identifier")return{}.hasOwnProperty.call(c,f.name)?c[f.name]:s;if(f.type==="ThisExpression")return{}.hasOwnProperty.call(c,"this")?c.this:s;if(f.type==="CallExpression"){var S=u(f.callee);if(S===s||typeof S!="function")return s;var A=f.callee.object?u(f.callee.object):s;A===s&&(A=null);for(var P=[],m=0,p=f.arguments.length;m<p;m++){var g=u(f.arguments[m]);if(g===s)return s;P.push(g)}return S.apply(A,P)}else if(f.type==="MemberExpression"){var y=u(f.object);if(y===s||typeof y=="function")return s;if(f.property.type==="Identifier")return y[f.property.name];var b=u(f.property);return b===s?s:y[b]}else if(f.type==="ConditionalExpression"){var d=u(f.test);return d===s?s:u(d?f.consequent:f.alternate)}else if(f.type==="ExpressionStatement"){var d=u(f.expression);return d===s?s:d}else{if(f.type==="ReturnStatement")return u(f.argument);if(f.type==="FunctionExpression"){var C=f.body.body,D={};Object.keys(c).forEach(function(W){D[W]=c[W]});for(var m=0;m<f.params.length;m++){var k=f.params[m];if(k.type=="Identifier")c[k.name]=null;else return s}for(var m in C)if(u(C[m])===s)return s;c=D;var O=Object.keys(c),I=O.map(function(W){return c[W]});return Function(O.join(", "),"return "+o(f)).apply(null,I)}else if(f.type==="TemplateLiteral"){for(var N="",m=0;m<f.expressions.length;m++)N+=u(f.quasis[m]),N+=u(f.expressions[m]);return N+=u(f.quasis[m]),N}else if(f.type==="TaggedTemplateExpression"){var F=u(f.tag),R=f.quasi,M=R.quasis.map(u),j=R.expressions.map(u);return F.apply(null,[M].concat(j))}else return f.type==="TemplateElement"?f.value.cooked:s}}}(i);return l===s?void 0:l}},{escodegen:12}],jsonpath:[function(n,r,a){r.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})})(nie);function rie(e,t,n){return t=f0(t),cie(e,NE()?Reflect.construct(t,n||[],f0(e).constructor):t.apply(e,n))}function iO(e,t,n){if(NE())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&p0(a,n.prototype),a}function NE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NE=function(){return!!e})()}function aO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function iie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aO(Object(n),!0).forEach(function(r){oie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oO(e){var t=aie(e,"string");return typeof t=="symbol"?t:t+""}function Go(e){return Go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Go(e)}function Gp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oO(r.key),r)}}function Kp(e,t,n){return t&&sO(e.prototype,t),n&&sO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oie(e,t,n){return t=oO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p0(e,t)}function f0(e){return f0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},f0(e)}function p0(e,t){return p0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},p0(e,t)}function lie(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function FE(e){var t=typeof Map=="function"?new Map:void 0;return FE=function(r){if(r===null||!lie(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return iO(r,arguments,f0(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),p0(a,r)},FE(e)}function uie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cie(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uie(e)}function ME(e){return fie(e)||pie(e)||lO(e)||hie()}function fie(e){if(Array.isArray(e))return LE(e)}function pie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lO(e,t){if(e){if(typeof e=="string")return LE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LE(e,t)}}function LE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
88
88
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function die(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=lO(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
89
89
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,i=!1,c;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return o=s.done,s},e:function(s){i=!0,c=s},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(i)throw c}}}}var vie=function(){function e(){Gp(this,e)}return Kp(e,[{key:"add",value:function(n,r,a){if(typeof arguments[0]!="string")for(var o in arguments[0])this.add(o,arguments[0][o],arguments[1]);else(Array.isArray(n)?n:[n]).forEach(function(i){this[i]=this[i]||[],r&&this[i][a?"unshift":"push"](r)},this)}},{key:"run",value:function(n,r){this[n]=this[n]||[],this[n].forEach(function(a){a.call(r&&r.context?r.context:r,r)})}}])}(),mie=function(){function e(t){Gp(this,e),this.jsep=t,this.registered={}}return Kp(e,[{key:"register",value:function(){for(var n=this,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];a.forEach(function(i){if(Go(i)!=="object"||!i.name||!i.init)throw new Error("Invalid JSEP plugin format");n.registered[i.name]||(i.init(n.jsep),n.registered[i.name]=i)})}}])}(),Ko=function(){function e(t){Gp(this,e),this.expr=t,this.index=0}return Kp(e,[{key:"char",get:function(){return this.expr.charAt(this.index)}},{key:"code",get:function(){return this.expr.charCodeAt(this.index)}},{key:"throwError",value:function(n){var r=new Error(n+" at character "+this.index);throw r.index=this.index,r.description=n,r}},{key:"runHook",value:function(n,r){if(e.hooks[n]){var a={context:this,node:r};return e.hooks.run(n,a),a.node}return r}},{key:"searchHook",value:function(n){if(e.hooks[n]){var r={context:this};return e.hooks[n].find(function(a){return a.call(r.context,r),r.node}),r.node}}},{key:"gobbleSpaces",value:function(){for(var n=this.code;n===e.SPACE_CODE||n===e.TAB_CODE||n===e.LF_CODE||n===e.CR_CODE;)n=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}},{key:"parse",value:function(){this.runHook("before-all");var n=this.gobbleExpressions(),r=n.length===1?n[0]:{type:e.COMPOUND,body:n};return this.runHook("after-all",r)}},{key:"gobbleExpressions",value:function(n){for(var r=[],a,o;this.index<this.expr.length;)if(a=this.code,a===e.SEMCOL_CODE||a===e.COMMA_CODE)this.index++;else if(o=this.gobbleExpression())r.push(o);else if(this.index<this.expr.length){if(a===n)break;this.throwError('Unexpected "'+this.char+'"')}return r}},{key:"gobbleExpression",value:function(){var n=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",n)}},{key:"gobbleBinaryOp",value:function(){this.gobbleSpaces();for(var n=this.expr.substr(this.index,e.max_binop_len),r=n.length;r>0;){if(e.binary_ops.hasOwnProperty(n)&&(!e.isIdentifierStart(this.code)||this.index+n.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+n.length))))return this.index+=r,n;n=n.substr(0,--r)}return!1}},{key:"gobbleBinaryExpression",value:function(){var n,r,a,o,i,c,s,l,u;if(c=this.gobbleToken(),!c||(r=this.gobbleBinaryOp(),!r))return c;for(i={value:r,prec:e.binaryPrecedence(r),right_a:e.right_associative.has(r)},s=this.gobbleToken(),s||this.throwError("Expected expression after "+r),o=[c,i,s];r=this.gobbleBinaryOp();){if(a=e.binaryPrecedence(r),a===0){this.index-=r.length;break}i={value:r,prec:a,right_a:e.right_associative.has(r)},u=r;for(var f=function(d){return i.right_a&&d.right_a?a>d.prec:a<=d.prec};o.length>2&&f(o[o.length-2]);)s=o.pop(),r=o.pop().value,c=o.pop(),n={type:e.BINARY_EXP,operator:r,left:c,right:s},o.push(n);n=this.gobbleToken(),n||this.throwError("Expected expression after "+u),o.push(i,n)}for(l=o.length-1,n=o[l];l>1;)n={type:e.BINARY_EXP,operator:o[l-1].value,left:o[l-2],right:n},l-=2;return n}},{key:"gobbleToken",value:function(){var n,r,a,o;if(this.gobbleSpaces(),o=this.searchHook("gobble-token"),o)return this.runHook("after-token",o);if(n=this.code,e.isDecimalDigit(n)||n===e.PERIOD_CODE)return this.gobbleNumericLiteral();if(n===e.SQUOTE_CODE||n===e.DQUOTE_CODE)o=this.gobbleStringLiteral();else if(n===e.OBRACK_CODE)o=this.gobbleArray();else{for(r=this.expr.substr(this.index,e.max_unop_len),a=r.length;a>0;){if(e.unary_ops.hasOwnProperty(r)&&(!e.isIdentifierStart(this.code)||this.index+r.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+r.length)))){this.index+=a;var i=this.gobbleToken();return i||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:e.UNARY_EXP,operator:r,argument:i,prefix:!0})}r=r.substr(0,--a)}e.isIdentifierStart(n)?(o=this.gobbleIdentifier(),e.literals.hasOwnProperty(o.name)?o={type:e.LITERAL,value:e.literals[o.name],raw:o.name}:o.name===e.this_str&&(o={type:e.THIS_EXP})):n===e.OPAREN_CODE&&(o=this.gobbleGroup())}return o?(o=this.gobbleTokenProperty(o),this.runHook("after-token",o)):this.runHook("after-token",!1)}},{key:"gobbleTokenProperty",value:function(n){this.gobbleSpaces();for(var r=this.code;r===e.PERIOD_CODE||r===e.OBRACK_CODE||r===e.OPAREN_CODE||r===e.QUMARK_CODE;){var a=void 0;if(r===e.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==e.PERIOD_CODE)break;a=!0,this.index+=2,this.gobbleSpaces(),r=this.code}this.index++,r===e.OBRACK_CODE?(n={type:e.MEMBER_EXP,computed:!0,object:n,property:this.gobbleExpression()},this.gobbleSpaces(),r=this.code,r!==e.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):r===e.OPAREN_CODE?n={type:e.CALL_EXP,arguments:this.gobbleArguments(e.CPAREN_CODE),callee:n}:(r===e.PERIOD_CODE||a)&&(a&&this.index--,this.gobbleSpaces(),n={type:e.MEMBER_EXP,computed:!1,object:n,property:this.gobbleIdentifier()}),a&&(n.optional=!0),this.gobbleSpaces(),r=this.code}return n}},{key:"gobbleNumericLiteral",value:function(){for(var n="",r,a;e.isDecimalDigit(this.code);)n+=this.expr.charAt(this.index++);if(this.code===e.PERIOD_CODE)for(n+=this.expr.charAt(this.index++);e.isDecimalDigit(this.code);)n+=this.expr.charAt(this.index++);if(r=this.char,r==="e"||r==="E"){for(n+=this.expr.charAt(this.index++),r=this.char,(r==="+"||r==="-")&&(n+=this.expr.charAt(this.index++));e.isDecimalDigit(this.code);)n+=this.expr.charAt(this.index++);e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+n+this.char+")")}return a=this.code,e.isIdentifierStart(a)?this.throwError("Variable names cannot start with a number ("+n+this.char+")"):(a===e.PERIOD_CODE||n.length===1&&n.charCodeAt(0)===e.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:e.LITERAL,value:parseFloat(n),raw:n}}},{key:"gobbleStringLiteral",value:function(){for(var n="",r=this.index,a=this.expr.charAt(this.index++),o=!1;this.index<this.expr.length;){var i=this.expr.charAt(this.index++);if(i===a){o=!0;break}else if(i==="\\")switch(i=this.expr.charAt(this.index++),i){case"n":n+=`
90
- `;break;case"r":n+="\r";break;case"t":n+=" ";break;case"b":n+="\b";break;case"f":n+="\f";break;case"v":n+="\v";break;default:n+=i}else n+=i}return o||this.throwError('Unclosed quote after "'+n+'"'),{type:e.LITERAL,value:n,raw:this.expr.substring(r,this.index)}}},{key:"gobbleIdentifier",value:function(){var n=this.code,r=this.index;for(e.isIdentifierStart(n)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(n=this.code,e.isIdentifierPart(n));)this.index++;return{type:e.IDENTIFIER,name:this.expr.slice(r,this.index)}}},{key:"gobbleArguments",value:function(n){for(var r=[],a=!1,o=0;this.index<this.expr.length;){this.gobbleSpaces();var i=this.code;if(i===n){a=!0,this.index++,n===e.CPAREN_CODE&&o&&o>=r.length&&this.throwError("Unexpected token "+String.fromCharCode(n));break}else if(i===e.COMMA_CODE){if(this.index++,o++,o!==r.length){if(n===e.CPAREN_CODE)this.throwError("Unexpected token ,");else if(n===e.CBRACK_CODE)for(var c=r.length;c<o;c++)r.push(null)}}else if(r.length!==o&&o!==0)this.throwError("Expected comma");else{var s=this.gobbleExpression();(!s||s.type===e.COMPOUND)&&this.throwError("Expected comma"),r.push(s)}}return a||this.throwError("Expected "+String.fromCharCode(n)),r}},{key:"gobbleGroup",value:function(){this.index++;var n=this.gobbleExpressions(e.CPAREN_CODE);if(this.code===e.CPAREN_CODE)return this.index++,n.length===1?n[0]:n.length?{type:e.SEQUENCE_EXP,expressions:n}:!1;this.throwError("Unclosed (")}},{key:"gobbleArray",value:function(){return this.index++,{type:e.ARRAY_EXP,elements:this.gobbleArguments(e.CBRACK_CODE)}}}],[{key:"version",get:function(){return"1.3.8"}},{key:"toString",value:function(){return"JavaScript Expression Parser (JSEP) v"+e.version}},{key:"addUnaryOp",value:function(n){return e.max_unop_len=Math.max(n.length,e.max_unop_len),e.unary_ops[n]=1,e}},{key:"addBinaryOp",value:function(n,r,a){return e.max_binop_len=Math.max(n.length,e.max_binop_len),e.binary_ops[n]=r,a?e.right_associative.add(n):e.right_associative.delete(n),e}},{key:"addIdentifierChar",value:function(n){return e.additional_identifier_chars.add(n),e}},{key:"addLiteral",value:function(n,r){return e.literals[n]=r,e}},{key:"removeUnaryOp",value:function(n){return delete e.unary_ops[n],n.length===e.max_unop_len&&(e.max_unop_len=e.getMaxKeyLen(e.unary_ops)),e}},{key:"removeAllUnaryOps",value:function(){return e.unary_ops={},e.max_unop_len=0,e}},{key:"removeIdentifierChar",value:function(n){return e.additional_identifier_chars.delete(n),e}},{key:"removeBinaryOp",value:function(n){return delete e.binary_ops[n],n.length===e.max_binop_len&&(e.max_binop_len=e.getMaxKeyLen(e.binary_ops)),e.right_associative.delete(n),e}},{key:"removeAllBinaryOps",value:function(){return e.binary_ops={},e.max_binop_len=0,e}},{key:"removeLiteral",value:function(n){return delete e.literals[n],e}},{key:"removeAllLiterals",value:function(){return e.literals={},e}},{key:"parse",value:function(n){return new e(n).parse()}},{key:"getMaxKeyLen",value:function(n){return Math.max.apply(Math,[0].concat(ME(Object.keys(n).map(function(r){return r.length}))))}},{key:"isDecimalDigit",value:function(n){return n>=48&&n<=57}},{key:"binaryPrecedence",value:function(n){return e.binary_ops[n]||0}},{key:"isIdentifierStart",value:function(n){return n>=65&&n<=90||n>=97&&n<=122||n>=128&&!e.binary_ops[String.fromCharCode(n)]||e.additional_identifier_chars.has(String.fromCharCode(n))}},{key:"isIdentifierPart",value:function(n){return e.isIdentifierStart(n)||e.isDecimalDigit(n)}}])}(),gie=new vie;Object.assign(Ko,{hooks:gie,plugins:new mie(Ko),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),Ko.max_unop_len=Ko.getMaxKeyLen(Ko.unary_ops),Ko.max_binop_len=Ko.getMaxKeyLen(Ko.binary_ops);var Xp=function(t){return new Ko(t).parse()},yie=Object.getOwnPropertyNames(Ko);yie.forEach(function(e){Xp[e]===void 0&&e!=="prototype"&&(Xp[e]=Ko[e])}),Xp.Jsep=Ko;var _ie="ConditionalExpression",bie={name:"ternary",init:function(t){t.hooks.add("after-expression",function(r){if(r.node&&this.code===t.QUMARK_CODE){this.index++;var a=r.node,o=this.gobbleExpression();if(o||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===t.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),r.node={type:_ie,test:a,consequent:o,alternate:i},a.operator&&t.binary_ops[a.operator]<=.9){for(var c=a;c.right.operator&&t.binary_ops[c.right.operator]<=.9;)c=c.right;r.node.test=c.right,c.right=r.node,r.node=a}}else this.throwError("Expected :")}})}};Xp.plugins.register(bie);var uO=47,xie=92,Eie={name:"regex",init:function(t){t.hooks.add("gobble-token",function(r){if(this.code===uO){for(var a=++this.index,o=!1;this.index<this.expr.length;){if(this.code===uO&&!o){for(var i=this.expr.slice(a,this.index),c="";++this.index<this.expr.length;){var s=this.code;if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57)c+=this.char;else break}var l=void 0;try{l=new RegExp(i,c)}catch(u){this.throwError(u.message)}return r.node={type:t.LITERAL,value:l,raw:this.expr.slice(a-1,this.index)},r.node=this.gobbleTokenProperty(r.node),r.node}this.code===t.OBRACK_CODE?o=!0:o&&this.code===t.CBRACK_CODE&&(o=!1),this.index+=this.code===xie?2:1}this.throwError("Unclosed Regex")}})}},RE=43,wie=45,Yp={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|="]),updateOperators:[RE,wie],assignmentPrecedence:.9,init:function(t){var n=[t.IDENTIFIER,t.MEMBER_EXP];Yp.assignmentOperators.forEach(function(a){return t.addBinaryOp(a,Yp.assignmentPrecedence,!0)}),t.hooks.add("gobble-token",function(o){var i=this,c=this.code;Yp.updateOperators.some(function(s){return s===c&&s===i.expr.charCodeAt(i.index+1)})&&(this.index+=2,o.node={type:"UpdateExpression",operator:c===RE?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},(!o.node.argument||!n.includes(o.node.argument.type))&&this.throwError("Unexpected ".concat(o.node.operator)))}),t.hooks.add("after-token",function(o){var i=this;if(o.node){var c=this.code;Yp.updateOperators.some(function(s){return s===c&&s===i.expr.charCodeAt(i.index+1)})&&(n.includes(o.node.type)||this.throwError("Unexpected ".concat(o.node.operator)),this.index+=2,o.node={type:"UpdateExpression",operator:c===RE?"++":"--",argument:o.node,prefix:!1})}}),t.hooks.add("after-expression",function(o){o.node&&r(o.node)});function r(a){Yp.assignmentOperators.has(a.operator)?(a.type="AssignmentExpression",r(a.left),r(a.right)):a.operator||Object.values(a).forEach(function(o){o&&Go(o)==="object"&&r(o)})}}},Wa=Object.prototype.hasOwnProperty;function Iu(e,t){return e=e.slice(),e.push(t),e}function jE(e,t){return t=t.slice(),t.unshift(e),t}var Sie=function(e){function t(n){var r;return Gp(this,t),r=rie(this,t,['JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)']),r.avoidNew=!0,r.value=n,r.name="NewError",r}return sie(t,e),Kp(t)}(FE(Error));function Nr(e,t,n,r,a){if(!(this instanceof Nr))try{return new Nr(e,t,n,r,a)}catch(s){if(!s.avoidNew)throw s;return s.value}typeof e=="string"&&(a=r,r=n,n=t,t=e,e=null);var o=e&&Go(e)==="object";if(e=e||{},this.json=e.json||n,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=Wa.call(e,"wrap")?e.wrap:!0,this.sandbox=e.sandbox||{},this.eval=e.eval===void 0?"safe":e.eval,this.ignoreEvalErrors=typeof e.ignoreEvalErrors>"u"?!1:e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||r||null,this.otherTypeCallback=e.otherTypeCallback||a||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},e.autostart!==!1){var i={path:o?e.path:t};o?"json"in e&&(i.json=e.json):i.json=n;var c=this.evaluate(i);if(!c||Go(c)!=="object")throw new Sie(c);return c}}Nr.prototype.evaluate=function(e,t,n,r){var a=this,o=this.parent,i=this.parentProperty,c=this.flatten,s=this.wrap;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=r||this.otherTypeCallback,t=t||this.json,e=e||this.path,e&&Go(e)==="object"&&!Array.isArray(e)){if(!e.path&&e.path!=="")throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Wa.call(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');var l=e;t=l.json,c=Wa.call(e,"flatten")?e.flatten:c,this.currResultType=Wa.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Wa.call(e,"sandbox")?e.sandbox:this.currSandbox,s=Wa.call(e,"wrap")?e.wrap:s,this.currEval=Wa.call(e,"eval")?e.eval:this.currEval,n=Wa.call(e,"callback")?e.callback:n,this.currOtherTypeCallback=Wa.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,o=Wa.call(e,"parent")?e.parent:o,i=Wa.call(e,"parentProperty")?e.parentProperty:i,e=e.path}if(o=o||null,i=i||null,Array.isArray(e)&&(e=Nr.toPathString(e)),!(!e&&e!==""||!t)){var u=Nr.toPathArray(e);u[0]==="$"&&u.length>1&&u.shift(),this._hasParentSelector=null;var f=this._trace(u,t,["$"],o,i,n).filter(function(h){return h&&!h.isParentSelector});return f.length?!s&&f.length===1&&!f[0].hasArrExpr?this._getPreferredOutput(f[0]):f.reduce(function(h,d){var v=a._getPreferredOutput(d);return c&&Array.isArray(v)?h=h.concat(v):h.push(v),h},[]):s?[]:void 0}},Nr.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":{var n=Array.isArray(e.path)?e.path:Nr.toPathArray(e.path);return e.pointer=Nr.toPointer(n),e.path=typeof e.path=="string"?e.path:Nr.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return Nr.toPathString(e[t]);case"pointer":return Nr.toPointer(e.path);default:throw new TypeError("Unknown result type")}},Nr.prototype._handleCallback=function(e,t,n){if(t){var r=this._getPreferredOutput(e);e.path=typeof e.path=="string"?e.path:Nr.toPathString(e.path),t(r,n,e)}},Nr.prototype._trace=function(e,t,n,r,a,o,i,c){var s=this,l;if(!e.length)return l={path:n,value:t,parent:r,parentProperty:a,hasArrExpr:i},this._handleCallback(l,o,"value"),l;var u=e[0],f=e.slice(1),h=[];function d(k){Array.isArray(k)?k.forEach(function(O){h.push(O)}):h.push(k)}if((typeof u!="string"||c)&&t&&Wa.call(t,u))d(this._trace(f,t[u],Iu(n,u),t,u,o,i));else if(u==="*")this._walk(t,function(k){d(s._trace(f,t[k],Iu(n,k),t,k,o,!0,!0))});else if(u==="..")d(this._trace(f,t,n,r,a,o,i)),this._walk(t,function(k){Go(t[k])==="object"&&d(s._trace(e.slice(),t[k],Iu(n,k),t,k,o,!0))});else{if(u==="^")return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:f,isParentSelector:!0};if(u==="~")return l={path:Iu(n,u),value:a,parent:r,parentProperty:null},this._handleCallback(l,o,"property"),l;if(u==="$")d(this._trace(f,t,n,null,null,o,i));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(u))d(this._slice(u,f,t,n,r,a,o));else if(u.indexOf("?(")===0){if(this.currEval===!1)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");var v=u.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),m=/@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])?((?:[\0->@-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))(?!(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])\)\])['\]]/g.exec(v);m?this._walk(t,function(k){var O=[m[2]],I=m[1]?t[k][m[1]]:t[k],N=s._trace(O,I,n,r,a,o,!0);N.length>0&&d(s._trace(f,t[k],Iu(n,k),t,k,o,!0))}):this._walk(t,function(k){s._eval(v,t[k],k,n,r,a)&&d(s._trace(f,t[k],Iu(n,k),t,k,o,!0))})}else if(u[0]==="("){if(this.currEval===!1)throw new Error("Eval [(expr)] prevented in JSONPath expression.");d(this._trace(jE(this._eval(u,t,n[n.length-1],n.slice(0,-1),r,a),f),t,n,r,a,o,i))}else if(u[0]==="@"){var p=!1,g=u.slice(1,-2);switch(g){case"scalar":(!t||!["object","function"].includes(Go(t)))&&(p=!0);break;case"boolean":case"string":case"undefined":case"function":Go(t)===g&&(p=!0);break;case"integer":Number.isFinite(t)&&!(t%1)&&(p=!0);break;case"number":Number.isFinite(t)&&(p=!0);break;case"nonFinite":typeof t=="number"&&!Number.isFinite(t)&&(p=!0);break;case"object":t&&Go(t)===g&&(p=!0);break;case"array":Array.isArray(t)&&(p=!0);break;case"other":p=this.currOtherTypeCallback(t,n,r,a);break;case"null":t===null&&(p=!0);break;default:throw new TypeError("Unknown value type "+g)}if(p)return l={path:n,value:t,parent:r,parentProperty:a},this._handleCallback(l,o,"value"),l}else if(u[0]==="`"&&t&&Wa.call(t,u.slice(1))){var y=u.slice(1);d(this._trace(f,t[y],Iu(n,y),t,y,o,i,!0))}else if(u.includes(",")){var b=u.split(","),_=die(b),E;try{for(_.s();!(E=_.n()).done;){var w=E.value;d(this._trace(jE(w,f),t,n,r,a,o,!0))}}catch(k){_.e(k)}finally{_.f()}}else!c&&t&&Wa.call(t,u)&&d(this._trace(f,t[u],Iu(n,u),t,u,o,i,!0))}if(this._hasParentSelector)for(var S=0;S<h.length;S++){var A=h[S];if(A&&A.isParentSelector){var P=this._trace(A.expr,t,A.path,r,a,o,i);if(Array.isArray(P)){h[S]=P[0];for(var C=P.length,D=1;D<C;D++)S++,h.splice(S,0,P[D])}else h[S]=P}}return h},Nr.prototype._walk=function(e,t){if(Array.isArray(e))for(var n=e.length,r=0;r<n;r++)t(r);else e&&Go(e)==="object"&&Object.keys(e).forEach(function(a){t(a)})},Nr.prototype._slice=function(e,t,n,r,a,o,i){if(Array.isArray(n)){var c=n.length,s=e.split(":"),l=s[2]&&Number.parseInt(s[2])||1,u=s[0]&&Number.parseInt(s[0])||0,f=s[1]&&Number.parseInt(s[1])||c;u=u<0?Math.max(0,u+c):Math.min(c,u),f=f<0?Math.max(0,f+c):Math.min(c,f);for(var h=[],d=u;d<f;d+=l){var v=this._trace(jE(d,t),n,r,a,o,i,!0);v.forEach(function(m){h.push(m)})}return h}},Nr.prototype._eval=function(e,t,n,r,a,o){var i=this;this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=a,this.currSandbox._$_property=n,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;var c=e.includes("@path");c&&(this.currSandbox._$_path=Nr.toPathString(r.concat([n])));var s=this.currEval+"Script:"+e;if(!Nr.cache[s]){var l=e.replace(/@parentProperty/g,"_$_parentProperty").replace(/@parent/g,"_$_parent").replace(/@property/g,"_$_property").replace(/@root/g,"_$_root").replace(/@([\t-\r \)\.\[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/g,"_$_v$1");if(c&&(l=l.replace(/@path/g,"_$_path")),this.currEval==="safe"||this.currEval===!0||this.currEval===void 0)Nr.cache[s]=new this.safeVm.Script(l);else if(this.currEval==="native")Nr.cache[s]=new this.vm.Script(l);else if(typeof this.currEval=="function"&&this.currEval.prototype&&Wa.call(this.currEval.prototype,"runInNewContext")){var u=this.currEval;Nr.cache[s]=new u(l)}else if(typeof this.currEval=="function")Nr.cache[s]={runInNewContext:function(h){return i.currEval(l,h)}};else throw new TypeError('Unknown "eval" property "'.concat(this.currEval,'"'))}try{return Nr.cache[s].runInNewContext(this.currSandbox)}catch(f){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+f.message+": "+e)}},Nr.cache={},Nr.toPathString=function(e){for(var t=e,n=t.length,r="$",a=1;a<n;a++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(t[a])||(r+=/^[\*0-9]+$/.test(t[a])?"["+t[a]+"]":"['"+t[a]+"']");return r},Nr.toPointer=function(e){for(var t=e,n=t.length,r="",a=1;a<n;a++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(t[a])||(r+="/"+t[a].toString().replace(/~/g,"~0").replace(/\//g,"~1"));return r},Nr.toPathArray=function(e){var t=Nr.cache;if(t[e])return t[e].concat();var n=[],r=e.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/g,";$&;").replace(/['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))['\]](?!(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])\])/g,function(o,i){return"[#"+(n.push(i)-1)+"]"}).replace(/\[["']((?:[\0-&\(-\\\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)["']\]/g,function(o,i){return"['"+i.replace(/\./g,"%@%").replace(/~/g,"%%@@%%")+"']"}).replace(/~/g,";~;").replace(/["']?\.["']?(?!(?:[\0-Z\\-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*\])|\[["']?/g,";").replace(/%@%/g,".").replace(/%%@@%%/g,"~").replace(/(?:;)?(\^+)(?:;)?/g,function(o,i){return";"+i.split("").join(";")+";"}).replace(/;;;|;;/g,";..;").replace(/;$|'?\]|'$/g,""),a=r.split(";").map(function(o){var i=o.match(/#([0-9]+)/);return!i||!i[1]?o:n[i[1]]});return t[e]=a,t[e].concat()};var Cie=function(t,n,r){for(var a=t.length,o=0;o<a;o++){var i=t[o];r(i)&&n.push(t.splice(o--,1)[0])}};Xp.plugins.register(Eie,Yp);var Yr={evalAst:function(t,n){switch(t.type){case"BinaryExpression":case"LogicalExpression":return Yr.evalBinaryExpression(t,n);case"Compound":return Yr.evalCompound(t,n);case"ConditionalExpression":return Yr.evalConditionalExpression(t,n);case"Identifier":return Yr.evalIdentifier(t,n);case"Literal":return Yr.evalLiteral(t,n);case"MemberExpression":return Yr.evalMemberExpression(t,n);case"UnaryExpression":return Yr.evalUnaryExpression(t,n);case"ArrayExpression":return Yr.evalArrayExpression(t,n);case"CallExpression":return Yr.evalCallExpression(t,n);case"AssignmentExpression":return Yr.evalAssignmentExpression(t,n);default:throw SyntaxError("Unexpected expression",t)}},evalBinaryExpression:function(t,n){var r={"||":function(o,i){return o||i()},"&&":function(o,i){return o&&i()},"|":function(o,i){return o|i()},"^":function(o,i){return o^i()},"&":function(o,i){return o&i()},"==":function(o,i){return o==i()},"!=":function(o,i){return o!=i()},"===":function(o,i){return o===i()},"!==":function(o,i){return o!==i()},"<":function(o,i){return o<i()},">":function(o,i){return o>i()},"<=":function(o,i){return o<=i()},">=":function(o,i){return o>=i()},"<<":function(o,i){return o<<i()},">>":function(o,i){return o>>i()},">>>":function(o,i){return o>>>i()},"+":function(o,i){return o+i()},"-":function(o,i){return o-i()},"*":function(o,i){return o*i()},"/":function(o,i){return o/i()},"%":function(o,i){return o%i()}}[t.operator](Yr.evalAst(t.left,n),function(){return Yr.evalAst(t.right,n)});return r},evalCompound:function(t,n){for(var r,a=0;a<t.body.length;a++){t.body[a].type==="Identifier"&&["var","let","const"].includes(t.body[a].name)&&t.body[a+1]&&t.body[a+1].type==="AssignmentExpression"&&(a+=1);var o=t.body[a];r=Yr.evalAst(o,n)}return r},evalConditionalExpression:function(t,n){return Yr.evalAst(t.test,n)?Yr.evalAst(t.consequent,n):Yr.evalAst(t.alternate,n)},evalIdentifier:function(t,n){if(t.name in n)return n[t.name];throw ReferenceError("".concat(t.name," is not defined"))},evalLiteral:function(t){return t.value},evalMemberExpression:function(t,n){var r=t.computed?Yr.evalAst(t.property):t.property.name,a=Yr.evalAst(t.object,n),o=a[r];return typeof o=="function"?o.bind(a):o},evalUnaryExpression:function(t,n){var r={"-":function(o){return-Yr.evalAst(o,n)},"!":function(o){return!Yr.evalAst(o,n)},"~":function(o){return~Yr.evalAst(o,n)},"+":function(o){return+Yr.evalAst(o,n)}}[t.operator](t.argument);return r},evalArrayExpression:function(t,n){return t.elements.map(function(r){return Yr.evalAst(r,n)})},evalCallExpression:function(t,n){var r=t.arguments.map(function(o){return Yr.evalAst(o,n)}),a=Yr.evalAst(t.callee,n);return a.apply(void 0,ME(r))},evalAssignmentExpression:function(t,n){if(t.left.type!=="Identifier")throw SyntaxError("Invalid left-hand side in assignment");var r=t.left.name,a=Yr.evalAst(t.right,n);return n[r]=a,n[r]}},Aie=function(){function e(t){Gp(this,e),this.code=t,this.ast=Xp(this.code)}return Kp(e,[{key:"runInNewContext",value:function(n){var r=iie({},n);return Yr.evalAst(this.ast,r)}}])}(),Tie=function(){function e(t){Gp(this,e),this.code=t}return Kp(e,[{key:"runInNewContext",value:function(n){var r=this.code,a=Object.keys(n),o=[];Cie(a,o,function(u){return typeof n[u]=="function"});var i=a.map(function(u){return n[u]}),c=o.reduce(function(u,f){var h=n[f].toString();return/function/.test(h)||(h="function "+h),"var "+f+"="+h+";"+u},"");r=c+r,!/(["'])use strict\1/.test(r)&&!a.includes("arguments")&&(r="var arguments = undefined;"+r),r=r.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/,"");var s=r.lastIndexOf(";"),l=s>-1?r.slice(0,s+1)+" return "+r.slice(s+1):" return "+r;return iO(Function,a.concat([l])).apply(void 0,ME(i))}}])}();Nr.prototype.vm={Script:Tie},Nr.prototype.safeVm={Script:Aie};const h0=(e,t)=>{if(!t||!e)return null;var n=Nr({json:t,path:e});return n},cO=e=>{var t=[];if(!e)return t;var n=h0("$..widgetList[*]",e);return e.type==tt.tabs?(t=e.tabs,t=[...n,...t]):e.type==tt.grid&&(t=h0("$..cols[*]",e),t=[...n,...t]),t=[...n],t==null?void 0:t.filter(r=>!!(r!=null&&r.type))},$c=(e,t,n)=>{e==null||e.forEach(r=>{var a,o,i,c,s,l,u;if(r){if(t==null||t.push(r),r.type===tt.tabs)(a=r.tabs)==null||a.forEach(f=>{t==null||t.push(f),$c(f.widgetList,t,n)});else if(r.type===tt.table)(o=r.rows)==null||o.forEach(f=>{var h;t==null||t.push(f),(h=f==null?void 0:f.cols)==null||h.forEach(d=>{t==null||t.push(d),$c(d.widgetList,t,n)})});else if(r.type===tt.grid)(i=r.cols)==null||i.forEach(f=>{t==null||t.push(f),$c(f.widgetList,t,n)});else if(r.type===tt.cont){const f=h=>{var d;$c(h.widgetList,t,n),(d=h==null?void 0:h.children)==null||d.map(v=>{f(v)})};(c=r.cols)==null||c.forEach(h=>{f(h)})}else if(((s=r.widgetList)==null?void 0:s.length)>0&&$c(r.widgetList,t,n),!n){const f=(u=(l=Or(r.options))==null?void 0:l.filter(h=>{var d;return((d=r.options[h])==null?void 0:d.type)===be.slot}))==null?void 0:u.map(h=>r.options[h]);f==null||f.forEach(h=>{$c(h==null?void 0:h.widgetList,t,n)})}}})},d0=(e,t,n)=>{let r=[];return Ky(e,o=>{r.push(o)},t,n),r},Ky=(e,t,n,r)=>{if(!e)return;const a=[];$c(e,a,r),a==null||a.forEach(o=>{n?n(o)&&t(o):t(o)})},Die=(e,t)=>{if(!e)return;const n=d0(e,r=>!!(r!=null&&r.formItemFlag),!0);return n==null||n.forEach(r=>t==null?void 0:t(r)),n},Pie=(e,t)=>{if(!t||(e==null?void 0:e.length)<=0)return;const n=d0(e,a=>(a==null?void 0:a.id)===t);return n==null?void 0:n[0]},fO=(e,t)=>d0(e,n=>(n==null?void 0:n.type)===t),kie=(e,t)=>{var a;if(!e)return[];let n=[],r=o=>{o&&(n.find(i=>(i==null?void 0:i.name)===pt.getName(o))||n.push({type:o.type,name:pt.getName(o),field:o}))};return t?(a=h0("$..*[?(@property === 'formItemFlag' && @ === true)]^",e))==null||a.forEach(o=>{r(o)}):Die(e,r),n},jl=(e,t,n,r=!1,a)=>{var l,u,f,h,d,v,m,p,g;if(!e)return;let o={id:e.id,type:e.type,label:pt.getOptions(e,"label")||pt.getOptions(e,"name")||e.type,widget:r?e:null,parent:t,children:[],matched:!a||(a==null?void 0:a(e))};if(n==null||n.push(o),e.category===void 0)return;if(o.children=[],e.type===tt.grid)(l=e==null?void 0:e.cols)==null||l.map(y=>{var _,E;let b={id:y.id,type:y.type,label:pt.getOptions(y,"name")||y.id||y.type,children:[],parent:o,widget:r?y:null};(_=o.children)==null||_.push(b),(E=y.widgetList)==null||E.map(w=>{jl(w,b,b.children,r,a)})});else if(e.type===tt.cont){const y=b=>{var _,E;(_=b.widgetList)==null||_.map(w=>{jl(w,o,o.children,r,a)}),(E=b==null?void 0:b.children)==null||E.map(w=>y(w))};(u=e==null?void 0:e.cols)==null||u.map(b=>{y(b)})}else if(e.type===tt.table)(f=e==null?void 0:e.rows)==null||f.map(y=>{var _,E;let b={id:y.id,type:tt.tableRow,label:tt.tableRow,selectable:!1,children:[],parent:o,widget:r?y:null};(_=y==null?void 0:y.cols)==null||_.map(w=>{var P;if(w.merged)return;let S=b.children,A={id:w.id,type:tt.tableCol,label:tt.tableCol,children:[],parent:b,widget:r?w:null};(P=w.widgetList)==null||P.map(C=>{jl(C,A,A.children,r,a)}),S==null||S.push(A)}),(E=o.children)==null||E.push(b)});else if(e.type===tt.tabs)(h=e==null?void 0:e.tabs)==null||h.map(y=>{var _,E;let b={id:y.id,type:y.type,label:pt.getOptions(y,"label")||y.type,children:[],parent:o,widget:r?y:null};(_=o.children)==null||_.push(b),(E=y==null?void 0:y.widgetList)==null||E.map(w=>{jl(w,b,b.children,r,a)})});else if(e.type===tt.eltable){var i=h0("$..widgetList[*]",(d=e.options)==null?void 0:d.optionItems.value);(i==null?void 0:i.length)>0&&(i==null||i.map(y=>{jl(y,o,o.children,r,a)}))}else e.category===bu.container&&((v=e==null?void 0:e.widgetList)==null?void 0:v.length)>0&&((m=e==null?void 0:e.widgetList)==null||m.map(y=>{jl(y,o,o.children,r,a)}));const c=pt.getOptions(e,Xt.widgetList);c&&(c==null||c.map(y=>{jl(y,o,o.children,r,a)}));const s=(g=(p=Or(e.options))==null?void 0:p.filter(y=>{var b;return((b=e.options[y])==null?void 0:b.type)===be.slot}))==null?void 0:g.map(y=>e.options[y]);s==null||s.forEach(y=>{var b,_,E;if(((b=y==null?void 0:y.widgetList)==null?void 0:b.length)>0){let w={id:y.slotName+Ds(),type:y.type,label:y.slotName||y.type,children:[],parent:o,widget:r?y:null,selectable:!1};(_=o.children)==null||_.push(w),(E=y==null?void 0:y.widgetList)==null||E.map(S=>{jl(S,w,w.children,r,a)})}})},pO=(e,t=!1,n)=>{const r=[];let a={label:tt.page,id:tt.page,type:tt.page};return e==null||e.forEach(o=>{jl(o,a,r,t,n)}),Qn(a,{children:r}),[a]},hO=(e,t,n)=>{!e||e.length<=0||e.forEach(r=>{r.id===t?n==null||n(r):hO(r==null?void 0:r.children,t,n)})},dO=(e,t)=>{let n=null;return hO(e,t,r=>{n=r}),n},VE=(e,t)=>{const n=dO(e,t);let r=[];const a=o=>{o&&(r.push(o),o!=null&&o.parent&&a(o==null?void 0:o.parent))};return a(n),r},Xy=(e,t,n)=>{const r=Yn(e);return Wo(r,t,n),Ky([r],a=>{Wo(a,t,n)}),r},Jp=(e,t,n,r=!1,a)=>{if(!t||(t==null?void 0:t.length)<=0||!n||!e)return;let o=null;for(var i=0;i<(t==null?void 0:t.length);i++){const c=t==null?void 0:t[i];if(c.id&&(o=pt.getOptions(c.widget,n,r,!(a!=null&&a.designState)),o))break}return o},Oie=(e,t,n,r)=>{var c;const a=h0("$..widgetList[?(@.id==='"+e+"')]^",Yn(n)),o=(c=a==null?void 0:a[0])==null?void 0:c.find(s=>{var l;return((l=s==null?void 0:s._source)==null?void 0:l.name)===t}),i=o==null?void 0:o.id;return r==null?void 0:r(i)};function Bie(){const e=()=>{let c=jt(Yn(Bu(tt.grid)));return c=Wo(c),c},t=()=>{let c=jt(Yn(Bu(tt.gridCol)));return c=Wo(c),c},n=c=>{let s=Yn(c);return Xy(s)};return{initGrid:e,initCloneGrid:c=>{var l;let s=e();return(l=jt(c).cols)==null||l.forEach(u=>{let f=n(u);jt(s).cols.push(f)}),s},initGridCol:t,initCloneGridCol:n,deleteColOfGrid:(c,s)=>(c&&c.cols&&c.cols.splice(s,1),!0),addNewColOfGrid:c=>{const s=c.cols;let l=t();if(s&&s.length>0){let u=0;s.forEach(f=>{u+=pt.getOptions(f,"span")||0}),u>=24||pt.setOptions(l,"span",24-u>12?12:24-u),c.cols.push(l)}else c.cols=[l];return!0},isGrid:c=>(c==null?void 0:c.type)===tt.grid}}function Iie(){return{initCloneContCell:a=>{let o=Yn(a);return Xy(o)},initContCell:(a=Bl.main,o)=>{let i=new IE;return Qn(i,o),i.partName=new ge(be.placer,a),i},initCont:()=>{let a=Yn(Bu(tt.cont));return a.id=a.type+Ds(),pt.setName(a,a.id),a},isCont:a=>(a==null?void 0:a.type)===tt.cont}}class Nie{constructor(){z(this,"size",mo.default);z(this,"layoutType",qT.PC);z(this,"jsonVersion",Zm.pageJsonVersion);z(this,"customClass",new ge(be.placer,[]));z(this,"componentWrapperClass",new ge(be.placer,[]));z(this,"pageCreated",new ge(be.event,void 0,new ot));z(this,"pageMounted",new ge(be.event,void 0,new ot));z(this,"cssCode",new ge(be.placer,void 0,new ot));z(this,"functions",new ge(be.placer,void 0,new ot));z(this,"willFetch",new ge(be.hook,void 0,new ot));z(this,"fitFetch",new ge(be.hook,void 0,new ot));z(this,"errorFetch",new ge(be.hook,void 0,new ot));z(this,"didFetch",new ge(be.hook,void 0,new ot));z(this,"schema",new ge(be.dataObject,[{protocal:Vc.URI,name:Hr.urlParams,description:se.i18nt("designer.hint.varibaleURL"),isReadonly:!0},{protocal:Vc.CONFIG,name:Hr.compParams,description:se.i18nt("designer.hint.varibaleConfig"),isReadonly:!0}]))}}class Xje extends u0{constructor(){super(...arguments);z(this,"protocal",Vc.VALUE);z(this,"name","");z(this,"description","");z(this,"isReadonly",!1)}}const Fie=e=>{if(!e)return null;switch(e){case tt.anchor:return Fk.getKeys();case tt.breadcrumb:return jk.getKeys();case tt.radio:return Tk.getKeys();case tt.select:return _o.getKeys();case tt.checkbox:return Dk.getKeys();case tt.image:return _o.getKeys();case tt.steps:return zk.getKeys();case tt.carousel:return Mk.getKeys();case tt.collapse:return Lk.getKeys();case tt.descriptions:return Rk.getKeys();case tt.dropdown:return Nk.getKeys();case tt.cascader:return DE.getKeys();case tt.tree:case tt.treeSelect:return Sk.getKeys();case tt.menu:return Vk.getKeys();case tt.tabs:return OE.getKeys();case tt.grid:return Hk.getKeys();case tt.cont:return IE.getKeys();case tt.eltable:return Uk.getKeys();case tt.model:return Wk.getKeys();default:return null}},Mie=e=>{if(!e)return null;var t=null;switch(e){case tt.anchor:t=new Fk,t.title="title";break;case tt.breadcrumb:t=new jk;break;case tt.radio:t=new Tk;break;case tt.select:t=new _o;break;case tt.checkbox:t=new Dk;break;case tt.image:t=new _o;break;case tt.steps:t=new zk;break;case tt.carousel:t=new Mk;break;case tt.collapse:t=new Lk;break;case tt.descriptions:t=new Rk;break;case tt.dropdown:t=new Nk;break;case tt.tree:case tt.treeSelect:t=new Sk;break;case tt.cascader:t=new DE;break;case tt.menu:t=new Vk;break;case tt.cont:t=new IE;break;case tt.tabs:t=new OE;break;case tt.eltable:t=new Uk;break;case tt.model:t=new Wk;break;default:t=null}return t},Lie=e=>{if(!e)return null;var t=Fie(e);return t?Rie(t,1,e):null},Rie=(e,t,n)=>{var r={};if(!e||(e==null?void 0:e.length)<=0)return r;if(n){var a=Mie(n);if(a)r=a;else return r}else e==null||e.forEach(o=>{r[o]||(r[o]=null)});return e!=null&&e.includes(Xt.value)&&(r[Xt.value]=String(t)),e!=null&&e.includes(Xt.label)&&(r[Xt.label]=Xt.option+" "+t),e!=null&&e.includes(Xt.children)&&(r[Xt.children]=[]),e!=null&&e.includes(Xt.name)&&(r[Xt.name]=Xt.option+t),r};function zE(e,t){return{widgetTree:x.computed(()=>x.reactive(pO(e,t)))}}function UE(e,t){const n=x.computed(()=>{var c;const i=VE(e,t==null?void 0:t.id);return(i==null?void 0:i.length)<=0&&(t!=null&&t._source)?VE(e,(c=t==null?void 0:t._source)==null?void 0:c.id):i}),r=x.computed(()=>{var i;return(i=n.value)==null?void 0:i.map(c=>({id:c==null?void 0:c.id,selectable:c.selectable,label:pt.getWidgetTypeName(jt(c.type))})).filter(c=>c.id!==(t==null?void 0:t.id))}),{parentForm:a,parentFormId:o}=vO(n.value);return{widgetTree:e,parentForm:a,parentFormId:o,parentTree:r,pathNodes:n}}const vO=e=>{const t=x.computed(()=>{var r;return(r=e==null?void 0:e.find(a=>a.type===tt.form))==null?void 0:r.widget}),n=x.computed(()=>{var r;return(r=t==null?void 0:t.value)==null?void 0:r.id});return{parentForm:t,parentFormId:n}};function jie(e,t){const{widget:n}=e,{parentFormId:r}=vO(t),a=x.computed(()=>{var f,h,d;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.size,!1,e)||((d=(h=e==null?void 0:e.designer)==null?void 0:h.pageConfig)==null?void 0:d.size))}),o=x.computed(()=>{var f;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.displayLayout,!1,e))}),i=x.computed(()=>{var f;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.labelAlign,!1,e))}),c=x.computed(()=>{var f;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.labelWidth,!1,e))}),s=x.computed(()=>{var f;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.labelHidden,!1,e))}),l=x.computed(()=>{var f;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.labelSuffix,!1,e))}),u=x.computed(()=>(n==null?void 0:n.formItemFlag)&&!!r.value);return{displayLayout:o,size:a,labelWidth:c,labelAlign:i,labelSuffix:l,labelHidden:s,formItemFlag:u}}function Yy(e){const t=Ak(e),{initHistoryData:n,emitHistoryChange:r,saveCurrentHistoryStep:a,saveFormContentToStorage:o}=t,{initGridCol:i,isGrid:c}=Bie(),{initContCell:s,isCont:l}=Iie(),{initTabPane:u,getActiveTab:f,isTabs:h}=nO(),{initTableRow:d,isTable:v}=tO(),m=new Nie,p=(Te=!0)=>{e.widgetList=[],e.pageConfig=Yn(m),Te||n()},g=Te=>{var Re,X;let Ne=e.widgetList.length===0;(X=e.widgetList)==null||X.splice(0,(Re=e.widgetList)==null?void 0:Re.length),R(),e.pageConfig=m,Te||(Ne?a("clearDesigner"):r("clearDesigner"))},y=Te=>{e.pageWidget=Te},b=Te=>Pie(e.widgetList,Te),_=(Te,Ne)=>{Te&&r(Ne)},E=()=>({widgetList:[],pageConfig:Id(m)}),w=()=>({widgetList:Id(e.widgetList),pageConfig:Id(e.pageConfig)}),S=Te=>{let Ne=!1;return g(),Te&&Te.widgetList&&(e.widgetList=Te.widgetList,Ne=!0),Te&&Te.pageConfig&&(Qn(e.pageConfig,Te.pageConfig),Ne=!0),Ne&&O(Zm.pageJsonImported,[]),Ne},A=Te=>{e&&(e.cssClassList=Te)},P=()=>e==null?void 0:e.cssClassList,C=Te=>{ge.getValue(e.pageConfig.cssCode)===""&&Te&&ge.setValue(e.pageConfig,"cssCode",Te)},D=(Te=!1,Ne)=>pO(e.widgetList,Te,Ne),k=()=>{var Te=D(!1,Y=>!!(Y!=null&&Y.formItemFlag));const Ne=(Y,ee)=>{[tt.page,tt.form,be.slot,tt.grid,tt.gridCol,tt.table,tt.tableRow,tt.tableCol,tt.card,tt.wrapper,tt.cont,tt.contCell].includes(ee==null?void 0:ee.type)||ee!=null&&ee.label&&(Y==null||Y.push((ee==null?void 0:ee.label)||"")),ee!=null&&ee.parent&&Ne(Y,ee.parent)};let Re=[];const X=Y=>{Y==null||Y.forEach(ee=>{if(ee.matched){const ve=[];Ne(ve,ee),ee.label=ve.reverse().join(".");const Ce=Object.assign({},ee);delete Ce.children,delete Ce.parent,Re.push(Ce)}X(ee.children)})};return X(Te),Re},O=(Te,Ne)=>{Ck.$emit(Te,Ne)},I=(Te,Ne)=>{Ck.$on(Te,Re=>Ne(Re))},N=(Te,Ne,Re)=>{Te&&(Re&&na(Te.options,"label")?pt.setOptions(Te,"label",Re):Re&&na(Te.options,"content")&&pt.setOptions(Te,"content",Re))},F=Te=>{if(!Te){R();return}e.selectedWidget=Te},R=()=>{e.selectedWidget=void 0},M=(Te,Ne,Re)=>{const X=Te==null?void 0:Te.newIndex,Y=Ne==null?void 0:Ne[X];Y&&F(Y),r(`drag add ${Y==null?void 0:Y.id}`),Re==null||Re(Ne)},j=(Te,Ne)=>{},W=(Te,Ne,Re)=>{r("drag update"),Re==null||Re(Ne)},L=(Te,Ne,Re)=>{r("drag remove"),Re==null||Re(Ne)},U=Te=>!0,K=Te=>{var X,Y;let Ne=jt(Yn(Te));if(!Ne)return null;if(Ne.id=pt.newId(Ne.type),qc(Ne,Xt.name)&&pt.setOptions(Ne,Xt.name,Ne.id),qc(Ne,Xt.label)&&pt.setOptions(Ne,Xt.label,pt.getOptions(Ne,"label")||((X=Ne.type)==null?void 0:X.toLowerCase())),qc(Ne,Xt.content)&&pt.setOptions(Ne,Xt.content,pt.getOptions(Ne,"content")||((Y=Ne.type)==null?void 0:Y.toLowerCase())),qc(Ne,Xt.optionItems)&&(Ne==null?void 0:Ne.type)!==tt.image){var Re=ge.getValue(pt.getOrgOption(Ne,Xt.optionItems));Re==null||Re.splice(1,0,Lie(Ne.type)),ge.setValue(Ne==null?void 0:Ne.options,Xt.optionItems,Re)}return Ne},J=Te=>{var X,Y,ee;let Ne=K(Te);if(!Ne)return;let Re=e.widgetList;e.selectedWidget&&(h(e.selectedWidget)?Re=(X=f(jt(e.selectedWidget)))==null?void 0:X.widgetList:(Y=jt(e.selectedWidget))!=null&&Y.widgetList&&(Re=(ee=e.selectedWidget)==null?void 0:ee.widgetList)),Re==null||Re.push(Ne),F(Ne),r(`addFieldByDbClick ${Te==null?void 0:Te.id}`)},Q=(Te,Ne)=>{var Re=de(Te,Ne);if(Te){if(Re===0){mi.info(se.i18nt("designer.hint.moveUpFirstChildHint"));return}let X=Te[Re];Te.splice(Re,1),Te.splice(Re-1,0,X)}r(`moveUpWidget ${Ne==null?void 0:Ne.id}`)},q=(Te,Ne)=>{var Re=de(Te,Ne);if(Te){if(Re===Te.length-1){mi.info(se.i18nt("designer.hint.moveDownLastChildHint"));return}let X=Te[Re];Te.splice(Re,1),Te.splice(Re+1,0,X)}r(`moveDownWidget ${Ne==null?void 0:Ne.id}`)},ue=Te=>{var X,Y,ee,ve,Ce,Oe,Ie,Be,We,ze;let Ne=null,Re=Yn(Te);if(c(Te))Ne=jt(Re),(X=Ne.cols)==null||X.push(i()),(Y=Ne.cols)==null||Y.push(i());else if(l(Te)){Ne=jt(Re);const Xe=s(Bl.container);(ee=Xe.children)==null||ee.push(s(Bl.header));let it=s(Bl.container,{direction:Cs.horizontal});(ve=it.children)==null||ve.push(s(Bl.aside,{cellWidth:new ge(be.placer,"20%")})),(Ce=it.children)==null||Ce.push(s(Bl.main,{cellWidth:new ge(be.placer,"80%")})),(Oe=Xe.children)==null||Oe.push(it),(Ie=Xe.children)==null||Ie.push(s(Bl.footer)),(Be=Ne.cols)==null||Be.push(Xe)}else v(Te)?(Ne=jt(Re),(We=Ne.rows)==null||We.push(d())):h(Te)?(Ne=jt(Re),(ze=Ne.tabs)==null||ze.push(u(void 0,!0))):Ne=jt(Re);return Ne.id=pt.newId(Ne.type),pt.setName(Ne,Ne.id),Ne},te=Te=>{let Ne=ue(Te);e.widgetList.push(Ne),F(Ne),r(`addContainerByDbClick ${Te==null?void 0:Te.id}`)},ne=(Te,Ne)=>{var Re=null;if(Te){Re=Xy(Te,{recordSource:!1});var X=de(Ne,Te);return Ne==null||Ne.splice(X+1,0,Re),F(Re),r(`cloneWidget ${Te==null?void 0:Te.id}`),Re}},ie=(Te,Ne,Re)=>{var X=de(Re,Te);if(Re){let Y=null;Re.length===1?Ne&&(Y=Ne):Re.length===1+X?Y=Re[X-1]:Y=Re[X+1],x.nextTick(()=>{Re.splice(X,1),F(Y),r(`removeWidget ${Te==null?void 0:Te.id}`)})}},de=(Te,Ne)=>!Ne||!Te?-1:Te==null?void 0:Te.indexOf(Ne),G=(Te,Ne,Re)=>{e&&(F(Te),O($n.fieldSelected,Ne))},Z=Te=>{Te?F(Te):R()},re=Te=>{var Y;const{widgetTree:Ne}=zE(e.widgetList,!0),{pathNodes:Re}=UE(Ne.value,Te);return(Y=Re.value)==null?void 0:Y[1].widget},ce=Te=>{var Y,ee,ve;const{widgetTree:Ne}=zE(e.widgetList,!0),{pathNodes:Re}=UE(Ne.value,Te);return((ve=(ee=(Y=Re.value)==null?void 0:Y[1])==null?void 0:ee.widget)==null?void 0:ve.widgetList)||e.widgetList};return{...t,initDesigner:p,clearDesigner:g,registerPageWidget:y,setSelected:F,clearSelected:R,updateSelectedWidgetLabel:N,copyNewFieldWidget:K,copyNewContainerWidget:ue,addContainerByDbClick:te,addFieldByDbClick:J,selectWidget:G,removeSelectedWidget:()=>{const Te=e.selectedWidget;if(!Te)return!1;if(Te!=null&&Te.internal)return mi.info(se.i18nt("designer.hint.currentNodeCannotBeSelected")),!1;const Ne=re(Te),Re=ce(Te);return ie(Te,Ne,Re),!0},cloneSelectedWidget:()=>{var Te;if((Te=e.selectedWidget)!=null&&Te.internal){mi.info(se.i18nt("designer.hint.currentNodeCannotBeSelected"));return}return e.selectedWidget},pasteSelectedWidget:Te=>{const Ne=e.selectedWidget,Re=ce(Ne);return ne(Te,Re),!0},selectParentWidget:Z,moveUpWidget:Q,moveDownWidget:q,cloneWidget:ne,removeWidget:ie,checkWidgetMove:U,onWidgetDragAdd:M,onWidgetDragEnd:j,onWidgetDragUpdate:W,onWidgetDragRemove:L,setCssClassList:A,getCssClassList:P,getImportTemplate:E,emitEvent:O,handleEvent:I,loadPageJson:S,getPageJson:w,loadPresetCssCode:C,getNodeTree:D,findTreeNode:dO,findWidgetById:b,findToRootFromNode:VE,buildFormItemList:k,emitHistoryChangeAfter:_,watchPropAndSaveHistory:Te=>{Te&&x.watch(()=>{var Ne;return(Ne=e==null?void 0:e.selectedWidget)==null?void 0:Ne[Te]},Ne=>{o()},{deep:!0})}}}class tl{constructor(){z(this,"formRefList",{});z(this,"globalRefList",{});z(this,"globalDataModel",{});z(this,"globalFormName","");z(this,"rowScope",{});z(this,"globalConfig",{})}static globalInject(){const t=new tl;return t.formRefList=x.inject(Hr.refList,{}),t.globalRefList=x.inject(Hr.allRefList,{}),t.globalDataModel=x.inject(Hr.globalModel,{}),t.rowScope=x.inject(Hr.rowScope,{}),t.globalFormName=x.inject(Hr.globalForm,""),t.globalConfig=x.inject(Hr.globalConfig,{}),t}static globalProvide(t){if((t==null?void 0:t.globalDataModel)!==void 0){const n=(t==null?void 0:t.globalDataModel)||{};x.provide(Hr.globalModel,n)}if((t==null?void 0:t.rowScope)!==void 0){const n=(t==null?void 0:t.rowScope)||{};x.provide(Hr.rowScope,n)}if((t==null?void 0:t.globalRefList)!==void 0){const n=(t==null?void 0:t.globalRefList)||{};x.provide(Hr.allRefList,n)}if((t==null?void 0:t.formRefList)!==void 0){const n=(t==null?void 0:t.formRefList)||{};x.provide(Hr.refList,n)}if((t==null?void 0:t.globalFormName)!==void 0){const n=(t==null?void 0:t.globalFormName)||"";x.provide(Hr.globalForm,n)}if((t==null?void 0:t.globalConfig)!==void 0){const n=(t==null?void 0:t.globalConfig)||"";x.provide(Hr.globalConfig,n)}}}function nl(e){const t=(g,y=!1)=>pt.getOptions(e==null?void 0:e.widget,g,y,!(e!=null&&e.designState)),n=x.computed(()=>t(Xt.ctrlWidth)||"auto"),r=x.computed(()=>t(Xt.ctrlHeight)||"auto"),a=x.computed(()=>{var g=t(Xt.customClass);return Array.isArray(g)?g==null?void 0:g.join(" "):g}),o=x.computed(()=>{var g=t(Xt.componentWrapperClass);return Array.isArray(g)?g==null?void 0:g.join(" "):g}),i=x.computed(()=>{var g,y;return(y=jt((g=t(Xt.required,!0))==null?void 0:g.options))==null?void 0:y.enable}),c=x.computed(()=>t(Xt.hidden)),s=x.computed(()=>t(Xt.displayLayout)),l=x.computed(()=>t(Xt.labelTooltip)),u=x.computed(()=>t(Xt.labelIconClass)),f=x.computed(()=>t(Xt.labelIconPosition)),h=x.computed(()=>t(Xt.labelHidden)),d=x.computed(()=>t(Xt.label)),v=x.computed(()=>t(Xt.labelWidth)),m=x.computed(()=>t(Xt.labelAlign));return{attrs:x.computed(()=>({required:i.value,label:d.value,labelHidden:h.value,labelAlign:m.value,labelIconClass:u.value,labelIconPosition:f.value,labelTooltip:l.value,labelWidth:v.value,ctrlWidth:n.value})),labelAlign:m,labelHidden:h,labelIconClass:u,labelIconPosition:f,labelTooltip:l,labelWidth:v,label:d,displayLayout:s,hidden:c,ctrlWidth:n,ctrlHeight:r,customClass:a,componentWrapperClass:o}}const Vie=x.defineComponent({__name:"comp-wrapper",props:{...Ii,componentName:{type:String,default:"div"},componentClass:{type:String,default:""},componentAttrs:{type:Object,default:null}},setup(e){const t=e;x.useCssVars(i=>({"3181642b":x.unref(n),"3647b13c":x.unref(r),"09837c9c":x.unref(a)}));const{ctrlWidth:n,ctrlHeight:r,displayLayout:a,hidden:o}=nl(t);return(i,c)=>e.componentName?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.componentName),x.mergeProps({key:0,class:[e.componentClass,"comp__1"]},e.componentAttrs),{default:x.withCtx(()=>[x.renderSlot(i.$slots,"default",{},void 0,!0)]),_:3},16,["class"])):x.renderSlot(i.$slots,"default",x.mergeProps({key:1,class:[e.componentClass,"comp__1"]},e.componentAttrs),void 0,!0)}}),Yje="",Da=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},mO=Da(Vie,[["__scopeId","data-v-556cd573"]]),zie={key:0,class:"tipBase tipTopLeft"},Uie={key:1,class:"tipBase tipContent"},Hie=x.defineComponent({__name:"drag-wrapper",props:{...Ii,widgetList:{type:Array,default:[]},dragClass:{type:String,default:""},propName:{type:String,default:Xt.widgetList},title:{type:String,default:""},model:{type:Object,default:null},provideModel:{type:Boolean,default:!1},refList:{type:Object,default:null},widgetTree:{type:Object,default:null},dragTip:{type:String,default:se.i18nt("designer.hint.draggableArea")},dragTag:{type:String,default:"div"},componentName:{type:String,default:"div"},componentClass:{type:String,default:""},componentAttrs:{type:Object,default:null},componentStyle:{type:Object,default:null},rowScope:{type:Object,default:null}},emits:["update"],setup(e,{emit:t}){const n=e,{components:r}=Dne(),{checkWidgetMove:a,onWidgetDragAdd:o,onWidgetDragUpdate:i,onWidgetDragEnd:c,onWidgetDragRemove:s}=Yy(n.designer),l=f=>{t("update",f)},u=x.computed({get:()=>n.widget?ax(n.widget,n.propName):n.widgetList,set:f=>{n.widget?No(n.widget,n.propName,f):t("update",f)}});return(Va(n.model)||n.provideModel)&&tl.globalProvide({globalDataModel:n==null?void 0:n.model}),n.refList&&tl.globalProvide({formRefList:n.refList}),Va(n.rowScope)&&Va(n.rowScope)&&tl.globalProvide({rowScope:n.rowScope}),(f,h)=>{const d=x.resolveComponent("draggable");return f.designState===!0?(x.openBlock(),x.createBlock(d,x.mergeProps({key:0,list:x.unref(u),"item-key":"id",group:"dragGroup",class:[e.dragClass,"containerDraggable full-height"],tag:e.dragTag},{chosenClass:"chosen",ghostClass:"ghost",animation:200},{"component-data":{name:"fade"},handle:".drag-handler",onEnd:h[0]||(h[0]=v=>x.unref(c)(v,x.unref(u))),onRemove:h[1]||(h[1]=v=>x.unref(s)(v,x.unref(u),l)),onAdd:h[2]||(h[2]=v=>x.unref(o)(v,x.unref(u),l)),onUpdate:h[3]||(h[3]=v=>x.unref(i)(v,x.unref(u),l)),move:x.unref(a)}),{header:x.withCtx(()=>[x.renderSlot(f.$slots,"header",{},void 0,!0)]),item:x.withCtx(({element:v,index:m})=>[x.createVNode(mO,x.mergeProps({widget:v,designer:f.designer,"design-state":f.designState,"parent-list":x.unref(u),"parent-widget":f.widget,class:e.componentClass},e.componentAttrs,{style:e.componentStyle,componentName:e.componentName}),{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(r)(v)),{designer:f.designer,widget:v,key:v.id,"design-state":f.designState,"parent-list":x.unref(u),"parent-widget":f.widget},null,8,["designer","widget","design-state","parent-list","parent-widget"]))]),_:2},1040,["widget","designer","design-state","parent-list","parent-widget","class","style","componentName"])]),footer:x.withCtx(()=>[x.renderSlot(f.$slots,"footer",{},void 0,!0),x.renderSlot(f.$slots,"tip",{},()=>{var v,m;return[((v=x.unref(u))==null?void 0:v.length)<=0&&e.title?(x.openBlock(),x.createElementBlock("div",zie,x.toDisplayString(e.title),1)):x.createCommentVNode("",!0),((m=x.unref(u))==null?void 0:m.length)<=0&&e.dragTip?(x.openBlock(),x.createElementBlock("div",Uie,x.toDisplayString(e.dragTip),1)):x.createCommentVNode("",!0)]},!0)]),_:3},16,["list","class","tag","move"])):(x.openBlock(!0),x.createElementBlock(x.Fragment,{key:1},x.renderList(x.unref(u),(v,m)=>(x.openBlock(),x.createBlock(mO,x.mergeProps({key:v.id,widget:v,designer:f.designer,"design-state":f.designState,"parent-list":x.unref(u),"parent-widget":f.widget,componentName:e.componentName,class:e.componentClass},e.componentAttrs,{style:e.componentStyle}),{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(r)(v)),{designer:f.designer,widget:v,"design-state":f.designState,"parent-list":x.unref(u),"parent-widget":f.widget},null,8,["designer","widget","design-state","parent-list","parent-widget"]))]),_:2},1040,["widget","designer","design-state","parent-list","parent-widget","componentName","class","style"]))),128))}}}),Jje="",Pr=Da(Hie,[["__scopeId","data-v-42621552"]]);function Jy(){const e={},t=(a,o)=>{var i,c,s,l;return a?!!((i=a==null?void 0:a.proxy)!=null&&i.$options&&((s=(c=a==null?void 0:a.proxy)==null?void 0:c.$options)==null?void 0:s.componentName)===o||a!=null&&a.exposed&&((l=a==null?void 0:a.exposed)==null?void 0:l.componentName)===o):!1},n=(a,o,i)=>{a&&Or(a).forEach(c=>{t(a[c],o)&&(i==null||i(a[c]))})},r=(a,o,i)=>{a&&(t(a,o)?i==null||i(a):r(a.parent,o,i))};return{emit$(a,o){e[a]&&e[a].forEach(i=>{i(o)})},on$(a,o){e[a]=e[a]||[],e[a].push(o)},off$(a,o){if(e[a]){if(hr(o)){e[a].length=0;return}for(let i=0;i<e[a].length;i++)if(e[a][i]===o){e[a].splice(i,1);break}}},dispatch(a,o,i,c){if(!a)return;let s=c.parent||c.root;r(s,a,l=>{var u;l&&(l.exposed.emit$&&l.exposed.emit$(o,i),l!=null&&l.proxy&&((u=l==null?void 0:l.proxy)==null||u.$emit(o,i)))})},broadcast(a,o,i,c){n(c.widgetRefList,a,s=>{s.emit$&&s.emit$.call(s,o,i)}),n(c.refList,a,s=>{s.emit$&&s.emit$.call(s,o,i)})}}}function Wie(){return{onMountedOrActivated:n=>{let r=!1;x.onMounted(()=>{n(),x.nextTick(()=>{r=!0})}),x.onActivated(()=>{r&&n()})},onCompErrorCaptured:()=>{x.onErrorCaptured(n=>(Hi.error("onCompErrorCaptured",n),!1))}}}function HE(e,t){const{getWidgetOption:n,getWidgetOptionByPropValue:r}=Uo(e,t),a=i=>n(i);return{existFunc:a,handleFunc:(i,c)=>{if(Ui(i)){var s=a(String(i));return Op(s,c)}else{var s=r(jt(i));return Op(s,c)}}}}class v0{constructor(t){z(this,"refList",{});t&&(this.refList=t)}initRefList(){this.refList||(this.refList={})}getWidgetRef(t){if(t)return this.initRefList(),this.refList[t]}setWidgetRef(t,n){t&&(this.initRefList(),this.refList[t]=n)}removeWidgetRef(t){t&&this.refList&&delete this.refList[t.toString()]}}const WE="",GE="_",gO=(e,t)=>hr(t)?e||"":`${WE}${e}${GE}${t}`,Nu=e=>{if(e!=null&&e.includes(GE)){var t=e.split(GE);const n=t==null?void 0:t[0].substring(WE.length),r=e.substring(WE.length+n.length+1);return{id:n,groupName:r}}return{id:e}};var m0=(e=>(e[e.None=0]="None",e[e.Inner2Inner=1]="Inner2Inner",e[e.Inner2Outer=2]="Inner2Outer",e[e.Outer2Inner=3]="Outer2Inner",e[e.Outer2Outer=4]="Outer2Outer",e[e.DiffInner=5]="DiffInner",e))(m0||{});const Gie=(e,t)=>{const n=Nu(e),r=n==null?void 0:n.groupName,a=Nu(t),o=a==null?void 0:a.groupName;return!r&&!o?4:r&&!o?2:r&&o?r!==o?5:1:!r&&o?3:0};function Fu(e){e||(e={});const t=new v0(e),{instance:n}=za(),r=d=>t.getWidgetRef(d==null?void 0:d.toString()),a=(d,v,m)=>{var p=[],g=[];let y=r(d);return y&&p.push(y),p==null||p.forEach(b=>{var _=i(b,v,m);_&&g.push(_)}),g},o=(d,v)=>{var m;return(m=d==null?void 0:d.exposed)==null?void 0:m[v.toString()]},i=(d,v,m)=>{var p=o(d,v);if(p){var g=[];return m&&(g=Object.values(m)),p(...g)}},c=(d,v,m)=>{var p=[];if(d){var g=jt(Wr(d,!0));g==null||g.forEach(y=>{var b=a(y,v,m);hr(b)||p.push(b)})}return Array.isArray(d)?p:p==null?void 0:p[0]},s=(d,v)=>{let m=Or(e);c(m,d,v)},l=(d,v)=>{var _,E,w;const m=(E=(_=v||n)==null?void 0:_.exposed)==null?void 0:E.getField();var p=Nu(m==null?void 0:m.id);const g=S=>(S==null?void 0:S.id)===d,y=S=>{var P;var A=Nu(S==null?void 0:S.id);return(p==null?void 0:p.groupName)===(A==null?void 0:A.groupName)&&((A==null?void 0:A.id)===d||((P=S==null?void 0:S._source)==null?void 0:P.id)===d)},b=(w=Or(t.refList))==null?void 0:w.find(S=>{var P,C;try{const D=(C=(P=t.refList[S])==null?void 0:P.exposed)==null?void 0:C.getField();var A=g(D);return!A&&(p!=null&&p.groupName)&&(A=y(D)),A}catch{return!1}});if(b)return r(b)},u=d=>{if(d){let v=d;t==null||t.setWidgetRef(v,n)}},f=d=>{if(d){let v=d;t==null||t.removeWidgetRef(v)}};return{findWidgetAndCall:a,getWidgetRef:r,callWidgetsExposed:c,callRefFunc:i,existRefFunc:o,setAllRefList:s,findRefById:l,findRefByName:r,changeRegisterToRefList:(d,v)=>{d&&(u(d),f(v))},registerToRefList:u,unregisterFromRefList:f}}const pa=(e,t=!0,n)=>{if(n!=null&&n===!1)return[];const r=KE(e);return t||(e==null?void 0:e.length)<=0?r:r==null?void 0:r.filter(a=>{var o;return!!(a!=null&&a.widgetList)&&((o=a==null?void 0:a.widgetList)==null?void 0:o.length)>0||!!a.default||(a==null?void 0:a.slotName)===Io.default})},ha=(e,t)=>e==null?void 0:e.find(n=>(n==null?void 0:n.slotName)===t),KE=e=>jt(e);function XE(e,t){const n=t==null?void 0:t.pageConfig,r=t==null?void 0:t.formData,a=x.reactive({});Qn(a,r);var{instance:o}=za();const i=()=>{var u=kie(e);u==null||u.forEach(f=>{const{computedDefaultValue:h,fieldName:d,hasDefaultValue:v}=Uo(f.field,t,{s_fieldName:!0},o);d.value&&v()&&Bd(h()).then(m=>{Qn(a,{[d.value]:m})})})},c=()=>{ix(a)};return{formModel:a,pageConfig:n,widgetList:e,initData:i,setData:(u,f=!0)=>{f&&c(),Qn(a,u)},getData:()=>yT(a),clearData:c}}function Zy(){const e=(o,i)=>Xy(o,{newName:!0,recordSource:!0},(c,s)=>gO(c||s,i)),t=(o,i,c)=>{var h,d;Xi(c)&&(c=`${(h=Ng())==null?void 0:h.substring(0,5)}_${!Xi(i==null?void 0:i.$index)&&(i==null?void 0:i.$index)>=0?i==null?void 0:i.$index:""}`);var s=pa(o,!0);let l=s==null?void 0:s.map(v=>e(v,c));const u=a(l),{updateFomulaName:f}=Eu();return(d=Or(u))==null||d.forEach(v=>{const m=u[v],p=m==null?void 0:m.name;l=f(l,p,v)}),{widget:l,id:c,key:Ds(),data:i}},n=(o,i)=>{if(o||(o=[]),i&&(o==null?void 0:o.length)<i){const l=i-(o==null?void 0:o.length);for(var c=0;c<l;c++){var s={};o==null||o.push(s)}}return o},r=(o,i,c,s)=>{if(Array.isArray(i))return i=n(i,c),i==null?void 0:i.map((l,u)=>{const f=s?s(l,u):l;return t(o,f,u+"")})},a=(o,i)=>{let c={};return o&&Ky(o,s=>{const l=pt.getName(s),u=()=>{l&&(c[l]=s==null?void 0:s._source)};i?i(s)&&u():u()}),c};return{newSlot:t,reflectTargetWithSourceOne:a,getSlotFromData:r,getMinRowData:n,parseGroupId:Nu,formatGroupId:gO}}function YE(e){const t=e==null?void 0:e.fieldName,n=e==null?void 0:e.setValue,r=x.reactive({}),a=x.reactive([]),{newSlot:o,reflectTargetWithSourceOne:i,getSlotFromData:c,getMinRowData:s}=Zy(),l=(w,S)=>{var C;let A={};const P=i(S);return(C=Or(w))==null||C.map(D=>{var O,I,N;const k=(O=P==null?void 0:P[D])==null?void 0:O.name;k&&(A[k]=w==null?void 0:w[D],(N=(I=Or(w))==null?void 0:I.filter(F=>F.startsWith(D+"_")))==null||N.forEach(F=>{A[F==null?void 0:F.replace(D,k)]=w==null?void 0:w[F]}))}),A},u=(w,S)=>{var C,D;let A={};if(Va(w)){const k=i(S,O=>!!(O!=null&&O.formItemFlag));(C=Or(k))==null||C.map(O=>{var I;O&&(A[O]=w==null?void 0:w[(I=k==null?void 0:k[O])==null?void 0:I.name])})}else{var P={pageConfig:(D=e==null?void 0:e.designer)==null?void 0:D.pageConfig,formData:A,designState:e==null?void 0:e.designState};const{formModel:k,initData:O}=XE(S,P);O(),Qn(A,k)}return A},f=(w,S)=>{const A=u(S,w.widget);return Qn(r,A),A},h=w=>{var S;(S=Or(r))==null||S.forEach(A=>{const P=Nu(A);(P==null?void 0:P.groupName)==w.id&&delete r[A]})},d=()=>a==null?void 0:a.map(S=>l(r,S==null?void 0:S.widget)),v=(w,S)=>{ix(r);const A=S(w);return A==null||A.forEach(P=>{const C=u(P==null?void 0:P.data,P==null?void 0:P.widget);Qn(r,C)}),a.splice(0,a.length),A&&A.length>0&&a.push(...A),a},m=w=>{var A;var S=nl({...e,widget:w});return(A=S.attrs)==null?void 0:A.value},p=(w,S,A)=>Oie(w,S,a,A),{off$:g,on$:y,emit$:b}=Jy(),_=()=>{g($n.fieldChange),y($n.fieldChange,w=>{var S;n==null||n(d()),(S=e==null?void 0:e.fieldChanged)==null||S.call(e)})};return(()=>{const w=t;tl.globalProvide({globalFormName:w,globalDataModel:r}),_()})(),{getSlotFromData:c,getMinRowData:s,fromModel:u,toModel:l,newSlot:o,getWidgetOption:m,newFieldModelFromSlot:f,removeFieldModelFromSlot:h,getValue:d,setValue:v,findWidgetByNameWithSibId:p,emit$:b,formModel:r,rowsData:a}}const Kie=(e,t,n,r)=>{const a=new v0(e),{callRefFunc:o}=Fu(e),{parseGroupId:i}=Zy();if(!e||e.length<=0||!t)return;const c=()=>{var y,b;return(b=(y=Or(e))==null?void 0:y.map(_=>o(e==null?void 0:e[_],Fi.getField)))==null?void 0:b.filter(_=>!!_)},s=y=>{var w;const b=(w=c())==null?void 0:w.find(S=>(S==null?void 0:S.id)===y);if(!b)return;const _=pt.getName(b),E=a.getWidgetRef(_);if(E)return{ref:E,name:_,id:b==null?void 0:b.id}},l=(y,b)=>{if(!Va(b))return;const _=pt.getName(y),E=a.getWidgetRef(_);if(E){const w=pt.getOptions(y,$n.defaultValue,!1,!(n!=null&&n.designState),{...n,formData:b});if(Va(w))if(x.isRef(w)){let S=x.watch(()=>w.value,A=>{S==null||S(),o(E,Fi.setValue,{newValue:A})})}else o(E,Fi.setValue,{newValue:w})}},u=(y,b)=>{const _=s(y);if(!_)return;const E=_.name,w=o(_.ref,Fi.getValue),S=o(_.ref,Fi.getCheckedItems),A={};return A[E]=w,w!==void 0&&!Xi(S)&&!b&&(A[`${E}${gu.checkedOptions}`]=S),A},f=(y,b)=>{var E;var _=[];if((E=c())==null||E.forEach(w=>{if(!w)return;const S=w==null?void 0:w.id;var A=S===y;const P=i(S),C=(P==null?void 0:P.id)===y,D=(P==null?void 0:P.groupName)===b;return A||C&&(D||!b)?(_.push(w),!0):!1}),!(!_||_.length<=0))return _==null?void 0:_.map(w=>{var S;return{id:w==null?void 0:w.id,name:(S=w==null?void 0:w._source)==null?void 0:S.name,source:w==null?void 0:w._source}})},h=(y,b)=>{var _=[];if(!y||(y==null?void 0:y.length)<=0)return _;const E=i(t),w=E==null?void 0:E.groupName;return b===m0.Inner2Outer?y==null||y.forEach(S=>{var A=f(S);A&&(A==null?void 0:A.length)>0&&_.push(...A)}):y==null||y.forEach(S=>{var A=f(S,w);A&&(A==null?void 0:A.length)>0&&_.push(...A)}),_},d=(y,b)=>{let _={};if(!y||y.length<=0)return _;if(b===m0.Inner2Outer){var E=mT(y,w=>{var S;return(S=w.source)==null?void 0:S.id});E==null||E.forEach(w=>{var P;const S=w.group[0],A=[];(P=w==null?void 0:w.children)==null||P.forEach(C=>{const D=u(C==null?void 0:C.id,!0);if(Va(D)){var k=Object.values(jt(D));A.push(...k)}}),S&&(_=Object.assign(_,{[S]:A}))})}else y.forEach(w=>{const S=u(w==null?void 0:w.id);Va(S)&&(_=Object.assign(_,S))});return _},v=y=>{var b={};return y==null||y.forEach(_=>{var E;_!=null&&_.source&&(_!=null&&_.id)&&(b[(E=_==null?void 0:_.source)==null?void 0:E.id]=_==null?void 0:_.id)}),b},m=(y,b,_)=>{if(_===m0.Inner2Inner){const A=Id(b),{updateFomula:P}=Eu(),{buildVariable:C}=aD();var E=v(y);if(Va(E)){var w=pt.getOrgOption(b,$n.defaultValue),S=P(Zr(w),E,(D,k)=>{var O=E[D];return hr(O)?C(D):C(O)});return pt.setOrgOption(A,$n.defaultValue,ri(S)),A}}return b},p=y=>{const b=y==null?void 0:y.id;var _=pt.getOrgOption(y,$n.defaultValue);if(_==null)return;const E=Gie(t,b);if(E===m0.DiffInner)return;var w=ge.getFormulaRelatedField(_);if(!w||w.length<=0)return;var S=h(w,E);if(!(S!=null&&S.some(P=>P.id===t)))return;const A=d(S,E);l(m(S,y,E),A)};(()=>{var y;(y=c())==null||y.forEach(b=>{p(b)})})()},Xie=(e,t,n,r,a)=>{var h;if(a||!Va(n))return;const{parseGroupId:o}=Zy();var i=o(t),c=i==null?void 0:i.groupName;const{callRefFunc:s}=Fu(e),l=(d,v)=>{var _,E,w;const m=(E=(_=Or(e))==null?void 0:_.map(S=>s(e==null?void 0:e[S],Fi.getField)))==null?void 0:E.filter(S=>!!S),p=(w=d0(m,S=>{var A=o(S==null?void 0:S.id);return(!c||(A==null?void 0:A.groupName)===c)&&(A==null?void 0:A.id)===d}))==null?void 0:w[0];if(!p)return;const g=pt.getName(p),b=new v0(e).getWidgetRef(g);b&&(v==null||v(b))},u=Wr(r==null?void 0:r.newValue,!0),f=(h=Or(n))==null?void 0:h.filter(d=>u==null?void 0:u.includes(d));!f||f.length<=0||f==null||f.forEach(d=>{var m,p;const v=(m=n==null?void 0:n[d])==null?void 0:m.result;(p=Or(v))==null||p.forEach(g=>{var b;const y=v==null?void 0:v[g];console.log(y),(b=y==null?void 0:y.ids)==null||b.forEach(_=>{l(_,E=>{s(E,y==null?void 0:y.event,y==null?void 0:y.args)})})})})};function yO(e,t){var n;return(n=e==null?void 0:e.classList)!=null&&n.contains(t)?e:e!=null&&e.parentElement?yO(e==null?void 0:e.parentElement,t):null}function Yie(){const e=l=>{if(l)return l!=null&&l.ref?l==null?void 0:l.ref:l},t=l=>{var u,f;try{(f=(u=e(l))==null?void 0:u.focus)==null||f.call(u)}catch(h){Hi.error("focus",h,l)}},n=l=>{var u,f;try{(f=(u=e(l))==null?void 0:u.blur)==null||f.call(u)}catch(h){Hi.error("blur",h,l)}},r=l=>{var u;return(u=e(l))==null?void 0:u.selectionStart},a=l=>{var u;return(u=e(l))==null?void 0:u.selectionEnd},o=(l,u)=>{var f;return(f=e(l))==null?void 0:f.setSelectionRange(u,u)},i=(l,u)=>{t(l),o(l,u)};return{getSelectionStart:r,getSelectionEnd:a,setSelectionStart:o,blur:n,focus:t,setMousePos:i,getMousePos:l=>r(l),insertOnMousePos:(l,u,f)=>{const h=r(l),d=a(l),v=fJ(f,u,h,d);return x.nextTick(()=>{i(l,h+(u==null?void 0:u.length))}),v}}}const _O=e=>{var n;const{getFormulaFields:t}=Eu();return((n=t(Zr(e)))==null?void 0:n.length)>0},ef=e=>{const t=e.type;return![tt.fileUpload,tt.pictureUpload].includes(t)&&e.formItemFlag||[tt.form,tt.dialog].includes(t)},bO=e=>{const t=e.type;return[tt.treeSelect,tt.cascader,tt.select,tt.checkbox,tt.radio].includes(t)};function xn(e){const t=e==null?void 0:e.designState,n=(e==null?void 0:e.created)!=!1,r=e==null?void 0:e.exResetField,a=e==null?void 0:e.extInitFieldModel,o=e==null?void 0:e.exposedWholeInstance,i=e==null?void 0:e.widget,c=e==null?void 0:e.designer,s=c==null?void 0:c.pageConfig,{formRefList:l,globalRefList:u,globalConfig:f,globalFormName:h,globalDataModel:d,rowScope:v}=tl.globalInject();let m=x.reactive(d||{});const p=Fu(u),g=Fu(l),{instance:y}=za(),b=()=>Yn(m),_=()=>v,E=()=>i,w={designState:t,pageConfig:s,formData:!t&&_O(i)?m:{},globalConfig:f},S={instance:y,...w},A=zy(S),P={exposed:{getFormData:!t&&_O(i)?b:null,findRefByName:p.getWidgetRef,fieldEditor:()=>Rt.value,getField:E,getRowScope:_,getOneSchemaData:A==null?void 0:A.getOneSchemaData,getSchemaDataObject:A==null?void 0:A.getSchemaDataObject,getSchemaDatas:A==null?void 0:A.getSchemaDatas}},C={instance:o?y:P,...w},{on$:D,dispatch:k,emit$:O}=Jy(),{onCompErrorCaptured:I}=Wie(),{existFunc:N}=HE({options:i==null?void 0:i.options},C),{isIdClass:F,getIdByIdClass:R}=eO(i),{getOneSchemaData:M,getSchemaDataObject:j,getSchemaDatas:W}=zy(C),L=Yie(),U=(e==null?void 0:e.shareProp)||{s_attr:!0,s_extendAttr:!0,s_events:!0,s_slots:!0,s_fieldName:!0,s_optionItems:!0},{attrs:K,extendAttrs:J,events:Q,slots:q,rules:ue,fieldName:te,buildRules:ne,clearRules:ie,disableChangeValidate:de,enableChangeValidate:G,optionItems:Z,filterOptionItems:re,getCheckedOptionText:ce,getCheckedOptionValues:fe,getCheckedOptionLabels:me,getCheckedOptionItems:pe,activeOptionItems:Ee,activeOptionItem:Te,activeOptionItemIndex:Ne,setOptionItems:Re,setWidgetOption:X,getWidgetOption:Y,setFieldEnable:ee,hasFieldOptions:ve,getFieldOptions:Ce,setFieldOptions:Oe,computedDefaultValue:Ie,hasDefaultValue:Be,singleOption:We,watchOption:ze,addCssClass:Xe,removeCssClass:it}=Uo(i,C,U,y);let Bt=null,yt=x.ref();const Rt=x.ref(),kt=()=>te.value,At=()=>`${i==null?void 0:i.id}-${F5()}`,ft=x.ref(At()),Sn=()=>{ft.value=At()},rt=x.computed({get:()=>{if(Ui(yt.value)){var ht=Number(yt.value);return isNaN(ht)?void 0:(yt.value=ht,ht)}return yt.value},set:ht=>{yt.value=ht}}),lt=x.computed({get:()=>{if(Ui(yt.value)){var ht=ri(yt.value);Es(ht)&&(yt.value=ht)}return yt.value},set:ht=>{yt.value=ht}}),ae=ht=>{var cn,le;var $t=(le=(cn=p.getWidgetRef(te.value))==null?void 0:cn.exposed)==null?void 0:le.loadOptionItems;if($t!==void 0){$t==null||$t(ht);return}Re(ht)},Pe=ht=>{var $t,cn,le;return(le=(cn=($t=p.getWidgetRef(te.value))==null?void 0:$t.exposed)==null?void 0:cn.getCheckedItems)==null?void 0:le.call(cn,ht)},Ae=ht=>{var $t,cn,le;return(le=(cn=($t=p.getWidgetRef(te.value))==null?void 0:$t.exposed)==null?void 0:cn.getCheckedLabels)==null?void 0:le.call(cn,ht)},Fe=ht=>{var $t,cn,le;return(le=(cn=($t=p.getWidgetRef(te.value))==null?void 0:$t.exposed)==null?void 0:cn.getCheckedText)==null?void 0:le.call(cn,ht)},Ue=()=>{var Ve;const ht=(Ve=J.value)==null?void 0:Ve.withAttachData;if(!bO(i)||ht===!1)return;const $t=yt.value,cn=Ae($t),le=Fe($t);var _e=Yn(Pe($t));ut(cn,_e,le)},ut=(ht,$t,cn)=>{var le={};if(ht!=null){let _e=Ce("textName",!1);[`${te.value}${gu.optionText}`,_e].forEach(Ve=>{Ve&&le[Ve]===void 0&&(le[Ve]=ht)})}if($t!=null&&Zr($t)!==Zr(yt.value)){let _e=Ce("optionName",!1);[`${te.value}${gu.checkedOptions}`,_e].forEach(Ve=>{Ve&&le[Ve]===void 0&&(le[Ve]=$t)})}if(cn!=null){let _e=Ce("labelName",!1);ht!=cn&&[`${te.value}${gu.optionLabelName}`,_e].forEach(Ve=>{Ve&&le[Ve]===void 0&&(le[Ve]=cn)})}Qn(m,Yn(le))},Et=ht=>{if(ef(i)){Ue();var $t={[te.value]:ht};Qn(m,$t)}},It=ht=>{t||Et(ht)},Kt=ht=>Ce(ht,!1),Pn=()=>{var ht=x.toRefs(m);yt=ge.get(ht,te.value)},gr=ht=>{Bt=Yn(ht)},oi=()=>{t||a&&a(T())},jr=()=>{Be()&&Bd(Ie()).then(ht=>{Et(ht),Pn()})},yr=(ht,$t)=>{if(!ef(i))return;O($n.fieldValueChanged,{newValue:ht,oldValue:$t});const cn={fieldId:i.id,fieldName:te.value,newValue:ht,oldValue:$t};k(h,$n.fieldChange,cn,y)},sa=ht=>N(ht),kr=(ht,$t)=>Op(Y(ht),$t),zi=ht=>{It(ht),Ct(),kr($n.onInput,{value:ht})},vo=(ht,$t)=>{var cn,le,_e;return(_e=(le=(cn=p.getWidgetRef(te.value))==null?void 0:cn.exposed)==null?void 0:le.handleBeforeChange)==null?void 0:_e.call(le,ht,$t)},ei=(...ht)=>{var _e,Ve,qe;let cn=((_e=ht==null?void 0:ht[0])==null?void 0:_e.target)!=null?(qe=(Ve=ht==null?void 0:ht[0])==null?void 0:Ve.target)==null?void 0:qe.value:ht==null?void 0:ht[0];cn=Yn(cn);var le=vo(cn,Bt);le!=null?It(le):It(cn),yr(cn,Bt),Ct(),gr(cn)},no=(ht=!0)=>{X(Xt.readonly,ht)},Oo=(ht=!0)=>{X(Xt.disabled,ht)},ja=(ht=!0)=>{X(Xt.hidden,ht),ht?Gt():vn()},bs=(ht=!0)=>{ee(Xt.required,ht),vn()},ct=ht=>{X(Xt.label,ht)},T=()=>yt==null?void 0:yt.value,B=ht=>{yt.value=ht},V=ht=>{let $t=Yn(T());if(B(ht),!ef(i))return;const cn=T();$t!==cn&&(It(cn),yr(ht,$t))},H=()=>{Be()?Bd(Ie()).then(ht=>{Et(ht)}):Et(null),r==null||r()},$=ht=>{const $t=T(),cn=L.insertOnMousePos(Rt.value,ht,$t);V(cn)},he=(ht,$t)=>{x.watch(()=>yt==null?void 0:yt.value,(cn,le)=>{ht==null||ht({id:i.id,name:te.value,newValue:cn,oldValue:le})},$t)},Se=ht=>{var Ve;ht.preventDefault();const $t=qe=>{var Pt;const bt=(Pt=Array.from(qe.classList))==null?void 0:Pt.find(we=>F(we));return bt?R(bt):""},cn=document.activeElement;if(!cn)return;const le=document.getElementsByClassName(X2.formItemTarget);for(var _e=0;_e<le.length;_e++){const qe=le[_e],bt=yO(cn,X2.formItemTarget);if(!bt)continue;const Pt=$t(qe),we=$t(bt);if(Pt===we){if(_e===le.length-1)return;const ke=le[_e+1],je=$t(ke),nt=p.findRefById(je,y);try{(Ve=nt==null?void 0:nt.exposed)==null||Ve.focus()}catch(Dt){Hi.error("handleEnter",Dt)}}}};let Le=()=>{var qe;let ht={componentName:te.value,refList:l,allRefList:u,fieldEditor:()=>Rt.value,changeRegisterToRefList:(bt,Pt)=>{p.changeRegisterToRefList(bt,Pt),g.changeRegisterToRefList(bt,Pt)},getField:E,getFormData:b,getValue:T,setValue:B,emit$:O,findRefByName:p.getWidgetRef,findRefById:p.findRefById,callRefFunc:p.callRefFunc,getWidgetOption:Y,setWidgetOption:X,refreshKey:Sn,getRowScope:_,getOneSchemaData:M,getSchemaDatas:W,getSchemaDataObject:j,addCssClass:Xe,removeCssClass:it},$t={resetField:H,getValue:T,setValue:V,refreshDefaultValue:jr,insertOnMousePos:$,disableChangeValidate:de,enableChangeValidate:G,focus:()=>{L.focus(Rt.value)},blur:()=>{L.blur(Rt.value)},getMousePos:()=>{L.getMousePos(Rt.value)},setMousePos:bt=>{L.setMousePos(Rt.value,bt)}},cn={loadOptionItems:ae,getCheckedItems:Pe,getCheckedLabels:Ae},le={[Xt.required]:{name:Fi.setRequired,fn:bs},[Xt.label]:{name:Fi.setLabel,fn:ct},[Xt.hidden]:{name:Fi.setHidden,fn:ja},[Xt.disabled]:{name:Fi.setDisabled,fn:Oo},[Xt.readonly]:{name:Fi.setReadonly,fn:no}},_e={};(qe=Or(le))==null||qe.forEach(bt=>{if(qc(i,bt)){const Pt=le[bt];_e[Pt.name]=Pt.fn}});var Ve=Qn(ht,_e);return ef(i)&&(Ve=Qn(Ve,$t)),bO(i)&&(Ve=Qn(Ve,cn)),Ve};const Je=x.computed(()=>({attrs:K.value,extendAttrs:J.value,events:Q.value,slots:q.value,fieldKey:ft.value,fieldEditor:Rt.value,fieldName:te.value})),et=ht=>{e.designState&&e.designer&&x.watch(()=>{var $t;return($t=e==null?void 0:e.widget)==null?void 0:$t[ht]},($t,cn)=>{const{emitHistoryChange:le}=Ak(e.designer);le(`edit ${te.value}.${ht},newValue:${$t},oldValue:${cn}`)},{deep:!0})},gt=(ht,$t,cn)=>{const le=x.ref(),_e=Kt(ht),Ve=qe=>{$t&&(le.value=$t(qe||_e))};return x.isRef(_e)?x.watch(_e,qe=>{Ve(qe),cn&&cn(qe)}):Ve(_e),le},dt=()=>{!ef(i)||t||he(ht=>{Kie(u,i==null?void 0:i.id,C),Xie(u,i==null?void 0:i.id,pt.getOptions(i,Xt.relate),ht),Ue()},{immediate:!0})},Ct=()=>{const ht={propName:te.value};k(h,$n.fieldValidation,ht,y)},rn=()=>{const ht={fieldId:i.id,fieldName:te.value,rules:ue};k(h,$n.fieldRuleChange,ht,y)},vn=()=>{if(!ef(i))return;const ht=ne();return rn(),ht},Gt=()=>{ie(),rn()},Jt=()=>{qc(i,"change")&&(Q.value.change=ei),qc(i,"input")&&(Q.value.input=zi),D(Ap.setFormData,ht=>{V(ht[te.value])}),D($n.fieldValueChanged,ht=>{kr($n.onChange,{value:ht==null?void 0:ht.newValue,oldValue:ht==null?void 0:ht.oldValue})})},bn=()=>{let ht=te.value;ef(i)?((!na(m,ht)||m[ht]===void 0)&&(Et(null),Be()&&Bd(Ie()).then($t=>{$t==null?Et(null):Et($t)})),Pn()):Be()&&Bd(Ie()).then($t=>{V($t)}),gr(T()),oi()},Wn=()=>{x.watch(()=>Z==null?void 0:Z.value,(ht,$t)=>{Ue()})},_r=()=>{const ht=x.inject(Hr.isRenderComplete);if(ht!=null&&ht.value){dt();return}ht!=null&&x.watch(()=>ht==null?void 0:ht.value,$t=>{$t&&dt()},{immediate:!0})},br=()=>{var ht,$t;if(n)try{bn(),vn(),Jt(),p.registerToRefList(te.value),g.registerToRefList(te.value),($t=(ht=Q==null?void 0:Q.value)==null?void 0:ht.created)==null||$t.call(ht),I()}catch(cn){Hi.error("create",cn)}},ti=()=>{n&&(x.onMounted(()=>{var ht,$t;try{_r(),Wn(),($t=(ht=Q==null?void 0:Q.value)==null?void 0:ht.mounted)==null||$t.call(ht)}catch(cn){console.log("mounted",i,cn)}}),x.onBeforeUnmount(()=>{p.unregisterFromRefList(te.value),g.unregisterFromRefList(te.value)}))};return br(),ti(),{exposed:Le(),fieldModel:yt,objFieldModel:lt,numFieldModel:rt,fieldEditor:Rt,fieldKey:ft,field:i,instance:y,attrs:K,extendAttrs:J,slots:q,events:Q,rules:ue,fieldObj:Je,pageConfig:s,formModel:m,fieldName:te,propResultOpt:C,optionItems:Z,activeOptionItems:Ee,activeOptionItem:Te,activeOptionItemIndex:Ne,filterOptionItems:re,setOptionItems:Re,getCheckedItems:Pe,getCheckedOptionItems:(ht,$t)=>pe(ht||yt.value,$t),getCheckedOptionLabels:(ht,$t)=>me(ht||yt.value,$t),getCheckedOptionValues:(ht,$t)=>fe(ht||yt.value,$t),getCheckedOptionText:(ht,$t)=>ce(ht||yt.value,$t),refreshKey:Sn,watchKeyValue:gt,watchPropAndSaveHistoryStep:et,existEvent:sa,handleEvent:kr,handleEnter:Se,getPropName:kt,emitFieldDataChange:yr,syncUpdateFormModel:It,getWidgetRef:p.getWidgetRef,clearRules:Gt,buildRules:vn,getFieldOptionModel:Kt,getFieldOptions:Ce,hasFieldOptions:ve,setFieldOptions:Oe,getWidgetOption:Y,singleOption:We,watchOption:ze,mergeOptionToFormModel:ut}}const Jie=x.defineComponent({componentName:dn.ContainerWidget}),JE=x.defineComponent({...Jie,__name:"cont-cell-widget",props:{...Ii},setup(e,{expose:t}){const n=e,r=x.computed(()=>{var c;return`el-${ge.getValue((c=n.widget)==null?void 0:c.partName)}`}),{customClass:a,componentWrapperClass:o}=nl({widget:{options:n.widget}}),{exposed:i}=xn(n);return t({...i}),(c,s)=>{var l,u,f;return x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(r)),{class:x.normalizeClass(["content-cell",x.unref(a)]),direction:(l=c.widget)==null?void 0:l.direction,style:x.normalizeStyle({width:x.unref(ge).getValue((u=c.widget)==null?void 0:u.cellWidth),height:x.unref(ge).getValue((f=c.widget)==null?void 0:f.cellHeight),zIndex:1e3})},{default:x.withCtx(()=>[x.renderSlot(c.$slots,"default",{},()=>{var h,d,v,m,p;return[((d=(h=c.widget)==null?void 0:h.children)==null?void 0:d.length)<=0?(x.openBlock(),x.createBlock(Pr,{key:0,widgetList:(v=c.widget)==null?void 0:v.widgetList,designState:c.designState,designer:c.designer,dragClass:"dragSize2",parentWidget:c.widget,parentList:(m=c.widget)==null?void 0:m.widgetList,"component-class":x.unref(o)},null,8,["widgetList","designState","designer","parentWidget","parentList","component-class"])):x.createCommentVNode("",!0),(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList((p=c.widget)==null?void 0:p.children,(g,y)=>{var b;return x.openBlock(),x.createBlock(JE,{key:g.id,widget:g,designer:c.designer,"design-state":c.designState,"parent-list":(b=c.widget)==null?void 0:b.children,"parent-widget":c.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]})]),_:3},8,["direction","class","style"])}}}),xO=Object.freeze(Object.defineProperty({__proto__:null,default:JE},Symbol.toStringTag,{value:"Module"})),Zie=["width","height","color"],Qie=["xlink:href"],qie={key:0,slot:"title"},$ie=x.defineComponent({__name:"index",props:{prefix:{default:"icon"},dir:{default:"svg"},name:null,color:null,size:null,width:{default:"16"},height:{default:"16"},className:null,title:{default:""}},setup(e){var f,h;const t=e,n=t.size||t.width,r=t.size||t.height,a=t.size||t.width,o=t.name,i=x.computed(()=>{var d="svg-icon";return t.className?d+" "+t.className:d}),c=x.ref(),s=x.computed(()=>`#${t.prefix}-${t.dir}-${c.value}`);let l=x.shallowRef();const u=Ui(o)&&((f=String(o))==null?void 0:f.startsWith("@"));return u?c.value=(h=String(o))==null?void 0:h.substring(1):x.watch(()=>t.name,d=>{if(x.isRef(t.name))l.value=d;else{const{instance:v}=za();l=M5(d,v)}},{immediate:!0}),(d,v)=>{const m=x.resolveComponent("el-icon");return x.unref(u)?(x.openBlock(),x.createElementBlock("svg",{key:0,class:x.normalizeClass(x.unref(i)),width:x.unref(n),height:x.unref(r),color:t.color},[x.createElementVNode("use",{"xlink:href":x.unref(s)},null,8,Qie),e.title?(x.openBlock(),x.createElementBlock("title",qie,x.toDisplayString(e.title),1)):x.createCommentVNode("",!0)],10,Zie)):(x.openBlock(),x.createBlock(m,{key:1,size:x.unref(a)},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(l)),{color:(t==null?void 0:t.color)||"black",key:e.name},null,8,["color"]))]),_:1},8,["size"]))}}}),Zje="",yi=Da($ie,[["__scopeId","data-v-eee47a33"]]),eae={key:0},tae={class:"clWhite"},nae={class:"clWhite"},rae=["title"],iae=["title"],aae=["title"],oae=["title"],sae=x.defineComponent({__name:"drag-handler",props:{...Ii,parentTree:{type:Object,default:null},hidden:{type:Boolean,default:!1},simple:{type:Boolean}},setup(e){const t=e,{setSelected:n,findWidgetById:r,removeWidget:a,moveDownWidget:o,moveUpWidget:i,cloneWidget:c}=Yy(t.designer),s=l=>{const u=l==null?void 0:l.id;if(l.selectable===!1)mi.info(se.i18nt("designer.hint.currentNodeCannotBeSelected"));else{const f=r(u);n(f)}};return(l,u)=>{var m,p;const f=x.resolveComponent("el-dropdown-item"),h=x.resolveComponent("el-dropdown-menu"),d=x.resolveComponent("el-dropdown"),v=x.resolveComponent("el-divider");return x.openBlock(),x.createElementBlock(x.Fragment,null,[e.hidden===!0?(x.openBlock(),x.createElementBlock("i",eae,[x.createVNode(yi,{name:"@el-hide"})])):x.createCommentVNode("",!0),e.simple?(x.openBlock(),x.createBlock(d,{key:1,onCommand:s},x.createSlots({default:x.withCtx(()=>[x.createElementVNode("span",tae,[x.createVNode(yi,{name:"@el-arrow-down"})])]),_:2},[((m=e.parentTree)==null?void 0:m.length)>0?{name:"dropdown",fn:x.withCtx(()=>[x.createVNode(h,null,{default:x.withCtx(()=>[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList(e.parentTree,(g,y)=>(x.openBlock(),x.createBlock(f,{command:g},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(g==null?void 0:g.label),1)]),_:2},1032,["command"]))),256)),x.createVNode(f,{divided:"",onClick:u[0]||(u[0]=x.withModifiers(g=>x.unref(c)(l.widget,l.parentList),["stop"]))},{default:x.withCtx(()=>[x.createVNode(yi,{name:"@el-clone"}),x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.cloneWidget")),1)]),_:1}),x.createVNode(f,{onClick:u[1]||(u[1]=x.withModifiers(g=>x.unref(a)(l.widget,l.parentWidget,l.parentList),["stop"]))},{default:x.withCtx(()=>[x.createVNode(yi,{name:"@el-delete"}),x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.remove")),1)]),_:1}),l.parentList&&l.parentList.length>1?(x.openBlock(),x.createBlock(f,{key:0,onClick:u[2]||(u[2]=x.withModifiers(g=>x.unref(i)(l.parentList,l.widget),["stop"]))},{default:x.withCtx(()=>[x.createVNode(yi,{name:"@el-move-up"}),x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.moveUpWidget")),1)]),_:1})):x.createCommentVNode("",!0),l.parentList&&l.parentList.length>1?(x.openBlock(),x.createBlock(f,{key:1,onClick:u[3]||(u[3]=x.withModifiers(g=>x.unref(o)(l.parentList,l.widget),["stop"]))},{default:x.withCtx(()=>[x.createVNode(yi,{name:"@el-move-down"}),x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.moveDownWidget")),1)]),_:1})):x.createCommentVNode("",!0),l.$slots.default?(x.openBlock(),x.createBlock(f,{key:2,divied:""},{default:x.withCtx(()=>[x.renderSlot(l.$slots,"default")]),_:3})):x.createCommentVNode("",!0)]),_:3})]),key:"0"}:void 0]),1024)):(x.openBlock(),x.createElementBlock(x.Fragment,{key:2},[x.createVNode(d,{onCommand:s},x.createSlots({default:x.withCtx(()=>{var g,y;return[x.createElementVNode("span",nae,[x.createTextVNode(x.toDisplayString(x.unref(se).i18n2t(`designer.widgetLabel.${(g=l.widget)==null?void 0:g.type}`,`extension.widgetLabel.${(y=l.widget)==null?void 0:y.type}`))+" ",1),x.createVNode(yi,{name:"@el-arrow-down",class:"el-icon--right"})])]}),_:2},[((p=e.parentTree)==null?void 0:p.length)>0?{name:"dropdown",fn:x.withCtx(()=>[x.createVNode(h,null,{default:x.withCtx(()=>[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList(e.parentTree,(g,y)=>(x.openBlock(),x.createBlock(f,{command:g},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(g==null?void 0:g.label),1)]),_:2},1032,["command"]))),256))]),_:1})]),key:"0"}:void 0]),1024),x.createVNode(v,{direction:"vertical","border-style":"dashed",color:"white"}),x.renderSlot(l.$slots,"default"),l.parentList&&l.parentList.length>1?(x.openBlock(),x.createElementBlock("i",{key:0,title:x.unref(se).i18nt("designer.hint.moveUpWidget"),onClick:u[4]||(u[4]=x.withModifiers(g=>x.unref(i)(l.parentList,l.widget),["stop"]))},[x.createVNode(yi,{name:"@el-move-up"})],8,rae)):x.createCommentVNode("",!0),l.parentList&&l.parentList.length>1?(x.openBlock(),x.createElementBlock("i",{key:1,title:x.unref(se).i18nt("designer.hint.moveDownWidget"),onClick:u[5]||(u[5]=x.withModifiers(g=>x.unref(o)(l.parentList,l.widget),["stop"]))},[x.createVNode(yi,{name:"@el-move-down"})],8,iae)):x.createCommentVNode("",!0),x.createElementVNode("i",{title:x.unref(se).i18nt("designer.hint.cloneWidget"),onClick:u[6]||(u[6]=x.withModifiers(g=>x.unref(c)(l.widget,l.parentList),["stop"]))},[x.createVNode(yi,{name:"@el-clone"})],8,aae),x.createElementVNode("i",{title:x.unref(se).i18nt("designer.hint.remove"),onClick:u[7]||(u[7]=x.withModifiers(g=>x.unref(a)(l.widget,l.parentWidget,l.parentList),["stop"]))},[x.createVNode(yi,{name:"@el-delete"})],8,oae)],64))],64)}}}),Qje="";function Qy(e){return{getAttrProp:n=>{var o,i,c,s,l,u;var r=(c=(i=(o=e==null?void 0:e.propOptions)==null?void 0:o.fieldObj)==null?void 0:i.attrs)==null?void 0:c[n],a=(u=(l=(s=e==null?void 0:e.propOptions)==null?void 0:s.fieldObj)==null?void 0:l.extendAttrs)==null?void 0:u[n];return Xi(r)?a:r}}}const Sr=x.defineComponent({__name:"widget-wrapper",props:{...xG},setup(e){var A;const t=e,{selectWidget:n}=Yy(t.designer),{widgetTree:r}=zE((A=t.designer)==null?void 0:A.widgetList,!0),{pathNodes:a,parentTree:o}=UE(r.value,t.widget),{size:i,displayLayout:c,labelAlign:s,labelWidth:l,formItemFlag:u,labelSuffix:f,labelHidden:h}=jie(t,jt(a.value)),{idClass:d}=eO(t.widget),{getAttrProp:v}=Qy(t),m=x.computed(()=>v==null?void 0:v("hidden")),p=x.computed(()=>v==null?void 0:v("labelWidth")),g=P=>P&&!["div","span"].includes(P),y=x.computed(()=>{var P,C;return(P=t.widget)!=null&&P.type?[tt.grid,tt.gridCol,tt.wrapper].includes((C=t.widget)==null?void 0:C.type):!1}),b=x.computed(()=>{const P=v==null?void 0:v("width"),C=v==null?void 0:v("ctrlWidth"),D=v==null?void 0:v("customClass"),k=v==null?void 0:v("componentWrapperClass");let O={};return p.value!="auto"&&p.value&&(O.labelWidth=p.value),{size:i.value,labelAlign:s.value,labelWidth:l.value,formItemFlag:u.value,formItemAttr:O,ctrlWidth:C,displayStyle:c.value,labelSuffix:f.value||"",injectStyle:{},injectClass:[Od(D),P?"":"full-width",d],componentWrapperClass:Od(k)}}),_=x.computed(()=>{var P,C,D;return!!t.designer&&((P=t.widget)==null?void 0:P.id)===((D=(C=t.designer)==null?void 0:C.selectedWidget)==null?void 0:D.id)}),E=x.ref(),w=x.ref(),S=x.computed(()=>{var P,C;if(E.value&&w.value&&_.value)return((P=E.value)==null?void 0:P.offsetWidth)>((C=w.value)==null?void 0:C.offsetWidth)});return(P,C)=>{var D,k,O,I,N,F;return P.designState?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(P.componentName),x.mergeProps({key:0,class:["field-wrapper",[x.unref(_)?"selected":""," drag-handler",P.propOptions.class,P.showWrapperComponent?x.unref(b).injectClass:null]],style:P.propOptions.style,onClick:C[0]||(C[0]=x.withModifiers(R=>x.unref(n)(P.widget,P.parentWidget,P.parentList),["stop"])),ref_key:"wrapperRef",ref:w,tabindex:0},g(P.componentName)?(k=(D=P.propOptions)==null?void 0:D.fieldObj)==null?void 0:k.attrs:{}),{default:x.withCtx(()=>{var R,M,j;return[x.renderSlot(P.$slots,"default",{data:x.unref(b)}),((M=(R=P.designer)==null?void 0:R.selectedWidget)==null?void 0:M.id)===((j=P.widget)==null?void 0:j.id)?(x.openBlock(),x.createElementBlock("div",{key:0,class:"action",ref_key:"dragHandlerRef",ref:E},[x.createVNode(sae,{simple:x.unref(S),"design-state":P.designState,designer:P.designer,widget:P.widget,"parent-widget":P.parentWidget,"parent-list":P.parentList,parentTree:x.unref(o),hidden:x.unref(m)},{default:x.withCtx(()=>[x.renderSlot(P.$slots,"drag")]),_:3},8,["simple","design-state","designer","widget","parent-widget","parent-list","parentTree","hidden"])],512)):x.createCommentVNode("",!0)]}),_:3},16,["class","style"])):!x.unref(m)||x.unref(y)?(x.openBlock(),x.createElementBlock(x.Fragment,{key:1},[P.showWrapperComponent?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(P.componentName),x.mergeProps({key:0},g(P.componentName)?(I=(O=P.propOptions)==null?void 0:O.fieldObj)==null?void 0:I.attrs:{},x.toHandlers(g(P.componentName)?(F=(N=P.propOptions)==null?void 0:N.fieldObj)==null?void 0:F.events:{}),{class:["_id_BycomponentName",[...x.unref(b).injectClass,P.propOptions.class,x.unref(m)&&x.unref(y)?"hlhidden":""]],style:{...x.unref(b).injectStyle,...P.propOptions.style}}),{default:x.withCtx(()=>[x.renderSlot(P.$slots,"default",x.mergeProps({data:x.unref(b)},P.$props))]),_:3},16,["class","style"])):x.renderSlot(P.$slots,"default",x.mergeProps({key:1,data:x.unref(b)},P.$props))],64)):x.createCommentVNode("",!0)}}}),lae=x.defineComponent({componentName:dn.ContainerWidget}),uae=x.defineComponent({...lae,__name:"cont-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{watchPropAndSaveHistoryStep:r,fieldObj:a,exposed:o}=xn(n),{customClass:i}=nl({widget:n.widget});return r(Xt.cols),t({...o}),(c,s)=>(x.openBlock(),x.createBlock(Sr,x.mergeProps(c.$props,{showWrapperComponent:!0,"prop-options":{fieldObj:x.unref(a),class:[x.unref(i)]}}),{default:x.withCtx(()=>{var l;return[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList((l=c.widget)==null?void 0:l.cols,(u,f)=>{var h;return x.openBlock(),x.createBlock(JE,{key:u.id,widget:u,designer:c.designer,"design-state":c.designState,"parent-list":(h=c.widget)==null?void 0:h.cols,"parent-widget":c.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]}),_:1},16,["prop-options"]))}}),qje="",EO=Object.freeze(Object.defineProperty({__proto__:null,default:uae},Symbol.toStringTag,{value:"Module"}));function cae(e){const t=e.widget,n=e.designer,r=n==null?void 0:n.pageConfig,a=e==null?void 0:e.widgetList,o=x.ref({}),i={},{fieldModel:c,fieldName:s,fieldEditor:l,attrs:u,events:f,hasFieldOptions:h,exposed:d,fieldObj:v,watchOption:m,propResultOpt:p,extendAttrs:g}=xn(e),{off$:y,on$:b,emit$:_,broadcast:E}=Jy();var{instance:w}=za();const{setAllRefList:S}=Fu(o.value),A={designState:e==null?void 0:e.designState,pageConfig:r,globalConfig:p==null?void 0:p.globalConfig},{formModel:P,setData:C,getData:D,clearData:k}=XE(a,{...A}),{handleFunc:O}=HE({options:r},A),I=x.reactive({}),N=()=>{y($n.fieldChange),b($n.fieldChange,Z=>{U(Z==null?void 0:Z.fieldName,Z==null?void 0:Z.newValue,Z==null?void 0:Z.oldValue),d==null||d.setValue(P),W(Z==null?void 0:Z.fieldName,Z==null?void 0:Z.newValue,Z==null?void 0:Z.oldValue)})},F=()=>{y($n.fieldValidation),b($n.fieldValidation,Z=>{var re;(re=l.value)==null||re.validateField(Z==null?void 0:Z.propName)})},R=()=>{y($n.fieldRuleChange),b($n.fieldRuleChange,Z=>{var ce;var re=(ce=Z==null?void 0:Z.rules)==null?void 0:ce.map(fe=>({required:fe.required,message:fe.message,trigger:fe.trigger,validator:fe.validator}));Object.assign(I,{[Z==null?void 0:Z.fieldName]:re}),u.value.rules=I})},M=x.ref(!1),j=x.reactive({}),W=(Z,re,ce)=>{M.value=!0,Z&&Qn(j,{[Z]:{oldValue:ce,newValue:re}})},L=()=>{M.value=!1,ix(j)},U=(Z,re,ce)=>{O(f.value.formDataChange,{field:{fieldName:Z,newValue:re,oldValue:ce},formModel:P})},K=()=>{O(f.value.formCreated)},J=()=>{O(f.value.formMounted)},Q=()=>{R(),N(),F(),K()},q=Z=>{var re;(re=l.value)==null||re.clearValidate(Z)},ue=()=>{S(Fi.resetField),x.nextTick(()=>{q()})},te=(Z,re)=>{let ce=[];for(let pe in Z){var fe=Z[pe],me=fe==null?void 0:fe.filter(Ee=>(Ee==null?void 0:Ee.force)===re);me==null||me.forEach(Ee=>{var Ne;const Te=(Ne=Ee==null?void 0:Ee.rule)==null?void 0:Ne.label;Ee.message&&ce.push(uJ(Te?"【"+Te+"】":"",Ee.message,":"))})}return dT(ce)},ne=(Z,re)=>{var ce={};return d0(re,fe=>{var me=pt.getName(fe),pe=na(Z,me);return pe&&(ce[me]=Z[me]),pe},!1),ce},ie=(Z=!0)=>{var me,pe,Ee;let re=D(),ce=function(){},fe=new Promise(function(Te,Ne){ce=function(Re,X){(X?Ne:Te)({data:Re,isSuccess:!X,message:X})}});return!((me=l.value)!=null&&me.validate)||!Z?(ce(re),fe):((Ee=(pe=l.value)==null?void 0:pe.validate)==null||Ee.call(pe,(Te,Ne)=>{if(Te)ce(re);else{var Re=te(Ne,!0);if(Re&&Re.length>0){ce(re,Re);return}var X=te(Ne,!1);if(X&&X.length>0){X.push(se.i18nt("designer.hint.continue")),sq.multiple(X).then(Y=>{ce(re)});return}}}),fe)},de=(Z,re=!0)=>{if(t){var ce=ne(Z,[t]);C(ce,re),E(dn.ContainerWidget,Ap.setFormData,Z,w),E(dn.FieldWidget,Ap.setFormData,Z,w)}},G=Z=>new Promise((re,ce)=>{const fe=(Ne,Re)=>{var Y,ee,ve;const X=(Y=g.value)!=null&&Y.formDataLoaded?(ve=(ee=g.value)==null?void 0:ee.formDataLoaded)==null?void 0:ve.call(ee,D(),Ne):Ne;X?(de(X,!Re),re(X)):re({})},me=()=>{m(Z,Xt.newDataSource,void 0,(Ne,Re)=>{fe(Ne,!0)})},pe=()=>{m(Z,Xt.editDataSource,void 0,(Ne,Re)=>{var Y,ee;if(((ee=(Y=g.value)==null?void 0:Y.needFormAdd)==null?void 0:ee.call(Y,Ne))&&Te){me();return}fe(Ne,!1)})},Ee=h(Xt.editDataSource),Te=h(Xt.newDataSource);Ee?pe():Te&&me()});return Q(),x.onMounted(()=>{xT(),J()}),{widgetRefList:o,allWidgetRefList:i,fieldEditor:l,formModel:P,pageConfig:r,widgetList:a,fieldModel:c,fieldName:s,attrs:u,extendAttrs:g,events:f,rules:I,loadData:G,clearData:k,exposed:{...d,setValue:de,getValue:ie,resetField:ue,clearData:k,loadData:G,getData:D,clearChangeRecord:L,formChangeCache:j,formChangeFlag:M,emit$:_},fieldObj:v}}const fae=x.defineComponent({componentName:dn.ContainerWidget}),pae=x.defineComponent({...fae,__name:"form-widget",props:{...Ii},setup(e,{expose:t}){var v;const n=e,{exposed:r,formModel:a,fieldEditor:o,attrs:i,events:c,widgetRefList:s,extendAttrs:l,fieldName:u,fieldObj:f,loadData:h}=cae({...n,widgetList:(v=n==null?void 0:n.widget)==null?void 0:v.widgetList}),d=u.value;return tl.globalProvide({globalFormName:d,globalDataModel:a}),x.onMounted(()=>{var m;(m=l.value)!=null&&m.loadDataWhenInit&&!n.designState&&h(!0).then(p=>{}).catch(p=>{}).finally(()=>{r.clearChangeRecord()})}),t({...r}),(m,p)=>{const g=x.resolveComponent("el-form"),y=x.resolveDirective("loading");return x.openBlock(),x.createBlock(Sr,x.mergeProps(m.$props,{"prop-options":{fieldObj:x.unref(f)}}),{default:x.withCtx(({data:b})=>{var _,E;return[x.withDirectives((x.openBlock(),x.createBlock(g,x.mergeProps({ref_key:"fieldEditor",ref:o,model:x.unref(a)},x.unref(i),x.toHandlers(x.unref(c)),{class:b.injectClass,key:(_=x.unref(f))==null?void 0:_.fieldKey,"element-loading-text":x.unref(l).loadingText}),{default:x.withCtx(()=>[x.createVNode(Pr,x.mergeProps(m.$props,{dragClass:"formDrag",model:x.unref(a),provideModel:!0,"component-class":b.componentWrapperClass,refList:x.unref(s)}),null,16,["model","component-class","refList"])]),_:2},1040,["model","class","element-loading-text"])),[[y,(E=x.unref(l))==null?void 0:E.showLoading]])]}),_:1},16,["prop-options"])}}}),$je="",wO=Object.freeze(Object.defineProperty({__proto__:null,default:Da(pae,[["__scopeId","data-v-b0372f7b"]])},Symbol.toStringTag,{value:"Module"})),hae=x.defineComponent({componentName:dn.ContainerWidget}),SO=x.defineComponent({...hae,__name:"grid-col-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{attrs:r,fieldObj:a,extendAttrs:o,exposed:i}=xn(n),c=x.computed(()=>n.propOptions.colHeight?{height:n.propOptions.colHeight}:{}),{componentWrapperClass:s}=nl({widget:n.widget}),l=x.computed(()=>(Object.keys(r.value).forEach(u=>{var d,v;var f=["xs","sm","md","lg","xl"],h=["span"];!((d=r.value)!=null&&d.responsive)&&f.includes(u)&&delete r.value[u],(v=r.value)!=null&&v.responsive&&h.includes(u)&&delete r.value[u]}),x.reactive(r.value)));return t({...i}),(u,f)=>{var h,d,v;return x.openBlock(),x.createBlock(Sr,x.mergeProps(u.$props,{showWrapperComponent:!0,"component-name":"el-col",key:(h=u.widget)==null?void 0:h.id,"prop-options":{fieldObj:{...x.unref(a),attrs:x.unref(l)},class:["content-cell","nopadding","nomargin",(d=x.unref(o))==null?void 0:d.horizontalAlign,(v=x.unref(o))==null?void 0:v.verticalAlign],style:x.unref(c)}}),{default:x.withCtx(()=>[x.createVNode(Pr,x.mergeProps(u.$props,{dragClass:"dragSize1","component-class":x.unref(s)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),CO=Object.freeze(Object.defineProperty({__proto__:null,default:SO},Symbol.toStringTag,{value:"Module"})),dae=x.defineComponent({componentName:dn.ContainerWidget}),vae=x.defineComponent({...dae,__name:"grid-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{extendAttrs:r,watchPropAndSaveHistoryStep:a,fieldObj:o,exposed:i}=xn(n),{customClass:c}=nl({widget:n.widget});return a(Xt.cols),t({...i}),(s,l)=>{var u;return x.openBlock(),x.createBlock(Sr,x.mergeProps(s.$props,{"component-name":"el-row",key:(u=s.widget)==null?void 0:u.id,showWrapperComponent:!0,"prop-options":{fieldObj:x.unref(o),class:["nopadding","nomargin",x.unref(c)]}}),{default:x.withCtx(()=>[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList(s.widget.cols,(f,h)=>(x.openBlock(),x.createBlock(SO,{key:f.id,widget:f,designer:s.designer,"design-state":s.designState,"parent-list":s.widget.cols,"parent-widget":s.widget,"prop-options":{colHeight:x.unref(r).colHeight}},null,8,["widget","designer","design-state","parent-list","parent-widget","prop-options"]))),128))]),_:1},16,["prop-options"])}}}),AO=Object.freeze(Object.defineProperty({__proto__:null,default:vae},Symbol.toStringTag,{value:"Module"})),mae=["title"],gae=x.defineComponent({componentName:dn.ContainerWidget}),TO=x.defineComponent({...gae,__name:"ltable-col-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{insertTableRow:r,insertTableCol:a,mergeTableWholeRow:o,mergeTableRow:i,mergeTableCol:c,mergeTableWholeCol:s,undoMergeTableCol:l,undoMergeTableRow:u,deleteTableWholeCol:f,deleteTableWholeRow:h}=tO(),{emitHistoryChangeAfter:d}=Yy(n.designer),{attrs:v,fieldObj:m,exposed:p}=xn(n),g=x.computed(()=>v.value.rowspan),y=x.computed(()=>v.value.colspan),b=x.computed(()=>v.value.cellWidth),_=x.computed(()=>v.value.cellHeight),E=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.colIndex)||0}),w=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.colArray)||[]}),S=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.rowIndex)||0}),A=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.rowArray)||[]}),P=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.colLength)||0}),C=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.rowLength)||0}),{componentWrapperClass:D}=nl({widget:n.widget}),k=x.computed(()=>E.value<=0||pt.getOptions(w.value[E.value-1],"rowspan")!=g.value),O=x.computed(()=>{let fe=E.value+(y.value||0);return E.value>=P.value-1||fe>P.value-1||pt.getOptions(w.value[fe],"rowspan")!==g.value}),I=x.computed(()=>P.value<=1||P.value===y.value),N=x.computed(()=>S.value<=0||pt.getOptions(A.value[S.value-1].cols[E.value],"colspan")!==y.value),F=x.computed(()=>{let fe=S.value+(g.value||0);return S.value>=C.value-1||fe>C.value-1||pt.getOptions(A.value[fe].cols[E.value],"colspan")!==y.value}),R=x.computed(()=>C.value<=1||C.value===g.value),M=x.computed(()=>{var fe;return((fe=jt(n.widget))==null?void 0:fe.merged)||(g.value||1)<=1}),j=x.computed(()=>{var fe;return((fe=jt(n.widget))==null?void 0:fe.merged)||(g.value||1)<=1}),W=x.computed(()=>P.value===1||y.value===P.value),L=x.computed(()=>C.value===1||g.value===C.value),U=()=>{var fe;d(a(jt(n.parentWidget),E.value,S.value,!0),`insertLeftCol ${(fe=n.widget)==null?void 0:fe.id}`)},K=()=>{var fe;d(a(jt(n.parentWidget),E.value,S.value,!1),`insertRightCol ${(fe=n.widget)==null?void 0:fe.id}`)},J=()=>{var fe;d(r(jt(n.parentWidget),S.value,S.value,E.value,!0),`insertAboveRow ${(fe=n.widget)==null?void 0:fe.id}`)},Q=()=>{var fe;d(r(jt(n.parentWidget),S.value,S.value,E.value,!1),`insertBelowRow ${(fe=n.widget)==null?void 0:fe.id}`)},q=()=>{var fe;d(c(A.value,w.value,S.value,E.value,!0,n.widget),`mergeLeftCol ${(fe=n.widget)==null?void 0:fe.id}`)},ue=()=>{var fe;d(c(A.value,w.value,S.value,E.value,!1,n.widget),`mergeRightCol ${(fe=n.widget)==null?void 0:fe.id}`)},te=()=>{var fe;d(o(A.value,w.value,S.value,E.value),`mergeWholeRow ${(fe=n.widget)==null?void 0:fe.id}`)},ne=()=>{var fe;d(i(A.value,S.value,E.value,!0,n.widget),`mergeAboveRow ${(fe=n.widget)==null?void 0:fe.id}`)},ie=()=>{var fe;d(i(A.value,S.value,E.value,!1,n.widget),`mergeBelowRow ${(fe=n.widget)==null?void 0:fe.id}`)},de=()=>{var fe;d(s(A.value,w.value,S.value,E.value),`mergeWholeCol ${(fe=n.widget)==null?void 0:fe.id}`)},G=()=>{var fe;d(l(A.value,S.value,E.value,y.value,g.value),`undoMergeCol ${(fe=n.widget)==null?void 0:fe.id}`)},Z=()=>{var fe;d(u(A.value,S.value,E.value,y.value,g.value),`undoMergeRow ${(fe=n.widget)==null?void 0:fe.id}`)},re=()=>{var fe;d(f(A.value,E.value),`deleteWholeCol ${(fe=n.widget)==null?void 0:fe.id}`)},ce=()=>{var fe;d(h(A.value,S.value),`deleteWholeRow ${(fe=n.widget)==null?void 0:fe.id}`)};return t({...p}),(fe,me)=>{const pe=x.resolveComponent("el-dropdown-item"),Ee=x.resolveComponent("el-dropdown-menu"),Te=x.resolveComponent("el-dropdown");return x.openBlock(),x.createBlock(Sr,x.mergeProps(fe.$props,{"show-wrapper-component":!0,"component-name":"td","prop-options":{class:"table-cell",style:{width:x.unref(b)+"!important"||"",height:x.unref(_)+"!important"||""},fieldObj:{...x.unref(m),colspan:x.unref(y).value||1,rowspan:x.unref(g).value||1}}}),{drag:x.withCtx(()=>[x.createVNode(Te,{trigger:"click",size:"small"},{dropdown:x.withCtx(()=>[x.createVNode(Ee,null,{default:x.withCtx(()=>[x.createVNode(pe,{onClick:me[0]||(me[0]=Ne=>U())},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.insertColumnToLeft")),1)]),_:1}),x.createVNode(pe,{onClick:me[1]||(me[1]=Ne=>K())},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.insertColumnToRight")),1)]),_:1}),x.createVNode(pe,{onClick:me[2]||(me[2]=Ne=>J())},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.insertRowAbove")),1)]),_:1}),x.createVNode(pe,{onClick:me[3]||(me[3]=Ne=>Q())},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.insertRowBelow")),1)]),_:1}),x.createVNode(pe,{onClick:me[4]||(me[4]=Ne=>q()),disabled:x.unref(k),divided:""},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeLeftColumn")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[5]||(me[5]=Ne=>ue()),disabled:x.unref(O)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeRightColumn")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[6]||(me[6]=Ne=>te()),disabled:x.unref(I)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeEntireRow")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[7]||(me[7]=Ne=>ne()),disabled:x.unref(N),divided:""},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeRowAbove")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[8]||(me[8]=Ne=>ie()),disabled:x.unref(F)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeRowBelow")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[9]||(me[9]=Ne=>de()),disabled:x.unref(R)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeEntireColumn")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[10]||(me[10]=Ne=>Z()),disabled:x.unref(j),divided:""},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.undoMergeRow")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[11]||(me[11]=Ne=>G()),disabled:x.unref(M)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.undoMergeCol")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[12]||(me[12]=Ne=>re()),disabled:x.unref(W),divided:""},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.deleteEntireCol")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[13]||(me[13]=Ne=>ce()),disabled:x.unref(L)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.deleteEntireRow")),1)]),_:1},8,["disabled"])]),_:1})]),default:x.withCtx(()=>[x.createElementVNode("i",{title:x.unref(se).i18nt("designer.hint.cellSetting")},[x.createVNode(yi,{name:"@el-menu"})],8,mae)]),_:1})]),default:x.withCtx(()=>[x.createVNode(Pr,x.mergeProps(fe.$props,{"component-class":x.unref(D)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),DO=Object.freeze(Object.defineProperty({__proto__:null,default:TO},Symbol.toStringTag,{value:"Module"})),yae=["element-loading-text"],_ae=x.defineComponent({componentName:dn.ContainerWidget}),bae=x.defineComponent({..._ae,__name:"ltable-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{extendAttrs:r,fieldObj:a,exposed:o}=xn(n),{customClass:i}=nl({widget:n.widget});return t({...o}),(c,s)=>{const l=x.resolveDirective("loading");return x.openBlock(),x.createBlock(Sr,x.mergeProps(c.$props,{"prop-options":{fieldObj:x.unref(a)}}),{default:x.withCtx(()=>{var u,f,h;return[(x.openBlock(),x.createElementBlock("div",{key:(u=c.widget)==null?void 0:u.id,class:x.normalizeClass(["table-container",x.unref(i)])},[x.withDirectives((x.openBlock(),x.createElementBlock("table",{class:"table-layout","element-loading-text":x.unref(r).loadingText},[x.createElementVNode("tbody",null,[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList((f=c.widget)==null?void 0:f.rows,(d,v)=>(x.openBlock(),x.createElementBlock("tr",{key:d.id},[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList(d.cols,(m,p)=>{var g,y;return x.openBlock(),x.createElementBlock(x.Fragment,null,[m.merged?x.createCommentVNode("",!0):(x.openBlock(),x.createBlock(TO,{widget:m,designer:c.designer,"design-state":c.designState,key:m.id,"parent-list":d.cols,"parent-widget":c.widget,"prop-options":{colAttrs:{rowIndex:v,rowLength:(g=c.widget)==null?void 0:g.rows.length,rowArray:(y=c.widget)==null?void 0:y.rows,colIndex:p,colLength:d.cols.length,colArray:d.cols}}},null,8,["widget","designer","design-state","parent-list","parent-widget","prop-options"]))],64)}),256))]))),128))])],8,yae)),[[l,(h=x.unref(r))==null?void 0:h.showLoading]])],2))]}),_:1},16,["prop-options"])}}}),tVe="",PO=Object.freeze(Object.defineProperty({__proto__:null,default:Da(bae,[["__scopeId","data-v-b4d3bf11"]])},Symbol.toStringTag,{value:"Module"})),xae=x.defineComponent({componentName:dn.ContainerWidget}),kO=x.defineComponent({...xae,__name:"tab-pane-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{attrs:r,exposed:a,fieldObj:o}=xn(n),{componentWrapperClass:i,customClass:c}=nl({widget:n.widget});return t({...a}),(s,l)=>{var u;return x.openBlock(),x.createBlock(Sr,x.mergeProps(s.$props,{"show-wrapper-component":!0,"component-name":"el-tab-pane",key:(u=s.widget)==null?void 0:u.id,"prop-options":{fieldObj:x.unref(o),class:["content-cell",x.unref(c)]}}),{default:x.withCtx(()=>[x.createVNode(Pr,x.mergeProps(s.$props,{dragClass:"dragSize","component-class":x.unref(i)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),OO=Object.freeze(Object.defineProperty({__proto__:null,default:kO},Symbol.toStringTag,{value:"Module"})),Eae=x.defineComponent({componentName:dn.ContainerWidget}),wae=x.defineComponent({...Eae,__name:"tabs-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{fieldKey:r,fieldObj:a,attrs:o,extendAttrs:i,events:c,exposed:s,watchPropAndSaveHistoryStep:l}=xn(n),{addTabPaneOfTabs:u,initTabPane:f,getActiveTab:h,deleteTabPaneOfTabs:d,findTabPaneOfTabs:v}=nO(),m=x.computed(()=>{const S=h(jt(n.widget));if(S)return pt.getName(S)}),p=x.ref(),g=x.computed({get:()=>p.value||m.value,set:S=>{p.value=S}}),y=()=>g.value,b=S=>{g.value=S},_=S=>{var A=v(jt(n.widget),S);Xi(A)||d(jt(n.widget),A)},E=S=>{u(jt(n.widget),f(S))},w=()=>{g.value=jt(m.value),s.refreshKey()};return l(Xt.tabs),t({...s,tabAdd:E,tabRemove:_,getValue:y,setValue:b,refresh:w}),(S,A)=>{const P=x.resolveComponent("el-tabs"),C=x.resolveDirective("loading");return x.openBlock(),x.createBlock(Sr,x.mergeProps(S.$props,{"prop-options":{fieldObj:x.unref(a)}}),{default:x.withCtx(({data:D})=>{var k;return[x.withDirectives((x.openBlock(),x.createBlock(P,x.mergeProps({key:x.unref(r)},x.unref(o),x.toHandlers(x.unref(c)),{modelValue:x.unref(g),"onUpdate:modelValue":A[0]||(A[0]=O=>x.isRef(g)?g.value=O:null),class:D.injectClass,style:{...D.injectStyle,width:D.ctrlWidth},"element-loading-text":x.unref(i).loadingText}),{default:x.withCtx(()=>{var O;return[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList((O=S.widget)==null?void 0:O.tabs,(I,N)=>{var F;return x.openBlock(),x.createBlock(kO,{key:x.unref(pt).getName(I),widget:I,designer:S.designer,"design-state":S.designState,"parent-list":(F=S.widget)==null?void 0:F.tabs,"parent-widget":S.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]}),_:2},1040,["modelValue","class","style","element-loading-text"])),[[C,(k=x.unref(i))==null?void 0:k.showLoading]])]}),_:1},16,["prop-options"])}}}),BO=Object.freeze(Object.defineProperty({__proto__:null,default:wae},Symbol.toStringTag,{value:"Module"}));function Sae(e){const t=x.ref({}),{componentWrapperClass:n,customClass:r}=nl({widget:e.widget}),{exposed:a,attrs:o,extendAttrs:i,fieldKey:c,fieldObj:s}=xn(e),{setAllRefList:l}=Fu(t.value),u=(v=!1)=>{l(Fi.setDisabled,{flag:v})},f=(v=!1)=>{var m;(m=a==null?void 0:a.setHidden)==null||m.call(a,v)},h=()=>{l(Fi.resetField)};return(v=>{x.watch(()=>{var m;return(m=o.value)==null?void 0:m[v]},m=>{m!=null&&v==="disabled"&&u(m)},{immediate:!0})})("disabled"),{extendAttrs:i,attrs:o,exposed:{...a,setDisabled:u,setHidden:f,resetField:h},componentWrapperClass:n,customClass:r,fieldKey:c,fieldObj:s,widgetRefList:t}}const Cae=["element-loading-text"],Aae=x.defineComponent({componentName:dn.ContainerWidget}),Tae=x.defineComponent({...Aae,__name:"wrapper-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{attrs:r,extendAttrs:a,exposed:o,customClass:i,componentWrapperClass:c,fieldObj:s,fieldKey:l,widgetRefList:u}=Sae(n);return t({...o}),(f,h)=>{const d=x.resolveDirective("loading");return x.openBlock(),x.createBlock(Sr,x.mergeProps(f.$props,{"prop-options":{fieldObj:x.unref(s),class:[x.unref(i),x.unref(c)]},"component-name":"div","show-wrapper-component":!0}),{default:x.withCtx(({data:v})=>{var m,p,g;return[f.designState||!((m=x.unref(r))!=null&&m.hidden)||!((p=x.unref(r))!=null&&p.lazy)?x.withDirectives((x.openBlock(),x.createElementBlock("div",{ref:"fieldEditor",class:x.normalizeClass([...v.injectClass]),key:x.unref(l),"element-loading-text":x.unref(a).loadingText},[x.createVNode(Pr,x.mergeProps(f.$props,{dragClass:"dragSize","component-class":v.componentWrapperClass,refList:x.unref(u)}),null,16,["component-class","refList"])],10,Cae)),[[d,(g=x.unref(a))==null?void 0:g.showLoading]]):x.createCommentVNode("",!0)]}),_:1},16,["prop-options"])}}}),IO=Object.freeze(Object.defineProperty({__proto__:null,default:Tae},Symbol.toStringTag,{value:"Module"}));function NO(e){let t=new Map;for(const n in e){let r=e==null?void 0:e[n],a=r==null?void 0:r.default,o=(a==null?void 0:a.name)||(a==null?void 0:a.__name);t[o]=a}return t}function FO(){return NO(Object.assign({"../cont-cell-widget.vue":xO,"../cont-widget.vue":EO,"../form-widget.vue":wO,"../grid-col-widget.vue":CO,"../grid-widget.vue":AO,"../ltable-col-widget.vue":DO,"../ltable-widget.vue":PO,"../tab-pane-widget.vue":OO,"../tabs-widget.vue":BO,"../wrapper-widget.vue":IO}))}const Dae={install:(e,t)=>{const n=FO();for(const r in Object.keys(n))e.component(r,n[r])}},Pae={install:(e,t)=>{const n=FO();for(const r in Object.keys(n))e.component(r,n[r])}},kae={style:{width:"99%",height:"99%",margin:"0 auto"}},Oae=["src","id"],Bae={class:"dialog-footer"},Iae=x.defineComponent({__name:"index",props:{...iQ},emits:["ok","cancel","close"],setup(e,{emit:t}){const n=x.ref(!0),r=x.ref(),a=x.ref(!0),o=()=>{a.value=!1};return(i,c)=>{const s=x.resolveComponent("el-button"),l=x.resolveComponent("el-dialog"),u=x.resolveDirective("loading");return x.openBlock(),x.createBlock(l,{modelValue:n.value,"onUpdate:modelValue":c[3]||(c[3]=f=>n.value=f),class:"--hl-dialog1",fullscreen:i.fullscreen,title:i.title,width:i.width,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!0,top:"15vh",style:x.normalizeStyle({height:i.height})},{footer:x.withCtx(()=>{var f,h,d;return[x.createElementVNode("span",Bae,[(f=i.dialogType)!=null&&f.includes(x.unref(lg).close)?(x.openBlock(),x.createBlock(s,{key:0,onClick:c[0]||(c[0]=v=>{t("close",{})}),size:"large"},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.close")),1)]),_:1})):x.createCommentVNode("",!0),(h=i.dialogType)!=null&&h.includes(x.unref(lg).cancel)?(x.openBlock(),x.createBlock(s,{key:1,onClick:c[1]||(c[1]=v=>{t("cancel",{iframeRef:r.value})}),size:"large"},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.close")),1)]),_:1})):x.createCommentVNode("",!0),(d=i.dialogType)!=null&&d.includes(x.unref(lg).save)?(x.openBlock(),x.createBlock(s,{key:2,type:"primary",onClick:c[2]||(c[2]=v=>{t("ok",{iframeRef:r.value})}),size:"large"},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.confirm")),1)]),_:1})):x.createCommentVNode("",!0)])]}),default:x.withCtx(()=>[x.withDirectives((x.openBlock(),x.createElementBlock("div",kae,[x.createElementVNode("iframe",{frameborder:"0",ref_key:"iframeRef",ref:r,style:{width:"100%",height:"100%"},src:i.url,onLoad:o,id:x.unref(Ng)()},null,40,Oae)])),[[u,a.value]])]),_:1},8,["modelValue","fullscreen","title","width","style"])}}}),aVe="",MO=Object.freeze(Object.defineProperty({__proto__:null,default:Iae},Symbol.toStringTag,{value:"Module"}));function Nae(){return NO(Object.assign({"./index.vue":MO}))}const Fae={install:(e,t)=>{const n=Nae();e.use(tQ);for(const r in Object.keys(n))e.component(r,n[r])}};function Mae(e,t,n,r){const a={r:255,g:255,b:255};return{r:Math.round(e*(1-r)+a.r*r),g:Math.round(t*(1-r)+a.g*r),b:Math.round(n*(1-r)+a.b*r)}}function Lae(e,t,n,r=!1,a=5){const o=[];for(let i=0;i<a;i++){const c=Mae(e,t,n,i*.1);o.push(c)}return o}function Rae(e,t=!1,n=5){const r=Vae(e),a=Lae(r.r,r.g,r.b,t,n);return a==null?void 0:a.map(o=>jae(o.r,o.g,o.b))}function jae(e,t,n){const r=a=>{const o=a.toString(16);return o.length===1?"0"+o:o};return`#${r(e)}${r(t)}${r(n)}`}function Vae(e){e=e.replace(/^#/,""),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}}function zae(e,t){return{cssWithPrimaryColor:x.computed(()=>{var o,i;const r=(t==null?void 0:t.themeColor)||IA.color1;var a={themeColor:r};return(o=Rae(r,!1,10))==null||o.forEach((c,s)=>{a["themeColor-"+s]=c}),!hr(e)&&Ui(e)&&((i=Or(a))==null||i.forEach(c=>{e=e==null?void 0:e.replaceAll(`var(--${c})`,a[c])})),e})}}function Uae(e){var{addWindowName:t,addWindowHook:n}=zx();t(),n("openModalAsync",r=>{i5(e==null?void 0:e.instance,r)}),n("ElMessage",vi.ElMessage),n("ElMessageBox",vi.ElMessageBox),n("ElNotification",vi.ElNotification)}function Hae(e){const t=e.designer,n=t==null?void 0:t.pageConfig,r=x.ref(t==null?void 0:t.widgetList),a=e==null?void 0:e.designState,o=e==null?void 0:e.pageData,i=e==null?void 0:e.renderConfig,c={},s={},{off$:l,on$:u,emit$:f}=Jy();var{instance:h,proxy:d}=za();const v={instance:h,designState:a,formData:o,pageConfig:n,globalConfig:i},{handleFunc:m}=HE({options:n},v),{callWidgetsExposed:p}=Fu(s),{formModel:g,setData:y,getData:b,clearData:_}=XE(r.value,v),E=new v0(c),w=new v0(s),{findRefByName:S}=Fu(s),{getOneSchemaData:A,getSchemaDataObject:P,getSchemaDatas:C}=zy(v);let k=(()=>"vfRender"+Ds())();const O=()=>{m(n==null?void 0:n.pageCreated)},I=()=>{m(n==null?void 0:n.pageMounted)},N=()=>{if(!n)return;const ne=ge.getValue(n.cssCode,!1,!0);if(ne){const{cssWithPrimaryColor:de}=zae(ne,{themeColor:(i==null?void 0:i.themeColor)||""});Vee(de.value,a?"":k)}const ie=ge.getValue(n.functions,!1,!0);ie&&zee(ie,a?k:"")},F=(ne=!0)=>{ne&&N(),M(),O(),ue(),te()},R=Zm.page,M=()=>{E.setWidgetRef(R,h),w.setWidgetRef(R,h)},j=ne=>p(ne,Fi.getValue),W=(ne,ie)=>p(ne,Fi.setValue,ie),L=(ne,ie=!0)=>{p(ne,Fi.setDisabled,{flag:ie})},U=ne=>{L(ne,!1)},K=(ne,ie=!0)=>{p(ne,Fi.setHidden,{flag:ie})},J=ne=>{K(ne,!1)},Q=ne=>{if(ne){var ie=ri(ne);if(ie){if(!ie.pageConfig||!ie.widgetList)return"Invalid pageat of page json.";Qn(e.pageConfig,ie),N(),x.nextTick(()=>{F(!1),I()})}else return"Set page json failed."}},q=(ne,ie,de)=>{d==null||d.$emit(Ap.formChange,ne,ie,de,g)},ue=()=>{l($n.fieldChange),u($n.fieldChange,ne=>{q(ne==null?void 0:ne.fieldName,ne==null?void 0:ne.newValue,ne==null?void 0:ne.oldValue)})},te=()=>{l($n.fieldValidation),u($n.fieldValidation,ne=>{})};return F(),x.onMounted(()=>{_(),xT(),I(),Uae({instance:h})}),x.onUnmounted(()=>{_()}),{formModel:g,pageConfig:n,widgetList:r,widgetRefList:c,allWidgetRefList:s,exposed:{findRefByName:S,setPageJson:Q,hideWidgets:K,showWidgets:J,disableWidgets:L,enableWidgets:U,getFieldValue:j,setFieldValue:W,setData:y,getData:b,clearData:_,getOneSchemaData:A,getSchemaDataObject:P,getSchemaDatas:C,emit$:f}}}function Wae(){const e={},t=(a,o,i)=>{e[a]={opt:o,doEvent:i}},n=(a,o)=>{var c,s;const i=e==null?void 0:e[a==null?void 0:a.toLocaleLowerCase()];if(((c=i==null?void 0:i.opt)==null?void 0:c.ctrlKey)===(o==null?void 0:o.ctrlKey))return(s=i==null?void 0:i.doEvent)==null?void 0:s.call(i)};return{bindKey:t,runEvent:a=>{const o=a.ctrlKey||a.metaKey,i=a.key;n(i,{ctrlKey:o})}}}function Gae(e){const{bindKey:t,runEvent:n}=Wae(),r=()=>{t("enter",{ctrlKey:!1},c),t("arrowleft",{ctrlKey:!0},s)},a=l=>(r(),n(l)),o="input,select,textarea",i=["textarea"],c=()=>{var d,v;var l=e.querySelectorAll(o);const u=document.activeElement,f=(d=u==null?void 0:u.nodeName)==null?void 0:d.toLocaleLowerCase();if(!f||i.includes(f))return!1;for(var h=0;h<l.length;h++){const m=l[h];if(m==u)return h==l.length-1?!1:((v=l[h+1])==null||v.focus(),!0);m==null||m.blur()}return!1},s=l=>{var d,v;var u=e.querySelectorAll(o);const f=document.activeElement;(d=f==null?void 0:f.nodeName)==null||d.toLocaleLowerCase();for(var h=0;h<u.length;h++){const m=u[h];if(m==f)return h==0?!1:((v=u[h-1])==null||v.focus(),!0);m==null||m.blur()}return!1};return{addKeyBoardEvent:a}}const Kae=["element-loading-text","onKeyup"],Xae=x.defineComponent({componentName:dn.VFormRender,name:dn.VFormRender}),Yae=x.defineComponent({...Xae,props:{...Ii,pageData:{type:Object},renderConfig:{type:Object}},setup(e,{expose:t,emit:n}){const r=e,{formModel:a,exposed:o,widgetList:i,pageConfig:c,allWidgetRefList:s}=Hae(r),l=x.computed(()=>{var g,y;return ge.getValue((y=(g=r.designer)==null?void 0:g.pageConfig)==null?void 0:y.layoutType)}),u=x.computed(()=>jt(Wr(ge.getValue(c==null?void 0:c.customClass),!0))),f=x.computed(()=>{var g;return(g=ge.getValue(c==null?void 0:c.componentWrapperClass))==null?void 0:g.join(" ")}),h=x.ref(!1),d={};tl.globalProvide({formRefList:d,globalRefList:s,globalDataModel:a,globalFormName:dn.VFormRender}),x.provide(Hr.globalConfig,r.renderConfig),x.provide(Hr.isRenderComplete,h);const v=x.ref(),m=g=>{const{addKeyBoardEvent:y}=Gae(v.value);y(g)},p=()=>{h.value=!0,n(Ap.renderComplete)};return t({...o,componentName:dn.VFormRender}),(g,y)=>{const b=x.resolveDirective("loading");return x.withDirectives((x.openBlock(),x.createElementBlock("div",{"element-loading-text":x.unref(se).i18nt("designer.hint.loading"),class:x.normalizeClass([...x.unref(u),x.unref(l)+"-layout",{loadingLayout:!h.value}]),tabindex:"0",ref_key:"taregtWrapperRef",ref:v,onKeyup:[x.withKeys(m,["enter"]),x.withKeys(m,["left"])]},[x.renderSlot(g.$slots,"header",{},void 0,!0),x.renderSlot(g.$slots,"default",{},()=>[(x.openBlock(),x.createBlock(x.Suspense,{onResolve:p},{default:x.withCtx(()=>[x.createVNode(Pr,{designer:g.designer,"widget-list":x.unref(i),model:x.unref(a),"design-state":!1,"component-class":x.unref(f)},null,8,["designer","widget-list","model","component-class"])]),_:1}))],!0),x.renderSlot(g.$slots,"footer",{},void 0,!0)],42,Kae)),[[b,!h.value]])}}}),sVe="",LO=Da(Yae,[["__scopeId","data-v-3af3e0f4"]]);var ZE={},Jae={get exports(){return ZE},set exports(e){ZE=e}};/**!
90
+ `;break;case"r":n+="\r";break;case"t":n+=" ";break;case"b":n+="\b";break;case"f":n+="\f";break;case"v":n+="\v";break;default:n+=i}else n+=i}return o||this.throwError('Unclosed quote after "'+n+'"'),{type:e.LITERAL,value:n,raw:this.expr.substring(r,this.index)}}},{key:"gobbleIdentifier",value:function(){var n=this.code,r=this.index;for(e.isIdentifierStart(n)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(n=this.code,e.isIdentifierPart(n));)this.index++;return{type:e.IDENTIFIER,name:this.expr.slice(r,this.index)}}},{key:"gobbleArguments",value:function(n){for(var r=[],a=!1,o=0;this.index<this.expr.length;){this.gobbleSpaces();var i=this.code;if(i===n){a=!0,this.index++,n===e.CPAREN_CODE&&o&&o>=r.length&&this.throwError("Unexpected token "+String.fromCharCode(n));break}else if(i===e.COMMA_CODE){if(this.index++,o++,o!==r.length){if(n===e.CPAREN_CODE)this.throwError("Unexpected token ,");else if(n===e.CBRACK_CODE)for(var c=r.length;c<o;c++)r.push(null)}}else if(r.length!==o&&o!==0)this.throwError("Expected comma");else{var s=this.gobbleExpression();(!s||s.type===e.COMPOUND)&&this.throwError("Expected comma"),r.push(s)}}return a||this.throwError("Expected "+String.fromCharCode(n)),r}},{key:"gobbleGroup",value:function(){this.index++;var n=this.gobbleExpressions(e.CPAREN_CODE);if(this.code===e.CPAREN_CODE)return this.index++,n.length===1?n[0]:n.length?{type:e.SEQUENCE_EXP,expressions:n}:!1;this.throwError("Unclosed (")}},{key:"gobbleArray",value:function(){return this.index++,{type:e.ARRAY_EXP,elements:this.gobbleArguments(e.CBRACK_CODE)}}}],[{key:"version",get:function(){return"1.3.8"}},{key:"toString",value:function(){return"JavaScript Expression Parser (JSEP) v"+e.version}},{key:"addUnaryOp",value:function(n){return e.max_unop_len=Math.max(n.length,e.max_unop_len),e.unary_ops[n]=1,e}},{key:"addBinaryOp",value:function(n,r,a){return e.max_binop_len=Math.max(n.length,e.max_binop_len),e.binary_ops[n]=r,a?e.right_associative.add(n):e.right_associative.delete(n),e}},{key:"addIdentifierChar",value:function(n){return e.additional_identifier_chars.add(n),e}},{key:"addLiteral",value:function(n,r){return e.literals[n]=r,e}},{key:"removeUnaryOp",value:function(n){return delete e.unary_ops[n],n.length===e.max_unop_len&&(e.max_unop_len=e.getMaxKeyLen(e.unary_ops)),e}},{key:"removeAllUnaryOps",value:function(){return e.unary_ops={},e.max_unop_len=0,e}},{key:"removeIdentifierChar",value:function(n){return e.additional_identifier_chars.delete(n),e}},{key:"removeBinaryOp",value:function(n){return delete e.binary_ops[n],n.length===e.max_binop_len&&(e.max_binop_len=e.getMaxKeyLen(e.binary_ops)),e.right_associative.delete(n),e}},{key:"removeAllBinaryOps",value:function(){return e.binary_ops={},e.max_binop_len=0,e}},{key:"removeLiteral",value:function(n){return delete e.literals[n],e}},{key:"removeAllLiterals",value:function(){return e.literals={},e}},{key:"parse",value:function(n){return new e(n).parse()}},{key:"getMaxKeyLen",value:function(n){return Math.max.apply(Math,[0].concat(ME(Object.keys(n).map(function(r){return r.length}))))}},{key:"isDecimalDigit",value:function(n){return n>=48&&n<=57}},{key:"binaryPrecedence",value:function(n){return e.binary_ops[n]||0}},{key:"isIdentifierStart",value:function(n){return n>=65&&n<=90||n>=97&&n<=122||n>=128&&!e.binary_ops[String.fromCharCode(n)]||e.additional_identifier_chars.has(String.fromCharCode(n))}},{key:"isIdentifierPart",value:function(n){return e.isIdentifierStart(n)||e.isDecimalDigit(n)}}])}(),gie=new vie;Object.assign(Ko,{hooks:gie,plugins:new mie(Ko),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),Ko.max_unop_len=Ko.getMaxKeyLen(Ko.unary_ops),Ko.max_binop_len=Ko.getMaxKeyLen(Ko.binary_ops);var Xp=function(t){return new Ko(t).parse()},yie=Object.getOwnPropertyNames(Ko);yie.forEach(function(e){Xp[e]===void 0&&e!=="prototype"&&(Xp[e]=Ko[e])}),Xp.Jsep=Ko;var _ie="ConditionalExpression",bie={name:"ternary",init:function(t){t.hooks.add("after-expression",function(r){if(r.node&&this.code===t.QUMARK_CODE){this.index++;var a=r.node,o=this.gobbleExpression();if(o||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===t.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),r.node={type:_ie,test:a,consequent:o,alternate:i},a.operator&&t.binary_ops[a.operator]<=.9){for(var c=a;c.right.operator&&t.binary_ops[c.right.operator]<=.9;)c=c.right;r.node.test=c.right,c.right=r.node,r.node=a}}else this.throwError("Expected :")}})}};Xp.plugins.register(bie);var uO=47,xie=92,Eie={name:"regex",init:function(t){t.hooks.add("gobble-token",function(r){if(this.code===uO){for(var a=++this.index,o=!1;this.index<this.expr.length;){if(this.code===uO&&!o){for(var i=this.expr.slice(a,this.index),c="";++this.index<this.expr.length;){var s=this.code;if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57)c+=this.char;else break}var l=void 0;try{l=new RegExp(i,c)}catch(u){this.throwError(u.message)}return r.node={type:t.LITERAL,value:l,raw:this.expr.slice(a-1,this.index)},r.node=this.gobbleTokenProperty(r.node),r.node}this.code===t.OBRACK_CODE?o=!0:o&&this.code===t.CBRACK_CODE&&(o=!1),this.index+=this.code===xie?2:1}this.throwError("Unclosed Regex")}})}},RE=43,wie=45,Yp={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|="]),updateOperators:[RE,wie],assignmentPrecedence:.9,init:function(t){var n=[t.IDENTIFIER,t.MEMBER_EXP];Yp.assignmentOperators.forEach(function(a){return t.addBinaryOp(a,Yp.assignmentPrecedence,!0)}),t.hooks.add("gobble-token",function(o){var i=this,c=this.code;Yp.updateOperators.some(function(s){return s===c&&s===i.expr.charCodeAt(i.index+1)})&&(this.index+=2,o.node={type:"UpdateExpression",operator:c===RE?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},(!o.node.argument||!n.includes(o.node.argument.type))&&this.throwError("Unexpected ".concat(o.node.operator)))}),t.hooks.add("after-token",function(o){var i=this;if(o.node){var c=this.code;Yp.updateOperators.some(function(s){return s===c&&s===i.expr.charCodeAt(i.index+1)})&&(n.includes(o.node.type)||this.throwError("Unexpected ".concat(o.node.operator)),this.index+=2,o.node={type:"UpdateExpression",operator:c===RE?"++":"--",argument:o.node,prefix:!1})}}),t.hooks.add("after-expression",function(o){o.node&&r(o.node)});function r(a){Yp.assignmentOperators.has(a.operator)?(a.type="AssignmentExpression",r(a.left),r(a.right)):a.operator||Object.values(a).forEach(function(o){o&&Go(o)==="object"&&r(o)})}}},Wa=Object.prototype.hasOwnProperty;function Iu(e,t){return e=e.slice(),e.push(t),e}function jE(e,t){return t=t.slice(),t.unshift(e),t}var Sie=function(e){function t(n){var r;return Gp(this,t),r=rie(this,t,['JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)']),r.avoidNew=!0,r.value=n,r.name="NewError",r}return sie(t,e),Kp(t)}(FE(Error));function Nr(e,t,n,r,a){if(!(this instanceof Nr))try{return new Nr(e,t,n,r,a)}catch(s){if(!s.avoidNew)throw s;return s.value}typeof e=="string"&&(a=r,r=n,n=t,t=e,e=null);var o=e&&Go(e)==="object";if(e=e||{},this.json=e.json||n,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=Wa.call(e,"wrap")?e.wrap:!0,this.sandbox=e.sandbox||{},this.eval=e.eval===void 0?"safe":e.eval,this.ignoreEvalErrors=typeof e.ignoreEvalErrors>"u"?!1:e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||r||null,this.otherTypeCallback=e.otherTypeCallback||a||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},e.autostart!==!1){var i={path:o?e.path:t};o?"json"in e&&(i.json=e.json):i.json=n;var c=this.evaluate(i);if(!c||Go(c)!=="object")throw new Sie(c);return c}}Nr.prototype.evaluate=function(e,t,n,r){var a=this,o=this.parent,i=this.parentProperty,c=this.flatten,s=this.wrap;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=r||this.otherTypeCallback,t=t||this.json,e=e||this.path,e&&Go(e)==="object"&&!Array.isArray(e)){if(!e.path&&e.path!=="")throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Wa.call(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');var l=e;t=l.json,c=Wa.call(e,"flatten")?e.flatten:c,this.currResultType=Wa.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Wa.call(e,"sandbox")?e.sandbox:this.currSandbox,s=Wa.call(e,"wrap")?e.wrap:s,this.currEval=Wa.call(e,"eval")?e.eval:this.currEval,n=Wa.call(e,"callback")?e.callback:n,this.currOtherTypeCallback=Wa.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,o=Wa.call(e,"parent")?e.parent:o,i=Wa.call(e,"parentProperty")?e.parentProperty:i,e=e.path}if(o=o||null,i=i||null,Array.isArray(e)&&(e=Nr.toPathString(e)),!(!e&&e!==""||!t)){var u=Nr.toPathArray(e);u[0]==="$"&&u.length>1&&u.shift(),this._hasParentSelector=null;var f=this._trace(u,t,["$"],o,i,n).filter(function(h){return h&&!h.isParentSelector});return f.length?!s&&f.length===1&&!f[0].hasArrExpr?this._getPreferredOutput(f[0]):f.reduce(function(h,d){var v=a._getPreferredOutput(d);return c&&Array.isArray(v)?h=h.concat(v):h.push(v),h},[]):s?[]:void 0}},Nr.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":{var n=Array.isArray(e.path)?e.path:Nr.toPathArray(e.path);return e.pointer=Nr.toPointer(n),e.path=typeof e.path=="string"?e.path:Nr.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return Nr.toPathString(e[t]);case"pointer":return Nr.toPointer(e.path);default:throw new TypeError("Unknown result type")}},Nr.prototype._handleCallback=function(e,t,n){if(t){var r=this._getPreferredOutput(e);e.path=typeof e.path=="string"?e.path:Nr.toPathString(e.path),t(r,n,e)}},Nr.prototype._trace=function(e,t,n,r,a,o,i,c){var s=this,l;if(!e.length)return l={path:n,value:t,parent:r,parentProperty:a,hasArrExpr:i},this._handleCallback(l,o,"value"),l;var u=e[0],f=e.slice(1),h=[];function d(k){Array.isArray(k)?k.forEach(function(O){h.push(O)}):h.push(k)}if((typeof u!="string"||c)&&t&&Wa.call(t,u))d(this._trace(f,t[u],Iu(n,u),t,u,o,i));else if(u==="*")this._walk(t,function(k){d(s._trace(f,t[k],Iu(n,k),t,k,o,!0,!0))});else if(u==="..")d(this._trace(f,t,n,r,a,o,i)),this._walk(t,function(k){Go(t[k])==="object"&&d(s._trace(e.slice(),t[k],Iu(n,k),t,k,o,!0))});else{if(u==="^")return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:f,isParentSelector:!0};if(u==="~")return l={path:Iu(n,u),value:a,parent:r,parentProperty:null},this._handleCallback(l,o,"property"),l;if(u==="$")d(this._trace(f,t,n,null,null,o,i));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(u))d(this._slice(u,f,t,n,r,a,o));else if(u.indexOf("?(")===0){if(this.currEval===!1)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");var v=u.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),m=/@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])?((?:[\0->@-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))(?!(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])\)\])['\]]/g.exec(v);m?this._walk(t,function(k){var O=[m[2]],I=m[1]?t[k][m[1]]:t[k],N=s._trace(O,I,n,r,a,o,!0);N.length>0&&d(s._trace(f,t[k],Iu(n,k),t,k,o,!0))}):this._walk(t,function(k){s._eval(v,t[k],k,n,r,a)&&d(s._trace(f,t[k],Iu(n,k),t,k,o,!0))})}else if(u[0]==="("){if(this.currEval===!1)throw new Error("Eval [(expr)] prevented in JSONPath expression.");d(this._trace(jE(this._eval(u,t,n[n.length-1],n.slice(0,-1),r,a),f),t,n,r,a,o,i))}else if(u[0]==="@"){var p=!1,g=u.slice(1,-2);switch(g){case"scalar":(!t||!["object","function"].includes(Go(t)))&&(p=!0);break;case"boolean":case"string":case"undefined":case"function":Go(t)===g&&(p=!0);break;case"integer":Number.isFinite(t)&&!(t%1)&&(p=!0);break;case"number":Number.isFinite(t)&&(p=!0);break;case"nonFinite":typeof t=="number"&&!Number.isFinite(t)&&(p=!0);break;case"object":t&&Go(t)===g&&(p=!0);break;case"array":Array.isArray(t)&&(p=!0);break;case"other":p=this.currOtherTypeCallback(t,n,r,a);break;case"null":t===null&&(p=!0);break;default:throw new TypeError("Unknown value type "+g)}if(p)return l={path:n,value:t,parent:r,parentProperty:a},this._handleCallback(l,o,"value"),l}else if(u[0]==="`"&&t&&Wa.call(t,u.slice(1))){var y=u.slice(1);d(this._trace(f,t[y],Iu(n,y),t,y,o,i,!0))}else if(u.includes(",")){var b=u.split(","),_=die(b),E;try{for(_.s();!(E=_.n()).done;){var w=E.value;d(this._trace(jE(w,f),t,n,r,a,o,!0))}}catch(k){_.e(k)}finally{_.f()}}else!c&&t&&Wa.call(t,u)&&d(this._trace(f,t[u],Iu(n,u),t,u,o,i,!0))}if(this._hasParentSelector)for(var S=0;S<h.length;S++){var A=h[S];if(A&&A.isParentSelector){var P=this._trace(A.expr,t,A.path,r,a,o,i);if(Array.isArray(P)){h[S]=P[0];for(var C=P.length,D=1;D<C;D++)S++,h.splice(S,0,P[D])}else h[S]=P}}return h},Nr.prototype._walk=function(e,t){if(Array.isArray(e))for(var n=e.length,r=0;r<n;r++)t(r);else e&&Go(e)==="object"&&Object.keys(e).forEach(function(a){t(a)})},Nr.prototype._slice=function(e,t,n,r,a,o,i){if(Array.isArray(n)){var c=n.length,s=e.split(":"),l=s[2]&&Number.parseInt(s[2])||1,u=s[0]&&Number.parseInt(s[0])||0,f=s[1]&&Number.parseInt(s[1])||c;u=u<0?Math.max(0,u+c):Math.min(c,u),f=f<0?Math.max(0,f+c):Math.min(c,f);for(var h=[],d=u;d<f;d+=l){var v=this._trace(jE(d,t),n,r,a,o,i,!0);v.forEach(function(m){h.push(m)})}return h}},Nr.prototype._eval=function(e,t,n,r,a,o){var i=this;this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=a,this.currSandbox._$_property=n,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;var c=e.includes("@path");c&&(this.currSandbox._$_path=Nr.toPathString(r.concat([n])));var s=this.currEval+"Script:"+e;if(!Nr.cache[s]){var l=e.replace(/@parentProperty/g,"_$_parentProperty").replace(/@parent/g,"_$_parent").replace(/@property/g,"_$_property").replace(/@root/g,"_$_root").replace(/@([\t-\r \)\.\[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/g,"_$_v$1");if(c&&(l=l.replace(/@path/g,"_$_path")),this.currEval==="safe"||this.currEval===!0||this.currEval===void 0)Nr.cache[s]=new this.safeVm.Script(l);else if(this.currEval==="native")Nr.cache[s]=new this.vm.Script(l);else if(typeof this.currEval=="function"&&this.currEval.prototype&&Wa.call(this.currEval.prototype,"runInNewContext")){var u=this.currEval;Nr.cache[s]=new u(l)}else if(typeof this.currEval=="function")Nr.cache[s]={runInNewContext:function(h){return i.currEval(l,h)}};else throw new TypeError('Unknown "eval" property "'.concat(this.currEval,'"'))}try{return Nr.cache[s].runInNewContext(this.currSandbox)}catch(f){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+f.message+": "+e)}},Nr.cache={},Nr.toPathString=function(e){for(var t=e,n=t.length,r="$",a=1;a<n;a++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(t[a])||(r+=/^[\*0-9]+$/.test(t[a])?"["+t[a]+"]":"['"+t[a]+"']");return r},Nr.toPointer=function(e){for(var t=e,n=t.length,r="",a=1;a<n;a++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(t[a])||(r+="/"+t[a].toString().replace(/~/g,"~0").replace(/\//g,"~1"));return r},Nr.toPathArray=function(e){var t=Nr.cache;if(t[e])return t[e].concat();var n=[],r=e.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/g,";$&;").replace(/['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))['\]](?!(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])\])/g,function(o,i){return"[#"+(n.push(i)-1)+"]"}).replace(/\[["']((?:[\0-&\(-\\\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)["']\]/g,function(o,i){return"['"+i.replace(/\./g,"%@%").replace(/~/g,"%%@@%%")+"']"}).replace(/~/g,";~;").replace(/["']?\.["']?(?!(?:[\0-Z\\-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*\])|\[["']?/g,";").replace(/%@%/g,".").replace(/%%@@%%/g,"~").replace(/(?:;)?(\^+)(?:;)?/g,function(o,i){return";"+i.split("").join(";")+";"}).replace(/;;;|;;/g,";..;").replace(/;$|'?\]|'$/g,""),a=r.split(";").map(function(o){var i=o.match(/#([0-9]+)/);return!i||!i[1]?o:n[i[1]]});return t[e]=a,t[e].concat()};var Cie=function(t,n,r){for(var a=t.length,o=0;o<a;o++){var i=t[o];r(i)&&n.push(t.splice(o--,1)[0])}};Xp.plugins.register(Eie,Yp);var Yr={evalAst:function(t,n){switch(t.type){case"BinaryExpression":case"LogicalExpression":return Yr.evalBinaryExpression(t,n);case"Compound":return Yr.evalCompound(t,n);case"ConditionalExpression":return Yr.evalConditionalExpression(t,n);case"Identifier":return Yr.evalIdentifier(t,n);case"Literal":return Yr.evalLiteral(t,n);case"MemberExpression":return Yr.evalMemberExpression(t,n);case"UnaryExpression":return Yr.evalUnaryExpression(t,n);case"ArrayExpression":return Yr.evalArrayExpression(t,n);case"CallExpression":return Yr.evalCallExpression(t,n);case"AssignmentExpression":return Yr.evalAssignmentExpression(t,n);default:throw SyntaxError("Unexpected expression",t)}},evalBinaryExpression:function(t,n){var r={"||":function(o,i){return o||i()},"&&":function(o,i){return o&&i()},"|":function(o,i){return o|i()},"^":function(o,i){return o^i()},"&":function(o,i){return o&i()},"==":function(o,i){return o==i()},"!=":function(o,i){return o!=i()},"===":function(o,i){return o===i()},"!==":function(o,i){return o!==i()},"<":function(o,i){return o<i()},">":function(o,i){return o>i()},"<=":function(o,i){return o<=i()},">=":function(o,i){return o>=i()},"<<":function(o,i){return o<<i()},">>":function(o,i){return o>>i()},">>>":function(o,i){return o>>>i()},"+":function(o,i){return o+i()},"-":function(o,i){return o-i()},"*":function(o,i){return o*i()},"/":function(o,i){return o/i()},"%":function(o,i){return o%i()}}[t.operator](Yr.evalAst(t.left,n),function(){return Yr.evalAst(t.right,n)});return r},evalCompound:function(t,n){for(var r,a=0;a<t.body.length;a++){t.body[a].type==="Identifier"&&["var","let","const"].includes(t.body[a].name)&&t.body[a+1]&&t.body[a+1].type==="AssignmentExpression"&&(a+=1);var o=t.body[a];r=Yr.evalAst(o,n)}return r},evalConditionalExpression:function(t,n){return Yr.evalAst(t.test,n)?Yr.evalAst(t.consequent,n):Yr.evalAst(t.alternate,n)},evalIdentifier:function(t,n){if(t.name in n)return n[t.name];throw ReferenceError("".concat(t.name," is not defined"))},evalLiteral:function(t){return t.value},evalMemberExpression:function(t,n){var r=t.computed?Yr.evalAst(t.property):t.property.name,a=Yr.evalAst(t.object,n),o=a[r];return typeof o=="function"?o.bind(a):o},evalUnaryExpression:function(t,n){var r={"-":function(o){return-Yr.evalAst(o,n)},"!":function(o){return!Yr.evalAst(o,n)},"~":function(o){return~Yr.evalAst(o,n)},"+":function(o){return+Yr.evalAst(o,n)}}[t.operator](t.argument);return r},evalArrayExpression:function(t,n){return t.elements.map(function(r){return Yr.evalAst(r,n)})},evalCallExpression:function(t,n){var r=t.arguments.map(function(o){return Yr.evalAst(o,n)}),a=Yr.evalAst(t.callee,n);return a.apply(void 0,ME(r))},evalAssignmentExpression:function(t,n){if(t.left.type!=="Identifier")throw SyntaxError("Invalid left-hand side in assignment");var r=t.left.name,a=Yr.evalAst(t.right,n);return n[r]=a,n[r]}},Aie=function(){function e(t){Gp(this,e),this.code=t,this.ast=Xp(this.code)}return Kp(e,[{key:"runInNewContext",value:function(n){var r=iie({},n);return Yr.evalAst(this.ast,r)}}])}(),Tie=function(){function e(t){Gp(this,e),this.code=t}return Kp(e,[{key:"runInNewContext",value:function(n){var r=this.code,a=Object.keys(n),o=[];Cie(a,o,function(u){return typeof n[u]=="function"});var i=a.map(function(u){return n[u]}),c=o.reduce(function(u,f){var h=n[f].toString();return/function/.test(h)||(h="function "+h),"var "+f+"="+h+";"+u},"");r=c+r,!/(["'])use strict\1/.test(r)&&!a.includes("arguments")&&(r="var arguments = undefined;"+r),r=r.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/,"");var s=r.lastIndexOf(";"),l=s>-1?r.slice(0,s+1)+" return "+r.slice(s+1):" return "+r;return iO(Function,a.concat([l])).apply(void 0,ME(i))}}])}();Nr.prototype.vm={Script:Tie},Nr.prototype.safeVm={Script:Aie};const h0=(e,t)=>{if(!t||!e)return null;var n=Nr({json:t,path:e});return n},cO=e=>{var t=[];if(!e)return t;var n=h0("$..widgetList[*]",e);return e.type==tt.tabs?(t=e.tabs,t=[...n,...t]):e.type==tt.grid&&(t=h0("$..cols[*]",e),t=[...n,...t]),t=[...n],t==null?void 0:t.filter(r=>!!(r!=null&&r.type))},$c=(e,t,n)=>{e==null||e.forEach(r=>{var a,o,i,c,s,l,u;if(r){if(t==null||t.push(r),r.type===tt.tabs)(a=r.tabs)==null||a.forEach(f=>{t==null||t.push(f),$c(f.widgetList,t,n)});else if(r.type===tt.table)(o=r.rows)==null||o.forEach(f=>{var h;t==null||t.push(f),(h=f==null?void 0:f.cols)==null||h.forEach(d=>{t==null||t.push(d),$c(d.widgetList,t,n)})});else if(r.type===tt.grid)(i=r.cols)==null||i.forEach(f=>{t==null||t.push(f),$c(f.widgetList,t,n)});else if(r.type===tt.cont){const f=h=>{var d;$c(h.widgetList,t,n),(d=h==null?void 0:h.children)==null||d.map(v=>{f(v)})};(c=r.cols)==null||c.forEach(h=>{f(h)})}else if(((s=r.widgetList)==null?void 0:s.length)>0&&$c(r.widgetList,t,n),!n){const f=(u=(l=Or(r.options))==null?void 0:l.filter(h=>{var d;return((d=r.options[h])==null?void 0:d.type)===be.slot}))==null?void 0:u.map(h=>r.options[h]);f==null||f.forEach(h=>{$c(h==null?void 0:h.widgetList,t,n)})}}})},d0=(e,t,n)=>{let r=[];return Ky(e,o=>{r.push(o)},t,n),r},Ky=(e,t,n,r)=>{if(!e)return;const a=[];$c(e,a,r),a==null||a.forEach(o=>{n?n(o)&&t(o):t(o)})},Die=(e,t)=>{if(!e)return;const n=d0(e,r=>!!(r!=null&&r.formItemFlag),!0);return n==null||n.forEach(r=>t==null?void 0:t(r)),n},Pie=(e,t)=>{if(!t||(e==null?void 0:e.length)<=0)return;const n=d0(e,a=>(a==null?void 0:a.id)===t);return n==null?void 0:n[0]},fO=(e,t)=>d0(e,n=>(n==null?void 0:n.type)===t),kie=(e,t)=>{var a;if(!e)return[];let n=[],r=o=>{o&&(n.find(i=>(i==null?void 0:i.name)===pt.getName(o))||n.push({type:o.type,name:pt.getName(o),field:o}))};return t?(a=h0("$..*[?(@property === 'formItemFlag' && @ === true)]^",e))==null||a.forEach(o=>{r(o)}):Die(e,r),n},jl=(e,t,n,r=!1,a)=>{var l,u,f,h,d,v,m,p,g;if(!e)return;let o={id:e.id,type:e.type,label:pt.getOptions(e,"label")||pt.getOptions(e,"name")||e.type,widget:r?e:null,parent:t,children:[],matched:!a||(a==null?void 0:a(e))};if(n==null||n.push(o),e.category===void 0)return;if(o.children=[],e.type===tt.grid)(l=e==null?void 0:e.cols)==null||l.map(y=>{var _,E;let b={id:y.id,type:y.type,label:pt.getOptions(y,"name")||y.id||y.type,children:[],parent:o,widget:r?y:null};(_=o.children)==null||_.push(b),(E=y.widgetList)==null||E.map(w=>{jl(w,b,b.children,r,a)})});else if(e.type===tt.cont){const y=b=>{var _,E;(_=b.widgetList)==null||_.map(w=>{jl(w,o,o.children,r,a)}),(E=b==null?void 0:b.children)==null||E.map(w=>y(w))};(u=e==null?void 0:e.cols)==null||u.map(b=>{y(b)})}else if(e.type===tt.table)(f=e==null?void 0:e.rows)==null||f.map(y=>{var _,E;let b={id:y.id,type:tt.tableRow,label:tt.tableRow,selectable:!1,children:[],parent:o,widget:r?y:null};(_=y==null?void 0:y.cols)==null||_.map(w=>{var P;if(w.merged)return;let S=b.children,A={id:w.id,type:tt.tableCol,label:tt.tableCol,children:[],parent:b,widget:r?w:null};(P=w.widgetList)==null||P.map(C=>{jl(C,A,A.children,r,a)}),S==null||S.push(A)}),(E=o.children)==null||E.push(b)});else if(e.type===tt.tabs)(h=e==null?void 0:e.tabs)==null||h.map(y=>{var _,E;let b={id:y.id,type:y.type,label:pt.getOptions(y,"label")||y.type,children:[],parent:o,widget:r?y:null};(_=o.children)==null||_.push(b),(E=y==null?void 0:y.widgetList)==null||E.map(w=>{jl(w,b,b.children,r,a)})});else if(e.type===tt.eltable){var i=h0("$..widgetList[*]",(d=e.options)==null?void 0:d.optionItems.value);(i==null?void 0:i.length)>0&&(i==null||i.map(y=>{jl(y,o,o.children,r,a)}))}else e.category===bu.container&&((v=e==null?void 0:e.widgetList)==null?void 0:v.length)>0&&((m=e==null?void 0:e.widgetList)==null||m.map(y=>{jl(y,o,o.children,r,a)}));const c=pt.getOptions(e,Xt.widgetList);c&&(c==null||c.map(y=>{jl(y,o,o.children,r,a)}));const s=(g=(p=Or(e.options))==null?void 0:p.filter(y=>{var b;return((b=e.options[y])==null?void 0:b.type)===be.slot}))==null?void 0:g.map(y=>e.options[y]);s==null||s.forEach(y=>{var b,_,E;if(((b=y==null?void 0:y.widgetList)==null?void 0:b.length)>0){let w={id:y.slotName+Ds(),type:y.type,label:y.slotName||y.type,children:[],parent:o,widget:r?y:null,selectable:!1};(_=o.children)==null||_.push(w),(E=y==null?void 0:y.widgetList)==null||E.map(S=>{jl(S,w,w.children,r,a)})}})},pO=(e,t=!1,n)=>{const r=[];let a={label:tt.page,id:tt.page,type:tt.page};return e==null||e.forEach(o=>{jl(o,a,r,t,n)}),Qn(a,{children:r}),[a]},hO=(e,t,n)=>{!e||e.length<=0||e.forEach(r=>{r.id===t?n==null||n(r):hO(r==null?void 0:r.children,t,n)})},dO=(e,t)=>{let n=null;return hO(e,t,r=>{n=r}),n},VE=(e,t)=>{const n=dO(e,t);let r=[];const a=o=>{o&&(r.push(o),o!=null&&o.parent&&a(o==null?void 0:o.parent))};return a(n),r},Xy=(e,t,n)=>{const r=Yn(e);return Wo(r,t,n),Ky([r],a=>{Wo(a,t,n)}),r},Jp=(e,t,n,r=!1,a)=>{if(!t||(t==null?void 0:t.length)<=0||!n||!e)return;let o=null;for(var i=0;i<(t==null?void 0:t.length);i++){const c=t==null?void 0:t[i];if(c.id&&(o=pt.getOptions(c.widget,n,r,!(a!=null&&a.designState)),o))break}return o},Oie=(e,t,n,r)=>{var c;const a=h0("$..widgetList[?(@.id==='"+e+"')]^",Yn(n)),o=(c=a==null?void 0:a[0])==null?void 0:c.find(s=>{var l;return((l=s==null?void 0:s._source)==null?void 0:l.name)===t}),i=o==null?void 0:o.id;return r==null?void 0:r(i)};function Bie(){const e=()=>{let c=jt(Yn(Bu(tt.grid)));return c=Wo(c),c},t=()=>{let c=jt(Yn(Bu(tt.gridCol)));return c=Wo(c),c},n=c=>{let s=Yn(c);return Xy(s)};return{initGrid:e,initCloneGrid:c=>{var l;let s=e();return(l=jt(c).cols)==null||l.forEach(u=>{let f=n(u);jt(s).cols.push(f)}),s},initGridCol:t,initCloneGridCol:n,deleteColOfGrid:(c,s)=>(c&&c.cols&&c.cols.splice(s,1),!0),addNewColOfGrid:c=>{const s=c.cols;let l=t();if(s&&s.length>0){let u=0;s.forEach(f=>{u+=pt.getOptions(f,"span")||0}),u>=24||pt.setOptions(l,"span",24-u>12?12:24-u),c.cols.push(l)}else c.cols=[l];return!0},isGrid:c=>(c==null?void 0:c.type)===tt.grid}}function Iie(){return{initCloneContCell:a=>{let o=Yn(a);return Xy(o)},initContCell:(a=Bl.main,o)=>{let i=new IE;return Qn(i,o),i.partName=new ge(be.placer,a),i},initCont:()=>{let a=Yn(Bu(tt.cont));return a.id=a.type+Ds(),pt.setName(a,a.id),a},isCont:a=>(a==null?void 0:a.type)===tt.cont}}class Nie{constructor(){z(this,"size",mo.default);z(this,"layoutType",qT.PC);z(this,"jsonVersion",Zm.pageJsonVersion);z(this,"customClass",new ge(be.placer,[]));z(this,"componentWrapperClass",new ge(be.placer,[]));z(this,"pageCreated",new ge(be.event,void 0,new ot));z(this,"pageMounted",new ge(be.event,void 0,new ot));z(this,"cssCode",new ge(be.placer,void 0,new ot));z(this,"functions",new ge(be.placer,void 0,new ot));z(this,"willFetch",new ge(be.hook,void 0,new ot));z(this,"fitFetch",new ge(be.hook,void 0,new ot));z(this,"errorFetch",new ge(be.hook,void 0,new ot));z(this,"didFetch",new ge(be.hook,void 0,new ot));z(this,"schema",new ge(be.dataObject,[{protocal:Vc.URI,name:Hr.urlParams,description:se.i18nt("designer.hint.varibaleURL"),isReadonly:!0},{protocal:Vc.CONFIG,name:Hr.compParams,description:se.i18nt("designer.hint.varibaleConfig"),isReadonly:!0}]))}}class Xje extends u0{constructor(){super(...arguments);z(this,"protocal",Vc.VALUE);z(this,"name","");z(this,"description","");z(this,"isReadonly",!1)}}const Fie=e=>{if(!e)return null;switch(e){case tt.anchor:return Fk.getKeys();case tt.breadcrumb:return jk.getKeys();case tt.radio:return Tk.getKeys();case tt.select:return _o.getKeys();case tt.checkbox:return Dk.getKeys();case tt.image:return _o.getKeys();case tt.steps:return zk.getKeys();case tt.carousel:return Mk.getKeys();case tt.collapse:return Lk.getKeys();case tt.descriptions:return Rk.getKeys();case tt.dropdown:return Nk.getKeys();case tt.cascader:return DE.getKeys();case tt.tree:case tt.treeSelect:return Sk.getKeys();case tt.menu:return Vk.getKeys();case tt.tabs:return OE.getKeys();case tt.grid:return Hk.getKeys();case tt.cont:return IE.getKeys();case tt.eltable:return Uk.getKeys();case tt.model:return Wk.getKeys();default:return null}},Mie=e=>{if(!e)return null;var t=null;switch(e){case tt.anchor:t=new Fk,t.title="title";break;case tt.breadcrumb:t=new jk;break;case tt.radio:t=new Tk;break;case tt.select:t=new _o;break;case tt.checkbox:t=new Dk;break;case tt.image:t=new _o;break;case tt.steps:t=new zk;break;case tt.carousel:t=new Mk;break;case tt.collapse:t=new Lk;break;case tt.descriptions:t=new Rk;break;case tt.dropdown:t=new Nk;break;case tt.tree:case tt.treeSelect:t=new Sk;break;case tt.cascader:t=new DE;break;case tt.menu:t=new Vk;break;case tt.cont:t=new IE;break;case tt.tabs:t=new OE;break;case tt.eltable:t=new Uk;break;case tt.model:t=new Wk;break;default:t=null}return t},Lie=e=>{if(!e)return null;var t=Fie(e);return t?Rie(t,1,e):null},Rie=(e,t,n)=>{var r={};if(!e||(e==null?void 0:e.length)<=0)return r;if(n){var a=Mie(n);if(a)r=a;else return r}else e==null||e.forEach(o=>{r[o]||(r[o]=null)});return e!=null&&e.includes(Xt.value)&&(r[Xt.value]=String(t)),e!=null&&e.includes(Xt.label)&&(r[Xt.label]=Xt.option+" "+t),e!=null&&e.includes(Xt.children)&&(r[Xt.children]=[]),e!=null&&e.includes(Xt.name)&&(r[Xt.name]=Xt.option+t),r};function zE(e,t){return{widgetTree:x.computed(()=>x.reactive(pO(e,t)))}}function UE(e,t){const n=x.computed(()=>{var c;const i=VE(e,t==null?void 0:t.id);return(i==null?void 0:i.length)<=0&&(t!=null&&t._source)?VE(e,(c=t==null?void 0:t._source)==null?void 0:c.id):i}),r=x.computed(()=>{var i;return(i=n.value)==null?void 0:i.map(c=>({id:c==null?void 0:c.id,selectable:c.selectable,label:pt.getWidgetTypeName(jt(c.type))})).filter(c=>c.id!==(t==null?void 0:t.id))}),{parentForm:a,parentFormId:o}=vO(n.value);return{widgetTree:e,parentForm:a,parentFormId:o,parentTree:r,pathNodes:n}}const vO=e=>{const t=x.computed(()=>{var r;return(r=e==null?void 0:e.find(a=>a.type===tt.form))==null?void 0:r.widget}),n=x.computed(()=>{var r;return(r=t==null?void 0:t.value)==null?void 0:r.id});return{parentForm:t,parentFormId:n}};function jie(e,t){const{widget:n}=e,{parentFormId:r}=vO(t),a=x.computed(()=>{var f,h,d;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.size,!1,e)||((d=(h=e==null?void 0:e.designer)==null?void 0:h.pageConfig)==null?void 0:d.size))}),o=x.computed(()=>{var f;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.displayLayout,!1,e))}),i=x.computed(()=>{var f;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.labelAlign,!1,e))}),c=x.computed(()=>{var f;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.labelWidth,!1,e))}),s=x.computed(()=>{var f;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.labelHidden,!1,e))}),l=x.computed(()=>{var f;return jt(Jp((f=e.designer)==null?void 0:f.widgetList,t,Xt.labelSuffix,!1,e))}),u=x.computed(()=>(n==null?void 0:n.formItemFlag)&&!!r.value);return{displayLayout:o,size:a,labelWidth:c,labelAlign:i,labelSuffix:l,labelHidden:s,formItemFlag:u}}function Yy(e){const t=Ak(e),{initHistoryData:n,emitHistoryChange:r,saveCurrentHistoryStep:a,saveFormContentToStorage:o}=t,{initGridCol:i,isGrid:c}=Bie(),{initContCell:s,isCont:l}=Iie(),{initTabPane:u,getActiveTab:f,isTabs:h}=nO(),{initTableRow:d,isTable:v}=tO(),m=new Nie,p=(Te=!0)=>{e.widgetList=[],e.pageConfig=Yn(m),Te||n()},g=Te=>{var Re,X;let Ne=e.widgetList.length===0;(X=e.widgetList)==null||X.splice(0,(Re=e.widgetList)==null?void 0:Re.length),R(),e.pageConfig=m,Te||(Ne?a("clearDesigner"):r("clearDesigner"))},y=Te=>{e.pageWidget=Te},b=Te=>Pie(e.widgetList,Te),_=(Te,Ne)=>{Te&&r(Ne)},E=()=>({widgetList:[],pageConfig:Id(m)}),w=()=>({widgetList:Id(e.widgetList),pageConfig:Id(e.pageConfig)}),S=Te=>{let Ne=!1;return g(),Te&&Te.widgetList&&(e.widgetList=Te.widgetList,Ne=!0),Te&&Te.pageConfig&&(Qn(e.pageConfig,Te.pageConfig),Ne=!0),Ne&&O(Zm.pageJsonImported,[]),Ne},A=Te=>{e&&(e.cssClassList=Te)},P=()=>e==null?void 0:e.cssClassList,C=Te=>{ge.getValue(e.pageConfig.cssCode)===""&&Te&&ge.setValue(e.pageConfig,"cssCode",Te)},D=(Te=!1,Ne)=>pO(e.widgetList,Te,Ne),k=()=>{var Te=D(!1,Y=>!!(Y!=null&&Y.formItemFlag));const Ne=(Y,ee)=>{[tt.page,tt.form,be.slot,tt.grid,tt.gridCol,tt.table,tt.tableRow,tt.tableCol,tt.card,tt.wrapper,tt.cont,tt.contCell].includes(ee==null?void 0:ee.type)||ee!=null&&ee.label&&(Y==null||Y.push((ee==null?void 0:ee.label)||"")),ee!=null&&ee.parent&&Ne(Y,ee.parent)};let Re=[];const X=Y=>{Y==null||Y.forEach(ee=>{if(ee.matched){const ve=[];Ne(ve,ee),ee.label=ve.reverse().join(".");const Ce=Object.assign({},ee);delete Ce.children,delete Ce.parent,Re.push(Ce)}X(ee.children)})};return X(Te),Re},O=(Te,Ne)=>{Ck.$emit(Te,Ne)},I=(Te,Ne)=>{Ck.$on(Te,Re=>Ne(Re))},N=(Te,Ne,Re)=>{Te&&(Re&&na(Te.options,"label")?pt.setOptions(Te,"label",Re):Re&&na(Te.options,"content")&&pt.setOptions(Te,"content",Re))},F=Te=>{if(!Te){R();return}e.selectedWidget=Te},R=()=>{e.selectedWidget=void 0},M=(Te,Ne,Re)=>{const X=Te==null?void 0:Te.newIndex,Y=Ne==null?void 0:Ne[X];Y&&F(Y),r(`drag add ${Y==null?void 0:Y.id}`),Re==null||Re(Ne)},j=(Te,Ne)=>{},W=(Te,Ne,Re)=>{r("drag update"),Re==null||Re(Ne)},L=(Te,Ne,Re)=>{r("drag remove"),Re==null||Re(Ne)},U=Te=>!0,K=Te=>{var X,Y;let Ne=jt(Yn(Te));if(!Ne)return null;if(Ne.id=pt.newId(Ne.type),qc(Ne,Xt.name)&&pt.setOptions(Ne,Xt.name,Ne.id),qc(Ne,Xt.label)&&pt.setOptions(Ne,Xt.label,pt.getOptions(Ne,"label")||((X=Ne.type)==null?void 0:X.toLowerCase())),qc(Ne,Xt.content)&&pt.setOptions(Ne,Xt.content,pt.getOptions(Ne,"content")||((Y=Ne.type)==null?void 0:Y.toLowerCase())),qc(Ne,Xt.optionItems)&&(Ne==null?void 0:Ne.type)!==tt.image){var Re=ge.getValue(pt.getOrgOption(Ne,Xt.optionItems));Re==null||Re.splice(1,0,Lie(Ne.type)),ge.setValue(Ne==null?void 0:Ne.options,Xt.optionItems,Re)}return Ne},J=Te=>{var X,Y,ee;let Ne=K(Te);if(!Ne)return;let Re=e.widgetList;e.selectedWidget&&(h(e.selectedWidget)?Re=(X=f(jt(e.selectedWidget)))==null?void 0:X.widgetList:(Y=jt(e.selectedWidget))!=null&&Y.widgetList&&(Re=(ee=e.selectedWidget)==null?void 0:ee.widgetList)),Re==null||Re.push(Ne),F(Ne),r(`addFieldByDbClick ${Te==null?void 0:Te.id}`)},Q=(Te,Ne)=>{var Re=de(Te,Ne);if(Te){if(Re===0){mi.info(se.i18nt("designer.hint.moveUpFirstChildHint"));return}let X=Te[Re];Te.splice(Re,1),Te.splice(Re-1,0,X)}r(`moveUpWidget ${Ne==null?void 0:Ne.id}`)},q=(Te,Ne)=>{var Re=de(Te,Ne);if(Te){if(Re===Te.length-1){mi.info(se.i18nt("designer.hint.moveDownLastChildHint"));return}let X=Te[Re];Te.splice(Re,1),Te.splice(Re+1,0,X)}r(`moveDownWidget ${Ne==null?void 0:Ne.id}`)},ue=Te=>{var X,Y,ee,ve,Ce,Oe,Ie,Be,We,ze;let Ne=null,Re=Yn(Te);if(c(Te))Ne=jt(Re),(X=Ne.cols)==null||X.push(i()),(Y=Ne.cols)==null||Y.push(i());else if(l(Te)){Ne=jt(Re);const Xe=s(Bl.container);(ee=Xe.children)==null||ee.push(s(Bl.header));let it=s(Bl.container,{direction:Cs.horizontal});(ve=it.children)==null||ve.push(s(Bl.aside,{cellWidth:new ge(be.placer,"20%")})),(Ce=it.children)==null||Ce.push(s(Bl.main,{cellWidth:new ge(be.placer,"80%")})),(Oe=Xe.children)==null||Oe.push(it),(Ie=Xe.children)==null||Ie.push(s(Bl.footer)),(Be=Ne.cols)==null||Be.push(Xe)}else v(Te)?(Ne=jt(Re),(We=Ne.rows)==null||We.push(d())):h(Te)?(Ne=jt(Re),(ze=Ne.tabs)==null||ze.push(u(void 0,!0))):Ne=jt(Re);return Ne.id=pt.newId(Ne.type),pt.setName(Ne,Ne.id),Ne},te=Te=>{let Ne=ue(Te);e.widgetList.push(Ne),F(Ne),r(`addContainerByDbClick ${Te==null?void 0:Te.id}`)},ne=(Te,Ne)=>{var Re=null;if(Te){Re=Xy(Te,{recordSource:!1});var X=de(Ne,Te);return Ne==null||Ne.splice(X+1,0,Re),F(Re),r(`cloneWidget ${Te==null?void 0:Te.id}`),Re}},ie=(Te,Ne,Re)=>{var X=de(Re,Te);if(Re){let Y=null;Re.length===1?Ne&&(Y=Ne):Re.length===1+X?Y=Re[X-1]:Y=Re[X+1],x.nextTick(()=>{Re.splice(X,1),F(Y),r(`removeWidget ${Te==null?void 0:Te.id}`)})}},de=(Te,Ne)=>!Ne||!Te?-1:Te==null?void 0:Te.indexOf(Ne),G=(Te,Ne,Re)=>{e&&(F(Te),O($n.fieldSelected,Ne))},Z=Te=>{Te?F(Te):R()},re=Te=>{var Y;const{widgetTree:Ne}=zE(e.widgetList,!0),{pathNodes:Re}=UE(Ne.value,Te);return(Y=Re.value)==null?void 0:Y[1].widget},ce=Te=>{var Y,ee,ve;const{widgetTree:Ne}=zE(e.widgetList,!0),{pathNodes:Re}=UE(Ne.value,Te);return((ve=(ee=(Y=Re.value)==null?void 0:Y[1])==null?void 0:ee.widget)==null?void 0:ve.widgetList)||e.widgetList};return{...t,initDesigner:p,clearDesigner:g,registerPageWidget:y,setSelected:F,clearSelected:R,updateSelectedWidgetLabel:N,copyNewFieldWidget:K,copyNewContainerWidget:ue,addContainerByDbClick:te,addFieldByDbClick:J,selectWidget:G,removeSelectedWidget:()=>{const Te=e.selectedWidget;if(!Te)return!1;if(Te!=null&&Te.internal)return mi.info(se.i18nt("designer.hint.currentNodeCannotBeSelected")),!1;const Ne=re(Te),Re=ce(Te);return ie(Te,Ne,Re),!0},cloneSelectedWidget:()=>{var Te;if((Te=e.selectedWidget)!=null&&Te.internal){mi.info(se.i18nt("designer.hint.currentNodeCannotBeSelected"));return}return e.selectedWidget},pasteSelectedWidget:Te=>{const Ne=e.selectedWidget,Re=ce(Ne);return ne(Te,Re),!0},selectParentWidget:Z,moveUpWidget:Q,moveDownWidget:q,cloneWidget:ne,removeWidget:ie,checkWidgetMove:U,onWidgetDragAdd:M,onWidgetDragEnd:j,onWidgetDragUpdate:W,onWidgetDragRemove:L,setCssClassList:A,getCssClassList:P,getImportTemplate:E,emitEvent:O,handleEvent:I,loadPageJson:S,getPageJson:w,loadPresetCssCode:C,getNodeTree:D,findTreeNode:dO,findWidgetById:b,findToRootFromNode:VE,buildFormItemList:k,emitHistoryChangeAfter:_,watchPropAndSaveHistory:Te=>{Te&&x.watch(()=>{var Ne;return(Ne=e==null?void 0:e.selectedWidget)==null?void 0:Ne[Te]},Ne=>{o()},{deep:!0})}}}class tl{constructor(){z(this,"formRefList",{});z(this,"globalRefList",{});z(this,"globalDataModel",{});z(this,"globalFormName","");z(this,"rowScope",{});z(this,"globalConfig",{})}static globalInject(){const t=new tl;return t.formRefList=x.inject(Hr.refList,{}),t.globalRefList=x.inject(Hr.allRefList,{}),t.globalDataModel=x.inject(Hr.globalModel,{}),t.rowScope=x.inject(Hr.rowScope,{}),t.globalFormName=x.inject(Hr.globalForm,""),t.globalConfig=x.inject(Hr.globalConfig,{}),t}static globalProvide(t){if((t==null?void 0:t.globalDataModel)!==void 0){const n=(t==null?void 0:t.globalDataModel)||{};x.provide(Hr.globalModel,n)}if((t==null?void 0:t.rowScope)!==void 0){const n=(t==null?void 0:t.rowScope)||{};x.provide(Hr.rowScope,n)}if((t==null?void 0:t.globalRefList)!==void 0){const n=(t==null?void 0:t.globalRefList)||{};x.provide(Hr.allRefList,n)}if((t==null?void 0:t.formRefList)!==void 0){const n=(t==null?void 0:t.formRefList)||{};x.provide(Hr.refList,n)}if((t==null?void 0:t.globalFormName)!==void 0){const n=(t==null?void 0:t.globalFormName)||"";x.provide(Hr.globalForm,n)}if((t==null?void 0:t.globalConfig)!==void 0){const n=(t==null?void 0:t.globalConfig)||"";x.provide(Hr.globalConfig,n)}}}function nl(e){const t=(g,y=!1)=>pt.getOptions(e==null?void 0:e.widget,g,y,!(e!=null&&e.designState)),n=x.computed(()=>t(Xt.ctrlWidth)||"auto"),r=x.computed(()=>t(Xt.ctrlHeight)||"auto"),a=x.computed(()=>{var g=t(Xt.customClass);return Array.isArray(g)?g==null?void 0:g.join(" "):g}),o=x.computed(()=>{var g=t(Xt.componentWrapperClass);return Array.isArray(g)?g==null?void 0:g.join(" "):g}),i=x.computed(()=>{var g,y;return(y=jt((g=t(Xt.required,!0))==null?void 0:g.options))==null?void 0:y.enable}),c=x.computed(()=>t(Xt.hidden)),s=x.computed(()=>t(Xt.displayLayout)),l=x.computed(()=>t(Xt.labelTooltip)),u=x.computed(()=>t(Xt.labelIconClass)),f=x.computed(()=>t(Xt.labelIconPosition)),h=x.computed(()=>t(Xt.labelHidden)),d=x.computed(()=>t(Xt.label)),v=x.computed(()=>t(Xt.labelWidth)),m=x.computed(()=>t(Xt.labelAlign));return{attrs:x.computed(()=>({required:i.value,label:d.value,labelHidden:h.value,labelAlign:m.value,labelIconClass:u.value,labelIconPosition:f.value,labelTooltip:l.value,labelWidth:v.value,ctrlWidth:n.value})),labelAlign:m,labelHidden:h,labelIconClass:u,labelIconPosition:f,labelTooltip:l,labelWidth:v,label:d,displayLayout:s,hidden:c,ctrlWidth:n,ctrlHeight:r,customClass:a,componentWrapperClass:o}}const Vie=x.defineComponent({__name:"comp-wrapper",props:{...Ii,componentName:{type:String,default:"div"},componentClass:{type:String,default:""},componentAttrs:{type:Object,default:null}},setup(e){const t=e;x.useCssVars(i=>({"3181642b":x.unref(n),"3647b13c":x.unref(r),"09837c9c":x.unref(a)}));const{ctrlWidth:n,ctrlHeight:r,displayLayout:a,hidden:o}=nl(t);return(i,c)=>e.componentName?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(e.componentName),x.mergeProps({key:0,class:[e.componentClass,"comp__1"]},e.componentAttrs),{default:x.withCtx(()=>[x.renderSlot(i.$slots,"default",{},void 0,!0)]),_:3},16,["class"])):x.renderSlot(i.$slots,"default",x.mergeProps({key:1,class:[e.componentClass,"comp__1"]},e.componentAttrs),void 0,!0)}}),Yje="",Da=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},mO=Da(Vie,[["__scopeId","data-v-556cd573"]]),zie={key:0,class:"tipBase tipTopLeft"},Uie={key:1,class:"tipBase tipContent"},Hie=x.defineComponent({__name:"drag-wrapper",props:{...Ii,widgetList:{type:Array,default:[]},dragClass:{type:String,default:""},propName:{type:String,default:Xt.widgetList},title:{type:String,default:""},model:{type:Object,default:null},provideModel:{type:Boolean,default:!1},refList:{type:Object,default:null},widgetTree:{type:Object,default:null},dragTip:{type:String,default:se.i18nt("designer.hint.draggableArea")},dragTag:{type:String,default:"div"},componentName:{type:String,default:"div"},componentClass:{type:String,default:""},componentAttrs:{type:Object,default:null},componentStyle:{type:Object,default:null},rowScope:{type:Object,default:null}},emits:["update"],setup(e,{emit:t}){const n=e,{components:r}=Dne(),{checkWidgetMove:a,onWidgetDragAdd:o,onWidgetDragUpdate:i,onWidgetDragEnd:c,onWidgetDragRemove:s}=Yy(n.designer),l=f=>{t("update",f)},u=x.computed({get:()=>n.widget?ax(n.widget,n.propName):n.widgetList,set:f=>{n.widget?No(n.widget,n.propName,f):t("update",f)}});return(Va(n.model)||n.provideModel)&&tl.globalProvide({globalDataModel:n==null?void 0:n.model}),n.refList&&tl.globalProvide({formRefList:n.refList}),Va(n.rowScope)&&Va(n.rowScope)&&tl.globalProvide({rowScope:n.rowScope}),(f,h)=>{const d=x.resolveComponent("draggable");return f.designState===!0?(x.openBlock(),x.createBlock(d,x.mergeProps({key:0,list:x.unref(u),"item-key":"id",group:"dragGroup",class:[e.dragClass,"containerDraggable full-height"],tag:e.dragTag},{chosenClass:"chosen",ghostClass:"ghost",animation:200},{"component-data":{name:"fade"},handle:".drag-handler",onEnd:h[0]||(h[0]=v=>x.unref(c)(v,x.unref(u))),onRemove:h[1]||(h[1]=v=>x.unref(s)(v,x.unref(u),l)),onAdd:h[2]||(h[2]=v=>x.unref(o)(v,x.unref(u),l)),onUpdate:h[3]||(h[3]=v=>x.unref(i)(v,x.unref(u),l)),move:x.unref(a)}),{header:x.withCtx(()=>[x.renderSlot(f.$slots,"header",{},void 0,!0)]),item:x.withCtx(({element:v,index:m})=>[x.createVNode(mO,x.mergeProps({widget:v,designer:f.designer,"design-state":f.designState,"parent-list":x.unref(u),"parent-widget":f.widget,class:e.componentClass},e.componentAttrs,{style:e.componentStyle,componentName:e.componentName}),{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(r)(v)),{designer:f.designer,widget:v,key:v.id,"design-state":f.designState,"parent-list":x.unref(u),"parent-widget":f.widget},null,8,["designer","widget","design-state","parent-list","parent-widget"]))]),_:2},1040,["widget","designer","design-state","parent-list","parent-widget","class","style","componentName"])]),footer:x.withCtx(()=>[x.renderSlot(f.$slots,"footer",{},void 0,!0),x.renderSlot(f.$slots,"tip",{},()=>{var v,m;return[((v=x.unref(u))==null?void 0:v.length)<=0&&e.title?(x.openBlock(),x.createElementBlock("div",zie,x.toDisplayString(e.title),1)):x.createCommentVNode("",!0),((m=x.unref(u))==null?void 0:m.length)<=0&&e.dragTip?(x.openBlock(),x.createElementBlock("div",Uie,x.toDisplayString(e.dragTip),1)):x.createCommentVNode("",!0)]},!0)]),_:3},16,["list","class","tag","move"])):(x.openBlock(!0),x.createElementBlock(x.Fragment,{key:1},x.renderList(x.unref(u),(v,m)=>(x.openBlock(),x.createBlock(mO,x.mergeProps({key:v.id,widget:v,designer:f.designer,"design-state":f.designState,"parent-list":x.unref(u),"parent-widget":f.widget,componentName:e.componentName,class:e.componentClass},e.componentAttrs,{style:e.componentStyle}),{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(r)(v)),{designer:f.designer,widget:v,"design-state":f.designState,"parent-list":x.unref(u),"parent-widget":f.widget},null,8,["designer","widget","design-state","parent-list","parent-widget"]))]),_:2},1040,["widget","designer","design-state","parent-list","parent-widget","componentName","class","style"]))),128))}}}),Jje="",Pr=Da(Hie,[["__scopeId","data-v-42621552"]]);function Jy(){const e={},t=(a,o)=>{var i,c,s,l;return a?!!((i=a==null?void 0:a.proxy)!=null&&i.$options&&((s=(c=a==null?void 0:a.proxy)==null?void 0:c.$options)==null?void 0:s.componentName)===o||a!=null&&a.exposed&&((l=a==null?void 0:a.exposed)==null?void 0:l.componentName)===o):!1},n=(a,o,i)=>{a&&Or(a).forEach(c=>{t(a[c],o)&&(i==null||i(a[c]))})},r=(a,o,i)=>{a&&(t(a,o)?i==null||i(a):r(a.parent,o,i))};return{emit$(a,o){e[a]&&e[a].forEach(i=>{i(o)})},on$(a,o){e[a]=e[a]||[],e[a].push(o)},off$(a,o){if(e[a]){if(hr(o)){e[a].length=0;return}for(let i=0;i<e[a].length;i++)if(e[a][i]===o){e[a].splice(i,1);break}}},dispatch(a,o,i,c){if(!a)return;let s=c.parent||c.root;r(s,a,l=>{var u;l&&(l.exposed.emit$&&l.exposed.emit$(o,i),l!=null&&l.proxy&&((u=l==null?void 0:l.proxy)==null||u.$emit(o,i)))})},broadcast(a,o,i,c){n(c.widgetRefList,a,s=>{s.emit$&&s.emit$.call(s,o,i)}),n(c.refList,a,s=>{s.emit$&&s.emit$.call(s,o,i)})}}}function Wie(){return{onMountedOrActivated:n=>{let r=!1;x.onMounted(()=>{n(),x.nextTick(()=>{r=!0})}),x.onActivated(()=>{r&&n()})},onCompErrorCaptured:()=>{x.onErrorCaptured(n=>(Hi.error("onCompErrorCaptured",n),!1))}}}function HE(e,t){const{getWidgetOption:n,getWidgetOptionByPropValue:r}=Uo(e,t),a=i=>n(i);return{existFunc:a,handleFunc:(i,c)=>{if(Ui(i)){var s=a(String(i));return Op(s,c)}else{var s=r(jt(i));return Op(s,c)}}}}class v0{constructor(t){z(this,"refList",{});t&&(this.refList=t)}initRefList(){this.refList||(this.refList={})}getWidgetRef(t){if(t)return this.initRefList(),this.refList[t]}setWidgetRef(t,n){t&&(this.initRefList(),this.refList[t]=n)}removeWidgetRef(t){t&&this.refList&&delete this.refList[t.toString()]}}const WE="",GE="_",gO=(e,t)=>hr(t)?e||"":`${WE}${e}${GE}${t}`,Nu=e=>{if(e!=null&&e.includes(GE)){var t=e.split(GE);const n=t==null?void 0:t[0].substring(WE.length),r=e.substring(WE.length+n.length+1);return{id:n,groupName:r}}return{id:e}};var m0=(e=>(e[e.None=0]="None",e[e.Inner2Inner=1]="Inner2Inner",e[e.Inner2Outer=2]="Inner2Outer",e[e.Outer2Inner=3]="Outer2Inner",e[e.Outer2Outer=4]="Outer2Outer",e[e.DiffInner=5]="DiffInner",e))(m0||{});const Gie=(e,t)=>{const n=Nu(e),r=n==null?void 0:n.groupName,a=Nu(t),o=a==null?void 0:a.groupName;return!r&&!o?4:r&&!o?2:r&&o?r!==o?5:1:!r&&o?3:0};function Fu(e){e||(e={});const t=new v0(e),{instance:n}=za(),r=d=>t.getWidgetRef(d==null?void 0:d.toString()),a=(d,v,m)=>{var p=[],g=[];let y=r(d);return y&&p.push(y),p==null||p.forEach(b=>{var _=i(b,v,m);_&&g.push(_)}),g},o=(d,v)=>{var m;return(m=d==null?void 0:d.exposed)==null?void 0:m[v.toString()]},i=(d,v,m)=>{var p=o(d,v);if(p){var g=[];return m&&(g=Object.values(m)),p(...g)}},c=(d,v,m)=>{var p=[];if(d){var g=jt(Wr(d,!0));g==null||g.forEach(y=>{var b=a(y,v,m);hr(b)||p.push(b)})}return Array.isArray(d)?p:p==null?void 0:p[0]},s=(d,v)=>{let m=Or(e);c(m,d,v)},l=(d,v)=>{var _,E,w;const m=(E=(_=v||n)==null?void 0:_.exposed)==null?void 0:E.getField();var p=Nu(m==null?void 0:m.id);const g=S=>(S==null?void 0:S.id)===d,y=S=>{var P;var A=Nu(S==null?void 0:S.id);return(p==null?void 0:p.groupName)===(A==null?void 0:A.groupName)&&((A==null?void 0:A.id)===d||((P=S==null?void 0:S._source)==null?void 0:P.id)===d)},b=(w=Or(t.refList))==null?void 0:w.find(S=>{var P,C;try{const D=(C=(P=t.refList[S])==null?void 0:P.exposed)==null?void 0:C.getField();var A=g(D);return!A&&(p!=null&&p.groupName)&&(A=y(D)),A}catch{return!1}});if(b)return r(b)},u=d=>{if(d){let v=d;t==null||t.setWidgetRef(v,n)}},f=d=>{if(d){let v=d;t==null||t.removeWidgetRef(v)}};return{findWidgetAndCall:a,getWidgetRef:r,callWidgetsExposed:c,callRefFunc:i,existRefFunc:o,setAllRefList:s,findRefById:l,findRefByName:r,changeRegisterToRefList:(d,v)=>{d&&(u(d),f(v))},registerToRefList:u,unregisterFromRefList:f}}const pa=(e,t=!0,n)=>{if(n!=null&&n===!1)return[];const r=KE(e);return t||(e==null?void 0:e.length)<=0?r:r==null?void 0:r.filter(a=>{var o;return!!(a!=null&&a.widgetList)&&((o=a==null?void 0:a.widgetList)==null?void 0:o.length)>0||!!a.default||(a==null?void 0:a.slotName)===Io.default})},ha=(e,t)=>e==null?void 0:e.find(n=>(n==null?void 0:n.slotName)===t),KE=e=>jt(e);function XE(e,t){const n=t==null?void 0:t.pageConfig,r=t==null?void 0:t.formData,a=x.reactive({});Qn(a,r);var{instance:o}=za();const i=()=>{var u=kie(e);u==null||u.forEach(f=>{const{computedDefaultValue:h,fieldName:d,hasDefaultValue:v}=Uo(f.field,t,{s_fieldName:!0},o);d.value&&v()&&Bd(h()).then(m=>{Qn(a,{[d.value]:m})})})},c=()=>{ix(a)};return{formModel:a,pageConfig:n,widgetList:e,initData:i,setData:(u,f=!0)=>{f&&c(),Qn(a,u)},getData:()=>yT(a),clearData:c}}function Zy(){const e=(o,i)=>Xy(o,{newName:!0,recordSource:!0},(c,s)=>gO(c||s,i)),t=(o,i,c)=>{var h,d;Xi(c)&&(c=`${(h=Ng())==null?void 0:h.substring(0,5)}_${!Xi(i==null?void 0:i.$index)&&(i==null?void 0:i.$index)>=0?i==null?void 0:i.$index:""}`);var s=pa(o,!0);let l=s==null?void 0:s.map(v=>e(v,c));const u=a(l),{updateFomulaName:f}=Eu();return(d=Or(u))==null||d.forEach(v=>{const m=u[v],p=m==null?void 0:m.name;l=f(l,p,v)}),{widget:l,id:c,key:Ds(),data:i}},n=(o,i)=>{if(o||(o=[]),i&&(o==null?void 0:o.length)<i){const l=i-(o==null?void 0:o.length);for(var c=0;c<l;c++){var s={};o==null||o.push(s)}}return o},r=(o,i,c,s)=>{if(Array.isArray(i))return i=n(i,c),i==null?void 0:i.map((l,u)=>{const f=s?s(l,u):l;return t(o,f,u+"")})},a=(o,i)=>{let c={};return o&&Ky(o,s=>{const l=pt.getName(s),u=()=>{l&&(c[l]=s==null?void 0:s._source)};i?i(s)&&u():u()}),c};return{newSlot:t,reflectTargetWithSourceOne:a,getSlotFromData:r,getMinRowData:n,parseGroupId:Nu,formatGroupId:gO}}function YE(e){const t=e==null?void 0:e.fieldName,n=e==null?void 0:e.setValue,r=x.reactive({}),a=x.reactive([]),{newSlot:o,reflectTargetWithSourceOne:i,getSlotFromData:c,getMinRowData:s}=Zy(),l=(w,S)=>{var C;let A={};const P=i(S);return(C=Or(w))==null||C.map(D=>{var O,I,N;const k=(O=P==null?void 0:P[D])==null?void 0:O.name;k&&(A[k]=w==null?void 0:w[D],(N=(I=Or(w))==null?void 0:I.filter(F=>F.startsWith(D+"_")))==null||N.forEach(F=>{A[F==null?void 0:F.replace(D,k)]=w==null?void 0:w[F]}))}),A},u=(w,S)=>{var C,D;let A={};if(Va(w)){const k=i(S,O=>!!(O!=null&&O.formItemFlag));(C=Or(k))==null||C.map(O=>{var I;O&&(A[O]=w==null?void 0:w[(I=k==null?void 0:k[O])==null?void 0:I.name])})}else{var P={pageConfig:(D=e==null?void 0:e.designer)==null?void 0:D.pageConfig,formData:A,designState:e==null?void 0:e.designState};const{formModel:k,initData:O}=XE(S,P);O(),Qn(A,k)}return A},f=(w,S)=>{const A=u(S,w.widget);return Qn(r,A),A},h=w=>{var S;(S=Or(r))==null||S.forEach(A=>{const P=Nu(A);(P==null?void 0:P.groupName)==w.id&&delete r[A]})},d=()=>a==null?void 0:a.map(S=>l(r,S==null?void 0:S.widget)),v=(w,S)=>{ix(r);const A=S(w);return A==null||A.forEach(P=>{const C=u(P==null?void 0:P.data,P==null?void 0:P.widget);Qn(r,C)}),a.splice(0,a.length),A&&A.length>0&&a.push(...A),a},m=w=>{var A;var S=nl({...e,widget:w});return(A=S.attrs)==null?void 0:A.value},p=(w,S,A)=>Oie(w,S,a,A),{off$:g,on$:y,emit$:b}=Jy(),_=()=>{g($n.fieldChange),y($n.fieldChange,w=>{var S;n==null||n(d()),(S=e==null?void 0:e.fieldChanged)==null||S.call(e)})};return(()=>{const w=t;tl.globalProvide({globalFormName:w,globalDataModel:r}),_()})(),{getSlotFromData:c,getMinRowData:s,fromModel:u,toModel:l,newSlot:o,getWidgetOption:m,newFieldModelFromSlot:f,removeFieldModelFromSlot:h,getValue:d,setValue:v,findWidgetByNameWithSibId:p,emit$:b,formModel:r,rowsData:a}}const Kie=(e,t,n,r)=>{const a=new v0(e),{callRefFunc:o}=Fu(e),{parseGroupId:i}=Zy();if(!e||e.length<=0||!t)return;const c=()=>{var y,b;return(b=(y=Or(e))==null?void 0:y.map(_=>o(e==null?void 0:e[_],Fi.getField)))==null?void 0:b.filter(_=>!!_)},s=y=>{var w;const b=(w=c())==null?void 0:w.find(S=>(S==null?void 0:S.id)===y);if(!b)return;const _=pt.getName(b),E=a.getWidgetRef(_);if(E)return{ref:E,name:_,id:b==null?void 0:b.id}},l=(y,b)=>{if(!Va(b))return;const _=pt.getName(y),E=a.getWidgetRef(_);if(E){const w=pt.getOptions(y,$n.defaultValue,!1,!(n!=null&&n.designState),{...n,formData:b});if(Va(w))if(x.isRef(w)){let S=x.watch(()=>w.value,A=>{S==null||S(),o(E,Fi.setValue,{newValue:A})})}else o(E,Fi.setValue,{newValue:w})}},u=(y,b)=>{const _=s(y);if(!_)return;const E=_.name,w=o(_.ref,Fi.getValue),S=o(_.ref,Fi.getCheckedItems),A={};return A[E]=w,w!==void 0&&!Xi(S)&&!b&&(A[`${E}${gu.checkedOptions}`]=S),A},f=(y,b)=>{var E;var _=[];if((E=c())==null||E.forEach(w=>{if(!w)return;const S=w==null?void 0:w.id;var A=S===y;const P=i(S),C=(P==null?void 0:P.id)===y,D=(P==null?void 0:P.groupName)===b;return A||C&&(D||!b)?(_.push(w),!0):!1}),!(!_||_.length<=0))return _==null?void 0:_.map(w=>{var S;return{id:w==null?void 0:w.id,name:(S=w==null?void 0:w._source)==null?void 0:S.name,source:w==null?void 0:w._source}})},h=(y,b)=>{var _=[];if(!y||(y==null?void 0:y.length)<=0)return _;const E=i(t),w=E==null?void 0:E.groupName;return b===m0.Inner2Outer?y==null||y.forEach(S=>{var A=f(S);A&&(A==null?void 0:A.length)>0&&_.push(...A)}):y==null||y.forEach(S=>{var A=f(S,w);A&&(A==null?void 0:A.length)>0&&_.push(...A)}),_},d=(y,b)=>{let _={};if(!y||y.length<=0)return _;if(b===m0.Inner2Outer){var E=mT(y,w=>{var S;return(S=w.source)==null?void 0:S.id});E==null||E.forEach(w=>{var P;const S=w.group[0],A=[];(P=w==null?void 0:w.children)==null||P.forEach(C=>{const D=u(C==null?void 0:C.id,!0);if(Va(D)){var k=Object.values(jt(D));A.push(...k)}}),S&&(_=Object.assign(_,{[S]:A}))})}else y.forEach(w=>{const S=u(w==null?void 0:w.id);Va(S)&&(_=Object.assign(_,S))});return _},v=y=>{var b={};return y==null||y.forEach(_=>{var E;_!=null&&_.source&&(_!=null&&_.id)&&(b[(E=_==null?void 0:_.source)==null?void 0:E.id]=_==null?void 0:_.id)}),b},m=(y,b,_)=>{if(_===m0.Inner2Inner){const A=Id(b),{updateFomula:P}=Eu(),{buildVariable:C}=aD();var E=v(y);if(Va(E)){var w=pt.getOrgOption(b,$n.defaultValue),S=P(Zr(w),E,(D,k)=>{var O=E[D];return hr(O)?C(D):C(O)});return pt.setOrgOption(A,$n.defaultValue,ri(S)),A}}return b},p=y=>{const b=y==null?void 0:y.id;var _=pt.getOrgOption(y,$n.defaultValue);if(_==null)return;const E=Gie(t,b);if(E===m0.DiffInner)return;var w=ge.getFormulaRelatedField(_);if(!w||w.length<=0)return;var S=h(w,E);if(!(S!=null&&S.some(P=>P.id===t)))return;const A=d(S,E);l(m(S,y,E),A)};(()=>{var y;(y=c())==null||y.forEach(b=>{p(b)})})()},Xie=(e,t,n,r,a)=>{var h;if(a||!Va(n))return;const{parseGroupId:o}=Zy();var i=o(t),c=i==null?void 0:i.groupName;const{callRefFunc:s}=Fu(e),l=(d,v)=>{var _,E,w;const m=(E=(_=Or(e))==null?void 0:_.map(S=>s(e==null?void 0:e[S],Fi.getField)))==null?void 0:E.filter(S=>!!S),p=(w=d0(m,S=>{var A=o(S==null?void 0:S.id);return(!c||(A==null?void 0:A.groupName)===c)&&(A==null?void 0:A.id)===d}))==null?void 0:w[0];if(!p)return;const g=pt.getName(p),b=new v0(e).getWidgetRef(g);b&&(v==null||v(b))},u=Wr(r==null?void 0:r.newValue,!0),f=(h=Or(n))==null?void 0:h.filter(d=>u==null?void 0:u.includes(d));!f||f.length<=0||f==null||f.forEach(d=>{var m,p;const v=(m=n==null?void 0:n[d])==null?void 0:m.result;(p=Or(v))==null||p.forEach(g=>{var b;const y=v==null?void 0:v[g];console.log(y),(b=y==null?void 0:y.ids)==null||b.forEach(_=>{l(_,E=>{s(E,y==null?void 0:y.event,y==null?void 0:y.args)})})})})};function yO(e,t){var n;return(n=e==null?void 0:e.classList)!=null&&n.contains(t)?e:e!=null&&e.parentElement?yO(e==null?void 0:e.parentElement,t):null}function Yie(){const e=l=>{if(l)return l!=null&&l.ref?l==null?void 0:l.ref:l},t=l=>{var u,f;try{(f=(u=e(l))==null?void 0:u.focus)==null||f.call(u)}catch(h){Hi.error("focus",h,l)}},n=l=>{var u,f;try{(f=(u=e(l))==null?void 0:u.blur)==null||f.call(u)}catch(h){Hi.error("blur",h,l)}},r=l=>{var u;return(u=e(l))==null?void 0:u.selectionStart},a=l=>{var u;return(u=e(l))==null?void 0:u.selectionEnd},o=(l,u)=>{var f;return(f=e(l))==null?void 0:f.setSelectionRange(u,u)},i=(l,u)=>{t(l),o(l,u)};return{getSelectionStart:r,getSelectionEnd:a,setSelectionStart:o,blur:n,focus:t,setMousePos:i,getMousePos:l=>r(l),insertOnMousePos:(l,u,f)=>{const h=r(l),d=a(l),v=fJ(f,u,h,d);return x.nextTick(()=>{i(l,h+(u==null?void 0:u.length))}),v}}}const _O=e=>{var n;const{getFormulaFields:t}=Eu();return((n=t(Zr(e)))==null?void 0:n.length)>0},ef=e=>{const t=e.type;return![tt.fileUpload,tt.pictureUpload].includes(t)&&e.formItemFlag||[tt.form,tt.dialog].includes(t)},bO=e=>{const t=e.type;return[tt.treeSelect,tt.cascader,tt.select,tt.checkbox,tt.radio].includes(t)};function xn(e){const t=e==null?void 0:e.designState,n=(e==null?void 0:e.created)!=!1,r=e==null?void 0:e.exResetField,a=e==null?void 0:e.extInitFieldModel,o=e==null?void 0:e.exposedWholeInstance,i=e==null?void 0:e.widget,c=e==null?void 0:e.designer,s=c==null?void 0:c.pageConfig,{formRefList:l,globalRefList:u,globalConfig:f,globalFormName:h,globalDataModel:d,rowScope:v}=tl.globalInject();let m=x.reactive(d||{});const p=Fu(u),g=Fu(l),{instance:y}=za(),b=()=>Yn(m),_=()=>v,E=()=>i,w={designState:t,pageConfig:s,formData:!t&&_O(i)?m:{},globalConfig:f},S={instance:y,...w},A=zy(S),P={exposed:{getFormData:!t&&_O(i)?b:null,findRefByName:p.getWidgetRef,fieldEditor:()=>Rt.value,getField:E,getRowScope:_,getOneSchemaData:A==null?void 0:A.getOneSchemaData,getSchemaDataObject:A==null?void 0:A.getSchemaDataObject,getSchemaDatas:A==null?void 0:A.getSchemaDatas}},C={instance:o?y:P,...w},{on$:D,dispatch:k,emit$:O}=Jy(),{onCompErrorCaptured:I}=Wie(),{existFunc:N}=HE({options:i==null?void 0:i.options},C),{isIdClass:F,getIdByIdClass:R}=eO(i),{getOneSchemaData:M,getSchemaDataObject:j,getSchemaDatas:W}=zy(C),L=Yie(),U=(e==null?void 0:e.shareProp)||{s_attr:!0,s_extendAttr:!0,s_events:!0,s_slots:!0,s_fieldName:!0,s_optionItems:!0},{attrs:K,extendAttrs:J,events:Q,slots:q,rules:ue,fieldName:te,buildRules:ne,clearRules:ie,disableChangeValidate:de,enableChangeValidate:G,optionItems:Z,filterOptionItems:re,getCheckedOptionText:ce,getCheckedOptionValues:fe,getCheckedOptionLabels:me,getCheckedOptionItems:pe,activeOptionItems:Ee,activeOptionItem:Te,activeOptionItemIndex:Ne,setOptionItems:Re,setWidgetOption:X,getWidgetOption:Y,setFieldEnable:ee,hasFieldOptions:ve,getFieldOptions:Ce,setFieldOptions:Oe,computedDefaultValue:Ie,hasDefaultValue:Be,singleOption:We,watchOption:ze,addCssClass:Xe,removeCssClass:it}=Uo(i,C,U,y);let Bt=null,yt=x.ref();const Rt=x.ref(),kt=()=>te.value,At=()=>`${i==null?void 0:i.id}-${F5()}`,ft=x.ref(At()),Sn=()=>{ft.value=At()},rt=x.computed({get:()=>{if(Ui(yt.value)){var ht=Number(yt.value);return isNaN(ht)?void 0:(yt.value=ht,ht)}return yt.value},set:ht=>{yt.value=ht}}),lt=x.computed({get:()=>{if(Ui(yt.value)){var ht=ri(yt.value);Es(ht)&&(yt.value=ht)}return yt.value},set:ht=>{yt.value=ht}}),ae=ht=>{var cn,le;var $t=(le=(cn=p.getWidgetRef(te.value))==null?void 0:cn.exposed)==null?void 0:le.loadOptionItems;if($t!==void 0){$t==null||$t(ht);return}Re(ht)},Pe=ht=>{var $t,cn,le;return(le=(cn=($t=p.getWidgetRef(te.value))==null?void 0:$t.exposed)==null?void 0:cn.getCheckedItems)==null?void 0:le.call(cn,ht)},Ae=ht=>{var $t,cn,le;return(le=(cn=($t=p.getWidgetRef(te.value))==null?void 0:$t.exposed)==null?void 0:cn.getCheckedLabels)==null?void 0:le.call(cn,ht)},Fe=ht=>{var $t,cn,le;return(le=(cn=($t=p.getWidgetRef(te.value))==null?void 0:$t.exposed)==null?void 0:cn.getCheckedText)==null?void 0:le.call(cn,ht)},Ue=()=>{var Ve;const ht=(Ve=J.value)==null?void 0:Ve.withAttachData;if(!bO(i)||ht===!1)return;const $t=yt.value,cn=Ae($t),le=Fe($t);var _e=Yn(Pe($t));ut(cn,_e,le)},ut=(ht,$t,cn)=>{var le={};if(ht!=null){let _e=Ce("textName",!1);[`${te.value}${gu.optionText}`,_e].forEach(Ve=>{Ve&&le[Ve]===void 0&&(le[Ve]=ht)})}if($t!=null&&Zr($t)!==Zr(yt.value)){let _e=Ce("optionName",!1);[`${te.value}${gu.checkedOptions}`,_e].forEach(Ve=>{Ve&&le[Ve]===void 0&&(le[Ve]=$t)})}if(cn!=null){let _e=Ce("labelName",!1);ht!=cn&&[`${te.value}${gu.optionLabelName}`,_e].forEach(Ve=>{Ve&&le[Ve]===void 0&&(le[Ve]=cn)})}Qn(m,Yn(le))},Et=ht=>{if(ef(i)){Ue();var $t={[te.value]:ht};Qn(m,$t)}},It=ht=>{t||Et(ht)},Kt=ht=>Ce(ht,!1),Pn=()=>{var ht=x.toRefs(m);yt=ge.get(ht,te.value)},gr=ht=>{Bt=Yn(ht)},oi=()=>{t||a&&a(T())},jr=()=>{Be()&&Bd(Ie()).then(ht=>{Et(ht),Pn()})},yr=(ht,$t)=>{if(!ef(i))return;O($n.fieldValueChanged,{newValue:ht,oldValue:$t});const cn={fieldId:i.id,fieldName:te.value,newValue:ht,oldValue:$t};k(h,$n.fieldChange,cn,y)},sa=ht=>N(ht),kr=(ht,$t)=>Op(Y(ht),$t),zi=ht=>{It(ht),Ct(),kr($n.onInput,{value:ht})},vo=(ht,$t)=>{var cn,le,_e;return(_e=(le=(cn=p.getWidgetRef(te.value))==null?void 0:cn.exposed)==null?void 0:le.handleBeforeChange)==null?void 0:_e.call(le,ht,$t)},ei=(...ht)=>{var _e,Ve,qe;let cn=((_e=ht==null?void 0:ht[0])==null?void 0:_e.target)!=null?(qe=(Ve=ht==null?void 0:ht[0])==null?void 0:Ve.target)==null?void 0:qe.value:ht==null?void 0:ht[0];cn=Yn(cn);var le=vo(cn,Bt);le!=null?It(le):It(cn),yr(cn,Bt),Ct(),gr(cn)},no=(ht=!0)=>{X(Xt.readonly,ht)},Oo=(ht=!0)=>{X(Xt.disabled,ht)},ja=(ht=!0)=>{X(Xt.hidden,ht),ht?Gt():vn()},bs=(ht=!0)=>{ee(Xt.required,ht),vn()},ct=ht=>{X(Xt.label,ht)},T=()=>yt==null?void 0:yt.value,B=ht=>{yt.value=ht},V=ht=>{let $t=Yn(T());if(B(ht),!ef(i))return;const cn=T();$t!==cn&&(It(cn),yr(ht,$t))},H=()=>{Be()?Bd(Ie()).then(ht=>{Et(ht)}):Et(null),r==null||r()},$=ht=>{const $t=T(),cn=L.insertOnMousePos(Rt.value,ht,$t);V(cn)},he=(ht,$t)=>{x.watch(()=>yt==null?void 0:yt.value,(cn,le)=>{ht==null||ht({id:i.id,name:te.value,newValue:cn,oldValue:le})},$t)},Se=ht=>{var Ve;ht.preventDefault();const $t=qe=>{var Pt;const bt=(Pt=Array.from(qe.classList))==null?void 0:Pt.find(we=>F(we));return bt?R(bt):""},cn=document.activeElement;if(!cn)return;const le=document.getElementsByClassName(X2.formItemTarget);for(var _e=0;_e<le.length;_e++){const qe=le[_e],bt=yO(cn,X2.formItemTarget);if(!bt)continue;const Pt=$t(qe),we=$t(bt);if(Pt===we){if(_e===le.length-1)return;const ke=le[_e+1],je=$t(ke),nt=p.findRefById(je,y);try{(Ve=nt==null?void 0:nt.exposed)==null||Ve.focus()}catch(Dt){Hi.error("handleEnter",Dt)}}}};let Le=()=>{var qe;let ht={componentName:te.value,refList:l,allRefList:u,fieldEditor:()=>Rt.value,changeRegisterToRefList:(bt,Pt)=>{p.changeRegisterToRefList(bt,Pt),g.changeRegisterToRefList(bt,Pt)},getField:E,getFormData:b,getValue:T,setValue:B,emit$:O,findRefByName:p.getWidgetRef,findRefById:p.findRefById,callRefFunc:p.callRefFunc,getWidgetOption:Y,setWidgetOption:X,refreshKey:Sn,getRowScope:_,getOneSchemaData:M,getSchemaDatas:W,getSchemaDataObject:j,addCssClass:Xe,removeCssClass:it},$t={resetField:H,getValue:T,setValue:V,refreshDefaultValue:jr,insertOnMousePos:$,disableChangeValidate:de,enableChangeValidate:G,focus:()=>{L.focus(Rt.value)},blur:()=>{L.blur(Rt.value)},getMousePos:()=>{L.getMousePos(Rt.value)},setMousePos:bt=>{L.setMousePos(Rt.value,bt)}},cn={loadOptionItems:ae,getCheckedItems:Pe,getCheckedLabels:Ae},le={[Xt.required]:{name:Fi.setRequired,fn:bs},[Xt.label]:{name:Fi.setLabel,fn:ct},[Xt.hidden]:{name:Fi.setHidden,fn:ja},[Xt.disabled]:{name:Fi.setDisabled,fn:Oo},[Xt.readonly]:{name:Fi.setReadonly,fn:no}},_e={};(qe=Or(le))==null||qe.forEach(bt=>{if(qc(i,bt)){const Pt=le[bt];_e[Pt.name]=Pt.fn}});var Ve=Qn(ht,_e);return ef(i)&&(Ve=Qn(Ve,$t)),bO(i)&&(Ve=Qn(Ve,cn)),Ve};const Je=x.computed(()=>({attrs:K.value,extendAttrs:J.value,events:Q.value,slots:q.value,fieldKey:ft.value,fieldEditor:Rt.value,fieldName:te.value})),et=ht=>{e.designState&&e.designer&&x.watch(()=>{var $t;return($t=e==null?void 0:e.widget)==null?void 0:$t[ht]},($t,cn)=>{const{emitHistoryChange:le}=Ak(e.designer);le(`edit ${te.value}.${ht},newValue:${$t},oldValue:${cn}`)},{deep:!0})},gt=(ht,$t,cn)=>{const le=x.ref(),_e=Kt(ht),Ve=qe=>{$t&&(le.value=$t(qe||_e))};return x.isRef(_e)?x.watch(_e,qe=>{Ve(qe),cn&&cn(qe)}):Ve(_e),le},dt=()=>{!ef(i)||t||he(ht=>{Kie(u,i==null?void 0:i.id,C),Xie(u,i==null?void 0:i.id,pt.getOptions(i,Xt.relate),ht),Ue()},{immediate:!0})},Ct=()=>{const ht={propName:te.value};k(h,$n.fieldValidation,ht,y)},rn=()=>{const ht={fieldId:i.id,fieldName:te.value,rules:ue};k(h,$n.fieldRuleChange,ht,y)},vn=()=>{if(!ef(i))return;const ht=ne();return rn(),ht},Gt=()=>{ie(),rn()},Jt=()=>{qc(i,"change")&&(Q.value.change=ei),qc(i,"input")&&(Q.value.input=zi),D(Ap.setFormData,ht=>{V(ht[te.value])}),D($n.fieldValueChanged,ht=>{kr($n.onChange,{value:ht==null?void 0:ht.newValue,oldValue:ht==null?void 0:ht.oldValue})})},bn=()=>{let ht=te.value;ef(i)?((!na(m,ht)||m[ht]===void 0)&&(Et(null),Be()&&Bd(Ie()).then($t=>{$t==null?Et(null):Et($t)})),Pn()):Be()&&Bd(Ie()).then($t=>{V($t)}),gr(T()),oi()},Wn=()=>{x.watch(()=>Z==null?void 0:Z.value,(ht,$t)=>{Ue()})},_r=()=>{const ht=x.inject(Hr.isRenderComplete);if(ht!=null&&ht.value){dt();return}ht!=null&&x.watch(()=>ht==null?void 0:ht.value,$t=>{$t&&dt()},{immediate:!0})},br=()=>{var ht,$t;if(n)try{bn(),vn(),Jt(),p.registerToRefList(te.value),g.registerToRefList(te.value),($t=(ht=Q==null?void 0:Q.value)==null?void 0:ht.created)==null||$t.call(ht),I()}catch(cn){Hi.error("create",cn)}},ti=()=>{n&&(x.onMounted(()=>{var ht,$t;try{_r(),Wn(),($t=(ht=Q==null?void 0:Q.value)==null?void 0:ht.mounted)==null||$t.call(ht)}catch(cn){console.log("mounted",i,cn)}}),x.onBeforeUnmount(()=>{p.unregisterFromRefList(te.value),g.unregisterFromRefList(te.value)}))};return br(),ti(),{exposed:Le(),fieldModel:yt,objFieldModel:lt,numFieldModel:rt,fieldEditor:Rt,fieldKey:ft,field:i,instance:y,attrs:K,extendAttrs:J,slots:q,events:Q,rules:ue,fieldObj:Je,pageConfig:s,formModel:m,fieldName:te,propResultOpt:C,optionItems:Z,activeOptionItems:Ee,activeOptionItem:Te,activeOptionItemIndex:Ne,filterOptionItems:re,setOptionItems:Re,getCheckedItems:Pe,getCheckedOptionItems:(ht,$t)=>pe(ht||yt.value,$t),getCheckedOptionLabels:(ht,$t)=>me(ht||yt.value,$t),getCheckedOptionValues:(ht,$t)=>fe(ht||yt.value,$t),getCheckedOptionText:(ht,$t)=>ce(ht||yt.value,$t),refreshKey:Sn,watchKeyValue:gt,watchPropAndSaveHistoryStep:et,existEvent:sa,handleEvent:kr,handleEnter:Se,getPropName:kt,emitFieldDataChange:yr,syncUpdateFormModel:It,getWidgetRef:p.getWidgetRef,clearRules:Gt,buildRules:vn,getFieldOptionModel:Kt,getFieldOptions:Ce,hasFieldOptions:ve,setFieldOptions:Oe,getWidgetOption:Y,singleOption:We,watchOption:ze,mergeOptionToFormModel:ut}}const Jie=x.defineComponent({componentName:dn.ContainerWidget}),JE=x.defineComponent({...Jie,__name:"cont-cell-widget",props:{...Ii},setup(e,{expose:t}){const n=e,r=x.computed(()=>{var c;return`el-${ge.getValue((c=n.widget)==null?void 0:c.partName)}`}),{customClass:a,componentWrapperClass:o}=nl({widget:{options:n.widget}}),{exposed:i}=xn(n);return t({...i}),(c,s)=>{var l,u,f;return x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(r)),{class:x.normalizeClass(["content-cell",x.unref(a)]),direction:(l=c.widget)==null?void 0:l.direction,style:x.normalizeStyle({width:x.unref(ge).getValue((u=c.widget)==null?void 0:u.cellWidth),height:x.unref(ge).getValue((f=c.widget)==null?void 0:f.cellHeight),zIndex:1e3})},{default:x.withCtx(()=>[x.renderSlot(c.$slots,"default",{},()=>{var h,d,v,m,p;return[((d=(h=c.widget)==null?void 0:h.children)==null?void 0:d.length)<=0?(x.openBlock(),x.createBlock(Pr,{key:0,widgetList:(v=c.widget)==null?void 0:v.widgetList,designState:c.designState,designer:c.designer,dragClass:"dragSize2",parentWidget:c.widget,parentList:(m=c.widget)==null?void 0:m.widgetList,"component-class":x.unref(o)},null,8,["widgetList","designState","designer","parentWidget","parentList","component-class"])):x.createCommentVNode("",!0),(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList((p=c.widget)==null?void 0:p.children,(g,y)=>{var b;return x.openBlock(),x.createBlock(JE,{key:g.id,widget:g,designer:c.designer,"design-state":c.designState,"parent-list":(b=c.widget)==null?void 0:b.children,"parent-widget":c.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]})]),_:3},8,["direction","class","style"])}}}),xO=Object.freeze(Object.defineProperty({__proto__:null,default:JE},Symbol.toStringTag,{value:"Module"})),Zie=["width","height","color"],Qie=["xlink:href"],qie={key:0,slot:"title"},$ie=x.defineComponent({__name:"index",props:{prefix:{default:"icon"},dir:{default:"svg"},name:null,color:null,size:null,width:{default:"16"},height:{default:"16"},className:null,title:{default:""}},setup(e){var f,h;const t=e,n=t.size||t.width,r=t.size||t.height,a=t.size||t.width,o=t.name,i=x.computed(()=>{var d="svg-icon";return t.className?d+" "+t.className:d}),c=x.ref(),s=x.computed(()=>`#${t.prefix}-${t.dir}-${c.value}`);let l=x.shallowRef();const u=Ui(o)&&((f=String(o))==null?void 0:f.startsWith("@"));return u?c.value=(h=String(o))==null?void 0:h.substring(1):x.watch(()=>t.name,d=>{if(x.isRef(t.name))l.value=d;else{const{instance:v}=za();l=M5(d,v)}},{immediate:!0}),(d,v)=>{const m=x.resolveComponent("el-icon");return x.unref(u)?(x.openBlock(),x.createElementBlock("svg",{key:0,class:x.normalizeClass(x.unref(i)),width:x.unref(n),height:x.unref(r),color:t.color},[x.createElementVNode("use",{"xlink:href":x.unref(s)},null,8,Qie),e.title?(x.openBlock(),x.createElementBlock("title",qie,x.toDisplayString(e.title),1)):x.createCommentVNode("",!0)],10,Zie)):(x.openBlock(),x.createBlock(m,{key:1,size:x.unref(a)},{default:x.withCtx(()=>[(x.openBlock(),x.createBlock(x.resolveDynamicComponent(x.unref(l)),{color:(t==null?void 0:t.color)||"black",key:e.name},null,8,["color"]))]),_:1},8,["size"]))}}}),Zje="",yi=Da($ie,[["__scopeId","data-v-eee47a33"]]),eae={key:0},tae={class:"clWhite"},nae={class:"clWhite"},rae=["title"],iae=["title"],aae=["title"],oae=["title"],sae=x.defineComponent({__name:"drag-handler",props:{...Ii,parentTree:{type:Object,default:null},hidden:{type:Boolean,default:!1},simple:{type:Boolean}},setup(e){const t=e,{setSelected:n,findWidgetById:r,removeWidget:a,moveDownWidget:o,moveUpWidget:i,cloneWidget:c}=Yy(t.designer),s=l=>{const u=l==null?void 0:l.id;if(l.selectable===!1)mi.info(se.i18nt("designer.hint.currentNodeCannotBeSelected"));else{const f=r(u);n(f)}};return(l,u)=>{var m,p;const f=x.resolveComponent("el-dropdown-item"),h=x.resolveComponent("el-dropdown-menu"),d=x.resolveComponent("el-dropdown"),v=x.resolveComponent("el-divider");return x.openBlock(),x.createElementBlock(x.Fragment,null,[e.hidden===!0?(x.openBlock(),x.createElementBlock("i",eae,[x.createVNode(yi,{name:"@el-hide"})])):x.createCommentVNode("",!0),e.simple?(x.openBlock(),x.createBlock(d,{key:1,onCommand:s},x.createSlots({default:x.withCtx(()=>[x.createElementVNode("span",tae,[x.createVNode(yi,{name:"@el-arrow-down"})])]),_:2},[((m=e.parentTree)==null?void 0:m.length)>0?{name:"dropdown",fn:x.withCtx(()=>[x.createVNode(h,null,{default:x.withCtx(()=>[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList(e.parentTree,(g,y)=>(x.openBlock(),x.createBlock(f,{command:g},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(g==null?void 0:g.label),1)]),_:2},1032,["command"]))),256)),x.createVNode(f,{divided:"",onClick:u[0]||(u[0]=x.withModifiers(g=>x.unref(c)(l.widget,l.parentList),["stop"]))},{default:x.withCtx(()=>[x.createVNode(yi,{name:"@el-clone"}),x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.cloneWidget")),1)]),_:1}),x.createVNode(f,{onClick:u[1]||(u[1]=x.withModifiers(g=>x.unref(a)(l.widget,l.parentWidget,l.parentList),["stop"]))},{default:x.withCtx(()=>[x.createVNode(yi,{name:"@el-delete"}),x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.remove")),1)]),_:1}),l.parentList&&l.parentList.length>1?(x.openBlock(),x.createBlock(f,{key:0,onClick:u[2]||(u[2]=x.withModifiers(g=>x.unref(i)(l.parentList,l.widget),["stop"]))},{default:x.withCtx(()=>[x.createVNode(yi,{name:"@el-move-up"}),x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.moveUpWidget")),1)]),_:1})):x.createCommentVNode("",!0),l.parentList&&l.parentList.length>1?(x.openBlock(),x.createBlock(f,{key:1,onClick:u[3]||(u[3]=x.withModifiers(g=>x.unref(o)(l.parentList,l.widget),["stop"]))},{default:x.withCtx(()=>[x.createVNode(yi,{name:"@el-move-down"}),x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.moveDownWidget")),1)]),_:1})):x.createCommentVNode("",!0),l.$slots.default?(x.openBlock(),x.createBlock(f,{key:2,divied:""},{default:x.withCtx(()=>[x.renderSlot(l.$slots,"default")]),_:3})):x.createCommentVNode("",!0)]),_:3})]),key:"0"}:void 0]),1024)):(x.openBlock(),x.createElementBlock(x.Fragment,{key:2},[x.createVNode(d,{onCommand:s},x.createSlots({default:x.withCtx(()=>{var g,y;return[x.createElementVNode("span",nae,[x.createTextVNode(x.toDisplayString(x.unref(se).i18n2t(`designer.widgetLabel.${(g=l.widget)==null?void 0:g.type}`,`extension.widgetLabel.${(y=l.widget)==null?void 0:y.type}`))+" ",1),x.createVNode(yi,{name:"@el-arrow-down",class:"el-icon--right"})])]}),_:2},[((p=e.parentTree)==null?void 0:p.length)>0?{name:"dropdown",fn:x.withCtx(()=>[x.createVNode(h,null,{default:x.withCtx(()=>[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList(e.parentTree,(g,y)=>(x.openBlock(),x.createBlock(f,{command:g},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(g==null?void 0:g.label),1)]),_:2},1032,["command"]))),256))]),_:1})]),key:"0"}:void 0]),1024),x.createVNode(v,{direction:"vertical","border-style":"dashed",color:"white"}),x.renderSlot(l.$slots,"default"),l.parentList&&l.parentList.length>1?(x.openBlock(),x.createElementBlock("i",{key:0,title:x.unref(se).i18nt("designer.hint.moveUpWidget"),onClick:u[4]||(u[4]=x.withModifiers(g=>x.unref(i)(l.parentList,l.widget),["stop"]))},[x.createVNode(yi,{name:"@el-move-up"})],8,rae)):x.createCommentVNode("",!0),l.parentList&&l.parentList.length>1?(x.openBlock(),x.createElementBlock("i",{key:1,title:x.unref(se).i18nt("designer.hint.moveDownWidget"),onClick:u[5]||(u[5]=x.withModifiers(g=>x.unref(o)(l.parentList,l.widget),["stop"]))},[x.createVNode(yi,{name:"@el-move-down"})],8,iae)):x.createCommentVNode("",!0),x.createElementVNode("i",{title:x.unref(se).i18nt("designer.hint.cloneWidget"),onClick:u[6]||(u[6]=x.withModifiers(g=>x.unref(c)(l.widget,l.parentList),["stop"]))},[x.createVNode(yi,{name:"@el-clone"})],8,aae),x.createElementVNode("i",{title:x.unref(se).i18nt("designer.hint.remove"),onClick:u[7]||(u[7]=x.withModifiers(g=>x.unref(a)(l.widget,l.parentWidget,l.parentList),["stop"]))},[x.createVNode(yi,{name:"@el-delete"})],8,oae)],64))],64)}}}),Qje="";function Qy(e){return{getAttrProp:n=>{var o,i,c,s,l,u;var r=(c=(i=(o=e==null?void 0:e.propOptions)==null?void 0:o.fieldObj)==null?void 0:i.attrs)==null?void 0:c[n],a=(u=(l=(s=e==null?void 0:e.propOptions)==null?void 0:s.fieldObj)==null?void 0:l.extendAttrs)==null?void 0:u[n];return Xi(r)?a:r}}}const Sr=x.defineComponent({__name:"widget-wrapper",props:{...xG},setup(e){var A;const t=e,{selectWidget:n}=Yy(t.designer),{widgetTree:r}=zE((A=t.designer)==null?void 0:A.widgetList,!0),{pathNodes:a,parentTree:o}=UE(r.value,t.widget),{size:i,displayLayout:c,labelAlign:s,labelWidth:l,formItemFlag:u,labelSuffix:f,labelHidden:h}=jie(t,jt(a.value)),{idClass:d}=eO(t.widget),{getAttrProp:v}=Qy(t),m=x.computed(()=>v==null?void 0:v("hidden")),p=x.computed(()=>v==null?void 0:v("labelWidth")),g=P=>P&&!["div","span"].includes(P),y=x.computed(()=>{var P,C;return(P=t.widget)!=null&&P.type?[tt.grid,tt.gridCol,tt.wrapper].includes((C=t.widget)==null?void 0:C.type):!1}),b=x.computed(()=>{const P=v==null?void 0:v("width"),C=v==null?void 0:v("ctrlWidth"),D=v==null?void 0:v("customClass"),k=v==null?void 0:v("componentWrapperClass");let O={};return p.value!="auto"&&p.value&&(O.labelWidth=p.value),{size:i.value,labelAlign:s.value,labelWidth:l.value,formItemFlag:u.value,formItemAttr:O,ctrlWidth:C,displayStyle:c.value,labelSuffix:f.value||"",injectStyle:{},injectClass:[Od(D),P?"":"full-width",d],componentWrapperClass:Od(k)}}),_=x.computed(()=>{var P,C,D;return!!t.designer&&((P=t.widget)==null?void 0:P.id)===((D=(C=t.designer)==null?void 0:C.selectedWidget)==null?void 0:D.id)}),E=x.ref(),w=x.ref(),S=x.computed(()=>{var P,C;if(E.value&&w.value&&_.value)return((P=E.value)==null?void 0:P.offsetWidth)>((C=w.value)==null?void 0:C.offsetWidth)});return(P,C)=>{var D,k,O,I,N,F;return P.designState?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(P.componentName),x.mergeProps({key:0,class:["field-wrapper",[x.unref(_)?"selected":""," drag-handler",P.propOptions.class,P.showWrapperComponent?x.unref(b).injectClass:null]],style:P.propOptions.style,onClick:C[0]||(C[0]=x.withModifiers(R=>x.unref(n)(P.widget,P.parentWidget,P.parentList),["stop"])),ref_key:"wrapperRef",ref:w,tabindex:0},g(P.componentName)?(k=(D=P.propOptions)==null?void 0:D.fieldObj)==null?void 0:k.attrs:{}),{default:x.withCtx(()=>{var R,M,j;return[x.renderSlot(P.$slots,"default",{data:x.unref(b)}),((M=(R=P.designer)==null?void 0:R.selectedWidget)==null?void 0:M.id)===((j=P.widget)==null?void 0:j.id)?(x.openBlock(),x.createElementBlock("div",{key:0,class:"action",ref_key:"dragHandlerRef",ref:E},[x.createVNode(sae,{simple:x.unref(S),"design-state":P.designState,designer:P.designer,widget:P.widget,"parent-widget":P.parentWidget,"parent-list":P.parentList,parentTree:x.unref(o),hidden:x.unref(m)},{default:x.withCtx(()=>[x.renderSlot(P.$slots,"drag")]),_:3},8,["simple","design-state","designer","widget","parent-widget","parent-list","parentTree","hidden"])],512)):x.createCommentVNode("",!0)]}),_:3},16,["class","style"])):!x.unref(m)||x.unref(y)?(x.openBlock(),x.createElementBlock(x.Fragment,{key:1},[P.showWrapperComponent?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(P.componentName),x.mergeProps({key:0},g(P.componentName)?(I=(O=P.propOptions)==null?void 0:O.fieldObj)==null?void 0:I.attrs:{},x.toHandlers(g(P.componentName)?(F=(N=P.propOptions)==null?void 0:N.fieldObj)==null?void 0:F.events:{}),{class:["_id_BycomponentName",[...x.unref(b).injectClass,P.propOptions.class,x.unref(m)&&x.unref(y)?"hlhidden":""]],style:{...x.unref(b).injectStyle,...P.propOptions.style}}),{default:x.withCtx(()=>[x.renderSlot(P.$slots,"default",x.mergeProps({data:x.unref(b)},P.$props))]),_:3},16,["class","style"])):x.renderSlot(P.$slots,"default",x.mergeProps({key:1,data:x.unref(b)},P.$props))],64)):x.createCommentVNode("",!0)}}}),lae=x.defineComponent({componentName:dn.ContainerWidget}),uae=x.defineComponent({...lae,__name:"cont-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{watchPropAndSaveHistoryStep:r,fieldObj:a,exposed:o}=xn(n),{customClass:i}=nl({widget:n.widget});return r(Xt.cols),t({...o}),(c,s)=>(x.openBlock(),x.createBlock(Sr,x.mergeProps(c.$props,{showWrapperComponent:!0,"prop-options":{fieldObj:x.unref(a),class:[x.unref(i)]}}),{default:x.withCtx(()=>{var l;return[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList((l=c.widget)==null?void 0:l.cols,(u,f)=>{var h;return x.openBlock(),x.createBlock(JE,{key:u.id,widget:u,designer:c.designer,"design-state":c.designState,"parent-list":(h=c.widget)==null?void 0:h.cols,"parent-widget":c.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]}),_:1},16,["prop-options"]))}}),qje="",EO=Object.freeze(Object.defineProperty({__proto__:null,default:uae},Symbol.toStringTag,{value:"Module"}));function cae(e){const t=e.widget,n=e.designer,r=n==null?void 0:n.pageConfig,a=e==null?void 0:e.widgetList,o=x.ref({}),i={},{fieldModel:c,fieldName:s,fieldEditor:l,attrs:u,events:f,hasFieldOptions:h,exposed:d,fieldObj:v,watchOption:m,propResultOpt:p,extendAttrs:g}=xn(e),{off$:y,on$:b,emit$:_,broadcast:E}=Jy();var{instance:w}=za();const{setAllRefList:S}=Fu(o.value),A={designState:e==null?void 0:e.designState,pageConfig:r,globalConfig:p==null?void 0:p.globalConfig},{formModel:P,setData:C,getData:D,clearData:k}=XE(a,{...A}),{handleFunc:O}=HE({options:r},A),I=x.reactive({}),N=()=>{y($n.fieldChange),b($n.fieldChange,Z=>{U(Z==null?void 0:Z.fieldName,Z==null?void 0:Z.newValue,Z==null?void 0:Z.oldValue),d==null||d.setValue(P),W(Z==null?void 0:Z.fieldName,Z==null?void 0:Z.newValue,Z==null?void 0:Z.oldValue)})},F=()=>{y($n.fieldValidation),b($n.fieldValidation,Z=>{var re;(re=l.value)==null||re.validateField(Z==null?void 0:Z.propName)})},R=()=>{y($n.fieldRuleChange),b($n.fieldRuleChange,Z=>{var ce;var re=(ce=Z==null?void 0:Z.rules)==null?void 0:ce.map(fe=>({required:fe.required,message:fe.message,trigger:fe.trigger,validator:fe.validator}));Object.assign(I,{[Z==null?void 0:Z.fieldName]:re}),u.value.rules=I})},M=x.ref(!1),j=x.reactive({}),W=(Z,re,ce)=>{M.value=!0,Z&&Qn(j,{[Z]:{oldValue:ce,newValue:re}})},L=()=>{M.value=!1,ix(j)},U=(Z,re,ce)=>{O(f.value.formDataChange,{field:{fieldName:Z,newValue:re,oldValue:ce},formModel:P})},K=()=>{O(f.value.formCreated)},J=()=>{O(f.value.formMounted)},Q=()=>{R(),N(),F(),K()},q=Z=>{var re;(re=l.value)==null||re.clearValidate(Z)},ue=()=>{S(Fi.resetField),x.nextTick(()=>{q()})},te=(Z,re)=>{let ce=[];for(let pe in Z){var fe=Z[pe],me=fe==null?void 0:fe.filter(Ee=>(Ee==null?void 0:Ee.force)===re);me==null||me.forEach(Ee=>{var Ne;const Te=(Ne=Ee==null?void 0:Ee.rule)==null?void 0:Ne.label;Ee.message&&ce.push(uJ(Te?"【"+Te+"】":"",Ee.message,":"))})}return dT(ce)},ne=(Z,re)=>{var ce={};return d0(re,fe=>{var me=pt.getName(fe),pe=na(Z,me);return pe&&(ce[me]=Z[me]),pe},!1),ce},ie=(Z=!0)=>{var me,pe,Ee;let re=D(),ce=function(){},fe=new Promise(function(Te,Ne){ce=function(Re,X){(X?Ne:Te)({data:Re,isSuccess:!X,message:X})}});return!((me=l.value)!=null&&me.validate)||!Z?(ce(re),fe):((Ee=(pe=l.value)==null?void 0:pe.validate)==null||Ee.call(pe,(Te,Ne)=>{if(Te)ce(re);else{var Re=te(Ne,!0);if(Re&&Re.length>0){ce(re,Re);return}var X=te(Ne,!1);if(X&&X.length>0){X.push(se.i18nt("designer.hint.continue")),sq.multiple(X).then(Y=>{ce(re)});return}}}),fe)},de=(Z,re=!0)=>{if(t){var ce=ne(Z,[t]);C(ce,re),E(dn.ContainerWidget,Ap.setFormData,Z,w),E(dn.FieldWidget,Ap.setFormData,Z,w)}},G=Z=>new Promise((re,ce)=>{const fe=(Ne,Re)=>{var Y,ee,ve;const X=(Y=g.value)!=null&&Y.formDataLoaded?(ve=(ee=g.value)==null?void 0:ee.formDataLoaded)==null?void 0:ve.call(ee,D(),Ne):Ne;X?(de(X,!Re),re(X)):re({})},me=()=>{m(Z,Xt.newDataSource,void 0,(Ne,Re)=>{fe(Ne,!0)})},pe=()=>{m(Z,Xt.editDataSource,void 0,(Ne,Re)=>{var Y,ee;if(((ee=(Y=g.value)==null?void 0:Y.needFormAdd)==null?void 0:ee.call(Y,Ne))&&Te){me();return}fe(Ne,!1)})},Ee=h(Xt.editDataSource),Te=h(Xt.newDataSource);Ee?pe():Te&&me()});return Q(),x.onMounted(()=>{xT(),J()}),{widgetRefList:o,allWidgetRefList:i,fieldEditor:l,formModel:P,pageConfig:r,widgetList:a,fieldModel:c,fieldName:s,attrs:u,extendAttrs:g,events:f,rules:I,loadData:G,clearData:k,exposed:{...d,setValue:de,getValue:ie,resetField:ue,clearData:k,loadData:G,getData:D,clearChangeRecord:L,formChangeCache:j,formChangeFlag:M,emit$:_},fieldObj:v}}const fae=x.defineComponent({componentName:dn.ContainerWidget}),pae=x.defineComponent({...fae,__name:"form-widget",props:{...Ii},setup(e,{expose:t}){var v;const n=e,{exposed:r,formModel:a,fieldEditor:o,attrs:i,events:c,widgetRefList:s,extendAttrs:l,fieldName:u,fieldObj:f,loadData:h}=cae({...n,widgetList:(v=n==null?void 0:n.widget)==null?void 0:v.widgetList}),d=u.value;return tl.globalProvide({globalFormName:d,globalDataModel:a}),x.onMounted(()=>{var m;(m=l.value)!=null&&m.loadDataWhenInit&&!n.designState&&h(!0).then(p=>{}).catch(p=>{}).finally(()=>{r.clearChangeRecord()})}),t({...r}),(m,p)=>{const g=x.resolveComponent("el-form"),y=x.resolveDirective("loading");return x.openBlock(),x.createBlock(Sr,x.mergeProps(m.$props,{"prop-options":{fieldObj:x.unref(f)}}),{default:x.withCtx(({data:b})=>{var _,E;return[x.withDirectives((x.openBlock(),x.createBlock(g,x.mergeProps({ref_key:"fieldEditor",ref:o,model:x.unref(a)},x.unref(i),x.toHandlers(x.unref(c)),{class:b.injectClass,key:(_=x.unref(f))==null?void 0:_.fieldKey,"element-loading-text":x.unref(l).loadingText}),{default:x.withCtx(()=>[x.createVNode(Pr,x.mergeProps(m.$props,{dragClass:"formDrag",model:x.unref(a),provideModel:!0,"component-class":b.componentWrapperClass,refList:x.unref(s)}),null,16,["model","component-class","refList"])]),_:2},1040,["model","class","element-loading-text"])),[[y,(E=x.unref(l))==null?void 0:E.showLoading]])]}),_:1},16,["prop-options"])}}}),$je="",wO=Object.freeze(Object.defineProperty({__proto__:null,default:Da(pae,[["__scopeId","data-v-b0372f7b"]])},Symbol.toStringTag,{value:"Module"})),hae=x.defineComponent({componentName:dn.ContainerWidget}),SO=x.defineComponent({...hae,__name:"grid-col-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{attrs:r,fieldObj:a,extendAttrs:o,exposed:i}=xn(n),c=x.computed(()=>n.propOptions.colHeight?{height:n.propOptions.colHeight}:{}),{componentWrapperClass:s}=nl({widget:n.widget}),l=x.computed(()=>(Object.keys(r.value).forEach(u=>{var d,v;var f=["xs","sm","md","lg","xl"],h=["span"];!((d=r.value)!=null&&d.responsive)&&f.includes(u)&&delete r.value[u],(v=r.value)!=null&&v.responsive&&h.includes(u)&&delete r.value[u]}),x.reactive(r.value)));return t({...i}),(u,f)=>{var h,d,v;return x.openBlock(),x.createBlock(Sr,x.mergeProps(u.$props,{showWrapperComponent:!0,"component-name":"el-col",key:(h=u.widget)==null?void 0:h.id,"prop-options":{fieldObj:{...x.unref(a),attrs:x.unref(l)},class:["content-cell","nopadding","nomargin",(d=x.unref(o))==null?void 0:d.horizontalAlign,(v=x.unref(o))==null?void 0:v.verticalAlign],style:x.unref(c)}}),{default:x.withCtx(()=>[x.createVNode(Pr,x.mergeProps(u.$props,{dragClass:"dragSize1","component-class":x.unref(s)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),CO=Object.freeze(Object.defineProperty({__proto__:null,default:SO},Symbol.toStringTag,{value:"Module"})),dae=x.defineComponent({componentName:dn.ContainerWidget}),vae=x.defineComponent({...dae,__name:"grid-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{extendAttrs:r,watchPropAndSaveHistoryStep:a,fieldObj:o,exposed:i}=xn(n),{customClass:c}=nl({widget:n.widget});return a(Xt.cols),t({...i}),(s,l)=>{var u;return x.openBlock(),x.createBlock(Sr,x.mergeProps(s.$props,{"component-name":"el-row",key:(u=s.widget)==null?void 0:u.id,showWrapperComponent:!0,"prop-options":{fieldObj:x.unref(o),class:["nopadding","nomargin",x.unref(c)]}}),{default:x.withCtx(()=>[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList(s.widget.cols,(f,h)=>(x.openBlock(),x.createBlock(SO,{key:f.id,widget:f,designer:s.designer,"design-state":s.designState,"parent-list":s.widget.cols,"parent-widget":s.widget,"prop-options":{colHeight:x.unref(r).colHeight}},null,8,["widget","designer","design-state","parent-list","parent-widget","prop-options"]))),128))]),_:1},16,["prop-options"])}}}),AO=Object.freeze(Object.defineProperty({__proto__:null,default:vae},Symbol.toStringTag,{value:"Module"})),mae=["title"],gae=x.defineComponent({componentName:dn.ContainerWidget}),TO=x.defineComponent({...gae,__name:"ltable-col-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{insertTableRow:r,insertTableCol:a,mergeTableWholeRow:o,mergeTableRow:i,mergeTableCol:c,mergeTableWholeCol:s,undoMergeTableCol:l,undoMergeTableRow:u,deleteTableWholeCol:f,deleteTableWholeRow:h}=tO(),{emitHistoryChangeAfter:d}=Yy(n.designer),{attrs:v,fieldObj:m,exposed:p}=xn(n),g=x.computed(()=>v.value.rowspan),y=x.computed(()=>v.value.colspan),b=x.computed(()=>v.value.cellWidth),_=x.computed(()=>v.value.cellHeight),E=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.colIndex)||0}),w=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.colArray)||[]}),S=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.rowIndex)||0}),A=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.rowArray)||[]}),P=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.colLength)||0}),C=x.computed(()=>{var fe,me;return((me=(fe=n.propOptions)==null?void 0:fe.colAttrs)==null?void 0:me.rowLength)||0}),{componentWrapperClass:D}=nl({widget:n.widget}),k=x.computed(()=>E.value<=0||pt.getOptions(w.value[E.value-1],"rowspan")!=g.value),O=x.computed(()=>{let fe=E.value+(y.value||0);return E.value>=P.value-1||fe>P.value-1||pt.getOptions(w.value[fe],"rowspan")!==g.value}),I=x.computed(()=>P.value<=1||P.value===y.value),N=x.computed(()=>S.value<=0||pt.getOptions(A.value[S.value-1].cols[E.value],"colspan")!==y.value),F=x.computed(()=>{let fe=S.value+(g.value||0);return S.value>=C.value-1||fe>C.value-1||pt.getOptions(A.value[fe].cols[E.value],"colspan")!==y.value}),R=x.computed(()=>C.value<=1||C.value===g.value),M=x.computed(()=>{var fe;return((fe=jt(n.widget))==null?void 0:fe.merged)||(g.value||1)<=1}),j=x.computed(()=>{var fe;return((fe=jt(n.widget))==null?void 0:fe.merged)||(g.value||1)<=1}),W=x.computed(()=>P.value===1||y.value===P.value),L=x.computed(()=>C.value===1||g.value===C.value),U=()=>{var fe;d(a(jt(n.parentWidget),E.value,S.value,!0),`insertLeftCol ${(fe=n.widget)==null?void 0:fe.id}`)},K=()=>{var fe;d(a(jt(n.parentWidget),E.value,S.value,!1),`insertRightCol ${(fe=n.widget)==null?void 0:fe.id}`)},J=()=>{var fe;d(r(jt(n.parentWidget),S.value,S.value,E.value,!0),`insertAboveRow ${(fe=n.widget)==null?void 0:fe.id}`)},Q=()=>{var fe;d(r(jt(n.parentWidget),S.value,S.value,E.value,!1),`insertBelowRow ${(fe=n.widget)==null?void 0:fe.id}`)},q=()=>{var fe;d(c(A.value,w.value,S.value,E.value,!0,n.widget),`mergeLeftCol ${(fe=n.widget)==null?void 0:fe.id}`)},ue=()=>{var fe;d(c(A.value,w.value,S.value,E.value,!1,n.widget),`mergeRightCol ${(fe=n.widget)==null?void 0:fe.id}`)},te=()=>{var fe;d(o(A.value,w.value,S.value,E.value),`mergeWholeRow ${(fe=n.widget)==null?void 0:fe.id}`)},ne=()=>{var fe;d(i(A.value,S.value,E.value,!0,n.widget),`mergeAboveRow ${(fe=n.widget)==null?void 0:fe.id}`)},ie=()=>{var fe;d(i(A.value,S.value,E.value,!1,n.widget),`mergeBelowRow ${(fe=n.widget)==null?void 0:fe.id}`)},de=()=>{var fe;d(s(A.value,w.value,S.value,E.value),`mergeWholeCol ${(fe=n.widget)==null?void 0:fe.id}`)},G=()=>{var fe;d(l(A.value,S.value,E.value,y.value,g.value),`undoMergeCol ${(fe=n.widget)==null?void 0:fe.id}`)},Z=()=>{var fe;d(u(A.value,S.value,E.value,y.value,g.value),`undoMergeRow ${(fe=n.widget)==null?void 0:fe.id}`)},re=()=>{var fe;d(f(A.value,E.value),`deleteWholeCol ${(fe=n.widget)==null?void 0:fe.id}`)},ce=()=>{var fe;d(h(A.value,S.value),`deleteWholeRow ${(fe=n.widget)==null?void 0:fe.id}`)};return t({...p}),(fe,me)=>{const pe=x.resolveComponent("el-dropdown-item"),Ee=x.resolveComponent("el-dropdown-menu"),Te=x.resolveComponent("el-dropdown");return x.openBlock(),x.createBlock(Sr,x.mergeProps(fe.$props,{"show-wrapper-component":!0,"component-name":"td","prop-options":{class:"table-cell",style:{width:x.unref(b)+"!important"||"",height:x.unref(_)+"!important"||""},fieldObj:{...x.unref(m),colspan:x.unref(y).value||1,rowspan:x.unref(g).value||1}}}),{drag:x.withCtx(()=>[x.createVNode(Te,{trigger:"click",size:"small"},{dropdown:x.withCtx(()=>[x.createVNode(Ee,null,{default:x.withCtx(()=>[x.createVNode(pe,{onClick:me[0]||(me[0]=Ne=>U())},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.insertColumnToLeft")),1)]),_:1}),x.createVNode(pe,{onClick:me[1]||(me[1]=Ne=>K())},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.insertColumnToRight")),1)]),_:1}),x.createVNode(pe,{onClick:me[2]||(me[2]=Ne=>J())},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.insertRowAbove")),1)]),_:1}),x.createVNode(pe,{onClick:me[3]||(me[3]=Ne=>Q())},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.insertRowBelow")),1)]),_:1}),x.createVNode(pe,{onClick:me[4]||(me[4]=Ne=>q()),disabled:x.unref(k),divided:""},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeLeftColumn")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[5]||(me[5]=Ne=>ue()),disabled:x.unref(O)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeRightColumn")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[6]||(me[6]=Ne=>te()),disabled:x.unref(I)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeEntireRow")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[7]||(me[7]=Ne=>ne()),disabled:x.unref(N),divided:""},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeRowAbove")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[8]||(me[8]=Ne=>ie()),disabled:x.unref(F)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeRowBelow")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[9]||(me[9]=Ne=>de()),disabled:x.unref(R)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.mergeEntireColumn")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[10]||(me[10]=Ne=>Z()),disabled:x.unref(j),divided:""},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.undoMergeRow")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[11]||(me[11]=Ne=>G()),disabled:x.unref(M)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.undoMergeCol")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[12]||(me[12]=Ne=>re()),disabled:x.unref(W),divided:""},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.deleteEntireCol")),1)]),_:1},8,["disabled"]),x.createVNode(pe,{onClick:me[13]||(me[13]=Ne=>ce()),disabled:x.unref(L)},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.setting.deleteEntireRow")),1)]),_:1},8,["disabled"])]),_:1})]),default:x.withCtx(()=>[x.createElementVNode("i",{title:x.unref(se).i18nt("designer.hint.cellSetting")},[x.createVNode(yi,{name:"@el-menu"})],8,mae)]),_:1})]),default:x.withCtx(()=>[x.createVNode(Pr,x.mergeProps(fe.$props,{"component-class":x.unref(D)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),DO=Object.freeze(Object.defineProperty({__proto__:null,default:TO},Symbol.toStringTag,{value:"Module"})),yae=["element-loading-text"],_ae=x.defineComponent({componentName:dn.ContainerWidget}),bae=x.defineComponent({..._ae,__name:"ltable-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{extendAttrs:r,fieldObj:a,exposed:o}=xn(n),{customClass:i}=nl({widget:n.widget});return t({...o}),(c,s)=>{const l=x.resolveDirective("loading");return x.openBlock(),x.createBlock(Sr,x.mergeProps(c.$props,{"prop-options":{fieldObj:x.unref(a)}}),{default:x.withCtx(()=>{var u,f,h;return[(x.openBlock(),x.createElementBlock("div",{key:(u=c.widget)==null?void 0:u.id,class:x.normalizeClass(["table-container",x.unref(i)])},[x.withDirectives((x.openBlock(),x.createElementBlock("table",{class:"table-layout","element-loading-text":x.unref(r).loadingText},[x.createElementVNode("tbody",null,[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList((f=c.widget)==null?void 0:f.rows,(d,v)=>(x.openBlock(),x.createElementBlock("tr",{key:d.id},[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList(d.cols,(m,p)=>{var g,y;return x.openBlock(),x.createElementBlock(x.Fragment,null,[m.merged?x.createCommentVNode("",!0):(x.openBlock(),x.createBlock(TO,{widget:m,designer:c.designer,"design-state":c.designState,key:m.id,"parent-list":d.cols,"parent-widget":c.widget,"prop-options":{colAttrs:{rowIndex:v,rowLength:(g=c.widget)==null?void 0:g.rows.length,rowArray:(y=c.widget)==null?void 0:y.rows,colIndex:p,colLength:d.cols.length,colArray:d.cols}}},null,8,["widget","designer","design-state","parent-list","parent-widget","prop-options"]))],64)}),256))]))),128))])],8,yae)),[[l,(h=x.unref(r))==null?void 0:h.showLoading]])],2))]}),_:1},16,["prop-options"])}}}),tVe="",PO=Object.freeze(Object.defineProperty({__proto__:null,default:Da(bae,[["__scopeId","data-v-b4d3bf11"]])},Symbol.toStringTag,{value:"Module"})),xae=x.defineComponent({componentName:dn.ContainerWidget}),kO=x.defineComponent({...xae,__name:"tab-pane-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{attrs:r,exposed:a,fieldObj:o}=xn(n),{componentWrapperClass:i,customClass:c}=nl({widget:n.widget});return t({...a}),(s,l)=>{var u;return x.openBlock(),x.createBlock(Sr,x.mergeProps(s.$props,{"show-wrapper-component":!0,"component-name":"el-tab-pane",key:(u=s.widget)==null?void 0:u.id,"prop-options":{fieldObj:x.unref(o),class:["content-cell",x.unref(c)]}}),{default:x.withCtx(()=>[x.createVNode(Pr,x.mergeProps(s.$props,{dragClass:"dragSize","component-class":x.unref(i)}),null,16,["component-class"])]),_:1},16,["prop-options"])}}}),OO=Object.freeze(Object.defineProperty({__proto__:null,default:kO},Symbol.toStringTag,{value:"Module"})),Eae=x.defineComponent({componentName:dn.ContainerWidget}),wae=x.defineComponent({...Eae,__name:"tabs-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{fieldKey:r,fieldObj:a,attrs:o,extendAttrs:i,events:c,exposed:s,watchPropAndSaveHistoryStep:l}=xn(n),{addTabPaneOfTabs:u,initTabPane:f,getActiveTab:h,deleteTabPaneOfTabs:d,findTabPaneOfTabs:v}=nO(),m=x.computed(()=>{const S=h(jt(n.widget));if(S)return pt.getName(S)}),p=x.ref(),g=x.computed({get:()=>p.value||m.value,set:S=>{p.value=S}}),y=()=>g.value,b=S=>{g.value=S},_=S=>{var A=v(jt(n.widget),S);Xi(A)||d(jt(n.widget),A)},E=S=>{u(jt(n.widget),f(S))},w=()=>{g.value=jt(m.value),s.refreshKey()};return l(Xt.tabs),t({...s,tabAdd:E,tabRemove:_,getValue:y,setValue:b,refresh:w}),(S,A)=>{const P=x.resolveComponent("el-tabs"),C=x.resolveDirective("loading");return x.openBlock(),x.createBlock(Sr,x.mergeProps(S.$props,{"prop-options":{fieldObj:x.unref(a)}}),{default:x.withCtx(({data:D})=>{var k;return[x.withDirectives((x.openBlock(),x.createBlock(P,x.mergeProps({key:x.unref(r)},x.unref(o),x.toHandlers(x.unref(c)),{modelValue:x.unref(g),"onUpdate:modelValue":A[0]||(A[0]=O=>x.isRef(g)?g.value=O:null),class:D.injectClass,style:{...D.injectStyle,width:D.ctrlWidth},"element-loading-text":x.unref(i).loadingText}),{default:x.withCtx(()=>{var O;return[(x.openBlock(!0),x.createElementBlock(x.Fragment,null,x.renderList((O=S.widget)==null?void 0:O.tabs,(I,N)=>{var F;return x.openBlock(),x.createBlock(kO,{key:x.unref(pt).getName(I),widget:I,designer:S.designer,"design-state":S.designState,"parent-list":(F=S.widget)==null?void 0:F.tabs,"parent-widget":S.widget},null,8,["widget","designer","design-state","parent-list","parent-widget"])}),128))]}),_:2},1040,["modelValue","class","style","element-loading-text"])),[[C,(k=x.unref(i))==null?void 0:k.showLoading]])]}),_:1},16,["prop-options"])}}}),BO=Object.freeze(Object.defineProperty({__proto__:null,default:wae},Symbol.toStringTag,{value:"Module"}));function Sae(e){const t=x.ref({}),{componentWrapperClass:n,customClass:r}=nl({widget:e.widget}),{exposed:a,attrs:o,extendAttrs:i,fieldKey:c,fieldObj:s}=xn(e),{setAllRefList:l}=Fu(t.value),u=(v=!1)=>{l(Fi.setDisabled,{flag:v})},f=(v=!1)=>{var m;(m=a==null?void 0:a.setHidden)==null||m.call(a,v)},h=()=>{l(Fi.resetField)};return(v=>{x.watch(()=>{var m;return(m=o.value)==null?void 0:m[v]},m=>{m!=null&&v==="disabled"&&u(m)},{immediate:!0})})("disabled"),{extendAttrs:i,attrs:o,exposed:{...a,setDisabled:u,setHidden:f,resetField:h},componentWrapperClass:n,customClass:r,fieldKey:c,fieldObj:s,widgetRefList:t}}const Cae=["element-loading-text"],Aae=x.defineComponent({componentName:dn.ContainerWidget}),Tae=x.defineComponent({...Aae,__name:"wrapper-widget",props:{...Ii},setup(e,{expose:t}){const n=e,{attrs:r,extendAttrs:a,exposed:o,customClass:i,componentWrapperClass:c,fieldObj:s,fieldKey:l,widgetRefList:u}=Sae(n);return t({...o}),(f,h)=>{const d=x.resolveDirective("loading");return x.openBlock(),x.createBlock(Sr,x.mergeProps(f.$props,{"prop-options":{fieldObj:x.unref(s),class:[x.unref(i),x.unref(c)]},"component-name":"div","show-wrapper-component":!0}),{default:x.withCtx(({data:v})=>{var m,p,g;return[f.designState||!((m=x.unref(r))!=null&&m.hidden)||!((p=x.unref(r))!=null&&p.lazy)?x.withDirectives((x.openBlock(),x.createElementBlock("div",{ref:"fieldEditor",class:x.normalizeClass([...v.injectClass]),key:x.unref(l),"element-loading-text":x.unref(a).loadingText},[x.createVNode(Pr,x.mergeProps(f.$props,{dragClass:"dragSize","component-class":v.componentWrapperClass,refList:x.unref(u)}),null,16,["component-class","refList"])],10,Cae)),[[d,(g=x.unref(a))==null?void 0:g.showLoading]]):x.createCommentVNode("",!0)]}),_:1},16,["prop-options"])}}}),IO=Object.freeze(Object.defineProperty({__proto__:null,default:Tae},Symbol.toStringTag,{value:"Module"}));function NO(e){let t=new Map;for(const n in e){let r=e==null?void 0:e[n],a=r==null?void 0:r.default,o=(a==null?void 0:a.name)||(a==null?void 0:a.__name);t[o]=a}return t}function FO(){return NO(Object.assign({"../cont-cell-widget.vue":xO,"../cont-widget.vue":EO,"../form-widget.vue":wO,"../grid-col-widget.vue":CO,"../grid-widget.vue":AO,"../ltable-col-widget.vue":DO,"../ltable-widget.vue":PO,"../tab-pane-widget.vue":OO,"../tabs-widget.vue":BO,"../wrapper-widget.vue":IO}))}const Dae={install:(e,t)=>{const n=FO();for(const r in Object.keys(n))e.component(r,n[r])}},Pae={install:(e,t)=>{const n=FO();for(const r in Object.keys(n))e.component(r,n[r])}},kae={style:{width:"99%",height:"99%",margin:"0 auto"}},Oae=["src","id"],Bae={class:"dialog-footer"},Iae=x.defineComponent({__name:"index",props:{...iQ},emits:["ok","cancel","close"],setup(e,{emit:t}){const n=x.ref(!0),r=x.ref(),a=x.ref(!0),o=()=>{a.value=!1};return(i,c)=>{const s=x.resolveComponent("el-button"),l=x.resolveComponent("el-dialog"),u=x.resolveDirective("loading");return x.openBlock(),x.createBlock(l,{modelValue:n.value,"onUpdate:modelValue":c[3]||(c[3]=f=>n.value=f),class:"--hl-dialog1",fullscreen:i.fullscreen,title:i.title,width:i.width,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!0,top:"15vh",style:x.normalizeStyle({height:i.height})},{footer:x.withCtx(()=>{var f,h,d;return[x.createElementVNode("span",Bae,[(f=i.dialogType)!=null&&f.includes(x.unref(lg).close)?(x.openBlock(),x.createBlock(s,{key:0,onClick:c[0]||(c[0]=v=>{t("close",{})}),size:"large"},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.close")),1)]),_:1})):x.createCommentVNode("",!0),(h=i.dialogType)!=null&&h.includes(x.unref(lg).cancel)?(x.openBlock(),x.createBlock(s,{key:1,onClick:c[1]||(c[1]=v=>{t("cancel",{iframeRef:r.value})}),size:"large"},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.close")),1)]),_:1})):x.createCommentVNode("",!0),(d=i.dialogType)!=null&&d.includes(x.unref(lg).save)?(x.openBlock(),x.createBlock(s,{key:2,type:"primary",onClick:c[2]||(c[2]=v=>{t("ok",{iframeRef:r.value})}),size:"large"},{default:x.withCtx(()=>[x.createTextVNode(x.toDisplayString(x.unref(se).i18nt("designer.hint.confirm")),1)]),_:1})):x.createCommentVNode("",!0)])]}),default:x.withCtx(()=>[x.withDirectives((x.openBlock(),x.createElementBlock("div",kae,[x.createElementVNode("iframe",{frameborder:"0",ref_key:"iframeRef",ref:r,style:{width:"100%",height:"100%"},src:i.url,onLoad:o,id:x.unref(Ng)()},null,40,Oae)])),[[u,a.value]])]),_:1},8,["modelValue","fullscreen","title","width","style"])}}}),aVe="",MO=Object.freeze(Object.defineProperty({__proto__:null,default:Iae},Symbol.toStringTag,{value:"Module"}));function Nae(){return NO(Object.assign({"./index.vue":MO}))}const Fae={install:(e,t)=>{const n=Nae();e.use(tQ);for(const r in Object.keys(n))e.component(r,n[r])}};function Mae(e,t,n,r){const a={r:255,g:255,b:255};return{r:Math.round(e*(1-r)+a.r*r),g:Math.round(t*(1-r)+a.g*r),b:Math.round(n*(1-r)+a.b*r)}}function Lae(e,t,n,r=!1,a=5){const o=[];for(let i=0;i<a;i++){const c=Mae(e,t,n,i*.1);o.push(c)}return o}function Rae(e,t=!1,n=5){const r=Vae(e),a=Lae(r.r,r.g,r.b,t,n);return a==null?void 0:a.map(o=>jae(o.r,o.g,o.b))}function jae(e,t,n){const r=a=>{const o=a.toString(16);return o.length===1?"0"+o:o};return`#${r(e)}${r(t)}${r(n)}`}function Vae(e){e=e.replace(/^#/,""),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}}function zae(e,t){return{cssWithPrimaryColor:x.computed(()=>{var o,i;const r=(t==null?void 0:t.themeColor)||IA.color1;var a={themeColor:r};return(o=Rae(r,!1,10))==null||o.forEach((c,s)=>{a["themeColor-"+s]=c}),!hr(e)&&Ui(e)&&((i=Or(a))==null||i.forEach(c=>{e=e==null?void 0:e.replace(new RegExp(`var(--${c})`,"gm"),a[c])})),e})}}function Uae(e){var{addWindowName:t,addWindowHook:n}=zx();t(),n("openModalAsync",r=>{i5(e==null?void 0:e.instance,r)}),n("ElMessage",vi.ElMessage),n("ElMessageBox",vi.ElMessageBox),n("ElNotification",vi.ElNotification)}function Hae(e){const t=e.designer,n=t==null?void 0:t.pageConfig,r=x.ref(t==null?void 0:t.widgetList),a=e==null?void 0:e.designState,o=e==null?void 0:e.pageData,i=e==null?void 0:e.renderConfig,c={},s={},{off$:l,on$:u,emit$:f}=Jy();var{instance:h,proxy:d}=za();const v={instance:h,designState:a,formData:o,pageConfig:n,globalConfig:i},{handleFunc:m}=HE({options:n},v),{callWidgetsExposed:p}=Fu(s),{formModel:g,setData:y,getData:b,clearData:_}=XE(r.value,v),E=new v0(c),w=new v0(s),{findRefByName:S}=Fu(s),{getOneSchemaData:A,getSchemaDataObject:P,getSchemaDatas:C}=zy(v);let k=(()=>"vfRender"+Ds())();const O=()=>{m(n==null?void 0:n.pageCreated)},I=()=>{m(n==null?void 0:n.pageMounted)},N=()=>{if(!n)return;const ne=ge.getValue(n.cssCode,!1,!0);if(ne){const{cssWithPrimaryColor:de}=zae(ne,{themeColor:(i==null?void 0:i.themeColor)||""});Vee(de.value,a?"":k)}const ie=ge.getValue(n.functions,!1,!0);ie&&zee(ie,a?k:"")},F=(ne=!0)=>{ne&&N(),M(),O(),ue(),te()},R=Zm.page,M=()=>{E.setWidgetRef(R,h),w.setWidgetRef(R,h)},j=ne=>p(ne,Fi.getValue),W=(ne,ie)=>p(ne,Fi.setValue,ie),L=(ne,ie=!0)=>{p(ne,Fi.setDisabled,{flag:ie})},U=ne=>{L(ne,!1)},K=(ne,ie=!0)=>{p(ne,Fi.setHidden,{flag:ie})},J=ne=>{K(ne,!1)},Q=ne=>{if(ne){var ie=ri(ne);if(ie){if(!ie.pageConfig||!ie.widgetList)return"Invalid pageat of page json.";Qn(e.pageConfig,ie),N(),x.nextTick(()=>{F(!1),I()})}else return"Set page json failed."}},q=(ne,ie,de)=>{d==null||d.$emit(Ap.formChange,ne,ie,de,g)},ue=()=>{l($n.fieldChange),u($n.fieldChange,ne=>{q(ne==null?void 0:ne.fieldName,ne==null?void 0:ne.newValue,ne==null?void 0:ne.oldValue)})},te=()=>{l($n.fieldValidation),u($n.fieldValidation,ne=>{})};return F(),x.onMounted(()=>{_(),xT(),I(),Uae({instance:h})}),x.onUnmounted(()=>{_()}),{formModel:g,pageConfig:n,widgetList:r,widgetRefList:c,allWidgetRefList:s,exposed:{findRefByName:S,setPageJson:Q,hideWidgets:K,showWidgets:J,disableWidgets:L,enableWidgets:U,getFieldValue:j,setFieldValue:W,setData:y,getData:b,clearData:_,getOneSchemaData:A,getSchemaDataObject:P,getSchemaDatas:C,emit$:f}}}function Wae(){const e={},t=(a,o,i)=>{e[a]={opt:o,doEvent:i}},n=(a,o)=>{var c,s;const i=e==null?void 0:e[a==null?void 0:a.toLocaleLowerCase()];if(((c=i==null?void 0:i.opt)==null?void 0:c.ctrlKey)===(o==null?void 0:o.ctrlKey))return(s=i==null?void 0:i.doEvent)==null?void 0:s.call(i)};return{bindKey:t,runEvent:a=>{const o=a.ctrlKey||a.metaKey,i=a.key;n(i,{ctrlKey:o})}}}function Gae(e){const{bindKey:t,runEvent:n}=Wae(),r=()=>{t("enter",{ctrlKey:!1},c),t("arrowleft",{ctrlKey:!0},s)},a=l=>(r(),n(l)),o="input,select,textarea",i=["textarea"],c=()=>{var d,v;var l=e.querySelectorAll(o);const u=document.activeElement,f=(d=u==null?void 0:u.nodeName)==null?void 0:d.toLocaleLowerCase();if(!f||i.includes(f))return!1;for(var h=0;h<l.length;h++){const m=l[h];if(m==u)return h==l.length-1?!1:((v=l[h+1])==null||v.focus(),!0);m==null||m.blur()}return!1},s=l=>{var d,v;var u=e.querySelectorAll(o);const f=document.activeElement;(d=f==null?void 0:f.nodeName)==null||d.toLocaleLowerCase();for(var h=0;h<u.length;h++){const m=u[h];if(m==f)return h==0?!1:((v=u[h-1])==null||v.focus(),!0);m==null||m.blur()}return!1};return{addKeyBoardEvent:a}}const Kae=["element-loading-text","onKeyup"],Xae=x.defineComponent({componentName:dn.VFormRender,name:dn.VFormRender}),Yae=x.defineComponent({...Xae,props:{...Ii,pageData:{type:Object},renderConfig:{type:Object}},setup(e,{expose:t,emit:n}){const r=e,{formModel:a,exposed:o,widgetList:i,pageConfig:c,allWidgetRefList:s}=Hae(r),l=x.computed(()=>{var g,y;return ge.getValue((y=(g=r.designer)==null?void 0:g.pageConfig)==null?void 0:y.layoutType)}),u=x.computed(()=>jt(Wr(ge.getValue(c==null?void 0:c.customClass),!0))),f=x.computed(()=>{var g;return(g=ge.getValue(c==null?void 0:c.componentWrapperClass))==null?void 0:g.join(" ")}),h=x.ref(!1),d={};tl.globalProvide({formRefList:d,globalRefList:s,globalDataModel:a,globalFormName:dn.VFormRender}),x.provide(Hr.globalConfig,r.renderConfig),x.provide(Hr.isRenderComplete,h);const v=x.ref(),m=g=>{const{addKeyBoardEvent:y}=Gae(v.value);y(g)},p=()=>{h.value=!0,n(Ap.renderComplete)};return t({...o,componentName:dn.VFormRender}),(g,y)=>{const b=x.resolveDirective("loading");return x.withDirectives((x.openBlock(),x.createElementBlock("div",{"element-loading-text":x.unref(se).i18nt("designer.hint.loading"),class:x.normalizeClass([...x.unref(u),x.unref(l)+"-layout",{loadingLayout:!h.value}]),tabindex:"0",ref_key:"taregtWrapperRef",ref:v,onKeyup:[x.withKeys(m,["enter"]),x.withKeys(m,["left"])]},[x.renderSlot(g.$slots,"header",{},void 0,!0),x.renderSlot(g.$slots,"default",{},()=>[(x.openBlock(),x.createBlock(x.Suspense,{onResolve:p},{default:x.withCtx(()=>[x.createVNode(Pr,{designer:g.designer,"widget-list":x.unref(i),model:x.unref(a),"design-state":!1,"component-class":x.unref(f)},null,8,["designer","widget-list","model","component-class"])]),_:1}))],!0),x.renderSlot(g.$slots,"footer",{},void 0,!0)],42,Kae)),[[b,!h.value]])}}}),sVe="",LO=Da(Yae,[["__scopeId","data-v-3af3e0f4"]]);var ZE={},Jae={get exports(){return ZE},set exports(e){ZE=e}};/**!
91
91
  * Sortable 1.14.0
92
92
  * @author RubaXa <trash@rubaxa.org>
93
93
  * @author owenm <owen23355@gmail.com>
@@ -2714,7 +2714,7 @@ You passed in: '`+this.raw_options[r]+"'");return i},e.prototype._is_valid_selec
2714
2714
  ${a}>
2715
2715
  ${va(Io.tip,r)}
2716
2716
  ${va(Io.default,n)}
2717
- </el-upload>`},zbe=e=>Fs(e,{tag:"vue-editor"}),Ube=e=>{let t=e.options;var n=["checkStrictly","multiple","expandTrigger","lazy","emitPath","hoverThreshold"],r={};n.forEach(o=>{(t==null?void 0:t[o])!==void 0&&(r[o]=t==null?void 0:t[o])});let a={exProp:[`:options="${pt.getOptions(e,"name")}Options"`,`:props="${Zr(r).replaceAll('"',"'")}"`].join(" ")};return Fs(e,a)},Hbe=e=>{var t=Yn(e);const{linkPrefixIcon:n,linkSuffixIcon:r}=T1(t);return ge.getValue(t.defalut)||ge.setValue(t,"default",` ${n}${pt.getOptions(e,"content")}${r}`),Fs(t)},Wbe=e=>{var r;let t=e.options,n={exProp:`:preview-src-list=${Zr((r=ge.getValue(t.optionItems))==null?void 0:r.map(a=>a.label))}`};return Fs(e,n)},Gbe=e=>{const t=pt.getOptions(e,"label"),n=Wl(e,"");return`<router-view name="${t}" :key="$route.fullPath" ${n}></router-view>`};function Kbe(e){const t=V0(e);var n=['<div v-html="item?.content"></div>'],r=[ju("name","item?.name"),ju("label","item?.label")];const a=new Ul;return a.tag=t,a.autoProp=!1,a.exContent=n.join(""),a.exProp=r.join(""),Hl(e,a)}const Xbe=e=>{e.options;const t=Ybe(e);var r=[`<div v-html="${pt.getOptions(e,"label")}"></div>`,va("dropdown",t)];let a={exContent:r.join("")};return Fs(e,a)};function Ybe(e){const t=V0(e);var n=["{{item.label}}"],r=['v-bind="item"'];const a=new Ul;return a.tag=t,a.autoProp=!1,a.exContent=n.join(""),a.exProp=r.join(""),Hl(e,a)}function Jbe(e){const t=V0(e);var n=[va("title",'<span v-html="item?.label"></span>'),'<div v-html="item?.content"></div>'],r=['v-bind="item"',ju("name","item?.value")];const a=new Ul;return a.tag=t,a.autoProp=!1,a.exContent=n.join(""),a.exProp=r.join(""),Hl(e,a)}const Zbe=e=>{const t=Qbe(e),n=pt.getOptions(e,"title"),r=pt.getOptions(e,"extra");var a=[va("title",`${n}`),va("extra",`${r}`),t];let o={exContent:a.join("")};return Fs(e,o)};function Qbe(e){const t=V0(e);var n=['<div v-html="item?.content"></div>',va("label","{{item?.label}}")];const r=new Ul;return r.tag=t,r.autoProp=!0,r.exContent=n.join(""),Hl(e,r)}function qbe(e){const t=V0(e);var n=[`<a :href="item.to" :target="item.replace===true?'_self':'_blank'">{{ item.label }}</a>`];const r=new Ul;return r.tag=t,r.autoProp=!1,r.exContent=n.join(""),Hl(e,r)}function J9(e){if(!(e!=null&&e.length))return"";var t=e==null?void 0:e.map(n=>$be(n));return t==null?void 0:t.join("")}function $be(e){var n;if(e!=null&&e.children&&((n=e==null?void 0:e.children)==null?void 0:n.length)>0){var t=(e==null?void 0:e.menuItemType)===Ol.MenuItemGroup?"el-menu-item-group":"el-sub-menu";return`
2717
+ </el-upload>`},zbe=e=>Fs(e,{tag:"vue-editor"}),Ube=e=>{var o;let t=e.options;var n=["checkStrictly","multiple","expandTrigger","lazy","emitPath","hoverThreshold"],r={};n.forEach(i=>{(t==null?void 0:t[i])!==void 0&&(r[i]=t==null?void 0:t[i])});let a={exProp:[`:options="${pt.getOptions(e,"name")}Options"`,`:props="${(o=Zr(r))==null?void 0:o.replace(new RegExp('"',"gm"),"'")}"`].join(" ")};return Fs(e,a)},Hbe=e=>{var t=Yn(e);const{linkPrefixIcon:n,linkSuffixIcon:r}=T1(t);return ge.getValue(t.defalut)||ge.setValue(t,"default",` ${n}${pt.getOptions(e,"content")}${r}`),Fs(t)},Wbe=e=>{var r;let t=e.options,n={exProp:`:preview-src-list=${Zr((r=ge.getValue(t.optionItems))==null?void 0:r.map(a=>a.label))}`};return Fs(e,n)},Gbe=e=>{const t=pt.getOptions(e,"label"),n=Wl(e,"");return`<router-view name="${t}" :key="$route.fullPath" ${n}></router-view>`};function Kbe(e){const t=V0(e);var n=['<div v-html="item?.content"></div>'],r=[ju("name","item?.name"),ju("label","item?.label")];const a=new Ul;return a.tag=t,a.autoProp=!1,a.exContent=n.join(""),a.exProp=r.join(""),Hl(e,a)}const Xbe=e=>{e.options;const t=Ybe(e);var r=[`<div v-html="${pt.getOptions(e,"label")}"></div>`,va("dropdown",t)];let a={exContent:r.join("")};return Fs(e,a)};function Ybe(e){const t=V0(e);var n=["{{item.label}}"],r=['v-bind="item"'];const a=new Ul;return a.tag=t,a.autoProp=!1,a.exContent=n.join(""),a.exProp=r.join(""),Hl(e,a)}function Jbe(e){const t=V0(e);var n=[va("title",'<span v-html="item?.label"></span>'),'<div v-html="item?.content"></div>'],r=['v-bind="item"',ju("name","item?.value")];const a=new Ul;return a.tag=t,a.autoProp=!1,a.exContent=n.join(""),a.exProp=r.join(""),Hl(e,a)}const Zbe=e=>{const t=Qbe(e),n=pt.getOptions(e,"title"),r=pt.getOptions(e,"extra");var a=[va("title",`${n}`),va("extra",`${r}`),t];let o={exContent:a.join("")};return Fs(e,o)};function Qbe(e){const t=V0(e);var n=['<div v-html="item?.content"></div>',va("label","{{item?.label}}")];const r=new Ul;return r.tag=t,r.autoProp=!0,r.exContent=n.join(""),Hl(e,r)}function qbe(e){const t=V0(e);var n=[`<a :href="item.to" :target="item.replace===true?'_self':'_blank'">{{ item.label }}</a>`];const r=new Ul;return r.tag=t,r.autoProp=!1,r.exContent=n.join(""),Hl(e,r)}function J9(e){if(!(e!=null&&e.length))return"";var t=e==null?void 0:e.map(n=>$be(n));return t==null?void 0:t.join("")}function $be(e){var n;if(e!=null&&e.children&&((n=e==null?void 0:e.children)==null?void 0:n.length)>0){var t=(e==null?void 0:e.menuItemType)===Ol.MenuItemGroup?"el-menu-item-group":"el-sub-menu";return`
2718
2718
  <${t}>${J9(e.children)}</${t}>
2719
2719
  `}else return e2e(e)}function e2e(e){return`
2720
2720
  <el-menu-item>