From b5b3da32a560b68ed2d23842a315f0bc5d6888e2 Mon Sep 17 00:00:00 2001 From: Carrie Hanscom Date: Mon, 17 Apr 2023 13:48:49 -0400 Subject: [PATCH 01/60] LEAF 3451 - site designer setup Update packagejson, docker yml and configs for multi apps Add basic entry for site designer app as admin menu card --- LEAF_Request_Portal/admin/index.php | 23 +++ .../admin/templates/form_editor_vue.tpl | 2 +- .../admin/templates/site_designer_vue.tpl | 12 ++ .../admin/templates/view_admin_menu.tpl | 6 + docker/docker-compose.yml | 1 + docker/vue-app/package.json | 6 +- docker/vue-app/src/router/index.js | 4 +- .../vue-app/src_designer/LEAF_designer_App.js | 20 ++ .../src_designer/LEAF_designer_main.js | 10 + .../src_designer/components/ModHomeMenu.js | 9 + docker/vue-app/webpack.designer.config.js | 49 +++++ ...bpack.config.js => webpack.form.config.js} | 3 +- .../js/vue-dest/LEAF_FormEditor_main_build.js | 1 - .../171.LEAF_FormEditor_main_build.js | 1 + .../910.LEAF_FormEditor_main_build.js | 1 + .../form_editor/LEAF_FormEditor_main_build.js | 1 + .../site_designer/LEAF_designer_main_build.js | 188 ++++++++++++++++++ 17 files changed, 330 insertions(+), 7 deletions(-) create mode 100644 LEAF_Request_Portal/admin/templates/site_designer_vue.tpl create mode 100644 docker/vue-app/src_designer/LEAF_designer_App.js create mode 100644 docker/vue-app/src_designer/LEAF_designer_main.js create mode 100644 docker/vue-app/src_designer/components/ModHomeMenu.js create mode 100644 docker/vue-app/webpack.designer.config.js rename docker/vue-app/{webpack.config.js => webpack.form.config.js} (89%) delete mode 100644 libs/js/vue-dest/LEAF_FormEditor_main_build.js create mode 100644 libs/js/vue-dest/form_editor/171.LEAF_FormEditor_main_build.js create mode 100644 libs/js/vue-dest/form_editor/910.LEAF_FormEditor_main_build.js create mode 100644 libs/js/vue-dest/form_editor/LEAF_FormEditor_main_build.js create mode 100644 libs/js/vue-dest/site_designer/LEAF_designer_main_build.js diff --git a/LEAF_Request_Portal/admin/index.php b/LEAF_Request_Portal/admin/index.php index 76352e159..74f5025cd 100644 --- a/LEAF_Request_Portal/admin/index.php +++ b/LEAF_Request_Portal/admin/index.php @@ -521,6 +521,29 @@ function hasDevConsoleAccess($login, $oc_db) $main->assign('body', 'You require System Administrator level access to view this section.'); } + break; + case 'site_designer': + $t_form = new Smarty; + $t_form->left_delimiter = ''; + $libsPath = '../../libs/'; + $t_form->assign('CSRFToken', $_SESSION['CSRFToken']); + $t_form->assign('APIroot', '../api/'); + $t_form->assign('libsPath', $libsPath); + + $main->assign('javascripts', array( + '../../libs/js/LEAF/XSSHelpers.js', + '../../libs/js/jquery/trumbowyg/plugins/colors/trumbowyg.colors.min.js', + )); + $main->assign('stylesheets', array( + '../../libs/js/jquery/trumbowyg/plugins/colors/ui/trumbowyg.colors.min.css', + )); + + if ($login->checkGroup(1)) { + $main->assign('body', $t_form->fetch('site_designer_vue.tpl')); + } else { + $main->assign('body', 'You require System Administrator level access to view this section.'); + } break; default: // $main->assign('useDojo', false); diff --git a/LEAF_Request_Portal/admin/templates/form_editor_vue.tpl b/LEAF_Request_Portal/admin/templates/form_editor_vue.tpl index 78d0601d1..30eea4fe6 100644 --- a/LEAF_Request_Portal/admin/templates/form_editor_vue.tpl +++ b/LEAF_Request_Portal/admin/templates/form_editor_vue.tpl @@ -19,7 +19,7 @@ - + + + \ No newline at end of file diff --git a/LEAF_Request_Portal/admin/templates/view_admin_menu.tpl b/LEAF_Request_Portal/admin/templates/view_admin_menu.tpl index 2f918cab3..14e344513 100644 --- a/LEAF_Request_Portal/admin/templates/view_admin_menu.tpl +++ b/LEAF_Request_Portal/admin/templates/view_admin_menu.tpl @@ -145,6 +145,12 @@ Update records with new account + + + Site Designer + Create Custom Pages (Alpha) + + Sitemap Editor diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 3610b287d..3538e58e1 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -10,6 +10,7 @@ services: dockerfile: leaf_vue.dockerfile volumes: - './vue-app/src:/app/src' + - './vue-app/src_designer:/app/src_designer' - '/app/node_modules' - '../libs/js/vue-dest:/app/vue-dest' networks: diff --git a/docker/vue-app/package.json b/docker/vue-app/package.json index f07b659e1..2399d19c9 100644 --- a/docker/vue-app/package.json +++ b/docker/vue-app/package.json @@ -4,8 +4,10 @@ "description": "", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build-vue": "webpack --mode=production", - "dev-vue": "webpack --mode=development --watch" + "build-form": "webpack --config ./webpack.form.config.js --mode=production", + "dev-form": "webpack --config ./webpack.form.config.js --mode=development --watch", + "build-designer": "webpack --config ./webpack.designer.config.js --mode=production", + "dev-designer": "webpack --config ./webpack.designer.config.js --mode=development --watch" }, "dependencies": { "vue": "^3.2.45", diff --git a/docker/vue-app/src/router/index.js b/docker/vue-app/src/router/index.js index 32029b033..c495bca6b 100644 --- a/docker/vue-app/src/router/index.js +++ b/docker/vue-app/src/router/index.js @@ -1,6 +1,6 @@ import { createRouter, createWebHashHistory } from "vue-router"; -import FormEditorView from "@/views/FormEditorView"; -import RestoreFieldsView from "@/views/RestoreFieldsView"; +const FormEditorView = () => import("@/views/FormEditorView"); +const RestoreFieldsView = () => import("@/views/RestoreFieldsView"); const routes = [ { diff --git a/docker/vue-app/src_designer/LEAF_designer_App.js b/docker/vue-app/src_designer/LEAF_designer_App.js new file mode 100644 index 000000000..005fcddb6 --- /dev/null +++ b/docker/vue-app/src_designer/LEAF_designer_App.js @@ -0,0 +1,20 @@ +import { computed } from 'vue'; + +import ModHomeMenu from "./components/ModHomeMenu.js"; + +export default { + data() { + return { + CSRFToken: CSRFToken, + test: 'some test data' + } + }, + provide() { + return { + CSRFToken: computed(() => this.CSRFToken), + } + }, + components: { + ModHomeMenu, + } +} \ No newline at end of file diff --git a/docker/vue-app/src_designer/LEAF_designer_main.js b/docker/vue-app/src_designer/LEAF_designer_main.js new file mode 100644 index 000000000..3c399f889 --- /dev/null +++ b/docker/vue-app/src_designer/LEAF_designer_main.js @@ -0,0 +1,10 @@ +import { createApp } from 'vue'; +import LEAF_designer_App from "./LEAF_designer_App.js"; + +/*TODO: test if still needed. +This opt-in config setting is used to allow computed injections to be used without +the value property. per Vue dev, will not be needed after next minor update +app.config.unwrapInjectedRef = true; */ + +const app = createApp(LEAF_designer_App); +app.mount('#site-designer-app'); \ No newline at end of file diff --git a/docker/vue-app/src_designer/components/ModHomeMenu.js b/docker/vue-app/src_designer/components/ModHomeMenu.js new file mode 100644 index 000000000..d2ac90cb6 --- /dev/null +++ b/docker/vue-app/src_designer/components/ModHomeMenu.js @@ -0,0 +1,9 @@ +export default { + name: 'mod-home-item', + data() { + return { + test: 'test mod home menu' + } + }, + template: `

TEST HEADER

{{ test }}

` +} \ No newline at end of file diff --git a/docker/vue-app/webpack.designer.config.js b/docker/vue-app/webpack.designer.config.js new file mode 100644 index 000000000..27b1aa69a --- /dev/null +++ b/docker/vue-app/webpack.designer.config.js @@ -0,0 +1,49 @@ +const path = require('path'); +const webpack = require('webpack'); + +module.exports = { + entry: './src_designer/LEAF_designer_main.js', + output: { + filename: 'LEAF_designer_main_build.js', + path: path.resolve(__dirname, '/app/vue-dest/site_designer'), + clean: true + }, + watchOptions: { + poll: true + }, + resolve: { + alias: { + vue: 'vue/dist/vue.esm-bundler.js', + "@": path.resolve(__dirname, "src_designer") + } + }, + module: { + rules: [ + { + test: /\.js$/, + exclude: /node_modules/, + use: { + loader: 'babel-loader' + } + }, + { + test: /\.scss$/, + exclude: /node_modules/, + use: [ + 'style-loader', + 'css-loader', + 'sass-loader' + ] + } + ] + }, + plugins: [ + new webpack.DefinePlugin({ + "__VUE_OPTIONS_API__": true, + "__VUE_PROD_DEVTOOLS__": false, + options: { + runtimeCompiler: true, + } + }) + ], +} \ No newline at end of file diff --git a/docker/vue-app/webpack.config.js b/docker/vue-app/webpack.form.config.js similarity index 89% rename from docker/vue-app/webpack.config.js rename to docker/vue-app/webpack.form.config.js index 8dd3d8905..715ec0a7e 100644 --- a/docker/vue-app/webpack.config.js +++ b/docker/vue-app/webpack.form.config.js @@ -5,7 +5,8 @@ module.exports = { entry: './src/LEAF_FormEditor_main.js', output: { filename: 'LEAF_FormEditor_main_build.js', - path: path.resolve(__dirname, '/app/vue-dest') + path: path.resolve(__dirname, '/app/vue-dest/form_editor'), + clean: true }, watchOptions: { poll: true diff --git a/libs/js/vue-dest/LEAF_FormEditor_main_build.js b/libs/js/vue-dest/LEAF_FormEditor_main_build.js deleted file mode 100644 index 531741ae9..000000000 --- a/libs/js/vue-dest/LEAF_FormEditor_main_build.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e={581:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(81),r=n.n(o),i=n(645),s=n.n(i)()(r());s.push([e.id,'body{min-width:-moz-fit-content;min-width:fit-content}[v-cloak]{display:none}#vue-formeditor-app{min-height:100vh}#vue-formeditor-app main{margin:0}#vue-formeditor-app section{margin:0rem 1rem 1rem 1rem}#vue-formeditor-app *{box-sizing:border-box;font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]),.leaf-vue-dialog button:not(.choices__button,[class*=trumbowyg]){display:flex;justify-content:center;align-items:center;cursor:pointer;font-weight:bolder;padding:2px .4em;border-radius:3px;white-space:nowrap;line-height:normal}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,.leaf-vue-dialog button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,.leaf-vue-dialog button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,.leaf-vue-dialog button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active{outline:2px solid #20a0f0}button.btn-general,button.btn-confirm{background-color:#fff;color:#005ea2;border:2px solid #005ea2}button.btn-general:not(.disabled):hover,button.btn-general:not(.disabled):focus,button.btn-general:not(.disabled):active,button.btn-confirm:not(.disabled):hover,button.btn-confirm:not(.disabled):focus,button.btn-confirm:not(.disabled):active{background-color:#005ea2;color:#fff;border:2px solid #000 !important}button.btn-general.disabled,button.btn-confirm.disabled{cursor:auto !important}button.btn-general.disabled:active,button.btn-confirm.disabled:active{border:2px solid #005ea2 !important}button.btn-confirm{color:#fff;background-color:#005ea2}ul{list-style-type:none;margin:0;padding:0}label{padding:0;display:flex;align-items:center;font-weight:bolder;white-space:nowrap;margin-bottom:2px}label.checkable{margin-bottom:0}a.router-link{display:flex;justify-content:center;align-items:center;text-decoration:none;color:inherit;border-radius:3px}td a.router-link{justify-content:flex-start}nav#form-editor-nav{width:100%}nav#form-editor-nav h2{display:flex;justify-content:center;align-items:center;margin:0;font-size:26px;color:#000}nav#form-editor-nav ul li{display:flex;justify-content:center;align-items:center;width:200px;min-width:fit-content;font-size:14px;font-weight:bolder;text-decoration:none}nav#form-editor-nav ul li button,nav#form-editor-nav ul li a{margin:0;padding:0;display:flex;justify-content:center;align-items:center;position:relative;background-color:inherit;text-decoration:inherit;color:inherit;width:100%;height:100%;border:2px solid rgba(0,0,0,0)}nav#form-editor-nav ul li span[role=img]{margin-left:.5rem}nav#form-editor-nav ul li span.header-arrow{margin-left:1rem}nav#form-editor-nav ul#form-editor-menu{display:flex;justify-content:center;align-items:center;justify-content:flex-start;color:#252f3e;background-color:#e8f2ff;border-bottom:1px solid #252f3e;position:relative;z-index:10;margin-bottom:1rem}nav#form-editor-nav ul#form-editor-menu>li{position:relative;height:32px}nav#form-editor-nav ul#form-editor-menu>li:not(:last-child)::after{content:"";position:absolute;right:0;display:block;height:50%;border-radius:2px;width:1px;background-color:#000}nav#form-editor-nav ul#form-editor-menu button:hover,nav#form-editor-nav ul#form-editor-menu button:focus,nav#form-editor-nav ul#form-editor-menu button:active,nav#form-editor-nav ul#form-editor-menu a:hover,nav#form-editor-nav ul#form-editor-menu a:focus,nav#form-editor-nav ul#form-editor-menu a:active{border:2px solid #2491ff;outline:none !important;background-color:#005ea2;color:#fff}nav#form-editor-nav ul#form-breadcrumb-menu{margin:1rem 1rem 0 1rem;display:flex;justify-content:flex-start;align-items:center;background-color:rgba(0,0,0,0);color:#000}nav#form-editor-nav ul#form-breadcrumb-menu li{width:fit-content;position:relative;margin-right:1rem}nav#form-editor-nav ul#form-breadcrumb-menu li button,nav#form-editor-nav ul#form-breadcrumb-menu li a{padding:.25rem;border-radius:3px;text-decoration:underline;outline:none !important}nav#form-editor-nav ul#form-breadcrumb-menu li button:hover,nav#form-editor-nav ul#form-breadcrumb-menu li button:focus,nav#form-editor-nav ul#form-breadcrumb-menu li button:active,nav#form-editor-nav ul#form-breadcrumb-menu li a:hover,nav#form-editor-nav ul#form-breadcrumb-menu li a:focus,nav#form-editor-nav ul#form-breadcrumb-menu li a:active{border:2px solid #2491ff !important}nav#form-editor-nav ul#form-breadcrumb-menu li button:disabled,nav#form-editor-nav ul#form-breadcrumb-menu li a:disabled{border:2px solid rgba(0,0,0,0) !important;text-decoration:none;cursor:default}#leaf-vue-dialog-background{display:flex;justify-content:center;align-items:center;width:100vw;height:100%;z-index:999;background-color:rgba(0,0,20,.5);position:absolute;left:0;top:0}.leaf-vue-dialog{position:absolute;margin:auto;width:auto;min-width:450px;resize:horizontal;z-index:9999;max-width:900px;height:auto;min-height:0;border-radius:4px;background-color:#fff;box-shadow:0 0 5px 1px rgba(0,0,25,.25);overflow:visible}.leaf-vue-dialog *{box-sizing:border-box;font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}.leaf-vue-dialog p{margin:0;padding:0;line-height:1.5}.leaf-vue-dialog>div{padding:.75rem 1rem}.leaf-vue-dialog li{display:flex;align-items:center}.leaf-vue-dialog .leaf-vue-dialog-title{color:#252f3e;border-top:3px solid #fff;border-left:3px solid #fff;border-right:3px solid #cadff0;border-bottom:2px solid #cadff0;border-radius:3px;background-color:#e8f2ff;cursor:move}.leaf-vue-dialog .leaf-vue-dialog-title h2{color:inherit;margin:0}.leaf-vue-dialog #leaf-vue-dialog-close{display:flex;justify-content:center;align-items:center;position:absolute;top:8px;right:8px;width:25px;height:25px;cursor:pointer;font-weight:bold;font-size:1.2rem}.leaf-vue-dialog #leaf-vue-dialog-cancel-save{display:flex;justify-content:space-between;margin-top:1em}.leaf-vue-dialog #leaf-vue-dialog-cancel-save #button_save{margin-right:auto}.leaf-vue-dialog #leaf-vue-dialog-cancel-save #button_cancelchange{margin-left:auto}#form_browser_tables h3{color:#000}#form_browser_tables table{width:100%;background-color:#fff;border-collapse:collapse;border:1px solid #252f3e;border-radius:2px;margin-bottom:2rem}#form_browser_tables table td,#form_browser_tables table th{padding:.25rem .5rem;border:1px solid #252f3e}#form_browser_tables table td a,#form_browser_tables table th a{padding:.25rem .5rem;display:flex;height:100%;align-items:center;color:inherit;border:2px solid rgba(0,0,0,0)}#form_browser_tables table td a:hover,#form_browser_tables table td a:focus,#form_browser_tables table td a:active,#form_browser_tables table th a:hover,#form_browser_tables table th a:focus,#form_browser_tables table th a:active{background-color:#e8f2ff;border:2px solid #2491ff !important}#form_browser_tables table td.form-name{padding:0}#form_browser_tables table th{background-color:#252f3e;color:#fff;border:1px solid #000}#form_browser_tables table tr:not(.header-row){color:#000;border-bottom:1px solid #252f3e}#form_browser_tables table tr.sub-row{color:#333;background-color:#f6f6ff;font-size:85%}#form_browser_tables table tr.sub-row .form-name{padding-left:.75rem}#form_browser_tables table .need-to-know-enabled{display:flex;justify-content:center;align-items:center;color:#c00;font-size:12px}div[class$=SelectorBorder]{display:flex}div[class$=SelectorBorder] div{display:flex;justify-content:center;align-items:center}div[class$=SelectorBorder] input{width:100%;border:1px solid #bbb}table[class$=SelectorTable] th{color:#252f3e}#indicator-editing-dialog-content>div{margin-bottom:2rem}#indicator-editing-dialog-content button{font-size:80%}#indicator-editing-dialog-content input,#indicator-editing-dialog-content select{min-height:24px}#indicator-editing-dialog-content #name{width:100%;margin-bottom:.4rem;padding:.2rem .4rem;display:block}#indicator-editing-dialog-content #description,#indicator-editing-dialog-content #indicatorType,#indicator-editing-dialog-content #defaultValue,#indicator-editing-dialog-content #indicatorMultiAnswer{width:100%;max-width:100%}#indicator-editing-dialog-content #formatDetails{margin:.5rem 0}#indicator-editing-dialog-content #indicator-editing-attributes{position:relative;margin-top:1.5rem;padding:0;min-width:-moz-fit-content;min-width:fit-content}#indicator-editing-dialog-content #indicator-editing-attributes .attribute-row{display:flex;align-items:stretch;justify-content:flex-start;margin:1rem 0}#indicator-editing-dialog-content #indicator-editing-attributes #archived-warning,#indicator-editing-dialog-content #indicator-editing-attributes #deletion-warning{position:absolute;right:0;top:0;color:#a00;font-size:90%}#indicator-editing-dialog-content #indicator-editing-attributes #indicatorPrivileges{line-height:1.4}#indicator-editing-dialog-content div.cell{width:200px;min-width:200px;text-align:center;border:1px gray solid;padding:10px;vertical-align:top;display:table-cell}#indicator-editing-dialog-content div.cell span.columnNumber{display:flex;justify-content:center;align-items:center;margin-bottom:1rem;font-weight:bolder}#indicator-editing-dialog-content div.cell input,#indicator-editing-dialog-content div.cell select{width:100%;margin-bottom:1rem}#edit-properties-panel{padding:0;position:relative;display:flex;margin-bottom:1.25rem;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);overflow:hidden}#edit-properties-panel>div{min-width:400px;padding:.75rem;display:flex;flex-direction:column;width:50%}#edit-properties-panel input,#edit-properties-panel select{border:1px inset #dde;border-radius:2px;line-height:normal;min-height:24px}#edit-properties-panel input{padding-left:.4em}#edit-properties-panel #edit-properties-description{display:flex;flex-direction:column;height:100%;align-self:center;border-right:1px solid #252f3e;min-width:400px}#edit-properties-panel #edit-properties-description #categoryName{width:100%}#edit-properties-panel #edit-properties-description textarea{width:100%;height:100%;padding:.2rem .5rem;border:1px inset #dde;border-radius:2px;resize:none}#edit-properties-panel .form-id{position:absolute;right:.75rem;bottom:1px;font-size:.75rem}#edit-properties-panel .panel-properties{flex-wrap:wrap;gap:.5rem 1rem;display:flex;margin-top:1rem;height:100%}#edit-properties-panel .panel-properties input,#edit-properties-panel .panel-properties select{margin-left:3px}#edit-properties-panel .panel-properties input[type=number]{width:50px}#form_properties_last_update,#form_index_last_update{opacity:0;color:#005ea2;font-size:90%;background-color:rgba(0,0,0,0);border:0}#history-slice td{font-size:14px !important}#history-page-buttons button#next,#history-slice button#prev{width:135px}div#form_content_view{margin:0 auto;display:flex;flex-direction:column;width:100%}#form_index_and_editing{display:flex}#form_index_display{position:relative;margin:0;padding:.75rem;width:420px;flex:0 0 420px;align-self:flex-start;margin-right:1.25rem;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4)}#form_index_display ul#base_drop_area{background-color:#fff;margin-top:.5rem;padding:0 0 6px 0;border:3px solid #f2f2f6;border-radius:3px}#form_index_display ul#base_drop_area.entered-drop-zone,#form_index_display ul#base_drop_area ul.entered-drop-zone{background-color:#e8ebf0}#form_index_display ul#base_drop_area li.section_heading{font-weight:bolder;color:#005ea2}#form_index_display ul#base_drop_area li.subindicator_heading{font-weight:normal;color:#000}#form_index_display ul#base_drop_area li.section_heading>div,#form_index_display ul#base_drop_area li.subindicator_heading>div{padding-left:.25rem}#form_index_display ul#base_drop_area ul.form-index-listing-ul{margin:0;padding:0 0 4px 0;padding-left:1em;display:flex;flex-direction:column;min-height:6px}#form_index_display ul#base_drop_area li{position:relative;cursor:grab;margin:.2em 0;border-radius:2px;outline:none !important}#form_index_display ul#base_drop_area li>div{display:flex;align-items:center;width:100%;height:40px;border-bottom:1px solid #d0d0d4;padding-bottom:.9em}#form_index_display ul#base_drop_area li>div .icon_move_container{display:flex;justify-content:center;align-items:center;flex-direction:column;margin-left:auto;margin-right:.2em}#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move{display:flex;justify-content:center;align-items:center;cursor:pointer;width:0;height:0;background-color:rgba(0,0,0,0);border-radius:2px;border:7px solid rgba(0,0,0,0);margin-left:auto}#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.up{margin-bottom:5px;border-bottom:12px solid #162e51}#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.up:hover,#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.up:focus,#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.up:active{outline:none !important;border-bottom:12px solid #00bde3}#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.down{border-top:12px solid #162e51}#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.down:hover,#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.down:focus,#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.down:active{outline:none !important;border-top:12px solid #00bde3}#form_index_display ul#base_drop_area li>div .sub-menu-chevron{padding:2px;font-size:1.2em;align-self:center;font-weight:bold;border-radius:2px;cursor:pointer}#form_index_display ul#base_drop_area li>div .sub-menu-chevron:hover,#form_index_display ul#base_drop_area li>div .sub-menu-chevron:focus,#form_index_display ul#base_drop_area li>div .sub-menu-chevron:active{color:#00bde3}#form_index_display ul#base_drop_area li:first-child{margin-top:.75rem}#form_index_display ul#base_drop_area li:last-child{margin-bottom:0}#form_index_display ul#base_drop_area li.index-selected::before,#form_index_display ul#base_drop_area li:focus::before{position:absolute;top:-0.2em;left:-0.5em;content:"";width:3px;height:calc(100% - .6em);border-radius:60%/3px;background-color:#005ea2}#form_index_display div[id^=internalFormRecords_] button,#form_index_display div[id^=layoutFormRecords_] button{padding:.25rem;display:flex;justify-content:flex-start;width:100%;height:100%;background-color:inherit;border:2px solid rgba(0,0,0,0);overflow:hidden;max-height:50px}#form_index_display div[id^=internalFormRecords_] button:not(:disabled):not(#addInternalUse),#form_index_display div[id^=layoutFormRecords_] button:not(:disabled):not(#addInternalUse){color:#252f3e}#form_index_display div[id^=internalFormRecords_] button:not(:disabled):hover,#form_index_display div[id^=internalFormRecords_] button:not(:disabled):focus,#form_index_display div[id^=internalFormRecords_] button:not(:disabled):active,#form_index_display div[id^=layoutFormRecords_] button:not(:disabled):hover,#form_index_display div[id^=layoutFormRecords_] button:not(:disabled):focus,#form_index_display div[id^=layoutFormRecords_] button:not(:disabled):active{background-color:#e8f2ff;border:2px solid #2491ff !important;outline:none}#form_index_display div[id^=internalFormRecords_] button:disabled:hover,#form_index_display div[id^=internalFormRecords_] button:disabled:focus,#form_index_display div[id^=internalFormRecords_] button:disabled:active,#form_index_display div[id^=layoutFormRecords_] button:disabled:hover,#form_index_display div[id^=layoutFormRecords_] button:disabled:focus,#form_index_display div[id^=layoutFormRecords_] button:disabled:active{cursor:default;background-color:inherit;outline:none}#form_index_display div[id^=internalFormRecords_] button.layout-listitem,#form_index_display div[id^=layoutFormRecords_] button.layout-listitem{min-height:50px;border-radius:0;padding:.5rem}#form_index_display div[id^=internalFormRecords_] button.layout-listitem:disabled,#form_index_display div[id^=layoutFormRecords_] button.layout-listitem:disabled{color:#005ea2;border:2px solid #2491ff !important}#form_index_display div[id^=layoutFormRecords_]>ul>li{margin-bottom:.5rem;background-color:#e8f2ff;min-height:50px}#form_index_display div[id^=internalFormRecords_] button span.internal{text-decoration:underline;font-weight:normal;color:#005ea2}#form_entry_and_preview{display:flex;flex-direction:column;align-self:flex-start;width:100%;min-width:420px;background-color:#fff;padding:.75rem;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);overflow:visible}#form_entry_and_preview .form-section-header{align-items:center;justify-content:space-between;margin-bottom:.75rem}#form_entry_and_preview .form-section-header #indicator_toolbar_toggle{width:160px}#form_entry_and_preview div.printformblock{page-break-inside:avoid}#form_entry_and_preview div.printResponse{padding:0;min-height:50px;float:none;border-radius:4px;border-left:6px solid #f2f2f6}#form_entry_and_preview div.printResponse:not(.form-header){margin-left:.5rem}#form_entry_and_preview .form_editing_area{padding:2px 2px .5rem 2px;background-color:#fff}#form_entry_and_preview .form_editing_area button{padding:2px .4rem;border:1px solid rgba(0,0,0,0)}#form_entry_and_preview .form_editing_area button:hover,#form_entry_and_preview .form_editing_area button:focus,#form_entry_and_preview .form_editing_area button:active{border:1px solid #2491ff !important}#form_entry_and_preview .form_editing_area button.icon{padding:0;background-color:rgba(0,0,0,0);border-radius:2px;align-self:flex-start}#form_entry_and_preview .form_editing_area button.icon img{display:block}#form_entry_and_preview .form_editing_area button.add-subquestion{width:-moz-fit-content;width:fit-content;background-color:#e8f2ff;color:#1b1b1b;font-weight:normal;border:1px solid #88a;border-radius:2px}#form_entry_and_preview .form_editing_area button.add-subquestion:hover,#form_entry_and_preview .form_editing_area button.add-subquestion:focus,#form_entry_and_preview .form_editing_area button.add-subquestion:active{color:#fff;background-color:#005ea2}#form_entry_and_preview .form_editing_area div[class*=SelectorBorder]{background-color:rgba(0,0,0,0)}#form_entry_and_preview .form_editing_area tr[class*=Selector]:hover{background-color:#e1f3f8}#form_entry_and_preview .form_editing_area .indicator-name-preview{padding:2px;width:100%}#form_entry_and_preview .form_editing_area .indicator-name-preview>p{display:inline}#form_entry_and_preview .form_editing_area .indicator-name-preview .input-required-sensitive{color:#a00;margin-left:.4em}#form_entry_and_preview .form_editing_area.conditional{background-color:#eaeaf4}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]{margin-left:.25rem;padding:.25rem;border-radius:2px;display:flex;flex-direction:column;align-items:flex-end;align-self:flex-start;font-size:90%;color:#000;gap:4px}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]>div{display:flex;align-items:center}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_] span.sensitive-icon{display:flex;align-items:center;margin-left:.4rem}#form_entry_and_preview .form_editing_area.form-header{background-color:#feffd1;font-weight:bolder}#form_entry_and_preview .form_editing_area.form-header .indicator-name-preview,#form_entry_and_preview .form_editing_area.form-header div[id^=form_editing_toolbar_] button{font-size:110%}#form_entry_and_preview .form_editing_area .form_data_entry_preview{padding:.5rem .25rem 0 .75rem}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview{position:relative;margin-top:.2em}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview .text_input_preview{display:inline-block;width:50%;font-size:1.3em;font-family:monospace;background-color:#fff;border:1px solid gray;padding:.25em}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview .textarea_input_preview{width:100%;padding:.5em;font-size:1.3em;font-family:monospace}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview div.tableinput{overflow-x:auto;max-width:900px}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview div.tableinput table{margin:0}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview div.tableinput table input{width:100%}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview div.tableinput table img{max-width:none}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview .employeeSelectorInput,#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview .groupSelectorInput,#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview .positionSelectorInput{margin-bottom:.5em}.checkable.leaf_check{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:600px;margin-bottom:.2em}input[class*=icheck][class*=leaf_check],input[class*=ischecked][class*=leaf_check]{opacity:0;cursor:pointer;width:18px;flex:0 0 18px;height:18px;margin:2px}span.leaf_check{position:absolute;top:50%;transform:translate(0, -50%);left:0;width:18px;height:18px;background-color:#fff;border:1px solid #979695;border-radius:2px}span.leaf_check:hover,span.leaf_check:focus,span.leaf_check:active,input[class*=ischecked][class*=leaf_check]:focus~span.leaf_check,input[class*=icheck][class*=leaf_check]:focus~span.leaf_check{border:2px solid #47e;background-color:rgba(0,0,0,0)}input[type=radio][class*=icheck][class*=leaf_check]~span.leaf_check{border-radius:50%}span.leaf_check::after{content:"";box-sizing:content-box;position:absolute;top:10%;left:30%;width:25%;height:50%;background-color:rgba(0,0,0,0);border:1px solid #fff;border-width:0px 3px 3px 0px;border-radius:2px;transform:rotate(40deg);display:none}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check{background-color:#47e;border:1px solid #47e;opacity:1}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check::after,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check::after{display:block}.choices__inner div.choices__item.choices__item--selectable,.choices__inner div.choices__item.is-highlighted{background-color:#f6faff;background-image:linear-gradient(0, #eee 50%, #fff 53%);border:1px solid #aaa;border-radius:4px;color:#000}button.choices__button{filter:brightness(25%)}button.choices__button:hover,button.choices__button:focus,button.choices__button:active{filter:brightness(0);transform:scale(1.05);border-left:1px solid #000 !important}.choices__list{color:#000}.choices__list.choices__list--dropdown.is-active .is-highlighted{background-color:#e8f2ff;box-shadow:0px 0px 1px 1px rgba(0,165,187,.3764705882) inset}.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.75}.choices input{float:none}.choices input:hover,.choices input:focus,.choices input:active{outline:none}@media only screen and (max-width: 550px){.leaf-vue-dialog{min-width:350px}#vue-formeditor-app{min-width:350px}#vue-formeditor-app>div{flex-direction:column}#vue-formeditor-app section{margin:0}#vue-formeditor-app nav#form-editor-nav{width:100%}#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu{flex-direction:column;height:fit-content}#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li{width:100%;height:fit-content;flex-direction:column}#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li::after{content:"";background-color:rgba(0,0,0,0)}#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li button,#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li a{height:36px;padding:0;border-radius:0;justify-content:center !important}#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li button span,#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li a span{margin-left:10px}#vue-formeditor-app nav#form-editor-nav ul#form-breadcrumb-menu{margin:1rem .25rem 0;flex-direction:column;align-items:flex-start;height:auto}#vue-formeditor-app #secure_forms_info{display:flex;flex-wrap:wrap;justify-content:space-between}#vue-formeditor-app div#form_content_view{margin:0}#vue-formeditor-app #edit-properties-panel{flex-direction:column}#vue-formeditor-app #edit-properties-panel>div{width:100%}#vue-formeditor-app #edit-properties-panel #edit-properties-description{border-right:0;border-bottom:1px solid #252f3e}#vue-formeditor-app #form_index_and_editing{flex-direction:column}#vue-formeditor-app #form_index_and_editing #form_index_display{width:100%;margin:0;margin-bottom:1rem;flex:0 0 100%}#vue-formeditor-app #form_index_and_editing .form_editing_area.form-header .indicator-name-preview,#vue-formeditor-app #form_index_and_editing .form_editing_area.form-header div[id^=form_editing_toolbar_]{font-size:100%}}',""]);const a=s},864:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(81),r=n.n(o),i=n(645),s=n.n(i)()(r());s.push([e.id,"#condition_editor_center_panel{min-width:700px;max-width:900px;margin:auto;background-color:#fff}#condition_editor_center_panel .hidden{visibility:hidden}#condition_editor_center_panel #condition_editor_inputs>div{padding:1rem 0;border-bottom:3px solid #e0f4fa}#condition_editor_center_panel #condition_editor_actions>div{padding-top:1rem}#condition_editor_center_panel div.if-then-setup{display:flex;justify-content:space-between;align-items:center}#condition_editor_center_panel div.if-then-setup>div{display:inline-block;width:30%}#condition_editor_center_panel select,#condition_editor_center_panel input:not(.choices__input){font-size:85%;padding:.15em;text-overflow:ellipsis;width:100%;border:1px inset gray}#condition_editor_center_panel select:not(:last-child),#condition_editor_center_panel input:not(.choices__input):not(:last-child){margin-bottom:1em}#condition_editor_center_panel ul#savedConditionsList{padding-bottom:.5em}#condition_editor_center_panel li.savedConditionsCard{display:flex;align-items:center;margin-bottom:.4em}#condition_editor_center_panel button.btnNewCondition{display:flex;align-items:center;margin:.3em 0;width:-moz-fit-content;width:fit-content;color:#fff;background-color:#005ea2;padding:.4em .92em;box-shadow:1px 1px 6px rgba(0,0,25,.5);border:1px solid #005ea2;border-radius:3px;margin-right:1em;transition:box-shadow .1s ease}#condition_editor_center_panel button.btnNewCondition:hover,#condition_editor_center_panel button.btnNewCondition:focus,#condition_editor_center_panel button.btnNewCondition:active{color:#fff;background-color:#162e51;border:1px solid #162e51 !important;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_center_panel button.btnSavedConditions{justify-content:flex-start;font-weight:normal;background-color:#fff;padding:.4em;border:1px outset #005ea2;box-shadow:1px 1px 6px rgba(0,0,25,.5);border-radius:3px;margin-right:1em;max-width:825px;overflow:hidden;transition:box-shadow .1s ease}#condition_editor_center_panel button.btnSavedConditions.isOrphan{background-color:#d8d8d8;color:#000;border:1px solid #000}#condition_editor_center_panel button.btnSavedConditions:hover:not(.isOrphan),#condition_editor_center_panel button.btnSavedConditions:focus:not(.isOrphan),#condition_editor_center_panel button.btnSavedConditions:active:not(.isOrphan){color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_center_panel .changesDetected{color:#c80000}#condition_editor_center_panel .selectedConditionEdit .changesDetected,#condition_editor_center_panel button.btnSavedConditions:hover .changesDetected,#condition_editor_center_panel button.btnSavedConditions:focus .changesDetected,#condition_editor_center_panel button.btnSavedConditions:active .changesDetected{color:#fff}#condition_editor_center_panel button.selectedConditionEdit{color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_center_panel li button{padding:.3em;width:100%;cursor:pointer}#condition_editor_center_panel button.btn-condition-select{margin:0;padding:.4em;border:0;text-align:left;background-color:#fff;color:#162e51;border-left:3px solid rgba(0,0,0,0);border-bottom:1px solid #cbd5da}#condition_editor_center_panel button.btn-condition-select:hover,#condition_editor_center_panel button.btn-condition-select:active,#condition_editor_center_panel button.btn-condition-select:focus{border-left:3px solid #005ea2 !important;border-bottom:1px solid #acb5b9 !important;background-color:#e0f4fa}#condition_editor_center_panel #btn_add_condition,#condition_editor_center_panel #btn_form_editor,#condition_editor_center_panel #btn_cancel,#condition_editor_center_panel .btn_remove_condition{border-radius:3px;font-weight:bolder}#condition_editor_center_panel #btn_add_condition{background-color:#10a020;border:1px solid #10a020;color:#fff}#condition_editor_center_panel #btn_cancel{background-color:#fff;color:#162e51;border:1px solid #005ea2}#condition_editor_center_panel #btn_cancel:hover,#condition_editor_center_panel #btn_cancel:active,#condition_editor_center_panel #btn_cancel:focus{border:1px solid #000 !important;background-color:#005ea2;color:#fff}#condition_editor_center_panel #btn_add_condition:hover,#condition_editor_center_panel #btn_add_condition:active,#condition_editor_center_panel #btn_add_condition:focus{border:1px solid #000 !important;background-color:#005f20}#condition_editor_center_panel .btn_remove_condition{background-color:#922;border:1px solid #922;color:#fff}#condition_editor_center_panel .btn_remove_condition:hover,#condition_editor_center_panel .btn_remove_condition:active,#condition_editor_center_panel .btn_remove_condition:focus{border:1px solid #000 !important;background-color:#600}#condition_editor_center_panel .form-name{color:#162e51}#condition_editor_center_panel .input-info{padding:.4em 0;font-weight:bolder;color:#005ea2}#condition_editor_center_panel #remove-condition-modal{position:absolute;width:400px;height:250px;background-color:#fff;box-shadow:1px 1px 6px 2px rgba(0,0,25,.5)}@media only screen and (max-width: 768px){#condition_editor_center_panel{width:100%;min-width:400px;border:0;padding-right:1em}}",""]);const a=s},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(o)for(var a=0;a0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},81:e=>{e.exports=function(e){return e[1]}},379:e=>{var t=[];function n(e){for(var n=-1,o=0;o{var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,exports:{}};return e[o](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0,(()=>{var e={};function t(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.r(e),n.d(e,{BaseTransition:()=>fo,Comment:()=>ri,EffectScope:()=>ue,Fragment:()=>ni,KeepAlive:()=>So,ReactiveEffect:()=>ke,Static:()=>ii,Suspense:()=>Gn,Teleport:()=>ei,Text:()=>oi,Transition:()=>qs,TransitionGroup:()=>la,VueElement:()=>js,assertNumber:()=>rn,callWithAsyncErrorHandling:()=>an,callWithErrorHandling:()=>sn,camelize:()=>X,capitalize:()=>te,cloneVNode:()=>Si,compatUtils:()=>bs,computed:()=>Zi,createApp:()=>Ba,createBlock:()=>hi,createCommentVNode:()=>Fi,createElementBlock:()=>mi,createElementVNode:()=>wi,createHydrationRenderer:()=>zr,createPropsRestProxy:()=>ls,createRenderer:()=>qr,createSSRApp:()=>Va,createSlots:()=>nr,createStaticVNode:()=>Ci,createTextVNode:()=>ki,createVNode:()=>xi,customRef:()=>Yt,defineAsyncComponent:()=>wo,defineComponent:()=>_o,defineCustomElement:()=>Rs,defineEmits:()=>ts,defineExpose:()=>ns,defineProps:()=>es,defineSSRCustomElement:()=>As,devtools:()=>Cn,effect:()=>Fe,effectScope:()=>pe,getCurrentInstance:()=>Mi,getCurrentScope:()=>me,getTransitionRawChildren:()=>bo,guardReactiveProps:()=>Di,h:()=>ds,handleError:()=>ln,hydrate:()=>$a,initCustomFormatter:()=>fs,initDirectivesForSSR:()=>qa,inject:()=>eo,isMemoSame:()=>hs,isProxy:()=>Rt,isReactive:()=>Pt,isReadonly:()=>Ot,isRef:()=>Vt,isRuntimeOnly:()=>Ki,isShallow:()=>Nt,isVNode:()=>gi,markRaw:()=>Lt,mergeDefaults:()=>as,mergeProps:()=>Oi,nextTick:()=>yn,normalizeClass:()=>d,normalizeProps:()=>u,normalizeStyle:()=>i,onActivated:()=>Co,onBeforeMount:()=>Ao,onBeforeUnmount:()=>$o,onBeforeUpdate:()=>jo,onDeactivated:()=>Fo,onErrorCaptured:()=>qo,onMounted:()=>Lo,onRenderTracked:()=>Uo,onRenderTriggered:()=>Ho,onScopeDispose:()=>he,onServerPrefetch:()=>Vo,onUnmounted:()=>Bo,onUpdated:()=>Mo,openBlock:()=>li,popScopeId:()=>Mn,provide:()=>Zn,proxyRefs:()=>Jt,pushScopeId:()=>jn,queuePostFlushCb:()=>In,reactive:()=>kt,readonly:()=>Ft,ref:()=>Ht,registerRuntimeCompiler:()=>Gi,render:()=>Ma,renderList:()=>tr,renderSlot:()=>or,resolveComponent:()=>Jo,resolveDirective:()=>Xo,resolveDynamicComponent:()=>Yo,resolveFilter:()=>ys,resolveTransitionHooks:()=>ho,setBlockTracking:()=>pi,setDevtoolsHook:()=>En,setTransitionHooks:()=>yo,shallowReactive:()=>Ct,shallowReadonly:()=>Tt,shallowRef:()=>Ut,ssrContextKey:()=>us,ssrUtils:()=>vs,stop:()=>Te,toDisplayString:()=>b,toHandlerKey:()=>ne,toHandlers:()=>ir,toRaw:()=>At,toRef:()=>en,toRefs:()=>Xt,transformVNodeArgs:()=>yi,triggerRef:()=>Wt,unref:()=>Gt,useAttrs:()=>is,useCssModule:()=>Ms,useCssVars:()=>$s,useSSRContext:()=>ps,useSlots:()=>rs,useTransitionState:()=>uo,vModelCheckbox:()=>ga,vModelDynamic:()=>xa,vModelRadio:()=>ya,vModelSelect:()=>ba,vModelText:()=>ha,vShow:()=>Pa,version:()=>gs,warn:()=>on,watch:()=>io,watchEffect:()=>to,watchPostEffect:()=>no,watchSyncEffect:()=>oo,withAsyncContext:()=>cs,withCtx:()=>Bn,withDefaults:()=>os,withDirectives:()=>zo,withKeys:()=>Ea,withMemo:()=>ms,withModifiers:()=>Fa,withScopeId:()=>$n});const o={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},r=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function i(e){if(O(e)){const t={};for(let n=0;n{if(e){const n=e.split(a);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function d(e){let t="";if(M(e))t=e;else if(O(e))for(let n=0;nv(e,t)))}const b=e=>M(e)?e:null==e?"":O(e)||V(e)&&(e.toString===U||!j(e.toString))?JSON.stringify(e,_,2):String(e),_=(e,t)=>t&&t.__v_isRef?_(e,t.value):N(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:R(t)?{[`Set(${t.size})`]:[...t.values()]}:!V(t)||O(t)||W(t)?t:String(t),I={},w=[],x=()=>{},D=()=>!1,S=/^on[^a-z]/,k=e=>S.test(e),C=e=>e.startsWith("onUpdate:"),F=Object.assign,T=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},E=Object.prototype.hasOwnProperty,P=(e,t)=>E.call(e,t),O=Array.isArray,N=e=>"[object Map]"===q(e),R=e=>"[object Set]"===q(e),A=e=>"[object Date]"===q(e),L=e=>"[object RegExp]"===q(e),j=e=>"function"==typeof e,M=e=>"string"==typeof e,B=e=>"symbol"==typeof e,V=e=>null!==e&&"object"==typeof e,H=e=>V(e)&&j(e.then)&&j(e.catch),U=Object.prototype.toString,q=e=>U.call(e),z=e=>q(e).slice(8,-1),W=e=>"[object Object]"===q(e),G=e=>M(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,K=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),J=t("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Q=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Y=/-(\w)/g,X=Q((e=>e.replace(Y,((e,t)=>t?t.toUpperCase():"")))),Z=/\B([A-Z])/g,ee=Q((e=>e.replace(Z,"-$1").toLowerCase())),te=Q((e=>e.charAt(0).toUpperCase()+e.slice(1))),ne=Q((e=>e?`on${te(e)}`:"")),oe=(e,t)=>!Object.is(e,t),re=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},se=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ae=e=>{const t=M(e)?Number(e):NaN;return isNaN(t)?e:t};let le;const ce=()=>le||(le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});let de;class ue{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=de;try{return de=this,e()}finally{de=t}}}on(){de=this}off(){de=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},ve=e=>(e.w&Ie)>0,ye=e=>(e.n&Ie)>0,be=new WeakMap;let _e=0,Ie=1;const we=30;let xe;const De=Symbol(""),Se=Symbol("");class ke{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,fe(this,n)}run(){if(!this.active)return this.fn();let e=xe,t=Ee;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=xe,xe=this,Ee=!0,Ie=1<<++_e,_e<=we?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===n||n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":O(e)?G(n)&&a.push(s.get("length")):(a.push(s.get(De)),N(e)&&a.push(s.get(Se)));break;case"delete":O(e)||(a.push(s.get(De)),N(e)&&a.push(s.get(Se)));break;case"set":N(e)&&a.push(s.get(De))}if(1===a.length)a[0]&&je(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);je(ge(e))}}function je(e,t){const n=O(e)?e:[...e];for(const e of n)e.computed&&Me(e);for(const e of n)e.computed||Me(e)}function Me(e,t){(e!==xe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const $e=t("__proto__,__v_isRef,__isVue"),Be=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(B)),Ve=Ke(),He=Ke(!1,!0),Ue=Ke(!0),qe=Ke(!0,!0),ze=We();function We(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=At(this);for(let e=0,t=this.length;e{e[t]=function(...e){Oe();const n=At(this)[t].apply(this,e);return Ne(),n}})),e}function Ge(e){const t=At(this);return Re(t,0,e),t.hasOwnProperty(e)}function Ke(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?St:Dt:t?xt:wt).get(n))return n;const i=O(n);if(!e){if(i&&P(ze,o))return Reflect.get(ze,o,r);if("hasOwnProperty"===o)return Ge}const s=Reflect.get(n,o,r);return(B(o)?Be.has(o):$e(o))?s:(e||Re(n,0,o),t?s:Vt(s)?i&&G(o)?s:s.value:V(s)?e?Ft(s):kt(s):s)}}function Je(e=!1){return function(t,n,o,r){let i=t[n];if(Ot(i)&&Vt(i)&&!Vt(o))return!1;if(!e&&(Nt(o)||Ot(o)||(i=At(i),o=At(o)),!O(t)&&Vt(i)&&!Vt(o)))return i.value=o,!0;const s=O(t)&&G(n)?Number(n)!0,deleteProperty:(e,t)=>!0},Xe=F({},Qe,{get:He,set:Je(!0)}),Ze=F({},Ye,{get:qe}),et=e=>e,tt=e=>Reflect.getPrototypeOf(e);function nt(e,t,n=!1,o=!1){const r=At(e=e.__v_raw),i=At(t);n||(t!==i&&Re(r,0,t),Re(r,0,i));const{has:s}=tt(r),a=o?et:n?Mt:jt;return s.call(r,t)?a(e.get(t)):s.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function ot(e,t=!1){const n=this.__v_raw,o=At(n),r=At(e);return t||(e!==r&&Re(o,0,e),Re(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function rt(e,t=!1){return e=e.__v_raw,!t&&Re(At(e),0,De),Reflect.get(e,"size",e)}function it(e){e=At(e);const t=At(this);return tt(t).has.call(t,e)||(t.add(e),Le(t,"add",e,e)),this}function st(e,t){t=At(t);const n=At(this),{has:o,get:r}=tt(n);let i=o.call(n,e);i||(e=At(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?oe(t,s)&&Le(n,"set",e,t):Le(n,"add",e,t),this}function at(e){const t=At(this),{has:n,get:o}=tt(t);let r=n.call(t,e);r||(e=At(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&Le(t,"delete",e,void 0),i}function lt(){const e=At(this),t=0!==e.size,n=e.clear();return t&&Le(e,"clear",void 0,void 0),n}function ct(e,t){return function(n,o){const r=this,i=r.__v_raw,s=At(i),a=t?et:e?Mt:jt;return!e&&Re(s,0,De),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function dt(e,t,n){return function(...o){const r=this.__v_raw,i=At(r),s=N(i),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...o),d=n?et:t?Mt:jt;return!t&&Re(i,0,l?Se:De),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return"delete"!==e&&this}}function pt(){const e={get(e){return nt(this,e)},get size(){return rt(this)},has:ot,add:it,set:st,delete:at,clear:lt,forEach:ct(!1,!1)},t={get(e){return nt(this,e,!1,!0)},get size(){return rt(this)},has:ot,add:it,set:st,delete:at,clear:lt,forEach:ct(!1,!0)},n={get(e){return nt(this,e,!0)},get size(){return rt(this,!0)},has(e){return ot.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!1)},o={get(e){return nt(this,e,!0,!0)},get size(){return rt(this,!0)},has(e){return ot.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=dt(r,!1,!1),n[r]=dt(r,!0,!1),t[r]=dt(r,!1,!0),o[r]=dt(r,!0,!0)})),[e,n,t,o]}const[ft,mt,ht,gt]=pt();function vt(e,t){const n=t?e?gt:ht:e?mt:ft;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(P(n,o)&&o in t?n:t,o,r)}const yt={get:vt(!1,!1)},bt={get:vt(!1,!0)},_t={get:vt(!0,!1)},It={get:vt(!0,!0)},wt=new WeakMap,xt=new WeakMap,Dt=new WeakMap,St=new WeakMap;function kt(e){return Ot(e)?e:Et(e,!1,Qe,yt,wt)}function Ct(e){return Et(e,!1,Xe,bt,xt)}function Ft(e){return Et(e,!0,Ye,_t,Dt)}function Tt(e){return Et(e,!0,Ze,It,St)}function Et(e,t,n,o,r){if(!V(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(z(a));var a;if(0===s)return e;const l=new Proxy(e,2===s?o:n);return r.set(e,l),l}function Pt(e){return Ot(e)?Pt(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return Pt(e)||Ot(e)}function At(e){const t=e&&e.__v_raw;return t?At(t):e}function Lt(e){return ie(e,"__v_skip",!0),e}const jt=e=>V(e)?kt(e):e,Mt=e=>V(e)?Ft(e):e;function $t(e){Ee&&xe&&Ae((e=At(e)).dep||(e.dep=ge()))}function Bt(e,t){const n=(e=At(e)).dep;n&&je(n)}function Vt(e){return!(!e||!0!==e.__v_isRef)}function Ht(e){return qt(e,!1)}function Ut(e){return qt(e,!0)}function qt(e,t){return Vt(e)?e:new zt(e,t)}class zt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:At(e),this._value=t?e:jt(e)}get value(){return $t(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Ot(e);e=t?e:At(e),oe(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:jt(e),Bt(this))}}function Wt(e){Bt(e)}function Gt(e){return Vt(e)?e.value:e}const Kt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Vt(r)&&!Vt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Jt(e){return Pt(e)?e:new Proxy(e,Kt)}class Qt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>$t(this)),(()=>Bt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Yt(e){return new Qt(e)}function Xt(e){const t=O(e)?new Array(e.length):{};for(const n in e)t[n]=en(e,n);return t}class Zt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=At(this._object),t=this._key,null===(n=be.get(e))||void 0===n?void 0:n.get(t);var e,t,n}}function en(e,t,n){const o=e[t];return Vt(o)?o:new Zt(e,t,n)}var tn;class nn{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[tn]=!1,this._dirty=!0,this.effect=new ke(e,(()=>{this._dirty||(this._dirty=!0,Bt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=At(this);return $t(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function on(e,...t){}function rn(e,t){}function sn(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){ln(e,t,n)}return r}function an(e,t,n,o){if(j(e)){const r=sn(e,t,n,o);return r&&H(r)&&r.catch((e=>{ln(e,t,n)})),r}const r=[];for(let i=0;i>>1;Dn(un[o])Dn(e)-Dn(t))),hn=0;hnnull==e.id?1/0:e.id,Sn=(e,t)=>{const n=Dn(e)-Dn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function kn(e){dn=!1,cn=!0,un.sort(Sn);try{for(pn=0;pnCn.emit(e,...t))),Fn=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null===(o=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===o?void 0:o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{En(e,t)})),setTimeout((()=>{Cn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Tn=!0,Fn=[])}),3e3)):(Tn=!0,Fn=[])}function Pn(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||I;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:i}=o[e]||I;i&&(r=n.map((e=>M(e)?e.trim():e))),t&&(r=n.map(se))}let a,l=o[a=ne(t)]||o[a=ne(X(t))];!l&&i&&(l=o[a=ne(ee(t))]),l&&an(l,e,6,r);const c=o[a+"Once"];if(c){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,an(c,e,6,r)}}function On(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},a=!1;if(!j(e)){const o=e=>{const n=On(e,t,!0);n&&(a=!0,F(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(O(i)?i.forEach((e=>s[e]=null)):F(s,i),V(e)&&o.set(e,s),s):(V(e)&&o.set(e,null),null)}function Nn(e,t){return!(!e||!k(t))&&(t=t.slice(2).replace(/Once$/,""),P(e,t[0].toLowerCase()+t.slice(1))||P(e,ee(t))||P(e,t))}let Rn=null,An=null;function Ln(e){const t=Rn;return Rn=e,An=e&&e.type.__scopeId||null,t}function jn(e){An=e}function Mn(){An=null}const $n=e=>Bn;function Bn(e,t=Rn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&pi(-1);const r=Ln(t);let i;try{i=e(...n)}finally{Ln(r),o._d&&pi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Vn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:l,emit:c,render:d,renderCache:u,data:p,setupState:f,ctx:m,inheritAttrs:h}=e;let g,v;const y=Ln(e);try{if(4&n.shapeFlag){const e=r||o;g=Ti(d.call(e,e,u,i,f,p,m)),v=l}else{const e=t;g=Ti(e.length>1?e(i,{attrs:l,slots:a,emit:c}):e(i,null)),v=t.props?l:Hn(l)}}catch(t){si.length=0,ln(t,e,1),g=xi(ri)}let b=g;if(v&&!1!==h){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(s&&e.some(C)&&(v=Un(v,s)),b=Si(b,v))}return n.dirs&&(b=Si(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,Ln(y),g}const Hn=e=>{let t;for(const n in e)("class"===n||"style"===n||k(n))&&((t||(t={}))[n]=e[n]);return t},Un=(e,t)=>{const n={};for(const o in e)C(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function qn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense,Gn={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,a,l,c){null==e?function(e,t,n,o,r,i,s,a,l){const{p:c,o:{createElement:d}}=l,u=d("div"),p=e.suspense=Jn(e,r,o,t,u,n,i,s,a,l);c(null,p.pendingBranch=e.ssContent,u,null,o,p,i,s),p.deps>0?(Kn(e,"onPending"),Kn(e,"onFallback"),c(null,e.ssFallback,t,n,o,null,i,s),Xn(p,e.ssFallback)):p.resolve()}(t,n,o,r,i,s,a,l,c):function(e,t,n,o,r,i,s,a,{p:l,um:c,o:{createElement:d}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:v}=u;if(h)u.pendingBranch=p,vi(p,h)?(l(h,p,u.hiddenContainer,null,r,u,i,s,a),u.deps<=0?u.resolve():g&&(l(m,f,n,o,r,null,i,s,a),Xn(u,f))):(u.pendingId++,v?(u.isHydrating=!1,u.activeBranch=h):c(h,r,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),g?(l(null,p,u.hiddenContainer,null,r,u,i,s,a),u.deps<=0?u.resolve():(l(m,f,n,o,r,null,i,s,a),Xn(u,f))):m&&vi(p,m)?(l(m,p,n,o,r,u,i,s,a),u.resolve(!0)):(l(null,p,u.hiddenContainer,null,r,u,i,s,a),u.deps<=0&&u.resolve()));else if(m&&vi(p,m))l(m,p,n,o,r,u,i,s,a),Xn(u,p);else if(Kn(t,"onPending"),u.pendingBranch=p,u.pendingId++,l(null,p,u.hiddenContainer,null,r,u,i,s,a),u.deps<=0)u.resolve();else{const{timeout:e,pendingId:t}=u;e>0?setTimeout((()=>{u.pendingId===t&&u.fallback(f)}),e):0===e&&u.fallback(f)}}(e,t,n,o,r,s,a,l,c)},hydrate:function(e,t,n,o,r,i,s,a,l){const c=t.suspense=Jn(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,a,!0),d=l(e,c.pendingBranch=t.ssContent,n,c,i,s);return 0===c.deps&&c.resolve(),d},create:Jn,normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=Qn(o?n.default:n),e.ssFallback=o?Qn(n.fallback):xi(ri)}};function Kn(e,t){const n=e.props&&e.props[t];j(n)&&n()}function Jn(e,t,n,o,r,i,s,a,l,c,d=!1){const{p:u,m:p,um:f,n:m,o:{parentNode:h,remove:g}}=c,v=e.props?ae(e.props.timeout):void 0,y={vnode:e,parent:t,parentComponent:n,isSVG:s,container:o,hiddenContainer:r,anchor:i,deps:0,pendingId:0,timeout:"number"==typeof v?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:o,pendingId:r,effects:i,parentComponent:s,container:a}=y;if(y.isHydrating)y.isHydrating=!1;else if(!e){const e=n&&o.transition&&"out-in"===o.transition.mode;e&&(n.transition.afterLeave=()=>{r===y.pendingId&&p(o,a,t,0)});let{anchor:t}=y;n&&(t=m(n),f(n,s,y,!0)),e||p(o,a,t,0)}Xn(y,o),y.pendingBranch=null,y.isInFallback=!1;let l=y.parent,c=!1;for(;l;){if(l.pendingBranch){l.effects.push(...i),c=!0;break}l=l.parent}c||In(i),y.effects=[],Kn(t,"onResolve")},fallback(e){if(!y.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,isSVG:i}=y;Kn(t,"onFallback");const s=m(n),c=()=>{y.isInFallback&&(u(null,e,r,s,o,null,i,a,l),Xn(y,e))},d=e.transition&&"out-in"===e.transition.mode;d&&(n.transition.afterLeave=c),y.isInFallback=!0,f(n,o,null,!0),d||c()},move(e,t,n){y.activeBranch&&p(y.activeBranch,e,t,n),y.container=e},next:()=>y.activeBranch&&m(y.activeBranch),registerDep(e,t){const n=!!y.pendingBranch;n&&y.deps++;const o=e.vnode.el;e.asyncDep.catch((t=>{ln(t,e,0)})).then((r=>{if(e.isUnmounted||y.isUnmounted||y.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;Wi(e,r,!1),o&&(i.el=o);const a=!o&&e.subTree.el;t(e,i,h(o||e.subTree.el),o?null:m(e.subTree),y,s,l),a&&g(a),zn(e,i.el),n&&0==--y.deps&&y.resolve()}))},unmount(e,t){y.isUnmounted=!0,y.activeBranch&&f(y.activeBranch,n,e,t),y.pendingBranch&&f(y.pendingBranch,n,e,t)}};return y}function Qn(e){let t;if(j(e)){const n=ui&&e._c;n&&(e._d=!1,li()),e=e(),n&&(e._d=!0,t=ai,ci())}if(O(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function Yn(e,t){t&&t.pendingBranch?O(e)?t.effects.push(...e):t.effects.push(e):In(e)}function Xn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,r=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=r,zn(o,r))}function Zn(e,t){if(ji){let n=ji.provides;const o=ji.parent&&ji.parent.provides;o===n&&(n=ji.provides=Object.create(o)),n[e]=t}}function eo(e,t,n=!1){const o=ji||Rn;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&j(t)?t.call(o.proxy):t}}function to(e,t){return so(e,null,t)}function no(e,t){return so(e,null,{flush:"post"})}function oo(e,t){return so(e,null,{flush:"sync"})}const ro={};function io(e,t,n){return so(e,t,n)}function so(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=I){const a=me()===(null==ji?void 0:ji.scope)?ji:null;let l,c,d=!1,u=!1;if(Vt(e)?(l=()=>e.value,d=Nt(e)):Pt(e)?(l=()=>e,o=!0):O(e)?(u=!0,d=e.some((e=>Pt(e)||Nt(e))),l=()=>e.map((e=>Vt(e)?e.value:Pt(e)?co(e):j(e)?sn(e,a,2):void 0))):l=j(e)?t?()=>sn(e,a,2):()=>{if(!a||!a.isUnmounted)return c&&c(),an(e,a,3,[f])}:x,t&&o){const e=l;l=()=>co(e())}let p,f=e=>{c=v.onStop=()=>{sn(e,a,4)}};if(qi){if(f=x,t?n&&an(t,a,3,[l(),u?[]:void 0,f]):l(),"sync"!==r)return x;{const e=ps();p=e.__watcherHandles||(e.__watcherHandles=[])}}let m=u?new Array(e.length).fill(ro):ro;const h=()=>{if(v.active)if(t){const e=v.run();(o||d||(u?e.some(((e,t)=>oe(e,m[t]))):oe(e,m)))&&(c&&c(),an(t,a,3,[e,m===ro?void 0:u&&m[0]===ro?[]:m,f]),m=e)}else v.run()};let g;h.allowRecurse=!!t,"sync"===r?g=h:"post"===r?g=()=>Ur(h,a&&a.suspense):(h.pre=!0,a&&(h.id=a.uid),g=()=>bn(h));const v=new ke(l,g);t?n?h():m=v.run():"post"===r?Ur(v.run.bind(v),a&&a.suspense):v.run();const y=()=>{v.stop(),a&&a.scope&&T(a.scope.effects,v)};return p&&p.push(y),y}function ao(e,t,n){const o=this.proxy,r=M(e)?e.includes(".")?lo(o,e):()=>o[e]:e.bind(o,o);let i;j(t)?i=t:(i=t.handler,n=t);const s=ji;$i(this);const a=so(r,i.bind(o),n);return s?$i(s):Bi(),a}function lo(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{co(e,t)}));else if(W(e))for(const n in e)co(e[n],t);return e}function uo(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Lo((()=>{e.isMounted=!0})),$o((()=>{e.isUnmounting=!0})),e}const po=[Function,Array],fo={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:po,onEnter:po,onAfterEnter:po,onEnterCancelled:po,onBeforeLeave:po,onLeave:po,onAfterLeave:po,onLeaveCancelled:po,onBeforeAppear:po,onAppear:po,onAfterAppear:po,onAppearCancelled:po},setup(e,{slots:t}){const n=Mi(),o=uo();let r;return()=>{const i=t.default&&bo(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==ri){s=t,e=!0;break}}const a=At(e),{mode:l}=a;if(o.isLeaving)return go(s);const c=vo(s);if(!c)return go(s);const d=ho(c,a,o,n);yo(c,d);const u=n.subTree,p=u&&vo(u);let f=!1;const{getTransitionKey:m}=c.type;if(m){const e=m();void 0===r?r=e:e!==r&&(r=e,f=!0)}if(p&&p.type!==ri&&(!vi(c,p)||f)){const e=ho(p,a,o,n);if(yo(p,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&n.update()},go(s);"in-out"===l&&c.type!==ri&&(e.delayLeave=(e,t,n)=>{mo(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return s}}};function mo(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function ho(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:p,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:h,onAppear:g,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),_=mo(n,e),I=(e,t)=>{e&&an(e,o,9,t)},w=(e,t)=>{const n=t[1];I(e,t),O(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},x={mode:i,persisted:s,beforeEnter(t){let o=a;if(!n.isMounted){if(!r)return;o=h||a}t._leaveCb&&t._leaveCb(!0);const i=_[b];i&&vi(e,i)&&i.el._leaveCb&&i.el._leaveCb(),I(o,[t])},enter(e){let t=l,o=c,i=d;if(!n.isMounted){if(!r)return;t=g||l,o=v||c,i=y||d}let s=!1;const a=e._enterCb=t=>{s||(s=!0,I(t?i:o,[e]),x.delayedLeave&&x.delayedLeave(),e._enterCb=void 0)};t?w(t,[e,a]):a()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();I(u,[t]);let i=!1;const s=t._leaveCb=n=>{i||(i=!0,o(),I(n?m:f,[t]),t._leaveCb=void 0,_[r]===e&&delete _[r])};_[r]=e,p?w(p,[t,s]):s()},clone:e=>ho(e,t,n,o)};return x}function go(e){if(Do(e))return(e=Si(e)).children=null,e}function vo(e){return Do(e)?e.children?e.children[0]:void 0:e}function yo(e,t){6&e.shapeFlag&&e.component?yo(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function bo(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let e=0;e!!e.type.__asyncLoader;function wo(e){j(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:a}=e;let l,c=null,d=0;const u=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise(((t,n)=>{a(e,(()=>t((d++,c=null,u()))),(()=>n(e)),d+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return _o({name:"AsyncComponentWrapper",__asyncLoader:u,get __asyncResolved(){return l},setup(){const e=ji;if(l)return()=>xo(l,e);const t=t=>{c=null,ln(t,e,13,!o)};if(s&&e.suspense||qi)return u().then((t=>()=>xo(t,e))).catch((e=>(t(e),()=>o?xi(o,{error:e}):null)));const a=Ht(!1),d=Ht(),p=Ht(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=i&&setTimeout((()=>{if(!a.value&&!d.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),d.value=e}}),i),u().then((()=>{a.value=!0,e.parent&&Do(e.parent.vnode)&&bn(e.parent.update)})).catch((e=>{t(e),d.value=e})),()=>a.value&&l?xo(l,e):d.value&&o?xi(o,{error:d.value}):n&&!p.value?xi(n):void 0}})}function xo(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=xi(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const Do=e=>e.type.__isKeepAlive,So={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Mi(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,i=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=o,p=u("div");function f(e){Po(e),d(e,n,a,!0)}function m(e){r.forEach(((t,n)=>{const o=Xi(t.type);!o||e&&e(o)||h(n)}))}function h(e){const t=r.get(e);s&&vi(t,s)?s&&Po(s):f(t),r.delete(e),i.delete(e)}o.activate=(e,t,n,o,r)=>{const i=e.component;c(e,t,n,0,a),l(i.vnode,e,t,n,i,a,o,e.slotScopeIds,r),Ur((()=>{i.isDeactivated=!1,i.a&&re(i.a);const t=e.props&&e.props.onVnodeMounted;t&&Ni(t,i.parent,e)}),a)},o.deactivate=e=>{const t=e.component;c(e,p,null,1,a),Ur((()=>{t.da&&re(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Ni(n,t.parent,e),t.isDeactivated=!0}),a)},io((()=>[e.include,e.exclude]),(([e,t])=>{e&&m((t=>ko(e,t))),t&&m((e=>!ko(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&r.set(g,Oo(n.subTree))};return Lo(v),Mo(v),$o((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=Oo(t);if(e.type!==r.type||e.key!==r.key)f(e);else{Po(r);const e=r.component.da;e&&Ur(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!gi(o)||!(4&o.shapeFlag||128&o.shapeFlag))return s=null,o;let a=Oo(o);const l=a.type,c=Xi(Io(a)?a.type.__asyncResolved||{}:l),{include:d,exclude:u,max:p}=e;if(d&&(!c||!ko(d,c))||u&&c&&ko(u,c))return s=a,o;const f=null==a.key?l:a.key,m=r.get(f);return a.el&&(a=Si(a),128&o.shapeFlag&&(o.ssContent=a)),g=f,m?(a.el=m.el,a.component=m.component,a.transition&&yo(a,a.transition),a.shapeFlag|=512,i.delete(f),i.add(f)):(i.add(f),p&&i.size>parseInt(p,10)&&h(i.values().next().value)),a.shapeFlag|=256,s=a,Wn(o.type)?o:a}}};function ko(e,t){return O(e)?e.some((e=>ko(e,t))):M(e)?e.split(",").includes(t):!!L(e)&&e.test(t)}function Co(e,t){To(e,"a",t)}function Fo(e,t){To(e,"da",t)}function To(e,t,n=ji){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(No(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Do(e.parent.vnode)&&Eo(o,t,n,e),e=e.parent}}function Eo(e,t,n,o){const r=No(t,e,o,!0);Bo((()=>{T(o[t],r)}),n)}function Po(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Oo(e){return 128&e.shapeFlag?e.ssContent:e}function No(e,t,n=ji,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Oe(),$i(n);const r=an(t,n,e,o);return Bi(),Ne(),r});return o?r.unshift(i):r.push(i),i}}const Ro=e=>(t,n=ji)=>(!qi||"sp"===e)&&No(e,((...e)=>t(...e)),n),Ao=Ro("bm"),Lo=Ro("m"),jo=Ro("bu"),Mo=Ro("u"),$o=Ro("bum"),Bo=Ro("um"),Vo=Ro("sp"),Ho=Ro("rtg"),Uo=Ro("rtc");function qo(e,t=ji){No("ec",e,t)}function zo(e,t){const n=Rn;if(null===n)return e;const o=Yi(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function or(e,t,n={},o,r){if(Rn.isCE||Rn.parent&&Io(Rn.parent)&&Rn.parent.isCE)return"default"!==t&&(n.name=t),xi("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),li();const s=i&&rr(i(n)),a=hi(ni,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&1===e._?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function rr(e){return e.some((e=>!gi(e)||e.type!==ri&&!(e.type===ni&&!rr(e.children))))?e:null}function ir(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:ne(o)]=e[o];return n}const sr=e=>e?Vi(e)?Yi(e)||e.proxy:sr(e.parent):null,ar=F(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>sr(e.parent),$root:e=>sr(e.root),$emit:e=>e.emit,$options:e=>mr(e),$forceUpdate:e=>e.f||(e.f=()=>bn(e.update)),$nextTick:e=>e.n||(e.n=yn.bind(e.proxy)),$watch:e=>ao.bind(e)}),lr=(e,t)=>e!==I&&!e.__isScriptSetup&&P(e,t),cr={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let c;if("$"!==t[0]){const a=s[t];if(void 0!==a)switch(a){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(lr(o,t))return s[t]=1,o[t];if(r!==I&&P(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&P(c,t))return s[t]=3,i[t];if(n!==I&&P(n,t))return s[t]=4,n[t];ur&&(s[t]=0)}}const d=ar[t];let u,p;return d?("$attrs"===t&&Re(e,0,t),d(e)):(u=a.__cssModules)&&(u=u[t])?u:n!==I&&P(n,t)?(s[t]=4,n[t]):(p=l.config.globalProperties,P(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return lr(r,t)?(r[t]=n,!0):o!==I&&P(o,t)?(o[t]=n,!0):!(P(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let a;return!!n[s]||e!==I&&P(e,s)||lr(t,s)||(a=i[0])&&P(a,s)||P(o,s)||P(ar,s)||P(r.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:P(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},dr=F({},cr,{get(e,t){if(t!==Symbol.unscopables)return cr.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!r(t)});let ur=!0;function pr(e,t,n){an(O(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function fr(e,t,n,o){const r=o.includes(".")?lo(n,o):()=>n[o];if(M(e)){const n=t[e];j(n)&&io(r,n)}else if(j(e))io(r,e.bind(n));else if(V(e))if(O(e))e.forEach((e=>fr(e,t,n,o)));else{const o=j(e.handler)?e.handler.bind(n):t[e.handler];j(o)&&io(r,o,e)}}function mr(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:r.length||n||o?(l={},r.length&&r.forEach((e=>hr(l,e,s,!0))),hr(l,t,s)):l=t,V(t)&&i.set(t,l),l}function hr(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&hr(e,i,n,!0),r&&r.forEach((t=>hr(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=gr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const gr={data:vr,props:_r,emits:_r,methods:_r,computed:_r,beforeCreate:br,created:br,beforeMount:br,mounted:br,beforeUpdate:br,updated:br,beforeDestroy:br,beforeUnmount:br,destroyed:br,unmounted:br,activated:br,deactivated:br,errorCaptured:br,serverPrefetch:br,components:_r,directives:_r,watch:function(e,t){if(!e)return t;if(!t)return e;const n=F(Object.create(null),e);for(const o in t)n[o]=br(e[o],t[o]);return n},provide:vr,inject:function(e,t){return _r(yr(e),yr(t))}};function vr(e,t){return t?e?function(){return F(j(e)?e.call(this,this):e,j(t)?t.call(this,this):t)}:t:e}function yr(e){if(O(e)){const t={};for(let n=0;n{l=!0;const[n,o]=xr(e,t,!0);F(s,n),o&&a.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!i&&!l)return V(e)&&o.set(e,w),w;if(O(i))for(let e=0;e-1,o[1]=n<0||e-1||P(o,"default"))&&a.push(t)}}}const c=[s,a];return V(e)&&o.set(e,c),c}function Dr(e){return"$"!==e[0]}function Sr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function kr(e,t){return Sr(e)===Sr(t)}function Cr(e,t){return O(t)?t.findIndex((t=>kr(t,e))):j(t)&&kr(t,e)?0:-1}const Fr=e=>"_"===e[0]||"$stable"===e,Tr=e=>O(e)?e.map(Ti):[Ti(e)],Er=(e,t,n)=>{if(t._n)return t;const o=Bn(((...e)=>Tr(t(...e))),n);return o._c=!1,o},Pr=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Fr(n))continue;const r=e[n];if(j(r))t[n]=Er(0,r,o);else if(null!=r){const e=Tr(r);t[n]=()=>e}}},Or=(e,t)=>{const n=Tr(t);e.slots.default=()=>n},Nr=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=At(t),ie(t,"_",n)):Pr(t,e.slots={})}else e.slots={},t&&Or(e,t);ie(e.slots,bi,1)},Rr=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=I;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:(F(r,t),n||1!==e||delete r._):(i=!t.$stable,Pr(t,r)),s=t}else t&&(Or(e,t),s={default:1});if(i)for(const e in r)Fr(e)||e in s||delete r[e]};function Ar(){return{app:null,config:{isNativeTag:D,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Lr=0;function jr(e,t){return function(n,o=null){j(n)||(n=Object.assign({},n)),null==o||V(o)||(o=null);const r=Ar(),i=new Set;let s=!1;const a=r.app={_uid:Lr++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:gs,get config(){return r.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&j(e.install)?(i.add(e),e.install(a,...t)):j(e)&&(i.add(e),e(a,...t))),a),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),a),component:(e,t)=>t?(r.components[e]=t,a):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,a):r.directives[e],mount(i,l,c){if(!s){const d=xi(n,o);return d.appContext=r,l&&t?t(d,i):e(d,i,c),s=!0,a._container=i,i.__vue_app__=a,Yi(d.component)||d.component.proxy}},unmount(){s&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,a)};return a}}function Mr(e,t,n,o,r=!1){if(O(e))return void e.forEach(((e,i)=>Mr(e,t&&(O(t)?t[i]:t),n,o,r)));if(Io(o)&&!r)return;const i=4&o.shapeFlag?Yi(o.component)||o.component.proxy:o.el,s=r?null:i,{i:a,r:l}=e,c=t&&t.r,d=a.refs===I?a.refs={}:a.refs,u=a.setupState;if(null!=c&&c!==l&&(M(c)?(d[c]=null,P(u,c)&&(u[c]=null)):Vt(c)&&(c.value=null)),j(l))sn(l,a,12,[s,d]);else{const t=M(l),o=Vt(l);if(t||o){const a=()=>{if(e.f){const n=t?P(u,l)?u[l]:d[l]:l.value;r?O(n)&&T(n,i):O(n)?n.includes(i)||n.push(i):t?(d[l]=[i],P(u,l)&&(u[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else t?(d[l]=s,P(u,l)&&(u[l]=s)):o&&(l.value=s,e.k&&(d[e.k]=s))};s?(a.id=-1,Ur(a,n)):a()}}}let $r=!1;const Br=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Vr=e=>8===e.nodeType;function Hr(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:a,insert:l,createComment:c}}=e,d=(n,o,a,c,g,v=!1)=>{const y=Vr(n)&&"["===n.data,b=()=>m(n,o,a,c,g,y),{type:_,ref:I,shapeFlag:w,patchFlag:x}=o;let D=n.nodeType;o.el=n,-2===x&&(v=!1,o.dynamicChildren=null);let S=null;switch(_){case oi:3!==D?""===o.children?(l(o.el=r(""),s(n),n),S=n):S=b():(n.data!==o.children&&($r=!0,n.data=o.children),S=i(n));break;case ri:S=8!==D||y?b():i(n);break;case ii:if(y&&(D=(n=i(n)).nodeType),1===D||3===D){S=n;const e=!o.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;const{type:l,props:c,patchFlag:d,shapeFlag:u,dirs:f}=t,m="input"===l&&f||"option"===l;if(m||-1!==d){if(f&&Wo(t,null,n,"created"),c)if(m||!s||48&d)for(const t in c)(m&&t.endsWith("value")||k(t)&&!K(t))&&o(e,t,null,c[t],!1,void 0,n);else c.onClick&&o(e,"onClick",null,c.onClick,!1,void 0,n);let l;if((l=c&&c.onVnodeBeforeMount)&&Ni(l,n,t),f&&Wo(t,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||f)&&Yn((()=>{l&&Ni(l,n,t),f&&Wo(t,null,n,"mounted")}),r),16&u&&(!c||!c.innerHTML&&!c.textContent)){let o=p(e.firstChild,t,e,n,r,i,s);for(;o;){$r=!0;const e=o;o=o.nextSibling,a(e)}}else 8&u&&e.textContent!==t.children&&($r=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,o,r,i,s,a)=>{a=a||!!t.dynamicChildren;const l=t.children,c=l.length;for(let t=0;t{const{slotScopeIds:d}=t;d&&(r=r?r.concat(d):d);const u=s(e),f=p(i(e),t,u,n,o,r,a);return f&&Vr(f)&&"]"===f.data?i(t.anchor=f):($r=!0,l(t.anchor=c("]"),u,f),f)},m=(e,t,o,r,l,c)=>{if($r=!0,t.el=null,c){const t=h(e);for(;;){const n=i(e);if(!n||n===t)break;a(n)}}const d=i(e),u=s(e);return a(e),n(null,t,u,d,o,r,Br(u),l),d},h=e=>{let t=0;for(;e;)if((e=i(e))&&Vr(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return i(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),xn(),void(t._vnode=e);$r=!1,d(t.firstChild,e,null,null,null),xn(),t._vnode=e,$r&&console.error("Hydration completed but contains mismatches.")},d]}const Ur=Yn;function qr(e){return Wr(e)}function zr(e){return Wr(e,Hr)}function Wr(e,t){ce().__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:s,createComment:a,setText:l,setElementText:c,parentNode:d,nextSibling:u,setScopeId:p=x,insertStaticContent:f}=e,m=(e,t,n,o=null,r=null,i=null,s=!1,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!vi(e,t)&&(o=q(e),$(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case oi:h(e,t,n,o);break;case ri:g(e,t,n,o);break;case ii:null==e&&v(t,n,o,s);break;case ni:F(e,t,n,o,r,i,s,a,l);break;default:1&u?y(e,t,n,o,r,i,s,a,l):6&u?T(e,t,n,o,r,i,s,a,l):(64&u||128&u)&&c.process(e,t,n,o,r,i,s,a,l,W)}null!=d&&r&&Mr(d,e&&e.ref,i,t||e,!t)},h=(e,t,o,r)=>{if(null==e)n(t.el=s(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},g=(e,t,o,r)=>{null==e?n(t.el=a(t.children||""),o,r):t.el=e.el},v=(e,t,n,o)=>{[e.el,e.anchor]=f(e.children,t,n,o,e.el,e.anchor)},y=(e,t,n,o,r,i,s,a,l)=>{s=s||"svg"===t.type,null==e?b(t,n,o,r,i,s,a,l):S(e,t,r,i,s,a,l)},b=(e,t,o,s,a,l,d,u)=>{let p,f;const{type:m,props:h,shapeFlag:g,transition:v,dirs:y}=e;if(p=e.el=i(e.type,l,h&&h.is,h),8&g?c(p,e.children):16&g&&D(e.children,p,null,s,a,l&&"foreignObject"!==m,d,u),y&&Wo(e,null,s,"created"),_(p,e,e.scopeId,d,s),h){for(const t in h)"value"===t||K(t)||r(p,t,null,h[t],l,e.children,s,a,U);"value"in h&&r(p,"value",null,h.value),(f=h.onVnodeBeforeMount)&&Ni(f,s,e)}y&&Wo(e,null,s,"beforeMount");const b=(!a||a&&!a.pendingBranch)&&v&&!v.persisted;b&&v.beforeEnter(p),n(p,t,o),((f=h&&h.onVnodeMounted)||b||y)&&Ur((()=>{f&&Ni(f,s,e),b&&v.enter(p),y&&Wo(e,null,s,"mounted")}),a)},_=(e,t,n,o,r)=>{if(n&&p(e,n),o)for(let t=0;t{for(let c=l;c{const l=t.el=e.el;let{patchFlag:d,dynamicChildren:u,dirs:p}=t;d|=16&e.patchFlag;const f=e.props||I,m=t.props||I;let h;n&&Gr(n,!1),(h=m.onVnodeBeforeUpdate)&&Ni(h,n,t,e),p&&Wo(t,e,n,"beforeUpdate"),n&&Gr(n,!0);const g=i&&"foreignObject"!==t.type;if(u?k(e.dynamicChildren,u,l,n,o,g,s):a||A(e,t,l,null,n,o,g,s,!1),d>0){if(16&d)C(l,t,f,m,n,o,i);else if(2&d&&f.class!==m.class&&r(l,"class",null,m.class,i),4&d&&r(l,"style",f.style,m.style,i),8&d){const s=t.dynamicProps;for(let t=0;t{h&&Ni(h,n,t,e),p&&Wo(t,e,n,"updated")}),o)},k=(e,t,n,o,r,i,s)=>{for(let a=0;a{if(n!==o){if(n!==I)for(const l in n)K(l)||l in o||r(e,l,n[l],null,a,t.children,i,s,U);for(const l in o){if(K(l))continue;const c=o[l],d=n[l];c!==d&&"value"!==l&&r(e,l,d,c,a,t.children,i,s,U)}"value"in o&&r(e,"value",n.value,o.value)}},F=(e,t,o,r,i,a,l,c,d)=>{const u=t.el=e?e.el:s(""),p=t.anchor=e?e.anchor:s("");let{patchFlag:f,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),null==e?(n(u,o,r),n(p,o,r),D(t.children,o,p,i,a,l,c,d)):f>0&&64&f&&m&&e.dynamicChildren?(k(e.dynamicChildren,m,o,i,a,l,c),(null!=t.key||i&&t===i.subTree)&&Kr(e,t,!0)):A(e,t,o,p,i,a,l,c,d)},T=(e,t,n,o,r,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,l):E(t,n,o,r,i,s,l):O(e,t,l)},E=(e,t,n,o,r,i,s)=>{const a=e.component=Li(e,o,r);if(Do(e)&&(a.ctx.renderer=W),zi(a),a.asyncDep){if(r&&r.registerDep(a,N),!e.el){const e=a.subTree=xi(ri);g(null,e,t,n)}}else N(a,e,t,n,r,i,s)},O=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!a||a&&a.$stable)||o!==s&&(o?!s||qn(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?qn(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;tpn&&un.splice(t,1)}(o.update),o.update()}else t.el=e.el,o.vnode=t},N=(e,t,n,o,r,i,s)=>{const a=e.effect=new ke((()=>{if(e.isMounted){let t,{next:n,bu:o,u:a,parent:l,vnode:c}=e,u=n;Gr(e,!1),n?(n.el=c.el,R(e,n,s)):n=c,o&&re(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Ni(t,l,n,c),Gr(e,!0);const p=Vn(e),f=e.subTree;e.subTree=p,m(f,p,d(f.el),q(f),e,r,i),n.el=p.el,null===u&&zn(e,p.el),a&&Ur(a,r),(t=n.props&&n.props.onVnodeUpdated)&&Ur((()=>Ni(t,l,n,c)),r)}else{let s;const{el:a,props:l}=t,{bm:c,m:d,parent:u}=e,p=Io(t);if(Gr(e,!1),c&&re(c),!p&&(s=l&&l.onVnodeBeforeMount)&&Ni(s,u,t),Gr(e,!0),a&&J){const n=()=>{e.subTree=Vn(e),J(a,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=Vn(e);m(null,s,n,o,e,r,i),t.el=s.el}if(d&&Ur(d,r),!p&&(s=l&&l.onVnodeMounted)){const e=t;Ur((()=>Ni(s,u,e)),r)}(256&t.shapeFlag||u&&Io(u.vnode)&&256&u.vnode.shapeFlag)&&e.a&&Ur(e.a,r),e.isMounted=!0,t=n=o=null}}),(()=>bn(l)),e.scope),l=e.update=()=>a.run();l.id=e.uid,Gr(e,!0),l()},R=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=At(r),[l]=e.propsOptions;let c=!1;if(!(o||s>0)||16&s){let o;Ir(e,t,r,i)&&(c=!0);for(const i in a)t&&(P(t,i)||(o=ee(i))!==i&&P(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(r[i]=wr(l,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&P(t,e)||(delete i[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const d=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(128&f)return void j(d,p,n,o,r,i,s,a,l);if(256&f)return void L(d,p,n,o,r,i,s,a,l)}8&m?(16&u&&U(d,r,i),p!==d&&c(n,p)):16&u?16&m?j(d,p,n,o,r,i,s,a,l):U(d,r,i,!0):(8&u&&c(n,""),16&m&&D(p,n,o,r,i,s,a,l))},L=(e,t,n,o,r,i,s,a,l)=>{t=t||w;const c=(e=e||w).length,d=t.length,u=Math.min(c,d);let p;for(p=0;pd?U(e,r,i,!0,!1,u):D(t,n,o,r,i,s,a,l,u)},j=(e,t,n,o,r,i,s,a,l)=>{let c=0;const d=t.length;let u=e.length-1,p=d-1;for(;c<=u&&c<=p;){const o=e[c],d=t[c]=l?Ei(t[c]):Ti(t[c]);if(!vi(o,d))break;m(o,d,n,null,r,i,s,a,l),c++}for(;c<=u&&c<=p;){const o=e[u],c=t[p]=l?Ei(t[p]):Ti(t[p]);if(!vi(o,c))break;m(o,c,n,null,r,i,s,a,l),u--,p--}if(c>u){if(c<=p){const e=p+1,u=ep)for(;c<=u;)$(e[c],r,i,!0),c++;else{const f=c,h=c,g=new Map;for(c=h;c<=p;c++){const e=t[c]=l?Ei(t[c]):Ti(t[c]);null!=e.key&&g.set(e.key,c)}let v,y=0;const b=p-h+1;let _=!1,I=0;const x=new Array(b);for(c=0;c=b){$(o,r,i,!0);continue}let d;if(null!=o.key)d=g.get(o.key);else for(v=h;v<=p;v++)if(0===x[v-h]&&vi(o,t[v])){d=v;break}void 0===d?$(o,r,i,!0):(x[d-h]=c+1,d>=I?I=d:_=!0,m(o,t[d],n,null,r,i,s,a,l),y++)}const D=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(x):w;for(v=D.length-1,c=b-1;c>=0;c--){const e=h+c,u=t[e],p=e+1{const{el:s,type:a,transition:l,children:c,shapeFlag:d}=e;if(6&d)M(e.component.subTree,t,o,r);else if(128&d)e.suspense.move(t,o,r);else if(64&d)a.move(e,t,o,W);else if(a!==ni)if(a!==ii)if(2!==r&&1&d&&l)if(0===r)l.beforeEnter(s),n(s,t,o),Ur((()=>l.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,a=()=>n(s,t,o),c=()=>{e(s,(()=>{a(),i&&i()}))};r?r(s,a,c):c()}else n(s,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=u(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(s,t,o);for(let e=0;e{const{type:i,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:p}=e;if(null!=a&&Mr(a,null,n,e,!0),256&d)return void t.ctx.deactivate(e);const f=1&d&&p,m=!Io(e);let h;if(m&&(h=s&&s.onVnodeBeforeUnmount)&&Ni(h,t,e),6&d)H(e.component,n,o);else{if(128&d)return void e.suspense.unmount(n,o);f&&Wo(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,r,W,o):c&&(i!==ni||u>0&&64&u)?U(c,t,n,!1,!0):(i===ni&&384&u||!r&&16&d)&&U(l,t,n),o&&B(e)}(m&&(h=s&&s.onVnodeUnmounted)||f)&&Ur((()=>{h&&Ni(h,t,e),f&&Wo(e,null,t,"unmounted")}),n)},B=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===ni)return void V(n,r);if(t===ii)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=u(e),o(e),e=n;o(t)})(e);const s=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:o}=i,r=()=>t(n,s);o?o(e.el,s,r):r()}else s()},V=(e,t)=>{let n;for(;e!==t;)n=u(e),o(e),e=n;o(t)},H=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:a}=e;o&&re(o),r.stop(),i&&(i.active=!1,$(s,e,t,n)),a&&Ur(a,t),Ur((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},U=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s6&e.shapeFlag?q(e.component.subTree):128&e.shapeFlag?e.suspense.next():u(e.anchor||e.el),z=(e,t,n)=>{null==e?t._vnode&&$(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),wn(),xn(),t._vnode=e},W={p:m,um:$,m:M,r:B,mt:E,mc:D,pc:A,pbc:k,n:q,o:e};let G,J;return t&&([G,J]=t(W)),{render:z,hydrate:G,createApp:jr(z,G)}}function Gr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Kr(e,t,n=!1){const o=e.children,r=t.children;if(O(o)&&O(r))for(let e=0;ee.__isTeleport,Qr=e=>e&&(e.disabled||""===e.disabled),Yr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Xr=(e,t)=>{const n=e&&e.to;if(M(n)){if(t){return t(n)}return null}return n};function Zr(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:d}=e,u=2===i;if(u&&o(s,t,n),(!u||Qr(d))&&16&l)for(let e=0;e{16&y&&d(b,e,t,r,i,s,a,l)};v?g(n,c):u&&g(u,p)}else{t.el=e.el;const o=t.anchor=e.anchor,d=t.target=e.target,f=t.targetAnchor=e.targetAnchor,h=Qr(e.props),g=h?n:d,y=h?o:f;if(s=s||Yr(d),_?(p(e.dynamicChildren,_,g,r,i,s,a),Kr(e,t,!0)):l||u(e,t,g,y,r,i,s,a,!1),v)h||Zr(t,n,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Xr(t.props,m);e&&Zr(t,e,null,c,0)}else h&&Zr(t,d,f,c,1)}ti(t)},remove(e,t,n,o,{um:r,o:{remove:i}},s){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:u,props:p}=e;if(u&&i(d),(s||!Qr(p))&&(i(c),16&a))for(let e=0;e0?ai||w:null,ci(),ui>0&&ai&&ai.push(e),e}function mi(e,t,n,o,r,i){return fi(wi(e,t,n,o,r,i,!0))}function hi(e,t,n,o,r){return fi(xi(e,t,n,o,r,!0))}function gi(e){return!!e&&!0===e.__v_isVNode}function vi(e,t){return e.type===t.type&&e.key===t.key}function yi(e){di=e}const bi="__vInternal",_i=({key:e})=>null!=e?e:null,Ii=({ref:e,ref_key:t,ref_for:n})=>null!=e?M(e)||Vt(e)||j(e)?{i:Rn,r:e,k:t,f:!!n}:e:null;function wi(e,t=null,n=null,o=0,r=null,i=(e===ni?0:1),s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&_i(t),ref:t&&Ii(t),scopeId:An,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Rn};return a?(Pi(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=M(n)?8:16),ui>0&&!s&&ai&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&ai.push(l),l}const xi=function(e,t=null,n=null,o=0,r=null,s=!1){if(e&&e!==Qo||(e=ri),gi(e)){const o=Si(e,t,!0);return n&&Pi(o,n),ui>0&&!s&&ai&&(6&o.shapeFlag?ai[ai.indexOf(e)]=o:ai.push(o)),o.patchFlag|=-2,o}if(a=e,j(a)&&"__vccOpts"in a&&(e=e.__vccOpts),t){t=Di(t);let{class:e,style:n}=t;e&&!M(e)&&(t.class=d(e)),V(n)&&(Rt(n)&&!O(n)&&(n=F({},n)),t.style=i(n))}var a;return wi(e,t,n,o,r,M(e)?1:Wn(e)?128:Jr(e)?64:V(e)?4:j(e)?2:0,s,!0)};function Di(e){return e?Rt(e)||bi in e?F({},e):e:null}function Si(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?Oi(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&_i(a),ref:t&&t.ref?n&&r?O(r)?r.concat(Ii(t)):[r,Ii(t)]:Ii(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ni?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Si(e.ssContent),ssFallback:e.ssFallback&&Si(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ki(e=" ",t=0){return xi(oi,null,e,t)}function Ci(e,t){const n=xi(ii,null,e);return n.staticCount=t,n}function Fi(e="",t=!1){return t?(li(),hi(ri,null,e)):xi(ri,null,e)}function Ti(e){return null==e||"boolean"==typeof e?xi(ri):O(e)?xi(ni,null,e.slice()):"object"==typeof e?Ei(e):xi(oi,null,String(e))}function Ei(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Si(e)}function Pi(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(O(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Pi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||bi in t?3===o&&Rn&&(1===Rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Rn}}else j(t)?(t={default:t,_ctx:Rn},n=32):(t=String(t),64&o?(n=16,t=[ki(t)]):n=8);e.children=t,e.shapeFlag|=n}function Oi(...e){const t={};for(let n=0;nji||Rn,$i=e=>{ji=e,e.scope.on()},Bi=()=>{ji&&ji.scope.off(),ji=null};function Vi(e){return 4&e.vnode.shapeFlag}let Hi,Ui,qi=!1;function zi(e,t=!1){qi=t;const{props:n,children:o}=e.vnode,r=Vi(e);!function(e,t,n,o=!1){const r={},i={};ie(i,bi,1),e.propsDefaults=Object.create(null),Ir(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:Ct(r):e.type.props?e.props=r:e.props=i,e.attrs=i}(e,n,r,t),Nr(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Lt(new Proxy(e.ctx,cr));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Qi(e):null;$i(e),Oe();const r=sn(o,e,0,[e.props,n]);if(Ne(),Bi(),H(r)){if(r.then(Bi,Bi),t)return r.then((n=>{Wi(e,n,t)})).catch((t=>{ln(t,e,0)}));e.asyncDep=r}else Wi(e,r,t)}else Ji(e,t)}(e,t):void 0;return qi=!1,i}function Wi(e,t,n){j(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:V(t)&&(e.setupState=Jt(t)),Ji(e,n)}function Gi(e){Hi=e,Ui=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,dr))}}const Ki=()=>!Hi;function Ji(e,t,n){const o=e.type;if(!e.render){if(!t&&Hi&&!o.render){const t=o.template||mr(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,a=F(F({isCustomElement:n,delimiters:i},r),s);o.render=Hi(t,a)}}e.render=o.render||x,Ui&&Ui(e)}$i(e),Oe(),function(e){const t=mr(e),n=e.proxy,o=e.ctx;ur=!1,t.beforeCreate&&pr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:f,updated:m,activated:h,deactivated:g,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:_,render:I,renderTracked:w,renderTriggered:D,errorCaptured:S,serverPrefetch:k,expose:C,inheritAttrs:F,components:T,directives:E,filters:P}=t;if(c&&function(e,t,n=x,o=!1){O(e)&&(e=yr(e));for(const n in e){const r=e[n];let i;i=V(r)?"default"in r?eo(r.from||n,r.default,!0):eo(r.from||n):eo(r),Vt(i)&&o?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(c,o,null,e.appContext.config.unwrapInjectedRef),s)for(const e in s){const t=s[e];j(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);V(t)&&(e.data=kt(t))}if(ur=!0,i)for(const e in i){const t=i[e],r=j(t)?t.bind(n,n):j(t.get)?t.get.bind(n,n):x,s=!j(t)&&j(t.set)?t.set.bind(n):x,a=Zi({get:r,set:s});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(a)for(const e in a)fr(a[e],o,n,e);if(l){const e=j(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{Zn(t,e[t])}))}function N(e,t){O(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&pr(d,e,"c"),N(Ao,u),N(Lo,p),N(jo,f),N(Mo,m),N(Co,h),N(Fo,g),N(qo,S),N(Uo,w),N(Ho,D),N($o,y),N(Bo,_),N(Vo,k),O(C))if(C.length){const t=e.exposed||(e.exposed={});C.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});I&&e.render===x&&(e.render=I),null!=F&&(e.inheritAttrs=F),T&&(e.components=T),E&&(e.directives=E)}(e),Ne(),Bi()}function Qi(e){let t;return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Re(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Yi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Jt(Lt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in ar?ar[n](e):void 0,has:(e,t)=>t in e||t in ar}))}function Xi(e,t=!0){return j(e)?e.displayName||e.name:e.name||t&&e.__name}const Zi=(e,t)=>function(e,t,n=!1){let o,r;const i=j(e);return i?(o=e,r=x):(o=e.get,r=e.set),new nn(o,r,i||!r,n)}(e,0,qi);function es(){return null}function ts(){return null}function ns(e){}function os(e,t){return null}function rs(){return ss().slots}function is(){return ss().attrs}function ss(){const e=Mi();return e.setupContext||(e.setupContext=Qi(e))}function as(e,t){const n=O(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const o=n[e];o?O(o)||j(o)?n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(n[e]={default:t[e]})}return n}function ls(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function cs(e){const t=Mi();let n=e();return Bi(),H(n)&&(n=n.catch((e=>{throw $i(t),e}))),[n,()=>$i(t)]}function ds(e,t,n){const o=arguments.length;return 2===o?V(t)&&!O(t)?gi(t)?xi(e,null,[t]):xi(e,t):xi(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&gi(n)&&(n=[n]),xi(e,t,n))}const us=Symbol(""),ps=()=>eo(us);function fs(){}function ms(e,t,n,o){const r=n[o];if(r&&hs(r,e))return r;const i=t();return i.memo=e.slice(),n[o]=i}function hs(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&ai&&ai.push(e),!0}const gs="3.2.47",vs={createComponentInstance:Li,setupComponent:zi,renderComponentRoot:Vn,setCurrentRenderingInstance:Ln,isVNode:gi,normalizeVNode:Ti},ys=null,bs=null,_s="undefined"!=typeof document?document:null,Is=_s&&_s.createElement("template"),ws={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?_s.createElementNS("http://www.w3.org/2000/svg",e):_s.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>_s.createTextNode(e),createComment:e=>_s.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_s.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Is.innerHTML=o?`${e}`:e;const r=Is.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},xs=/\s*!important$/;function Ds(e,t,n){if(O(n))n.forEach((n=>Ds(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=ks[t];if(n)return n;let o=X(t);if("filter"!==o&&o in e)return ks[t]=o;o=te(o);for(let n=0;nEs||(Ps.then((()=>Es=0)),Es=Date.now()),Ns=/^on[a-z]/;function Rs(e,t){const n=_o(e);class o extends js{constructor(e){super(n,e,t)}}return o.def=n,o}const As=e=>Rs(e,$a),Ls="undefined"!=typeof HTMLElement?HTMLElement:class{};class js extends Ls{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,yn((()=>{this._connected||(Ma(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!O(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=ae(this._props[e])),(r||(r=Object.create(null)))[X(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=O(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(X))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.getAttribute(e);const n=X(e);this._numberProps&&this._numberProps[n]&&(t=ae(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(ee(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(ee(e),t+""):t||this.removeAttribute(ee(e))))}_update(){Ma(this._createVNode(),this.shadowRoot)}_createVNode(){const e=xi(this._def,F({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),ee(e)!==e&&t(ee(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof js){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Ms(e="$style"){{const t=Mi();if(!t)return I;const n=t.type.__cssModules;if(!n)return I;return n[e]||I}}function $s(e){const t=Mi();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Vs(e,n)))},o=()=>{const o=e(t.proxy);Bs(t.subTree,o),n(o)};no(o),Lo((()=>{const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),Bo((()=>e.disconnect()))}))}function Bs(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Bs(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Vs(e.el,t);else if(e.type===ni)e.children.forEach((e=>Bs(e,t)));else if(e.type===ii){let{el:n,anchor:o}=e;for(;n&&(Vs(n,t),n!==o);)n=n.nextSibling}}function Vs(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const Hs="transition",Us="animation",qs=(e,{slots:t})=>ds(fo,Js(e),t);qs.displayName="Transition";const zs={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ws=qs.props=F({},fo.props,zs),Gs=(e,t=[])=>{O(e)?e.forEach((e=>e(...t))):e&&e(...t)},Ks=e=>!!e&&(O(e)?e.some((e=>e.length>1)):e.length>1);function Js(e){const t={};for(const n in e)n in zs||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:d=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(V(e))return[Qs(e.enter),Qs(e.leave)];{const t=Qs(e);return[t,t]}}(r),h=m&&m[0],g=m&&m[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:_,onLeaveCancelled:I,onBeforeAppear:w=v,onAppear:x=y,onAppearCancelled:D=b}=t,S=(e,t,n)=>{Xs(e,t?d:a),Xs(e,t?c:s),n&&n()},k=(e,t)=>{e._isLeaving=!1,Xs(e,u),Xs(e,f),Xs(e,p),t&&t()},C=e=>(t,n)=>{const r=e?x:y,s=()=>S(t,e,n);Gs(r,[t,s]),Zs((()=>{Xs(t,e?l:i),Ys(t,e?d:a),Ks(r)||ta(t,o,h,s)}))};return F(t,{onBeforeEnter(e){Gs(v,[e]),Ys(e,i),Ys(e,s)},onBeforeAppear(e){Gs(w,[e]),Ys(e,l),Ys(e,c)},onEnter:C(!1),onAppear:C(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>k(e,t);Ys(e,u),ia(),Ys(e,p),Zs((()=>{e._isLeaving&&(Xs(e,u),Ys(e,f),Ks(_)||ta(e,o,g,n))})),Gs(_,[e,n])},onEnterCancelled(e){S(e,!1),Gs(b,[e])},onAppearCancelled(e){S(e,!0),Gs(D,[e])},onLeaveCancelled(e){k(e),Gs(I,[e])}})}function Qs(e){return ae(e)}function Ys(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Xs(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Zs(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ea=0;function ta(e,t,n,o){const r=e._endId=++ea,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=na(e,t);if(!s)return o();const c=s+"end";let d=0;const u=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++d>=l&&u()};setTimeout((()=>{d(n[e]||"").split(", "),r=o(`${Hs}Delay`),i=o(`${Hs}Duration`),s=oa(r,i),a=o(`${Us}Delay`),l=o(`${Us}Duration`),c=oa(a,l);let d=null,u=0,p=0;return t===Hs?s>0&&(d=Hs,u=s,p=i.length):t===Us?c>0&&(d=Us,u=c,p=l.length):(u=Math.max(s,c),d=u>0?s>c?Hs:Us:null,p=d?d===Hs?i.length:l.length:0),{type:d,timeout:u,propCount:p,hasTransform:d===Hs&&/\b(transform|all)(,|$)/.test(o(`${Hs}Property`).toString())}}function oa(e,t){for(;e.lengthra(t)+ra(e[n]))))}function ra(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ia(){return document.body.offsetHeight}const sa=new WeakMap,aa=new WeakMap,la={name:"TransitionGroup",props:F({},Ws,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Mi(),o=uo();let r,i;return Mo((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(o);const{hasTransform:i}=na(o);return r.removeChild(o),i}(r[0].el,n.vnode.el,t))return;r.forEach(ca),r.forEach(da);const o=r.filter(ua);ia(),o.forEach((e=>{const n=e.el,o=n.style;Ys(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n._moveCb=null,Xs(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=At(e),a=Js(s);let l=s.tag||ni;r=i,i=t.default?bo(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return O(t)?e=>re(t,e):t};function fa(e){e.target.composing=!0}function ma(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ha={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=pa(r);const i=o||r.props&&"number"===r.props.type;Fs(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=se(o)),e._assign(o)})),n&&Fs(e,"change",(()=>{e.value=e.value.trim()})),t||(Fs(e,"compositionstart",fa),Fs(e,"compositionend",ma),Fs(e,"change",ma))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=pa(i),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===t)return;if((r||"number"===e.type)&&se(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},ga={deep:!0,created(e,t,n){e._assign=pa(n),Fs(e,"change",(()=>{const t=e._modelValue,n=Ia(e),o=e.checked,r=e._assign;if(O(t)){const e=y(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(R(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(wa(e,o))}))},mounted:va,beforeUpdate(e,t,n){e._assign=pa(n),va(e,t,n)}};function va(e,{value:t,oldValue:n},o){e._modelValue=t,O(t)?e.checked=y(t,o.props.value)>-1:R(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=v(t,wa(e,!0)))}const ya={created(e,{value:t},n){e.checked=v(t,n.props.value),e._assign=pa(n),Fs(e,"change",(()=>{e._assign(Ia(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=pa(o),t!==n&&(e.checked=v(t,o.props.value))}},ba={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=R(t);Fs(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?se(Ia(e)):Ia(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=pa(o)},mounted(e,{value:t}){_a(e,t)},beforeUpdate(e,t,n){e._assign=pa(n)},updated(e,{value:t}){_a(e,t)}};function _a(e,t){const n=e.multiple;if(!n||O(t)||R(t)){for(let o=0,r=e.options.length;o-1:r.selected=t.has(i);else if(v(Ia(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Ia(e){return"_value"in e?e._value:e.value}function wa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xa={created(e,t,n){Sa(e,t,n,null,"created")},mounted(e,t,n){Sa(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){Sa(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){Sa(e,t,n,o,"updated")}};function Da(e,t){switch(e){case"SELECT":return ba;case"TEXTAREA":return ha;default:switch(t){case"checkbox":return ga;case"radio":return ya;default:return ha}}}function Sa(e,t,n,o,r){const i=Da(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const ka=["ctrl","shift","alt","meta"],Ca={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ka.some((n=>e[`${n}Key`]&&!t.includes(n)))},Fa=(e,t)=>(n,...o)=>{for(let e=0;en=>{if(!("key"in n))return;const o=ee(n.key);return t.some((e=>e===o||Ta[e]===o))?e(n):void 0},Pa={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Oa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Oa(e,!0),o.enter(e)):o.leave(e,(()=>{Oa(e,!1)})):Oa(e,t))},beforeUnmount(e,{value:t}){Oa(e,t)}};function Oa(e,t){e.style.display=t?e._vod:"none"}const Na=F({patchProp:(e,t,n,o,r=!1,i,s,a,l)=>{"class"===t?function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,r=M(n);if(n&&!r){if(t&&!M(t))for(const e in t)null==n[e]&&Ds(o,e,"");for(const e in n)Ds(o,e,n[e])}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}(e,n,o):k(t)?C(t)||function(e,t,n,o,r=null){const i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[n,a]=function(e){let t;if(Ts.test(e)){let n;for(t={};n=e.match(Ts);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):ee(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();an(function(e,t){if(O(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Os(),n}(o,r);Fs(e,n,s,a)}else s&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,a),i[t]=void 0)}}(e,t,0,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&Ns.test(t)&&j(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Ns.test(t)||!M(n))&&t in e))))}(e,t,o,r))?function(e,t,n,o,r,i,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,r,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}let a=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=g(n):null==n&&"string"===o?(n="",a=!0):"number"===o&&(n=0,a=!0)}try{e[t]=n}catch(e){}a&&e.removeAttribute(t)}(e,t,o,i,s,a,l):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Cs,t.slice(6,t.length)):e.setAttributeNS(Cs,t,n);else{const o=h(t);null==n||o&&!g(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))}},ws);let Ra,Aa=!1;function La(){return Ra||(Ra=qr(Na))}function ja(){return Ra=Aa?Ra:zr(Na),Aa=!0,Ra}const Ma=(...e)=>{La().render(...e)},$a=(...e)=>{ja().hydrate(...e)},Ba=(...e)=>{const t=La().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Ha(e);if(!o)return;const r=t._component;j(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Va=(...e)=>{const t=ja().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Ha(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function Ha(e){return M(e)?document.querySelector(e):e}let Ua=!1;const qa=()=>{Ua||(Ua=!0,ha.getSSRProps=({value:e})=>({value:e}),ya.getSSRProps=({value:e},t)=>{if(t.props&&v(t.props.value,e))return{checked:!0}},ga.getSSRProps=({value:e},t)=>{if(O(e)){if(t.props&&y(e,t.props.value)>-1)return{checked:!0}}else if(R(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},xa.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Da(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Pa.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})};function za(e){throw e}function Wa(e){}function Ga(e,t,n,o){const r=new SyntaxError(String(e));return r.code=e,r.loc=t,r}const Ka=Symbol(""),Ja=Symbol(""),Qa=Symbol(""),Ya=Symbol(""),Xa=Symbol(""),Za=Symbol(""),el=Symbol(""),tl=Symbol(""),nl=Symbol(""),ol=Symbol(""),rl=Symbol(""),il=Symbol(""),sl=Symbol(""),al=Symbol(""),ll=Symbol(""),cl=Symbol(""),dl=Symbol(""),ul=Symbol(""),pl=Symbol(""),fl=Symbol(""),ml=Symbol(""),hl=Symbol(""),gl=Symbol(""),vl=Symbol(""),yl=Symbol(""),bl=Symbol(""),_l=Symbol(""),Il=Symbol(""),wl=Symbol(""),xl=Symbol(""),Dl=Symbol(""),Sl=Symbol(""),kl=Symbol(""),Cl=Symbol(""),Fl=Symbol(""),Tl=Symbol(""),El=Symbol(""),Pl=Symbol(""),Ol=Symbol(""),Nl={[Ka]:"Fragment",[Ja]:"Teleport",[Qa]:"Suspense",[Ya]:"KeepAlive",[Xa]:"BaseTransition",[Za]:"openBlock",[el]:"createBlock",[tl]:"createElementBlock",[nl]:"createVNode",[ol]:"createElementVNode",[rl]:"createCommentVNode",[il]:"createTextVNode",[sl]:"createStaticVNode",[al]:"resolveComponent",[ll]:"resolveDynamicComponent",[cl]:"resolveDirective",[dl]:"resolveFilter",[ul]:"withDirectives",[pl]:"renderList",[fl]:"renderSlot",[ml]:"createSlots",[hl]:"toDisplayString",[gl]:"mergeProps",[vl]:"normalizeClass",[yl]:"normalizeStyle",[bl]:"normalizeProps",[_l]:"guardReactiveProps",[Il]:"toHandlers",[wl]:"camelize",[xl]:"capitalize",[Dl]:"toHandlerKey",[Sl]:"setBlockTracking",[kl]:"pushScopeId",[Cl]:"popScopeId",[Fl]:"withCtx",[Tl]:"unref",[El]:"isRef",[Pl]:"withMemo",[Ol]:"isMemoSame"},Rl={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Al(e,t,n,o,r,i,s,a=!1,l=!1,c=!1,d=Rl){return e&&(a?(e.helper(Za),e.helper(dc(e.inSSR,c))):e.helper(cc(e.inSSR,c)),s&&e.helper(ul)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:i,directives:s,isBlock:a,disableTracking:l,isComponent:c,loc:d}}function Ll(e,t=Rl){return{type:17,loc:t,elements:e}}function jl(e,t=Rl){return{type:15,loc:t,properties:e}}function Ml(e,t){return{type:16,loc:Rl,key:M(e)?$l(e,!0):e,value:t}}function $l(e,t=!1,n=Rl,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Bl(e,t=Rl){return{type:8,loc:t,children:e}}function Vl(e,t=[],n=Rl){return{type:14,loc:n,callee:e,arguments:t}}function Hl(e,t=undefined,n=!1,o=!1,r=Rl){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Ul(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Rl}}const ql=e=>4===e.type&&e.isStatic,zl=(e,t)=>e===t||e===ee(t);function Wl(e){return zl(e,"Teleport")?Ja:zl(e,"Suspense")?Qa:zl(e,"KeepAlive")?Ya:zl(e,"BaseTransition")?Xa:void 0}const Gl=/^\d|[^\$\w]/,Kl=e=>!Gl.test(e),Jl=/[A-Za-z_$\xA0-\uFFFF]/,Ql=/[\.\?\w$\xA0-\uFFFF]/,Yl=/\s+[.[]\s*|\s*[.[]\s+/g,Xl=e=>{e=e.trim().replace(Yl,(e=>e.trim()));let t=0,n=[],o=0,r=0,i=null;for(let s=0;s4===e.key.type&&e.key.content===o))}return n}function hc(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function gc(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(cc(o,e.isComponent)),t(Za),t(dc(o,e.isComponent)))}function vc(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,o=n&&n[e];return"MODE"===e?o||3:o}function yc(e,t){const n=vc("MODE",t),o=vc(e,t);return 3===n?!0===o:!1!==o}function bc(e,t,n,...o){return yc(e,t)}const _c=/&(gt|lt|amp|apos|quot);/g,Ic={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},wc={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:D,isPreTag:D,isCustomElement:D,decodeEntities:e=>e.replace(_c,((e,t)=>Ic[t])),onError:za,onWarn:Wa,comments:!1};function xc(e,t,n){const o=Mc(n),r=o?o.ns:0,i=[];for(;!qc(e,t,n);){const s=e.source;let a;if(0===t||1===t)if(!e.inVPre&&$c(s,e.options.delimiters[0]))a=Nc(e,t);else if(0===t&&"<"===s[0])if(1===s.length)Uc(e,5,1);else if("!"===s[1])$c(s,"\x3c!--")?a=kc(e):$c(s,""===s[2]){Uc(e,14,2),Bc(e,3);continue}if(/[a-z]/i.test(s[2])){Uc(e,23),Ec(e,1,o);continue}Uc(e,12,2),a=Cc(e)}else/[a-z]/i.test(s[1])?(a=Fc(e,n),yc("COMPILER_NATIVE_TEMPLATE",e)&&a&&"template"===a.tag&&!a.props.some((e=>7===e.type&&Tc(e.name)))&&(a=a.children)):"?"===s[1]?(Uc(e,21,1),a=Cc(e)):Uc(e,12,1);if(a||(a=Rc(e,t)),O(a))for(let e=0;e/.exec(e.source);if(o){o.index<=3&&Uc(e,0),o[1]&&Uc(e,10),n=e.source.slice(4,o.index);const t=e.source.slice(0,o.index);let r=1,i=0;for(;-1!==(i=t.indexOf("\x3c!--",r));)Bc(e,i-r+1),i+4");return-1===r?(o=e.source.slice(n),Bc(e,e.source.length)):(o=e.source.slice(n,r),Bc(e,r+1)),{type:3,content:o,loc:jc(e,t)}}function Fc(e,t){const n=e.inPre,o=e.inVPre,r=Mc(t),i=Ec(e,0,r),s=e.inPre&&!n,a=e.inVPre&&!o;if(i.isSelfClosing||e.options.isVoidTag(i.tag))return s&&(e.inPre=!1),a&&(e.inVPre=!1),i;t.push(i);const l=e.options.getTextMode(i,r),c=xc(e,l,t);t.pop();{const t=i.props.find((e=>6===e.type&&"inline-template"===e.name));if(t&&bc("COMPILER_INLINE_TEMPLATE",e,t.loc)){const n=jc(e,i.loc.end);t.value={type:2,content:n.source,loc:n}}}if(i.children=c,zc(e.source,i.tag))Ec(e,1,r);else if(Uc(e,24,0,i.loc.start),0===e.source.length&&"script"===i.tag.toLowerCase()){const t=c[0];t&&$c(t.loc.source,"\x3c!--")&&Uc(e,8)}return i.loc=jc(e,i.loc.start),s&&(e.inPre=!1),a&&(e.inVPre=!1),i}const Tc=t("if,else,else-if,for,slot");function Ec(e,t,n){const o=Lc(e),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),i=r[1],s=e.options.getNamespace(i,n);Bc(e,r[0].length),Vc(e);const a=Lc(e),l=e.source;e.options.isPreTag(i)&&(e.inPre=!0);let c=Pc(e,t);0===t&&!e.inVPre&&c.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,F(e,a),e.source=l,c=Pc(e,t).filter((e=>"v-pre"!==e.name)));let d=!1;if(0===e.source.length?Uc(e,9):(d=$c(e.source,"/>"),1===t&&d&&Uc(e,4),Bc(e,d?2:1)),1===t)return;let u=0;return e.inVPre||("slot"===i?u=2:"template"===i?c.some((e=>7===e.type&&Tc(e.name)))&&(u=3):function(e,t,n){const o=n.options;if(o.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||Wl(e)||o.isBuiltInComponent&&o.isBuiltInComponent(e)||o.isNativeTag&&!o.isNativeTag(e))return!0;for(let e=0;e0&&!$c(e.source,">")&&!$c(e.source,"/>");){if($c(e.source,"/")){Uc(e,22),Bc(e,1),Vc(e);continue}1===t&&Uc(e,3);const r=Oc(e,o);6===r.type&&r.value&&"class"===r.name&&(r.value.content=r.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(r),/^[^\t\r\n\f />]/.test(e.source)&&Uc(e,15),Vc(e)}return n}function Oc(e,t){const n=Lc(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o)&&Uc(e,2),t.add(o),"="===o[0]&&Uc(e,19);{const t=/["'<]/g;let n;for(;n=t.exec(o);)Uc(e,17,n.index)}let r;Bc(e,o.length),/^[\t\r\n\f ]*=/.test(e.source)&&(Vc(e),Bc(e,1),Vc(e),r=function(e){const t=Lc(e);let n;const o=e.source[0],r='"'===o||"'"===o;if(r){Bc(e,1);const t=e.source.indexOf(o);-1===t?n=Ac(e,e.source.length,4):(n=Ac(e,t,4),Bc(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const o=/["'<=`]/g;let r;for(;r=o.exec(t[0]);)Uc(e,18,r.index);n=Ac(e,t[0].length,4)}return{content:n,isQuoted:r,loc:jc(e,t)}}(e),r||Uc(e,13));const i=jc(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let s,a=$c(o,"."),l=t[1]||(a||$c(o,":")?"bind":$c(o,"@")?"on":"slot");if(t[2]){const r="slot"===l,i=o.lastIndexOf(t[2]),a=jc(e,Hc(e,n,i),Hc(e,n,i+t[2].length+(r&&t[3]||"").length));let c=t[2],d=!0;c.startsWith("[")?(d=!1,c.endsWith("]")?c=c.slice(1,c.length-1):(Uc(e,27),c=c.slice(1))):r&&(c+=t[3]||""),s={type:4,content:c,isStatic:d,constType:d?3:0,loc:a}}if(r&&r.isQuoted){const e=r.loc;e.start.offset++,e.start.column++,e.end=ec(e.start,r.content),e.source=e.source.slice(1,-1)}const c=t[3]?t[3].slice(1).split("."):[];return a&&c.push("prop"),"bind"===l&&s&&c.includes("sync")&&bc("COMPILER_V_BIND_SYNC",e,0,s.loc.source)&&(l="model",c.splice(c.indexOf("sync"),1)),{type:7,name:l,exp:r&&{type:4,content:r.content,isStatic:!1,constType:0,loc:r.loc},arg:s,modifiers:c,loc:i}}return!e.inVPre&&$c(o,"v-")&&Uc(e,26),{type:6,name:o,value:r&&{type:2,content:r.content,loc:r.loc},loc:i}}function Nc(e,t){const[n,o]=e.options.delimiters,r=e.source.indexOf(o,n.length);if(-1===r)return void Uc(e,25);const i=Lc(e);Bc(e,n.length);const s=Lc(e),a=Lc(e),l=r-n.length,c=e.source.slice(0,l),d=Ac(e,l,t),u=d.trim(),p=d.indexOf(u);return p>0&&tc(s,c,p),tc(a,c,l-(d.length-u.length-p)),Bc(e,o.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:u,loc:jc(e,s,a)},loc:jc(e,i)}}function Rc(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let o=e.source.length;for(let t=0;tr&&(o=r)}const r=Lc(e);return{type:2,content:Ac(e,o,t),loc:jc(e,r)}}function Ac(e,t,n){const o=e.source.slice(0,t);return Bc(e,t),2!==n&&3!==n&&o.includes("&")?e.options.decodeEntities(o,4===n):o}function Lc(e){const{column:t,line:n,offset:o}=e;return{column:t,line:n,offset:o}}function jc(e,t,n){return{start:t,end:n=n||Lc(e),source:e.originalSource.slice(t.offset,n.offset)}}function Mc(e){return e[e.length-1]}function $c(e,t){return e.startsWith(t)}function Bc(e,t){const{source:n}=e;tc(e,n,t),e.source=n.slice(t)}function Vc(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&Bc(e,t[0].length)}function Hc(e,t,n){return ec(t,e.originalSource.slice(t.offset,n),n)}function Uc(e,t,n,o=Lc(e)){n&&(o.offset+=n,o.column+=n),e.options.onError(Ga(t,{start:o,end:o,source:""}))}function qc(e,t,n){const o=e.source;switch(t){case 0:if($c(o,"=0;--e)if(zc(o,n[e].tag))return!0;break;case 1:case 2:{const e=Mc(n);if(e&&zc(o,e.tag))return!0;break}case 3:if($c(o,"]]>"))return!0}return!o}function zc(e,t){return $c(e,"]/.test(e[2+t.length]||">")}function Wc(e,t){Kc(e,t,Gc(e,e.children[0]))}function Gc(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!lc(t)}function Kc(e,t,n=!1){const{children:o}=e,r=o.length;let i=0;for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag="-1",r.codegenNode=t.hoist(r.codegenNode),i++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=ed(e);if((!n||512===n||1===n)&&Xc(r,t)>=2){const n=Zc(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Kc(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Kc(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${Nl[S.helper(e)]}`,replaceNode(e){S.parent.children[S.childIndex]=S.currentNode=e},removeNode(e){const t=S.parent.children,n=e?t.indexOf(e):S.currentNode?S.childIndex:-1;e&&e!==S.currentNode?S.childIndex>n&&(S.childIndex--,S.onNodeRemoved()):(S.currentNode=null,S.onNodeRemoved()),S.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){M(e)&&(e=$l(e)),S.hoists.push(e);const t=$l(`_hoisted_${S.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Rl}}(S.cached++,e,t)};return S.filters=new Set,S}(e,t);nd(e,n),t.hoistStatic&&Wc(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(Gc(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&gc(o,t),e.codegenNode=o}else e.codegenNode=n}else if(r.length>1){let r=64;o[64],e.codegenNode=Al(t,n(Ka),void 0,e.children,r+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function nd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(sc))return;const i=[];for(let s=0;s`${Nl[e]}: _${Nl[e]}`;function sd(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:d=!1,isTS:u=!1,inSSR:p=!1}){const f={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:i,optimizeImports:s,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:d,isTS:u,inSSR:p,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${Nl[e]}`,push(e,t){f.code+=e},indent(){m(++f.indentLevel)},deindent(e=!1){e?--f.indentLevel:m(--f.indentLevel)},newline(){m(f.indentLevel)}};function m(e){f.push("\n"+" ".repeat(e))}return f}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:i,indent:s,deindent:a,newline:l,scopeId:c,ssr:d}=n,u=Array.from(e.helpers),p=u.length>0,f=!i&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:i,runtimeModuleName:s,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,d=Array.from(e.helpers);d.length>0&&(r(`const _Vue = ${c}\n`),e.hoists.length)&&r(`const { ${[nl,ol,rl,il,sl].filter((e=>d.includes(e))).map(id).join(", ")} } = _Vue\n`),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:i,mode:s}=t;o();for(let r=0;r0)&&l()),e.directives.length&&(ad(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),ad(e.filters,"filter",n),l()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n"),l()),d||r("return "),e.codegenNode?dd(e.codegenNode,n):r("null"),f&&(a(),r("}")),a(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function ad(e,t,{helper:n,push:o,newline:r,isTS:i}){const s=n("filter"===t?dl:"component"===t?al:cl);for(let n=0;n3||!1;t.push("["),n&&t.indent(),cd(e,t,n),n&&t.deindent(),t.push("]")}function cd(e,t,n=!1,o=!0){const{push:r,newline:i}=t;for(let s=0;se||"null"))}([i,s,a,l,c]),t),n(")"),u&&n(")"),d&&(n(", "),dd(d,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,i=M(e.callee)?e.callee:o(e.callee);r&&n(rd),n(i+"(",e),cd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",e);const a=s.length>1||!1;n(a?"{":"{ "),a&&o();for(let e=0;e "),(l||a)&&(n("{"),o()),s?(l&&n("return "),O(s)?ld(s,t):dd(s,t)):a&&dd(a,t),(l||a)&&(r(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:i}=e,{push:s,indent:a,deindent:l,newline:c}=t;if(4===n.type){const e=!Kl(n.content);e&&s("("),ud(n,t),e&&s(")")}else s("("),dd(n,t),s(")");i&&a(),t.indentLevel++,i||s(" "),s("? "),dd(o,t),t.indentLevel--,i&&c(),i||s(" "),s(": ");const d=19===r.type;d||t.indentLevel++,dd(r,t),d||t.indentLevel--,i&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(`${o(Sl)}(-1),`),s()),n(`_cache[${e.index}] = `),dd(e.value,t),e.isVNode&&(n(","),s(),n(`${o(Sl)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:cd(e.body,t,!0,!1)}}function ud(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,e)}function pd(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ga(28,t.loc)),t.exp=$l("true",!1,o)}if("if"===t.name){const r=hd(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),o)return o(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-- >=-1;){const s=r[i];if(s&&3===s.type)n.removeNode(s);else{if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(Ga(30,e.loc)),n.removeNode();const r=hd(e,t);s.branches.push(r);const i=o&&o(s,r,!1);nd(r,n),i&&i(),n.currentNode=null}else n.onError(Ga(30,e.loc));break}n.removeNode(s)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let i=r.indexOf(e),s=0;for(;i-- >=0;){const e=r[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(o)e.codegenNode=gd(t,s,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=gd(t,s+e.branches.length-1,n)}}}))));function hd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!nc(e,"for")?e.children:[e],userKey:oc(e,"key"),isTemplateIf:n}}function gd(e,t,n){return e.condition?Ul(e.condition,vd(e,t,n),Vl(n.helper(rl),['""',"true"])):vd(e,t,n)}function vd(e,t,n){const{helper:r}=n,i=Ml("key",$l(`${t}`,!1,Rl,2)),{children:s}=e,a=s[0];if(1!==s.length||1!==a.type){if(1===s.length&&11===a.type){const e=a.codegenNode;return fc(e,i,n),e}{let t=64;return o[64],Al(n,r(Ka),jl([i]),s,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=14===(l=e).type&&l.callee===Pl?l.arguments[1].returns:l;return 13===t.type&&gc(t,n),fc(t,i,n),e}var l}const yd=od("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ga(31,t.loc));const r=wd(t.exp);if(!r)return void n.onError(Ga(32,t.loc));const{addIdentifiers:i,removeIdentifiers:s,scopes:a}=n,{source:l,value:c,key:d,index:u}=r,p={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:d,objectIndexAlias:u,parseResult:r,children:ac(e)?e.children:[e]};n.replaceNode(p),a.vFor++;const f=o&&o(p);return()=>{a.vFor--,f&&f()}}(e,t,n,(t=>{const i=Vl(o(pl),[t.source]),s=ac(e),a=nc(e,"memo"),l=oc(e,"key"),c=l&&(6===l.type?$l(l.value.content,!0):l.exp),d=l?Ml("key",c):null,u=4===t.source.type&&t.source.constType>0,p=u?64:l?128:256;return t.codegenNode=Al(n,o(Ka),void 0,i,p+"",void 0,void 0,!0,!u,!1,e.loc),()=>{let l;const{children:p}=t,f=1!==p.length||1!==p[0].type,m=lc(e)?e:s&&1===e.children.length&&lc(e.children[0])?e.children[0]:null;if(m?(l=m.codegenNode,s&&d&&fc(l,d,n)):f?l=Al(n,o(Ka),d?jl([d]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(l=p[0].codegenNode,s&&d&&fc(l,d,n),l.isBlock!==!u&&(l.isBlock?(r(Za),r(dc(n.inSSR,l.isComponent))):r(cc(n.inSSR,l.isComponent))),l.isBlock=!u,l.isBlock?(o(Za),o(dc(n.inSSR,l.isComponent))):o(cc(n.inSSR,l.isComponent))),a){const e=Hl(Dd(t.parseResult,[$l("_cached")]));e.body={type:21,body:[Bl(["const _memo = (",a.exp,")"]),Bl(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(Ol)}(_cached, _memo)) return _cached`]),Bl(["const _item = ",l]),$l("_item.memo = _memo"),$l("return _item")],loc:Rl},i.arguments.push(e,$l("_cache"),$l(String(n.cached++)))}else i.arguments.push(Hl(Dd(t.parseResult),l,!0))}}))})),bd=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,_d=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Id=/^\(|\)$/g;function wd(e,t){const n=e.loc,o=e.content,r=o.match(bd);if(!r)return;const[,i,s]=r,a={source:xd(n,s.trim(),o.indexOf(s,i.length)),value:void 0,key:void 0,index:void 0};let l=i.trim().replace(Id,"").trim();const c=i.indexOf(l),d=l.match(_d);if(d){l=l.replace(_d,"").trim();const e=d[1].trim();let t;if(e&&(t=o.indexOf(e,c+l.length),a.key=xd(n,e,t)),d[2]){const r=d[2].trim();r&&(a.index=xd(n,r,o.indexOf(r,a.key?t+e.length:c+l.length)))}}return l&&(a.value=xd(n,l,c)),a}function xd(e,t,n){return $l(t,!1,Zl(e,n,t.length))}function Dd({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||$l("_".repeat(t+1),!1)))}([e,t,n,...o])}const Sd=$l("undefined",!1),kd=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=nc(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Cd=(e,t,n)=>Hl(e,t,!1,!0,t.length?t[0].loc:n);function Fd(e,t,n=Cd){t.helper(Fl);const{children:o,loc:r}=e,i=[],s=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=nc(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!ql(e)&&(a=!0),i.push(Ml(e||$l("default",!0),n(t,o,r)))}let c=!1,d=!1;const u=[],p=new Set;let f=0;for(let e=0;e{const i=n(e,o,r);return t.compatConfig&&(i.isNonScopedSlot=!0),Ml("default",i)};c?u.length&&u.some((e=>Pd(e)))&&(d?t.onError(Ga(39,u[0].loc)):i.push(e(void 0,u))):i.push(e(void 0,o))}const m=a?2:Ed(e.children)?3:1;let h=jl(i.concat(Ml("_",$l(m+"",!1))),r);return s.length&&(h=Vl(t.helper(ml),[h,Ll(s)])),{slots:h,hasDynamicSlots:a}}function Td(e,t,n){const o=[Ml("name",e),Ml("fn",t)];return null!=n&&o.push(Ml("key",$l(String(n),!0))),jl(o)}function Ed(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let i=r?function(e,t,n=!1){let{tag:o}=e;const r=jd(o),i=oc(e,"is");if(i)if(r||yc("COMPILER_IS_ON_ELEMENT",t)){const e=6===i.type?i.value&&$l(i.value.content,!0):i.exp;if(e)return Vl(t.helper(ll),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const s=!r&&nc(e,"is");if(s&&s.exp)return Vl(t.helper(ll),[s.exp]);const a=Wl(o)||t.isBuiltInComponent(o);return a?(n||t.helper(a),a):(t.helper(al),t.components.add(o),hc(o,"component"))}(e,t):`"${n}"`;const s=V(i)&&i.callee===ll;let a,l,c,d,u,p,f=0,m=s||i===Ja||i===Qa||!r&&("svg"===n||"foreignObject"===n);if(o.length>0){const n=Rd(e,t,void 0,r,s);a=n.props,f=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;p=o&&o.length?Ll(o.map((e=>function(e,t){const n=[],o=Od.get(e);o?n.push(t.helperString(o)):(t.helper(cl),t.directives.add(e.name),n.push(hc(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=$l("true",!1,r);n.push(jl(e.modifiers.map((e=>Ml(e,t))),r))}return Ll(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(m=!0)}if(e.children.length>0)if(i===Ya&&(m=!0,f|=1024),r&&i!==Ja&&i!==Ya){const{slots:n,hasDynamicSlots:o}=Fd(e,t);l=n,o&&(f|=1024)}else if(1===e.children.length&&i!==Ja){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Jc(n,t)&&(f|=1),l=r||2===o?n:e.children}else l=e.children;0!==f&&(c=String(f),u&&u.length&&(d=function(e){let t="[";for(let n=0,o=e.length;n0;let f=!1,m=0,h=!1,g=!1,v=!1,y=!1,b=!1,_=!1;const I=[],w=e=>{c.length&&(d.push(jl(Ad(c),a)),c=[]),e&&d.push(e)},x=({key:e,value:n})=>{if(ql(e)){const i=e.content,s=k(i);if(!s||o&&!r||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||K(i)||(y=!0),s&&K(i)&&(_=!0),20===n.type||(4===n.type||8===n.type)&&Jc(n,t)>0)return;"ref"===i?h=!0:"class"===i?g=!0:"style"===i?v=!0:"key"===i||I.includes(i)||I.push(i),!o||"class"!==i&&"style"!==i||I.includes(i)||I.push(i)}else b=!0};for(let r=0;r0&&c.push(Ml($l("ref_for",!0),$l("true")))),"is"===n&&(jd(s)||o&&o.content.startsWith("vue:")||yc("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(Ml($l(n,!0,Zl(e,0,n.length)),$l(o?o.content:"",r,o?o.loc:e)))}else{const{name:n,arg:r,exp:m,loc:h}=l,g="bind"===n,v="on"===n;if("slot"===n){o||t.onError(Ga(40,h));continue}if("once"===n||"memo"===n)continue;if("is"===n||g&&rc(r,"is")&&(jd(s)||yc("COMPILER_IS_ON_ELEMENT",t)))continue;if(v&&i)continue;if((g&&rc(r,"key")||v&&p&&rc(r,"vue:before-update"))&&(f=!0),g&&rc(r,"ref")&&t.scopes.vFor>0&&c.push(Ml($l("ref_for",!0),$l("true"))),!r&&(g||v)){if(b=!0,m)if(g){if(w(),yc("COMPILER_V_BIND_OBJECT_ORDER",t)){d.unshift(m);continue}d.push(m)}else w({type:14,loc:h,callee:t.helper(Il),arguments:o?[m]:[m,"true"]});else t.onError(Ga(g?34:35,h));continue}const y=t.directiveTransforms[n];if(y){const{props:n,needRuntime:o}=y(l,e,t);!i&&n.forEach(x),v&&r&&!ql(r)?w(jl(n,a)):c.push(...n),o&&(u.push(l),B(o)&&Od.set(l,o))}else J(n)||(u.push(l),p&&(f=!0))}}let D;if(d.length?(w(),D=d.length>1?Vl(t.helper(gl),d,a):d[0]):c.length&&(D=jl(Ad(c),a)),b?m|=16:(g&&!o&&(m|=2),v&&!o&&(m|=4),I.length&&(m|=8),y&&(m|=32)),f||0!==m&&32!==m||!(h||_||u.length>0)||(m|=512),!t.inSSR&&D)switch(D.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{const t=Object.create(null);return e=>t[e]||(t[e]=(e=>e.replace(Md,((e,t)=>t?t.toUpperCase():"")))(e))})(),Bd=(e,t)=>{if(lc(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:i}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:i}=Rd(e,t,r,!1,!1);n=o,i.length&&t.onError(Ga(36,i[0].loc))}return{slotName:o,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let a=2;i&&(s[2]=i,a=3),n.length&&(s[3]=Hl([],n,!1,!1,o),a=4),t.scopeId&&!t.slotted&&(a=5),s.splice(a),e.codegenNode=Vl(t.helper(fl),s,o)}},Vd=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Hd=(e,t,n,o)=>{const{loc:r,modifiers:i,arg:s}=e;let a;if(e.exp||i.length||n.onError(Ga(35,r)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),a=$l(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?ne(X(e)):`on:${e}`,!0,s.loc)}else a=Bl([`${n.helperString(Dl)}(`,s,")"]);else a=s,a.children.unshift(`${n.helperString(Dl)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=Xl(l.content),t=!(e||Vd.test(l.content)),n=l.content.includes(";");(t||c&&e)&&(l=Bl([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let d={props:[Ml(a,l||$l("() => {}",!1,r))]};return o&&(d=o(d)),c&&(d.props[0].value=n.cache(d.props[0].value)),d.props.forEach((e=>e.key.isHandlerKey=!0)),d},Ud=(e,t,n)=>{const{exp:o,modifiers:r,loc:i}=e,s=e.arg;return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.includes("camel")&&(4===s.type?s.isStatic?s.content=X(s.content):s.content=`${n.helperString(wl)}(${s.content})`:(s.children.unshift(`${n.helperString(wl)}(`),s.children.push(")"))),n.inSSR||(r.includes("prop")&&qd(s,"."),r.includes("attr")&&qd(s,"^")),!o||4===o.type&&!o.content.trim()?(n.onError(Ga(34,i)),{props:[Ml(s,$l("",!0,i))]}):{props:[Ml(s,o)]}},qd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},zd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&nc(e,"once",!0)){if(Wd.has(e)||t.inVOnce)return;return Wd.add(e),t.inVOnce=!0,t.helper(Sl),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Kd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ga(41,e.loc)),Jd();const i=o.loc.source,s=4===o.type?o.content:i,a=n.bindingMetadata[i];if("props"===a||"props-aliased"===a)return n.onError(Ga(44,o.loc)),Jd();if(!s.trim()||!Xl(s))return n.onError(Ga(42,o.loc)),Jd();const l=r||$l("modelValue",!0),c=r?ql(r)?`onUpdate:${X(r.content)}`:Bl(['"onUpdate:" + ',r]):"onUpdate:modelValue";let d;d=Bl([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const u=[Ml(l,e.exp),Ml(c,d)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Kl(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?ql(r)?`${r.content}Modifiers`:Bl([r,' + "Modifiers"']):"modelModifiers";u.push(Ml(n,$l(`{ ${t} }`,!1,e.loc,2)))}return Jd(u)};function Jd(e=[]){return{props:e}}const Qd=/[\w).+\-_$\]]/,Yd=(e,t)=>{yc("COMPILER_FILTER",t)&&(5===e.type&&Xd(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Xd(e.exp,t)})))};function Xd(e,t){if(4===e.type)Zd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Qd.test(e)||(d=!0)}}else void 0===s?(m=i+1,s=n.slice(0,i).trim()):g();function g(){h.push(n.slice(m,i).trim()),m=i+1}if(void 0===s?s=n.slice(0,i).trim():0!==m&&g(),h.length){for(i=0;i{if(1===e.type){const n=nc(e,"memo");if(!n||tu.has(e))return;return tu.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&gc(o,t),e.codegenNode=Vl(t.helper(Pl),[n.exp,Hl(void 0,o),"_cache",String(t.cached++)]))}}};function ou(e,t={}){const n=t.onError||za,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ga(47)):o&&n(Ga(48)),t.cacheHandlers&&n(Ga(49)),t.scopeId&&!o&&n(Ga(50));const r=M(e)?function(e,t={}){const n=function(e,t){const n=F({},wc);let o;for(o in t)n[o]=void 0===t[o]?wc[o]:t[o];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),o=Lc(n);return function(e,t=Rl){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(xc(n,0,[]),jc(n,o))}(e,t):e,[i,s]=[[Gd,md,nu,yd,Yd,Bd,Nd,kd,zd],{on:Hd,bind:Ud,model:Kd}];return td(r,F({},t,{prefixIdentifiers:!1,nodeTransforms:[...i,...t.nodeTransforms||[]],directiveTransforms:F({},s,t.directiveTransforms||{})})),sd(r,F({},t,{prefixIdentifiers:!1}))}const ru=Symbol(""),iu=Symbol(""),su=Symbol(""),au=Symbol(""),lu=Symbol(""),cu=Symbol(""),du=Symbol(""),uu=Symbol(""),pu=Symbol(""),fu=Symbol("");var mu;let hu;mu={[ru]:"vModelRadio",[iu]:"vModelCheckbox",[su]:"vModelText",[au]:"vModelSelect",[lu]:"vModelDynamic",[cu]:"withModifiers",[du]:"withKeys",[uu]:"vShow",[pu]:"Transition",[fu]:"TransitionGroup"},Object.getOwnPropertySymbols(mu).forEach((e=>{Nl[e]=mu[e]}));const gu=t("style,iframe,script,noscript",!0),vu={isVoidTag:m,isNativeTag:e=>p(e)||f(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return hu||(hu=document.createElement("div")),t?(hu.innerHTML=`
`,hu.children[0].getAttribute("foo")):(hu.innerHTML=e,hu.textContent)},isBuiltInComponent:e=>zl(e,"Transition")?pu:zl(e,"TransitionGroup")?fu:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(gu(e))return 2}return 0}},yu=(e,t)=>{const n=c(e);return $l(JSON.stringify(n),!1,t,3)};function bu(e,t){return Ga(e,t)}const _u=t("passive,once,capture"),Iu=t("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),wu=t("left,right"),xu=t("onkeyup,onkeydown,onkeypress",!0),Du=(e,t)=>ql(e)&&"onclick"===e.content.toLowerCase()?$l(t,!0):4!==e.type?Bl(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Su=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||(t.onError(bu(61,e.loc)),t.removeNode())},ku=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:$l("style",!0,t.loc),exp:yu(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Cu={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(bu(51,r)),t.children.length&&(n.onError(bu(52,r)),t.children.length=0),{props:[Ml($l("innerHTML",!0,r),o||$l("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(bu(53,r)),t.children.length&&(n.onError(bu(54,r)),t.children.length=0),{props:[Ml($l("textContent",!0),o?Jc(o,n)>0?o:Vl(n.helperString(hl),[o],r):$l("",!0))]}},model:(e,t,n)=>{const o=Kd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(bu(56,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||i){let s=su,a=!1;if("input"===r||i){const o=oc(t,"type");if(o){if(7===o.type)s=lu;else if(o.value)switch(o.value.content){case"radio":s=ru;break;case"checkbox":s=iu;break;case"file":a=!0,n.onError(bu(57,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(s=lu)}else"select"===r&&(s=au);a||(o.needRuntime=n.helper(s))}else n.onError(bu(55,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Hd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:i}=t.props[0];const{keyModifiers:s,nonKeyModifiers:a,eventOptionModifiers:l}=((e,t,n,o)=>{const r=[],i=[],s=[];for(let o=0;o{const{exp:o,loc:r}=e;return o||n.onError(bu(59,r)),{props:[],needRuntime:n.helper(uu)}}},Fu=Object.create(null);Gi((function(t,n){if(!M(t)){if(!t.nodeType)return x;t=t.innerHTML}const o=t,r=Fu[o];if(r)return r;if("#"===t[0]){const e=document.querySelector(t);t=e?e.innerHTML:""}const i=F({hoistStatic:!0,onError:void 0,onWarn:x},n);i.isCustomElement||"undefined"==typeof customElements||(i.isCustomElement=e=>!!customElements.get(e));const{code:s}=function(e,t={}){return ou(e,F({},vu,t,{nodeTransforms:[Su,...ku,...t.nodeTransforms||[]],directiveTransforms:F({},Cu,t.directiveTransforms||{}),transformHoist:null}))}(t,i),a=new Function("Vue",s)(e);return a._rc=!0,Fu[o]=a}));const Tu={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null}},props:{hasDevConsoleAccess:{type:Number,default:0}},inject:["dialogTitle","showFormDialog","closeFormDialog","formSaveFunction","dialogButtonText"],provide:function(){return{hasDevConsoleAccess:this.hasDevConsoleAccess}},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID);var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes)},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,r=0,i=0,s=function(e){(e=e||window.event).preventDefault(),n=r-e.clientX,o=i-e.clientY,r=e.clientX,i=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",l()},a=function(){document.onmouseup=null,document.onmousemove=null},l=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),r=e.clientX,i=e.clientY,document.onmouseup=a,document.onmousemove=s})}},template:'\n
\n \n
\n
'},Eu={name:"indicator-editing-dialog",data:function(){var e,t,n,o,r,i,s,a,l,c,d,u,p,f;return{initialFocusElID:"name",showAdditionalOptions:!1,showDetailedFormatInfo:!1,formID:this.focusedFormRecord.categoryID,formats:{text:"Single line text",textarea:"Multi-line text",grid:"Grid (Table with rows and columns)",number:"Numeric",currency:"Currency",date:"Date",radio:"Radio (single select, multiple options)",checkbox:"Checkbox (A single checkbox)",checkboxes:"Checkboxes (Multiple Checkboxes)",multiselect:"Multi-Select Dropdown",dropdown:"Dropdown Menu (single select, multiple options)",fileupload:"File Attachment",image:"Image Attachment",orgchart_group:"Orgchart Group",orgchart_position:"Orgchart Position",orgchart_employee:"Orgchart Employee",raw_data:"Raw Data (for programmers)"},formatInfo:{text:"A single input for short text entries.",textarea:"A large area for multiple lines of text and limited text formatting options.",grid:"A table format with rows and columns. Additional rows can be added, removed, or moved during data entry.",number:"A single input used to store numeric data. Useful for information that will be used for calculations.",currency:"A single input used to store currency values in dollars to two decimal places.",date:"Embeds a datepicker.",radio:"Radio buttons allow a single selection from multiple options. All of the question's options will display.",checkbox:"A single checkbox is typically used for confirmation. The checkbox label text can be further customized.",checkboxes:"Checkboxes will allow the selection of multiple options. All of the question's options will display.",multiselect:"Multi-Select format will allow the selection of several options from a selection box with a dropdown. Only selected items will display.",dropdown:"A dropdown menu will allow one selection from multiple options. Only the selected option will display.",fileupload:"File Attachment",image:"Similar to file upload, but only image format files will be shown during selection",orgchart_group:"Orgchart Group format is used to select a specific LEAF User Access Group",orgchart_position:"Orgchart Position format is used to select a specific LEAF user by their position in the orgchart",orgchart_employee:"Orgchart Employee format is used to select a specific LEAF user from the orgchart",raw_data:"Raw Data is associated with Advanced Options, which can be used by programmers to run custom code during form data entry or review"},listForParentIDs:[],isLoadingParentIDs:!0,multianswerFormats:["checkboxes","radio","multiselect","dropdown"],newIndicatorID:null,name:(null===(e=this.indicatorRecord[this.currIndicatorID])||void 0===e?void 0:e.name)||"",options:(null===(t=this.indicatorRecord[this.currIndicatorID])||void 0===t?void 0:t.options)||[],format:(null===(n=this.indicatorRecord[this.currIndicatorID])||void 0===n?void 0:n.format)||"",description:(null===(o=this.indicatorRecord[this.currIndicatorID])||void 0===o?void 0:o.description)||"",defaultValue:this.stripAndDecodeHTML((null===(r=this.indicatorRecord[this.currIndicatorID])||void 0===r?void 0:r.default)||""),required:1===parseInt(null===(i=this.indicatorRecord[this.currIndicatorID])||void 0===i?void 0:i.required)||!1,is_sensitive:1===parseInt(null===(s=this.indicatorRecord[this.currIndicatorID])||void 0===s?void 0:s.is_sensitive)||!1,parentID:null!==(a=this.indicatorRecord[this.currIndicatorID])&&void 0!==a&&a.parentID?parseInt(this.indicatorRecord[this.currIndicatorID].parentID):this.newIndicatorParentID,sort:void 0!==(null===(l=this.indicatorRecord[this.currIndicatorID])||void 0===l?void 0:l.sort)?parseInt(this.indicatorRecord[this.currIndicatorID].sort):null,singleOptionValue:"checkbox"===(null===(c=this.indicatorRecord[this.currIndicatorID])||void 0===c?void 0:c.format)?this.indicatorRecord[this.currIndicatorID].options:"",multiOptionValue:["checkboxes","radio","multiselect","dropdown"].includes(null===(d=this.indicatorRecord[this.currIndicatorID])||void 0===d?void 0:d.format)?null===(u=this.indicatorRecord[this.currIndicatorID].options)||void 0===u?void 0:u.join("\n"):"",gridBodyElement:"div#container_indicatorGrid > div",gridJSON:"grid"===(null===(p=this.indicatorRecord[this.currIndicatorID])||void 0===p?void 0:p.format)?JSON.parse(null===(f=this.indicatorRecord[this.currIndicatorID])||void 0===f?void 0:f.options[0]):[],archived:!1,deleted:!1}},inject:["APIroot","CSRFToken","initializeOrgSelector","isEditingModal","closeFormDialog","currIndicatorID","indicatorRecord","focusedFormRecord","focusedFormTree","selectedNodeIndicatorID","selectNewCategory","updateCategoriesProperty","newIndicatorParentID","truncateText","stripAndDecodeHTML","orgchartFormats"],provide:function(){var e=this;return{gridJSON:Zi((function(){return e.gridJSON})),updateGridJSON:this.updateGridJSON}},components:{GridCell:{data:function(){var e,t,n,o,r;return{name:(null===(e=this.cell)||void 0===e?void 0:e.name)||"No title",id:(null===(t=this.cell)||void 0===t?void 0:t.id)||this.makeColumnID(),gridType:(null===(n=this.cell)||void 0===n?void 0:n.type)||"text",textareaDropOptions:(null===(o=this.cell)||void 0===o||null===(r=o.options)||void 0===r?void 0:r.join("\n"))||""}},props:{cell:Object,column:Number},inject:["libsPath","gridJSON","updateGridJSON"],mounted:function(){0===this.gridJSON.length&&this.updateGridJSON()},computed:{gridJSONlength:function(){return this.gridJSON.length}},methods:{makeColumnID:function(){return"col_"+(65536*(1+Math.random())|0).toString(16).substring(1)},deleteColumn:function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),n=document.getElementById("gridcell_col_parent"),o=Array.from(n.querySelectorAll("div.cell")),r=o.indexOf(t)+1,i=o.length;2===i?(t.remove(),i--,e=o[0]):(e=null===t.querySelector('[title="Move column right"]')?t.previousElementSibling.querySelector('[title="Delete column"]'):t.nextElementSibling.querySelector('[title="Delete column"]'),t.remove(),i--),document.getElementById("tableStatus").setAttribute("aria-label","column ".concat(r," removed, ").concat(i," total.")),e.focus(),this.updateGridJSON()},moveRight:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.nextElementSibling,n=e.nextElementSibling.querySelector('[title="Move column right"]');t.after(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===n?"left":"right",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved right to column ".concat(this.column+1," of ").concat(this.gridJSONlength)),this.updateGridJSON()},moveLeft:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.previousElementSibling,n=e.previousElementSibling.querySelector('[title="Move column left"]');t.before(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===n?"right":"left",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved left to column ".concat(this.column-1," of ").concat(this.gridJSONlength)),this.updateGridJSON()}},watch:{gridJSONlength:function(e,t){e>t&&document.getElementById("tableStatus").setAttribute("aria-label","Added a new column, ".concat(this.gridJSONlength," total."))}},template:'
\n Move column left\n Move column right
\n \n Column #{{column}}:\n Delete column\n \n \n \n \n \n \n \n \n \n
'},IndicatorPrivileges:{data:function(){return{allGroups:[],groupsWithPrivileges:[],group:0,statusMessageError:""}},inject:["APIroot","CSRFToken","currIndicatorID"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.currIndicatorID,"/privileges"),success:function(t){e.groupsWithPrivileges=t},error:function(t){console.log(t),e.statusMessageError="There was an error retrieving the Indicator Privileges. Please try again."},cache:!1})];Promise.all(t).then((function(e){})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.groupsWithPrivileges.map((function(t){return e.push(parseInt(t.id))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removeIndicatorPrivilege:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0!==t&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.currIndicatorID,"/privileges/remove"),data:{groupID:t,CSRFToken:this.CSRFToken},success:function(n){e.groupsWithPrivileges=e.groupsWithPrivileges.filter((function(e){return e.id!==t}))},error:function(e){return console.log(e)}})},addIndicatorPrivilege:function(){var e=this;0!==this.group&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.currIndicatorID,"/privileges"),data:{groupIDs:[this.group.groupID],CSRFToken:this.CSRFToken},success:function(){e.groupsWithPrivileges.push({id:e.group.groupID,name:e.group.name}),e.group=0},error:function(e){return console.log("an error occurred while setting group access restrictions",e)}})}},template:'
\n Special access restrictions\n
\n Restrictions will limit view access to the request initiator and members of specific groups.
\n They will also only allow the specified groups to apply search filters for this field.
\n All others will see "[protected data]".\n
\n \n
{{ statusMessageError }}
\n \n
\n \n
\n
'}},mounted:function(){var e=this;if(!0===this.isEditingModal&&this.getFormParentIDs().then((function(t){e.listForParentIDs=t,e.isLoadingParentIDs=!1})).catch((function(e){return console.log("an error has occurred",e)})),null===this.sort&&(this.sort=this.newQuestionSortValue),XSSHelpers.containsTags(this.name,["","","","
    ","
  1. ","
    ","

    ",""])?(document.getElementById("advNameEditor").click(),document.querySelector(".trumbowyg-editor").focus()):document.getElementById(this.initialFocusElID).focus(),this.orgchartFormats.includes(this.format)){var t,n=this.format.slice(this.format.indexOf("_")+1);this.initializeOrgSelector(n,this.currIndicatorID,"modal_",this.defaultValue),null===(t=document.querySelector("#modal_orgSel_".concat(this.currIndicatorID," input")))||void 0===t||t.addEventListener("change",this.updateDefaultValue)}},beforeUnmount:function(){var e;null===(e=document.querySelector("#modal_orgSel_".concat(this.currIndicatorID," input")))||void 0===e||e.removeEventListener("change",this.updateDefaultValue)},computed:{shortLabelTriggered:function(){return this.name.trim().split(" ").length>3},formatBtnText:function(){return this.showDetailedFormatInfo?"Hide Details":"What's this?"},isMultiOptionQuestion:function(){return this.multianswerFormats.includes(this.format)},fullFormatForPost:function(){var e=this.format;switch(this.format.toLowerCase()){case"grid":this.updateGridJSON(),e=e+"\n"+JSON.stringify(this.gridJSON);break;case"radio":case"checkboxes":case"multiselect":case"dropdown":e=e+"\n"+this.formatIndicatorMultiAnswer();break;case"checkbox":e=e+"\n"+this.singleOptionValue}return e},shortlabelCharsRemaining:function(){return 50-this.description.length},newQuestionSortValue:function(){var e="#drop_area_parent_".concat(this.parentID," > li");return null===this.parentID?this.focusedFormTree.length-128:Array.from(document.querySelectorAll(e)).length-128}},methods:{updateDefaultValue:function(e){this.defaultValue=e.currentTarget.value},toggleSelection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"showDetailedFormatInfo";"boolean"==typeof this[t]&&(this[t]=!this[t])},getFormParentIDs:function(){var e=this;return new Promise((function(t,n){$.ajax({type:"GET",url:"".concat(e.APIroot,"/form/_").concat(e.formID,"/flat"),success:function(e){for(var n in e)e[n][1].name=XSSHelpers.stripAllTags(e[n][1].name);t(e)},error:function(e){return n(e)}})}))},preventSelectionIfFormatNone:function(){""!==this.format||!0!==this.required&&!0!==this.is_sensitive||(this.required=!1,this.is_sensitive=!1,alert('You can\'t mark a field as sensitive or required if the Input Format is "None".'))},onSave:function(){var e=this,t=document.querySelector(".trumbowyg-editor");null!=t&&(this.name=t.innerHTML);var n=[];if(this.isEditingModal){var o,r,i,s=this.name!==this.indicatorRecord[this.currIndicatorID].name,a=this.description!==this.indicatorRecord[this.currIndicatorID].description,l=null!==(o=this.indicatorRecord[this.currIndicatorID])&&void 0!==o&&o.options?"\n"+(null===(r=this.indicatorRecord[this.currIndicatorID])||void 0===r||null===(i=r.options)||void 0===i?void 0:i.join("\n")):"",c=this.fullFormatForPost!==this.indicatorRecord[this.currIndicatorID].format+l,d=this.stripAndDecodeHTML(this.defaultValue)!==this.stripAndDecodeHTML(this.indicatorRecord[this.currIndicatorID].default),u=+this.required!==parseInt(this.indicatorRecord[this.currIndicatorID].required),p=+this.is_sensitive!==parseInt(this.indicatorRecord[this.currIndicatorID].is_sensitive),f=this.parentID!==this.indicatorRecord[this.currIndicatorID].parentID,m=!0===this.archived,h=!0===this.deleted;s&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/name"),data:{name:this.name,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind name post err",e)}})),a&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/description"),data:{description:this.description,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind desciption post err",e)}})),c&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/format"),data:{format:this.fullFormatForPost,CSRFToken:this.CSRFToken},success:function(e){"size limit exceeded"===e&&alert("The input format was not saved because it was too long.\nIf you require extended length, please submit a YourIT ticket.")},error:function(e){return console.log("ind format post err",e)}})),d&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/default"),data:{default:this.defaultValue,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind default value post err",e)}})),u&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/required"),data:{required:this.required?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind required post err",e)}})),p&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/sensitive"),data:{is_sensitive:this.is_sensitive?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind is_sensitive post err",e)}})),p&&!0===this.is_sensitive&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",1)},error:function(e){return console.log("set form need to know post err",e)}})),m&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/disabled"),data:{disabled:1,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (archive) post err",e)}})),h&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/disabled"),data:{disabled:2,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (deletion) post err",e)}})),f&&this.parentID!==this.currIndicatorID&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/parentID"),data:{parentID:this.parentID,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind parentID post err",e)}}))}else this.is_sensitive&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",1)},error:function(e){return console.log("set form need to know post err",e)}})),n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/newIndicator"),data:{name:this.name,format:this.fullFormatForPost,description:this.description,default:this.defaultValue,parentID:this.parentID,categoryID:this.formID,required:this.required?1:0,is_sensitive:this.is_sensitive?1:0,sort:this.newQuestionSortValue,CSRFToken:this.CSRFToken},success:function(t){e.newIndicatorID=parseInt(t)},error:function(e){return console.log("error posting new question",e)}}));Promise.all(n).then((function(t){if(t.length>0)if(null!==e.newIndicatorID&&null===e.parentID)e.selectNewCategory(e.formID,e.newIndicatorID);else{var n=e.currIndicatorID!==e.selectedNodeIndicatorID||!0!==e.archived&&!0!==e.deleted?e.selectedNodeIndicatorID:e.parentID;e.selectNewCategory(e.formID,n)}e.closeFormDialog()})).catch((function(e){return console.log("an error has occurred",e)}))},radioBehavior:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null==e?void 0:e.target.id;"archived"===t.toLowerCase()&&this.deleted&&(document.getElementById("deleted").checked=!1,this.deleted=!1),"deleted"===t.toLowerCase()&&this.archived&&(document.getElementById("archived").checked=!1,this.archived=!1)},appAddCell:function(){this.gridJSON.push({})},gridDropdown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(null!==e&&0!==e.length){var n=e.split("\n");n=(n=n.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),t=Array.from(new Set(n))}return t},updateGridJSON:function(){var e=[],t=this;$(this.gridBodyElement).find("div.cell").each((function(){var n=new Object;"undefined"===$(this).children("input:eq(0)").val()?n.name="No title":n.name=$(this).children("input:eq(0)").val(),n.id=$(this).attr("id"),n.type=$(this).find("select").val(),void 0!==n.type&&null!==n.type?"dropdown"===n.type.toLowerCase()&&(n.options=t.gridDropdown($(this).find("textarea").val().replace(/,/g,""))):n.type="textarea",e.push(n)})),this.gridJSON=e},formatIndicatorMultiAnswer:function(){var e=this.multiOptionValue.split("\n");return e=(e=e.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),Array.from(new Set(e)).join("\n")},advNameEditorClick:function(){$("#advNameEditor").css("display","none"),$("#rawNameEditor").css("display","block"),$("#name").trumbowyg({resetCss:!0,btns:["formatting","bold","italic","underline","|","unorderedList","orderedList","|","link","|","foreColor","|","justifyLeft","justifyCenter","justifyRight"]}),$(".trumbowyg-box").css({"min-height":"130px","max-width":"700px",margin:"0.5rem 0"}),$(".trumbowyg-editor, .trumbowyg-texteditor").css({"min-height":"100px",height:"100px",padding:"1rem"})},rawNameEditorClick:function(){$("#advNameEditor").css("display","block"),$("#rawNameEditor").css("display","none"),$("#name").trumbowyg("destroy")}},watch:{format:function(e,t){var n=this;if(this.defaultValue="",this.orgchartFormats.includes(e)){var o=e.slice(e.indexOf("_")+1);setTimeout((function(){n.initializeOrgSelector(o,n.currIndicatorID,"modal_",""),document.getElementById("modal_orgSel_data".concat(n.currIndicatorID)).addEventListener("change",n.updateDefaultValue)}),10)}}},template:'

    \n
    \n \n \n
    \n \n \n
    \n
    \n
    \n
    \n \n
    {{shortlabelCharsRemaining}}
    \n
    \n \n
    \n
    \n
    \n \n
    \n \n \n
    \n
    \n

    Format Information

    \n {{ format !== \'\' ? formatInfo[format] : \'No format. Indicators without a format are often used to provide additional information for the user. They are often used for form section headers.\' }}\n
    \n
    \n
    \n \n \n
    \n
    \n \n \n
    \n
    \n \n
    \n
    \n  Columns ({{gridJSON.length}}):\n
    \n
    \n \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n Attributes\n
    \n \n \x3c!-- --\x3e\n \n
    \n \n \n \n This field will be archived.  It can be
    re-enabled by using Restore Fields.\n
    \n \n Deleted items can only be re-enabled
    within 30 days by using Restore Fields.\n
    \n
    \n
    '},Pu={name:"advanced-options-dialog",data:function(){return{initialFocusElID:"#advanced legend",left:"{{",right:"}}",formID:this.focusedFormRecord.categoryID,codeEditorHtml:{},codeEditorHtmlPrint:{},html:null===this.indicatorRecord[this.currIndicatorID].html?"":this.indicatorRecord[this.currIndicatorID].html,htmlPrint:null===this.indicatorRecord[this.currIndicatorID].htmlPrint?"":this.indicatorRecord[this.currIndicatorID].htmlPrint}},inject:["APIroot","libsPath","CSRFToken","closeFormDialog","focusedFormRecord","currIndicatorID","indicatorRecord","selectNewCategory","hasDevConsoleAccess","selectedNodeIndicatorID"],mounted:function(){var e;null===(e=document.querySelector(this.initialFocusElID))||void 0===e||e.focus(),1===parseInt(this.hasDevConsoleAccess)&&this.setupAdvancedOptions()},methods:{setupAdvancedOptions:function(){var e=this;this.codeEditorHtml=CodeMirror.fromTextArea(document.getElementById("html"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTML()}}}),this.codeEditorHtmlPrint=CodeMirror.fromTextArea(document.getElementById("htmlPrint"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTMLPrint()}}}),$(".CodeMirror").css("border","1px solid black")},saveCodeHTML:function(){var e=this,t=this.codeEditorHtml.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/html"),data:{html:t,CSRFToken:this.CSRFToken},success:function(){e.html=t;var n=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_html").innerHTML=", Last saved: "+n,e.selectNewCategory(e.formID,e.selectedNodeIndicatorID)},error:function(e){return console.log(e)}})},saveCodeHTMLPrint:function(){var e=this,t=this.codeEditorHtmlPrint.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/htmlPrint"),data:{htmlPrint:t,CSRFToken:this.CSRFToken},success:function(){e.htmlPrint=t;var n=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_htmlPrint").innerHTML=", Last saved: "+n,e.selectNewCategory(e.formID,e.selectedNodeIndicatorID)},error:function(e){return console.log(e)}})},onSave:function(){var e=this,t=[],n=this.html!==this.codeEditorHtml.getValue(),o=this.htmlPrint!==this.codeEditorHtmlPrint.getValue();n&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/html"),data:{html:this.codeEditorHtml.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind html post err",e)}})),o&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/htmlPrint"),data:{htmlPrint:this.codeEditorHtmlPrint.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind htmlPrint post err",e)}})),Promise.all(t).then((function(t){e.closeFormDialog(),t.length>0&&e.selectNewCategory(e.formID,e.selectedNodeIndicatorID)})).catch((function(e){return console.log("an error has occurred",e)}))}},template:'
    \n
    Template Variables and Controls\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    {{ left }} iID {{ right }}The indicatorID # of the current data field.Ctrl-SSave the focused section
    {{ left }} recordID {{ right }}The record ID # of the current request.F11Toggle Full Screen mode for the focused section
    {{ left }} data {{ right }}The contents of the current data field as stored in the database.EscEscape Full Screen mode

    \n
    \n html (for pages where the user can edit data): \n \n
    \n
    \n
    \n htmlPrint (for pages where the user can only read data): \n \n
    \n \n
    \n
    \n
    \n Notice: Please go to Admin Panel → LEAF Programmer to ensure continued access to this area.\n
    '},Ou={name:"new-form-dialog",data:function(){return{categoryName:"",categoryDescription:""}},inject:["APIroot","CSRFToken","focusedFormRecord","addNewCategory","selectNewCategory","closeFormDialog"],mounted:function(){document.getElementById("name").focus()},computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)},newFormParentID:function(){var e;return""===(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.parentID)?this.focusedFormRecord.categoryID:""}},methods:{onSave:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:this.categoryName,description:this.categoryDescription,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(t){var n,o=t,r={};r.categoryID=o,r.categoryName=e.categoryName,r.categoryDescription=e.categoryDescription,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(o,r),null!==(n=e.focusedFormRecord)&&void 0!==n&&n.categoryID?e.selectNewCategory(o):e.$router.push({name:"category",query:{formID:o}}),e.closeFormDialog()},error:function(e){console.log("error posting new form",e),reject(e)}})}},template:'
    \n
    \n
    Form Name (up to 50 characters)
    \n
    {{nameCharsRemaining}}
    \n
    \n \n
    \n
    Form Description (up to 255 characters)
    \n
    {{descrCharsRemaining}}
    \n
    \n \n
    '},Nu={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null}},inject:["APIroot","CSRFToken","closeFormDialog","selectNewCategory"],mounted:function(){document.getElementById(this.initialFocusElID).focus()},methods:{onSave:function(){var e=this;if(null!==this.files){var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==t&&alert(t),e.closeFormDialog(),e.selectNewCategory()},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
    \n

    Select LEAF Form Packet to import:

    \n \n
    '},Ru={name:"form-history-dialog",data:function(){return{divSaveCancelID:"leaf-vue-dialog-cancel-save",page:1,formID:this.focusedFormRecord.categoryID,ajaxRes:""}},inject:["focusedFormRecord"],mounted:function(){document.getElementById(this.divSaveCancelID).style.display="none",this.getPage()},computed:{showNext:function(){return-1===this.ajaxRes.indexOf("No history to show")},showPrev:function(){return this.page>1}},methods:{getNext:function(){this.page++,this.getPage()},getPrev:function(){this.page--,this.getPage()},getPage:function(){var e=this;$.ajax({type:"GET",url:"ajaxIndex.php?a=gethistory&type=form&gethistoryslice=1&page=".concat(this.page,"&id=").concat(this.formID),dataType:"text",success:function(t){e.ajaxRes=t},error:function(e){return console.log(e)},cache:!1})}},template:'
    \n
    \n \n \n
    '};function Au(e){return Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Au(e)}function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ju(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Au(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==Au(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Au(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mu={name:"staple-form-dialog",data:function(){return{catIDtoStaple:""}},inject:["APIroot","CSRFToken","truncateText","stripAndDecodeHTML","categories","focusedFormRecord","closeFormDialog","updateStapledFormsInfo"],mounted:function(){if(this.isSubform&&this.closeFormDialog(),this.mergeableForms.length>0){var e=document.getElementById("select-form-to-staple");null!==e&&e.focus()}},computed:{isSubform:function(){var e;return""!==(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.parentID)},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.formID])||void 0===e?void 0:e.stapledFormIDs)||[]},mergeableForms:function(){var e=this,t=[],n=function(){var n=parseInt(e.categories[o].workflowID),r=e.categories[o].categoryID,i=e.categories[o].parentID,s=e.currentStapleIDs.every((function(e){return e!==r}));0===n&&""===i&&r!==e.formID&&s&&t.push(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/stapled/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(n){e.updateStapledFormsInfo(t,!0)},error:function(e){return console.log(e)}})},onSave:function(){var e=this;""!==this.catIDtoStaple&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/stapled"),data:{CSRFToken:this.CSRFToken,stapledCategoryID:this.catIDtoStaple},success:function(t){1!==t?alert(t):(e.updateStapledFormsInfo(e.catIDtoStaple),e.catIDtoStaple="")},error:function(e){return console.log(e)},cache:!1})}},template:'
    \n

    Stapled forms will show up on the same page as the primary form.

    \n

    The order of the forms will be determined by the forms\' assigned sort values.

    \n
    \n
      \n
    • \n {{truncateText(stripAndDecodeHTML(categories[id]?.categoryName || \'Untitled\')) }}\n \n
    • \n
    \n

    \n
    \n \n
    There are no available forms to merge
    \n
    \n
    '},$u={name:"edit-collaborators-dialog",data:function(){return{formID:this.focusedFormRecord.categoryID,group:"",allGroups:[],collaborators:[]}},inject:["APIroot","CSRFToken","categories","focusedFormRecord","closeFormDialog"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),success:function(t){e.collaborators=t},error:function(e){return console.log(e)},cache:!1})];Promise.all(t).then((function(){var e=document.getElementById("selectFormCollaborators");null!==e&&e.focus()})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.collaborators.map((function(t){return e.push(parseInt(t.groupID))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removePermission:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:t,read:0,write:0},success:function(n){e.collaborators=e.collaborators.filter((function(e){return parseInt(e.groupID)!==t}))},error:function(e){return console.log(e)}})},formNameStripped:function(){var e=this.categories[this.formID].categoryName;return XSSHelpers.stripAllTags(e)||"Untitled"},onSave:function(){var e=this;""!==this.group&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:parseInt(this.group.groupID),read:1,write:1},success:function(t){void 0===e.collaborators.find((function(t){return parseInt(t.groupID)===parseInt(e.group.groupID)}))&&(e.collaborators.push({groupID:e.group.groupID,name:e.group.name}),e.group="")},error:function(e){return console.log(e)},cache:!1})}},template:'
    \n

    {{formNameStripped()}}

    \n

    Collaborators have access to fill out data fields at any time in the workflow.

    \n

    This is typically used to give groups access to fill out internal-use fields.

    \n
    \n \n

    \n
    \n \n
    There are no available groups to add
    \n
    \n
    '},Bu={name:"confirm-delete-dialog",inject:["APIroot","CSRFToken","focusedFormRecord","selectNewCategory","removeCategory","closeFormDialog"],computed:{formName:function(){return XSSHelpers.stripAllTags(this.focusedFormRecord.categoryName)},formDescription:function(){return XSSHelpers.stripAllTags(this.focusedFormRecord.categoryDescription)},currentStapleIDs:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{onSave:function(){var e=this;if(0===this.currentStapleIDs.length){var t=this.focusedFormRecord.categoryID,n=this.focusedFormRecord.parentID;$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formStack/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(o){!0!==o?alert(o):(e.selectNewCategory(n,null,!0),e.removeCategory(t),e.closeFormDialog())},error:function(e){return console.log("an error has occurred",e)}})}else alert("Please remove all stapled forms before deleting.")}},template:'
    \n
    Are you sure you want to delete this form?
    \n
    {{formName}}
    \n
    {{formDescription}}
    \n
    ⚠️ This form still has stapled forms attached
    \n
    '};function Vu(e){return Vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vu(e)}function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Uu(e){for(var t=1;t0&&0===parseInt(e.isDisabled)}));e.indicators=n,e.indicators.forEach((function(t){null!==t.parentIndicatorID&&e.crawlParents(t,t)})),e.appIsLoadingIndicators=!1,e.updateSelectedChildIndicator()},error:function(e){console.log(e)}})},updateSelectedParentIndicator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=document.getElementById("parent_compValue_entry");null!=t&&t.choicesjs&&t.choicesjs.destroy(),this.selectedParentValue="";var n=this.indicators.find((function(t){return null!==e&&parseInt(t.indicatorID)===parseInt(e)}));if(void 0===n)return this.parentFound=!1,void(this.selectedDisabledParentID=0===e?this.selectedDisabledParentID:parseInt(e));this.parentFound=!0,this.selectedDisabledParentID=null;var o=n.format.split("\n"),r=o.length>1?o.slice(1):[];switch(r=r.map((function(e){return e.trim()})),this.selectedParentIndicator=Uu({},n),this.selectedParentValueOptions=r.filter((function(e){return""!==e})),this.parentFormat){case"number":case"currency":this.selectedParentOperators=[{val:"==",text:"is equal to"},{val:"!=",text:"is not equal to"},{val:">",text:"is greater than"},{val:"<",text:"is less than"}];break;case"multiselect":case"checkboxes":this.selectedParentOperators=[{val:"==",text:"includes"},{val:"!=",text:"does not include"}];break;case"dropdown":case"radio":this.selectedParentOperators=[{val:"==",text:"is"},{val:"!=",text:"is not"}];break;case"checkbox":this.selectedParentOperators=[{val:"==",text:"is checked"},{val:"!=",text:"is not checked"}];break;case"date":this.selectedParentOperators=[{val:"==",text:"on"},{val:">=",text:"on and after"},{val:"<=",text:"on and before"}];break;case"orgchart_employee":case"orgchart_group":case"orgchart_position":break;default:this.selectedParentOperators=[{val:"LIKE",text:"contains"},{val:"NOT LIKE",text:"does not contain"}]}},updateSelectedOutcome:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.getElementById("child_prefill_entry");null!=t&&t.choicesjs&&t.choicesjs.destroy(),this.selectedChildOutcome=e,this.selectedChildValue=""},updateSelectedParentValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.selectedParentIndicator.format.split("\n")[0].trim().toLowerCase(),n="";this.multiOptionFormats.includes(t)?(Array.from(e.selectedOptions).forEach((function(e){n+=e.label.replaceAll("\r","").trim()+"\n"})),n=n.trim()):n=e.value,this.selectedParentValue=n},updateSelectedChildValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.childIndicator.format.split("\n")[0].trim().toLowerCase(),n="";this.multiOptionFormats.includes(t)?(Array.from(e.selectedOptions).forEach((function(e){n+=e.label.replaceAll("\r","").trim()+"\n"})),n=n.trim()):n=e.value,this.selectedChildValue=n},updateSelectedChildIndicator:function(){var e=this;if(0!==this.vueData.indicatorID){var t=this.indicators.find((function(t){return parseInt(t.indicatorID)===e.vueData.indicatorID})),n=-1===t.format.indexOf("\n")?[]:t.format.slice(t.format.indexOf("\n")+1).split("\n");this.childIndicator=Uu({},t),this.selectedChildValueOptions=n.filter((function(e){return""!==e}));var o=parseInt(t.headerIndicatorID);this.selectableParents=this.indicators.filter((function(t){var n,r=null===(n=t.format)||void 0===n?void 0:n.split("\n")[0].trim().toLowerCase();return parseInt(t.headerIndicatorID)===o&&parseInt(t.indicatorID)!==parseInt(e.childIndicator.indicatorID)&&e.enabledParentFormats.includes(r)}))}$.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(this.vueData.formID),success:function(t){t.forEach((function(t,n){e.indicators.forEach((function(e){parseInt(e.headerIndicatorID)===parseInt(t.indicatorID)&&(e.formPage=n)}))}))},error:function(e){console.log(e)}})},crawlParents:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=parseInt((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).parentIndicatorID),n=this.indicators.find((function(e){return parseInt(e.indicatorID)===t}));void 0===n||null===n.parentIndicatorID?this.indicators.find((function(t){return parseInt(t.indicatorID)===parseInt(e.indicatorID)})).headerIndicatorID=t:this.crawlParents(n,e)},newCondition:function(){this.editingCondition="",this.showConditionEditor=!0,this.selectedParentIndicator={},this.selectedParentOperators=[],this.selectedOperator="",this.selectedParentValue="",this.selectedParentValueOptions=[],this.selectedChildOutcome="",this.selectedChildValue="";var e=document.getElementById("child_prefill_entry");null!=e&&e.choicesjs&&e.choicesjs.destroy();var t=document.getElementById("parent_compValue_entry");null!=t&&t.choicesjs&&t.choicesjs.destroy(),document.activeElement instanceof HTMLElement&&document.activeElement.blur()},postCondition:function(){var e=this,t=this.conditions.childIndID;if(this.conditionComplete){var n=JSON.stringify(this.conditions),o=this.indicators.find((function(e){return parseInt(e.indicatorID)===parseInt(t)})),r=(""===o.conditions||null===o.conditions||"null"===o.conditions?[]:JSON.parse(o.conditions)).filter((function(t){return JSON.stringify(t)!==e.editingCondition}));r.every((function(e){return JSON.stringify(e)!==n}))?(r.push(this.conditions),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(t,"/conditions"),data:{conditions:JSON.stringify(r),CSRFToken:this.CSRFToken},success:function(t){"Invalid Token."!==t?(e.selectNewCategory(e.vueData.formID,e.selectedNodeIndicatorID),e.closeFormDialog()):console.log("error adding condition",t)},error:function(e){console.log(e)}})):this.closeFormDialog()}},removeCondition:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.selectConditionFromList(t.condition),!0===t.confirmDelete){var n=t.condition,o=n.childIndID,r=n.parentIndID,i=n.selectedOutcome,s=n.selectedChildValue;if(void 0!==o){var a=this.indicators.some((function(e){return parseInt(e.indicatorID)===parseInt(r)})),l=JSON.stringify(t.condition),c=JSON.parse(this.indicators.find((function(e){return parseInt(e.indicatorID)===parseInt(o)})).conditions)||[];c.forEach((function(e){e.childIndID=parseInt(e.childIndID),e.parentIndID=parseInt(e.parentIndID)}));var d=[];0===(d=a?c.filter((function(e){return JSON.stringify(e)!==l})):c.filter((function(t){return!(t.parentIndID===e.selectedDisabledParentID&&t.selectedOutcome===i&&t.selectedChildValue===s)}))).length&&(d=null),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(o,"/conditions"),data:{conditions:null!==d?JSON.stringify(d):"",CSRFToken:this.CSRFToken},success:function(t){"Invalid Token."!==t?(e.closeFormDialog(),e.selectNewCategory(e.vueData.formID,e.selectedNodeIndicatorID)):console.log("error removing condition",t)},error:function(e){console.log(e)}})}}else this.showRemoveConditionModal=!0},selectConditionFromList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.editingCondition=JSON.stringify(e),this.showConditionEditor=!0,this.updateSelectedParentIndicator(parseInt(null==e?void 0:e.parentIndID)),this.parentFound&&this.enabledParentFormats.includes(this.parentFormat)&&(this.selectedOperator=null==e?void 0:e.selectedOp,this.selectedParentValue=null==e?void 0:e.selectedParentValue);var t=document.getElementById("child_prefill_entry");null!=t&&t.choicesjs&&t.choicesjs.destroy(),this.selectedChildOutcome=null==e?void 0:e.selectedOutcome,this.selectedChildValue=null==e?void 0:e.selectedChildValue},getIndicatorName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(0!==e){var t,n=(null===(t=this.indicators.find((function(t){return parseInt(t.indicatorID)===e})))||void 0===t?void 0:t.name)||"";return this.truncateText(n,40)}},textValueDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return $("
    ").html(e).text()},getOperatorText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.selectedOp,n=e.parentFormat;switch(t){case"==":return this.multiOptionFormats.includes(n)?"includes":"is";case"!=":return"is not";case">":return"is greater than";case"<":return"is less than";default:return t}},isOrphan:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return!this.selectableParents.some((function(t){return parseInt(t.indicatorID)===e}))},childFormatChangedSinceSave:function(){var e,t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).childFormat,o=null===(e=this.childIndicator)||void 0===e||null===(t=e.format)||void 0===t?void 0:t.split("\n")[0];return(null==n?void 0:n.trim())!==(null==o?void 0:o.trim())},updateChoicesJS:function(){var e=this,t=document.querySelector("#outcome-editor > div.choices"),n=document.getElementById("parent_compValue_entry"),o=document.getElementById("child_prefill_entry"),r=this.conditions.childFormat.toLowerCase(),i=this.conditions.parentFormat.toLowerCase(),s=this.conditions.selectedOutcome.toLowerCase();if(this.multiOptionFormats.includes(i)&&null!==n&&!n.choicesjs){var a,l=(null===(a=this.conditions)||void 0===a?void 0:a.selectedParentValue.split("\n"))||[];l=l.map((function(t){return e.textValueDisplay(t).trim()}));var c=this.selectedParentValueOptions||[];c=c.map((function(e){return{value:e.trim(),label:e.trim(),selected:l.includes(e.trim())}}));var d=new Choices(n,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:c.filter((function(e){return""!==e.value}))});n.choicesjs=d}if("pre-fill"===s&&this.multiOptionFormats.includes(r)&&null!==o&&null===t){var u,p=(null===(u=this.conditions)||void 0===u?void 0:u.selectedChildValue.split("\n"))||[];p=p.map((function(t){return e.textValueDisplay(t).trim()}));var f=this.selectedChildValueOptions||[];f=f.map((function(e){return{value:e.trim(),label:e.trim(),selected:p.includes(e.trim())}}));var m=new Choices(o,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:f.filter((function(e){return""!==e.value}))});o.choicesjs=m}},onSave:function(){this.postCondition()}},computed:{parentFormat:function(){var e;return null!==(e=this.selectedParentIndicator)&&void 0!==e&&e.format?this.selectedParentIndicator.format.toLowerCase().split("\n")[0].trim():""},childFormat:function(){var e;return null!==(e=this.childIndicator)&&void 0!==e&&e.format?this.childIndicator.format.toLowerCase().split("\n")[0].trim():""},conditions:function(){var e,t,n=(null===(e=this.childIndicator)||void 0===e?void 0:e.indicatorID)||0,o=(null===(t=this.selectedParentIndicator)||void 0===t?void 0:t.indicatorID)||0,r=this.selectedOperator,i=this.selectedParentValue,s=this.selectedChildOutcome;return{childIndID:n,parentIndID:o,selectedOp:r,selectedParentValue:i,selectedChildValue:this.selectedChildValue,selectedOutcome:s,childFormat:this.childFormat,parentFormat:this.parentFormat}},conditionComplete:function(){var e=this.conditions,t=e.childIndID,n=e.parentIndID,o=e.selectedOp,r=e.selectedParentValue,i=e.selectedChildValue,s=e.selectedOutcome,a=0!==t&&0!==n&&""!==o&&""!==r&&(s&&"pre-fill"!==s.toLowerCase()||"pre-fill"===s.toLowerCase()&&""!==i),l=document.getElementById("button_save");return null!==l&&(l.style.display=a?"block":"none"),a},savedConditions:function(){return this.childIndicator.conditions?JSON.parse(this.childIndicator.conditions):[]},conditionTypes:function(){return{show:this.savedConditions.filter((function(e){return"show"===e.selectedOutcome.toLowerCase()})),hide:this.savedConditions.filter((function(e){return"hide"===e.selectedOutcome.toLowerCase()})),prefill:this.savedConditions.filter((function(e){return"pre-fill"===e.selectedOutcome.toLowerCase()}))}}},watch:{showRemoveConditionModal:function(e){var t=document.getElementById("leaf-vue-dialog-cancel-save");null!==t&&(t.style.display=!0===e?"none":"flex")}},template:'
    \n
    \n Loading... \n loading...\n
    \n \x3c!-- NOTE: MAIN EDITOR TEMPLATE --\x3e\n
    \n
    \n
      \n \x3c!-- NOTE: SHOW LIST --\x3e\n
      \n

      This field will be hidden except:

      \n
    • \n \n \n
    • \n
      \n \x3c!-- NOTE: HIDE LIST --\x3e\n
      \n

      This field will be shown except:

      \n
    • \n \n \n
    • \n
      \n \x3c!-- NOTE: PREFILL LIST --\x3e\n
      \n

      This field will be pre-filled:

      \n
    • \n \n \n
    • \n
      \n
    \n \n
    \n
    Choose Delete to confirm removal, or cancel to return
    \n
      \n
    • \n \n
    • \n
    • \n \n
    • \n
    \n
    \n
    \n
    \n \x3c!-- OUTCOME SELECTION --\x3e\n Select an outcome\n \n Enter a pre-fill value\n \x3c!-- NOTE: PRE-FILL ENTRY AREA dropdown, multidropdown, text, radio, checkboxes --\x3e\n \n \n \n
    \n
    \n

    IF

    \n
    \n \x3c!-- NOTE: PARENT CONTROLLER SELECTION --\x3e\n \n
    \n
    \n \x3c!-- NOTE: OPERATOR SELECTION --\x3e\n \n \n \n \n
    \n
    \n \x3c!-- NOTE: COMPARED VALUE SELECTION (active parent formats: dropdown, multiselect, radio, checkboxes) --\x3e\n \n \n
    \n
    \n

    THEN

    \'{{getIndicatorName(vueData.indicatorID)}}\'\n will \n have the value{{childFormat === \'multiselect\' ? \'(s)\':\'\'}} \'{{textValueDisplay(conditions.selectedChildValue)}}\'\n \n will \n \n be {{conditions.selectedOutcome === "Show" ? \'shown\' : \'hidden\'}}\n \n \n
    \n
    No options are currently available for the indicators on this form
    \n
    \n
    '},Wu={inject:["APIroot","truncateText","stripAndDecodeHTML","selectNewCategory","categories","focusedFormRecord","internalFormRecords","focusedFormTree","allStapledFormCatIDs","openNewFormDialog","openImportFormDialog","openFormHistoryDialog","openStapleFormsDialog","openConfirmDeleteFormDialog"],computed:{mainFormID:function(){var e,t;return""===(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.parentID)?this.focusedFormRecord.categoryID:(null===(t=this.focusedFormRecord)||void 0===t?void 0:t.parentID)||""},subformID:function(){var e;return null!==(e=this.focusedFormRecord)&&void 0!==e&&e.parentID?this.focusedFormRecord.categoryID:""},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{exportForm:function(){var e=this,t=this.mainFormID,n={form:{},subforms:{}},o=[];o.push($.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"/export"),success:function(e){n.form=e,n.categoryID=t},error:function(e){return console.log(e)}})),this.internalFormRecords.forEach((function(t){var r=t.categoryID;o.push($.ajax({type:"GET",url:"".concat(e.APIroot,"form/_").concat(r,"/export"),success:function(e){n.subforms[r]={},n.subforms[r].name=t.categoryName,n.subforms[r].description=t.categoryDescription,n.subforms[r].packet=e},error:function(e){return console.log("an error has occurred",e)}}))})),o.push($.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"/workflow"),success:function(e){n.workflowID=e[0].workflowID},error:function(e){return console.log("an error has occurred",e)}})),Promise.all(o).then((function(){var o={version:1};o.name=e.categories[t].categoryName+" (Copy)",o.description=e.categories[t].categoryDescription,o.packet=n;var r=new Blob([JSON.stringify(o).replace(/[^ -~]/g,"")],{type:"text/plain"});saveAs(r,"LEAF_FormPacket_"+t+".txt")})).catch((function(e){return console.log("an error has occurred",e)}))},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,n=this.categories[e]||"",o=this.stripAndDecodeHTML(null==n?void 0:n.categoryName)||"Untitled";return this.truncateText(o,t).trim()}},template:'
    '},Gu={name:"response-message",props:{message:{type:String}},template:'
    {{ message }}
    '};var Ku=n(379),Ju=n.n(Ku),Qu=n(795),Yu=n.n(Qu),Xu=n(569),Zu=n.n(Xu),ep=n(565),tp=n.n(ep),np=n(216),op=n.n(np),rp=n(589),ip=n.n(rp),sp=n(581),ap={};ap.styleTagTransform=ip(),ap.setAttributes=tp(),ap.insert=Zu().bind(null,"head"),ap.domAPI=Yu(),ap.insertStyleElement=op(),Ju()(sp.Z,ap),sp.Z&&sp.Z.locals&&sp.Z.locals;var lp=n(864),cp={};function dp(e){return dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dp(e)}function up(e){return function(e){if(Array.isArray(e))return pp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return pp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pp(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=1&&e.getSecureFormsInfo()})).catch((function(e){return console.log("error getting site settings",e)})),this.getWorkflowRecords()},watch:{"$route.query.formID":function(){"category"!==this.$route.name||this.appIsLoadingCategoryList||this.getFormFromQueryParam()}},computed:{currentCategoryQuery:function(){var e=this.$route.query.formID;return this.categories[e]||{}},focusedFormRecord:function(){return this.categories[this.focusedFormID]||{}},selectedFormNode:function(){var e=this,t=null;return null!==this.selectedNodeIndicatorID&&this.focusedFormTree.forEach((function(n){null===t&&(t=e.getNodeSelection(n,e.selectedNodeIndicatorID)||null)})),t},focusedFormIsSensitive:function(){var e=this,t=!1;return this.focusedFormTree.forEach((function(n){t||(t=e.checkSensitive(n))})),t},activeForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&1===parseInt(this.categories[t].visible)&&e.push(mp({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},inactiveForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&0===parseInt(this.categories[t].visible)&&e.push(mp({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},supplementalForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0===parseInt(this.categories[t].workflowID)&&e.push(mp({},this.categories[t]));return e=e.sort((function(e,t){return e.sort-t.sort}))},internalFormRecords:function(){var e=[];for(var t in this.categories)this.categories[t].parentID===this.focusedFormID&&e.push(mp({},this.categories[t]));return e},currentFormCollection:function(){var e,t,n=this,o=[];((null===(e=this.currentCategoryQuery)||void 0===e?void 0:e.stapledFormIDs)||[]).forEach((function(e){o.push(mp(mp({},n.categories[e]),{},{formContextType:"staple"}))}));var r=""!==this.currentCategoryQuery.parentID?"internal":this.allStapledFormCatIDs.includes((null===(t=this.currentCategoryQuery)||void 0===t?void 0:t.categoryID)||"")?"staple":"main form";return o.push(mp(mp({},this.currentCategoryQuery),{},{formContextType:r})),o.sort((function(e,t){return e.sort-t.sort}))}},methods:{truncateText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return e.length<=t?e:e.slice(0,t)+n},stripAndDecodeHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.innerHTML=e,XSSHelpers.stripAllTags(t.innerText)},showLastUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=document.getElementById(e);null!==n&&(n.innerText=t,n.style.opacity=1,n.style.border="2px solid #20a0f0",setTimeout((function(){n.style.border="2px solid transparent"}),750))},setDefaultAjaxResponseMessage:function(){var e=this;$.ajax({type:"POST",url:"ajaxIndex.php?a=checkstatus",data:{CSRFToken},success:function(t){e.ajaxResponseMessage=t||""},error:function(e){return reject(e)}})},initializeOrgSelector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"employee",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r="group"===(e=e.toLowerCase())?"group#":"#",i={};(i="group"===e?new groupSelector("".concat(n,"orgSel_").concat(t)):"position"===e?new positionSelector("".concat(n,"orgSel_").concat(t)):new employeeSelector("".concat(n,"orgSel_").concat(t))).apiPath="".concat(this.orgchartPath,"/api/"),i.rootPath="".concat(this.orgchartPath,"/"),i.basePath="".concat(this.orgchartPath,"/"),i.setSelectHandler((function(){document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput")).value="".concat(r)+i.selection;var n=document.getElementById("modal_orgSel_data".concat(t));null!==n&&(n.value=i.selection,n.dispatchEvent(new Event("change")))})),i.initialize();var s=document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput"));""!==o&&null!==s&&(s.value="".concat(r)+o)},getCategoryListAll:function(){var e=this;return this.appIsLoadingCategoryList=!0,new Promise((function(t,n){$.ajax({type:"GET",url:"".concat(e.APIroot,"formStack/categoryList/allWithStaples"),success:function(n){for(var o in n)e.categories[n[o].categoryID]=n[o],n[o].stapledFormIDs.forEach((function(t){e.allStapledFormCatIDs.includes(t)||e.allStapledFormCatIDs.push(t)}));e.appIsLoadingCategoryList=!1,t(n)},error:function(e){return n(e)}})}))},getFormFromQueryParam:function(){var e,t=/^form_[0-9a-f]{5}$/i.test((null===(e=this.$route.query)||void 0===e?void 0:e.formID)||"")?this.$route.query.formID:null;null===t||void 0===this.categories[t]?this.selectNewCategory():this.selectNewCategory(t,this.selectedNodeIndicatorID,!0)},getWorkflowRecords:function(){var e=this;return new Promise((function(t,n){$.ajax({type:"GET",url:"".concat(e.APIroot,"workflow"),success:function(n){e.workflowRecords=n,t(n)},error:function(e){return n(e)}})}))},getSiteSettings:function(){var e=this;return new Promise((function(t,n){$.ajax({type:"GET",url:"".concat(e.APIroot,"system/settings"),success:function(e){return t(e)},error:function(e){return n(e)},cache:!1})}))},fetchLEAFSRequests:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(t,n){var o=new LeafFormQuery;o.setRootURL("../"),o.addTerm("categoryID","=","leaf_secure"),!0===e?(o.addTerm("stepID","=","resolved"),o.join("recordResolutionData")):o.addTerm("stepID","!=","resolved"),o.onSuccess((function(e){return t(e)})),o.execute()}))},getSecureFormsInfo:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list"),success:function(e){},error:function(e){return console.log(e)},cache:!1}),this.fetchLEAFSRequests(!0)];Promise.all(t).then((function(t){var n=t[0],o=t[1];e.checkLeafSRequestStatus(n,o)})).catch((function(e){return console.log("an error has occurred",e)}))},checkLeafSRequestStatus:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=!1,s=0;for(var a in o)"approved"===o[a].recordResolutionData.lastStatus.toLowerCase()&&o[a].recordResolutionData.fulfillmentTime>s&&(s=o[a].recordResolutionData.fulfillmentTime,r=a);null===(e=document.getElementById("secureBtn"))||void 0===e||e.setAttribute("href","../index.php?a=printview&recordID="+r);var l=new Date(1e3*parseInt(s));for(var c in n)if(new Date(n[c].timeAdded).getTime()>l.getTime()){i=!0;break}!0===i&&""===this.focusedFormID&&(this.showCertificationStatus=!0,this.fetchLEAFSRequests(!1).then((function(e){if(""===t.focusedFormID)if(0===Object.keys(e).length){var n,o,r;null===(n=document.getElementById("secureStatus"))||void 0===n||n.setAttribute("innerText","Forms have been modified."),null===(o=document.getElementById("secureBtn"))||void 0===o||o.setAttribute("innerText","Please Recertify Your Site"),null===(r=document.getElementById("secureBtn"))||void 0===r||r.setAttribute("href","../report.php?a=LEAF_start_leaf_secure_certification")}else{var i,s,a,l=e[Object.keys(e)[0]].recordID;null===(i=document.getElementById("secureStatus"))||void 0===i||i.setAttribute("innerText","Re-certification in progress."),null===(s=document.getElementById("secureBtn"))||void 0===s||s.setAttribute("innerText","Check Certification Progress"),null===(a=document.getElementById("secureBtn"))||void 0===a||a.setAttribute("href","../index.php?a=printview&recordID="+l)}})).catch((function(e){return console.log("an error has occurred",e)})))},getFormByCategoryID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(o,r){$.ajax({type:"GET",url:"".concat(e.APIroot,"form/_").concat(t,"?childkeys=nonnumeric"),success:function(r){e.focusedFormID=t,e.focusedFormTree=r,e.selectedNodeIndicatorID=n,e.appIsLoadingForm=!1,o(r)},error:function(e){return r(e)}})}))},getIndicatorByID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(n,o){$.ajax({type:"GET",url:"".concat(e.APIroot,"formEditor/indicator/").concat(t),success:function(e){n(e)},error:function(e){return o(e)}})}))},updateCategoriesProperty:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";void 0!==this.categories[e][t]&&(this.categories[e][t]=n)},updateStapledFormsInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.currentCategoryQuery.categoryID;!0===t?(this.allStapledFormCatIDs=this.allStapledFormCatIDs.filter((function(t){return t!==e})),this.categories[n].stapledFormIDs=this.categories[n].stapledFormIDs.filter((function(t){return t!==e}))):(this.allStapledFormCatIDs=Array.from(new Set([].concat(up(this.allStapledFormCatIDs),[e]))),this.categories[n].stapledFormIDs=[].concat(up(this.currentCategoryQuery.stapledFormIDs),[e]))},addNewCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.categories[e]=t},removeCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";delete this.categories[e]},selectNewCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.setDefaultAjaxResponseMessage(),""!==e?(!0===n&&(this.appIsLoadingForm=!0),this.getFormByCategoryID(e,t)):(this.selectedNodeIndicatorID=null,this.focusedFormID="",this.focusedFormTree=[],this.categories={},this.workflowRecords=[],this.getCategoryListAll(),this.getSecureFormsInfo(),this.getWorkflowRecords())},selectNewFormNode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.target.classList.contains("icon_move")||e.target.classList.contains("sub-menu-chevron")||(this.selectedNodeIndicatorID=(null==t?void 0:t.indicatorID)||null,null!==(null==t?void 0:t.indicatorID)&&Array.from(document.querySelectorAll("li#index_listing_".concat(null==t?void 0:t.indicatorID," .sub-menu-chevron.closed"))).forEach((function(e){return e.click()})))},setCustomDialogTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setFormDialogComponent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},closeFormDialog:function(){this.showFormDialog=!1,this.setCustomDialogTitle(""),this.setFormDialogComponent(""),this.dialogButtonText={confirm:"Save",cancel:"Cancel"}},openConfirmDeleteFormDialog:function(){this.setCustomDialogTitle("

    Delete this form

    "),this.setFormDialogComponent("confirm-delete-dialog"),this.dialogButtonText={confirm:"Yes",cancel:"No"},this.showFormDialog=!0},openStapleFormsDialog:function(){this.setCustomDialogTitle("

    Editing Stapled Forms

    "),this.setFormDialogComponent("staple-form-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openEditCollaboratorsDialog:function(){this.setCustomDialogTitle("

    Editing Collaborators

    "),this.setFormDialogComponent("edit-collaborators-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openIfThenDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Untitled",n=this.truncateText(XSSHelpers.stripAllTags(t));this.currIndicatorID=e,this.setCustomDialogTitle('

    Conditions For '.concat(n," (").concat(e,")

    ")),this.setFormDialogComponent("conditions-editor-dialog"),this.showFormDialog=!0},openIndicatorEditingDialog:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e=null===t?"

    Adding new Section

    ":this.currIndicatorID===parseInt(t)?"

    Editing indicator ".concat(t,"

    "):"

    Adding question to ".concat(t,"

    "),this.setCustomDialogTitle(e),this.setFormDialogComponent("indicator-editing-dialog"),this.showFormDialog=!0},openAdvancedOptionsDialog:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorRecord={},this.currIndicatorID=t,this.getIndicatorByID(t).then((function(n){e.indicatorRecord=n,e.setCustomDialogTitle("

    Advanced Options for indicator ".concat(t,"

    ")),e.setFormDialogComponent("advanced-options-dialog"),e.showFormDialog=!0})).catch((function(e){return console.log("error getting indicator information",e)}))},openNewFormDialog:function(){var e=""===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")?"

    New Form

    ":"

    New Internal Use Form

    ";this.setCustomDialogTitle(e),this.setFormDialogComponent("new-form-dialog"),this.showFormDialog=!0},openImportFormDialog:function(){this.setCustomDialogTitle("

    Import Form

    "),this.setFormDialogComponent("import-form-dialog"),this.showFormDialog=!0},openFormHistoryDialog:function(){this.setCustomDialogTitle("

    Form History

    "),this.setFormDialogComponent("form-history-dialog"),this.showFormDialog=!0},newQuestion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.currIndicatorID=null,this.newIndicatorParentID=null!==e?parseInt(e):null,this.isEditingModal=!1,this.openIndicatorEditingDialog(e)},editQuestion:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorRecord={},this.currIndicatorID=t,this.newIndicatorParentID=null,this.getIndicatorByID(t).then((function(n){e.isEditingModal=!0,e.indicatorRecord=n,e.openIndicatorEditingDialog(t)})).catch((function(e){return console.log("error getting indicator information",e)}))},checkSensitive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(1===parseInt(e.is_sensitive))return!0;var t=!1;if(e.child)for(var n in e.child)if(!0===(t=this.checkSensitive(e.child[n])||!1))break;return t},getNodeSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(parseInt(e.indicatorID)===parseInt(t))return e;var n=null;if(e.child&&Object.keys(e.child).length>0)for(var o in e.child)if(null!==(n=this.getNodeSelection(e.child[o],t)||null))break;return n}}},vp="undefined"!=typeof window;const yp=Object.assign;function bp(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ip(r)?r.map(e):e(r)}return n}const _p=()=>{},Ip=Array.isArray,wp=/\/$/,xp=e=>e.replace(wp,"");function Dp(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let r,i,s=n.length-1;for(r=0;r1&&s--}return n.slice(0,s).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:s}}function Sp(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function kp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Cp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Fp(e[n],t[n]))return!1;return!0}function Fp(e,t){return Ip(e)?Tp(e,t):Ip(t)?Tp(t,e):e===t}function Tp(e,t){return Ip(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Ep,Pp;!function(e){e.pop="pop",e.push="push"}(Ep||(Ep={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(Pp||(Pp={}));const Op=/^[^#]+#/;function Np(e,t){return e.replace(Op,"#")+t}const Rp=()=>({left:window.pageXOffset,top:window.pageYOffset});function Ap(e,t){return(history.state?history.state.position-t:-1)+e}const Lp=new Map;let jp=()=>location.protocol+"//"+location.host;function Mp(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Sp(n,"")}return Sp(n,e)+o+r}function $p(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Rp():null}}function Bp(e){return"string"==typeof e||"symbol"==typeof e}const Vp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Hp=Symbol("");var Up;function qp(e,t){return yp(new Error,{type:e,[Hp]:!0},t)}function zp(e,t){return e instanceof Error&&Hp in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(Up||(Up={}));const Wp="[^/]+?",Gp={sensitive:!1,strict:!1,start:!0,end:!0},Kp=/[.+*?^${}()[\]/\\]/g;function Jp(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Qp(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Xp={type:0,value:""},Zp=/[a-zA-Z0-9_]/;function ef(e,t,n){const o=function(e,t){const n=yp({},Gp,t),o=[];let r=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:d,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function p(){c+=a}for(;lyp(e,t.meta)),{})}function sf(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function af(e,t){return t.children.some((t=>t===e||af(e,t)))}const lf=/#/g,cf=/&/g,df=/\//g,uf=/=/g,pf=/\?/g,ff=/\+/g,mf=/%5B/g,hf=/%5D/g,gf=/%5E/g,vf=/%60/g,yf=/%7B/g,bf=/%7C/g,_f=/%7D/g,If=/%20/g;function wf(e){return encodeURI(""+e).replace(bf,"|").replace(mf,"[").replace(hf,"]")}function xf(e){return wf(e).replace(ff,"%2B").replace(If,"+").replace(lf,"%23").replace(cf,"%26").replace(vf,"`").replace(yf,"{").replace(_f,"}").replace(gf,"^")}function Df(e){return null==e?"":function(e){return wf(e).replace(lf,"%23").replace(pf,"%3F")}(e).replace(df,"%2F")}function Sf(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}function kf(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&xf(e))):[o&&xf(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function Ff(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ip(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Tf=Symbol(""),Ef=Symbol(""),Pf=Symbol(""),Of=Symbol(""),Nf=Symbol("");function Rf(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function Af(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((s,a)=>{const l=e=>{var l;!1===e?a(qp(4,{from:n,to:t})):e instanceof Error?a(e):"string"==typeof(l=e)||l&&"object"==typeof l?a(qp(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),s())},c=e.call(o&&o.instances[r],t,n,l);let d=Promise.resolve(c);e.length<3&&(d=d.then(l)),d.catch((e=>a(e)))}))}function Lf(e,t,n,o){const r=[];for(const s of e)for(const e in s.components){let a=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(i=a)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(a.__vccOpts||a)[t];i&&r.push(Af(i,n,o,s,e))}else{let i=a();r.push((()=>i.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const i=(a=r).__esModule||"Module"===a[Symbol.toStringTag]?r.default:r;var a;s.components[e]=i;const l=(i.__vccOpts||i)[t];return l&&Af(l,n,o,s,e)()}))))}}var i;return r}function jf(e){const t=eo(Pf),n=eo(Of),o=Zi((()=>t.resolve(Gt(e.to)))),r=Zi((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(kp.bind(null,r));if(s>-1)return s;const a=Bf(e[t-2]);return t>1&&Bf(r)===a&&i[i.length-1].path!==a?i.findIndex(kp.bind(null,e[t-2])):s})),i=Zi((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ip(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Zi((()=>r.value>-1&&r.value===n.matched.length-1&&Cp(n.params,o.value.params)));return{route:o,href:Zi((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(_p):Promise.resolve()}}}const Mf=_o({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:jf,setup(e,{slots:t}){const n=kt(jf(e)),{options:o}=eo(Pf),r=Zi((()=>({[Vf(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Vf(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:ds("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),$f=Mf;function Bf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vf=(e,t,n)=>null!=e?e:null!=t?t:n;function Hf(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Uf=_o({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=eo(Nf),r=Zi((()=>e.route||o.value)),i=eo(Ef,0),s=Zi((()=>{let e=Gt(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),a=Zi((()=>r.value.matched[s.value]));Zn(Ef,Zi((()=>s.value+1))),Zn(Tf,a),Zn(Nf,r);const l=Ht();return io((()=>[l.value,a.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&kp(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=a.value,c=s&&s.components[i];if(!c)return Hf(n.default,{Component:c,route:o});const d=s.props[i],u=d?!0===d?o.params:"function"==typeof d?d(o):d:null,p=ds(c,yp({},u,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:l}));return Hf(n.default,{Component:p,route:o})||p}}});function qf(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function zf(e){return zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zf(e)}function Wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Gf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==zf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==zf(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===zf(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kf={name:"category-item",props:{categoriesRecord:Object,availability:String},inject:["APIroot","CSRFToken","libsPath","categories","updateCategoriesProperty","stripAndDecodeHTML","allStapledFormCatIDs"],computed:{workflowID:function(){return parseInt(this.categoriesRecord.workflowID)},cardLibraryClasses:function(){return"formPreview formLibraryID_".concat(this.categoriesRecord.formLibraryID)},catID:function(){return this.categoriesRecord.categoryID},stapledForms:function(){var e=this,t=[];return this.categoriesRecord.stapledFormIDs.forEach((function(n){return t.push(function(e){for(var t=1;t0?"".concat(this.categoriesRecord.workflowDescription||"No Description"," (#").concat(this.categoriesRecord.workflowID,")"):"No Workflow"}},methods:{updateSort:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=parseInt(t.currentTarget.value);isNaN(o)||(o<-128&&(o=-128,t.currentTarget.value=-128),o>127&&(o=127,t.currentTarget.value=127),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formSort"),data:{sort:o,categoryID:n,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(n,"sort",o)},error:function(e){return console.log("sort post err",e)}}))}},template:'\n \n \n {{ categoryName }}\n \n \n {{ formDescription }}\n {{ workflowDescription }}\n \n
    \n 📑 Stapled\n
    \n \n \n
    \n \n  Need to Know enabled\n
    \n \n \n \n \n \n '},Jf={props:{indicator:Object},inject:["libsPath","initializeOrgSelector","orgchartFormats","stripAndDecodeHTML"],computed:{truncatedOptions:function(){var e;return(null===(e=this.indicator.options)||void 0===e?void 0:e.slice(0,6))||[]},baseFormat:function(){var e,t;return(null===(e=this.indicator.format)||void 0===e||null===(t=e.toLowerCase())||void 0===t?void 0:t.trim())||""},defaultValue:function(){var e;return(null===(e=this.indicator)||void 0===e?void 0:e.default)||""},strippedDefault:function(){return this.stripAndDecodeHTML(this.defaultValue)},inputElID:function(){return"input_preview_".concat(this.indicator.indicatorID)},selType:function(){return this.baseFormat.slice(this.baseFormat.indexOf("_")+1)},labelSelector:function(){return this.indicator.indicatorID+"_format_label"},printResponseID:function(){return"xhrIndicator_".concat(this.indicator.indicatorID,"_").concat(this.indicator.series)},gridOptions:function(){var e,t=JSON.parse((null===(e=this.indicator)||void 0===e?void 0:e.options)||"[]");return t.map((function(e){e.name=XSSHelpers.stripAllTags(e.name),null!=e&&e.options&&e.options.map((function(e){return XSSHelpers.stripAllTags(e)}))})),t}},mounted:function(){var e,t,n,o,r=this;switch(this.baseFormat.toLowerCase()){case"raw_data":break;case"date":$("#".concat(this.inputElID)).datepicker({autoHide:!0,showAnim:"slideDown",onSelect:function(){$("#"+r.indicator.indicatorID+"_focusfix").focus()}}),null===(e=document.getElementById(this.inputElID))||void 0===e||e.setAttribute("aria-labelledby",this.labelSelector);break;case"dropdown":$("#".concat(this.inputElID)).chosen({disable_search_threshold:5,allow_single_deselect:!0,width:"50%"}),$("#".concat(this.inputElID,"_chosen input.chosen-search-input")).attr("aria-labelledby",this.labelSelector);break;case"multiselect":var i=document.getElementById(this.inputElID);if(null!==i&&!0===i.multiple&&"active"!==(null==i?void 0:i.getAttribute("data-choice"))){var s=this.indicator.options||[];s=s.map((function(e){return{value:e,label:e,selected:""!==r.strippedDefault&&r.strippedDefault===e}}));var a=new Choices(i,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:s.filter((function(e){return""!==e.value}))});i.choicesjs=a}$("#".concat(this.inputElID," ~ input.choices__input")).attr("aria-labelledby",this.labelSelector);break;case"orgchart_group":case"orgchart_position":case"orgchart_employee":this.initializeOrgSelector(this.selType,this.indicator.indicatorID),this.updateOrgselectorPreview();break;case"checkbox":null===(t=document.getElementById(this.inputElID+"_check0"))||void 0===t||t.setAttribute("aria-labelledby",this.labelSelector);break;case"checkboxes":case"radio":null===(n=document.querySelector("#".concat(this.printResponseID," .format-preview")))||void 0===n||n.setAttribute("aria-labelledby",this.labelSelector);break;default:null===(o=document.getElementById(this.inputElID))||void 0===o||o.setAttribute("aria-labelledby",this.labelSelector)}},methods:{useAdvancedEditor:function(){$("#"+this.inputElID).trumbowyg({btns:["bold","italic","underline","|","unorderedList","orderedList","|","justifyLeft","justifyCenter","justifyRight","fullscreen"]}),$("#textarea_format_button_".concat(this.indicator.indicatorID)).css("display","none")},updateOrgselectorPreview:function(){var e,t,n;null!==(e=this.indicator)&&void 0!==e&&e.default&&(document.querySelector("#orgSel_".concat(this.indicator.indicatorID," input")).value="group"===this.selType?"group#".concat(null===(t=this.indicator)||void 0===t?void 0:t.default):"#".concat(null===(n=this.indicator)||void 0===n?void 0:n.default))}},template:'
    \n \n \n\n \n\n \n\n \n\n \n \n
    File Attachment(s)\n

    Select File to attach:

    \n \n
    \n\n \n\n \n \n \n \n \n\n \n\n
    '};function Qf(e){return Qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qf(e)}function Yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Xf(e){for(var t=1;t'):""},conditionalQuestion:function(){return!this.isHeaderLocation&&null!==this.formNode.conditions&&""!==this.formNode.conditions&"null"!==this.formNode.conditions},conditionsAllowed:function(){var e;return!this.isHeaderLocation&&this.allowedConditionChildFormats.includes(null===(e=this.formNode.format)||void 0===e?void 0:e.toLowerCase())},indicatorName:function(){var e=this.required?'* Required':"",t=this.sensitive?'* Sensitive':"",n=""!==this.formNode.name.trim()?this.formNode.name.trim():"[ blank ]";return"".concat(n).concat(e).concat(t,"  ").concat(this.sensitiveImg)},indicatorFormat:function(){var e;return''.concat(null===(e=this.formNode)||void 0===e?void 0:e.format," ").concat(this.sensitiveImg)},printResponseID:function(){return"xhrIndicator_".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},required:function(){return 1===parseInt(this.formNode.required)},sensitive:function(){return 1===parseInt(this.formNode.is_sensitive)}},template:'
    \n\n \x3c!-- EDITING AREA FOR INDICATOR --\x3e\n
    \n\n
    \n \x3c!-- NAME --\x3e\n
    \n \n
    \n
    \n \x3c!-- FORMAT PREVIEW --\x3e\n
    \n \n
    \n
    \n \x3c!-- TOOLBAR --\x3e\n
    \n\n
    \n\n
    \n
    \n advanced options are present\n
    \n \n \n
    \n \n
    \n
    \n\n \x3c!-- NOTE: RECURSIVE SUBQUESTIONS --\x3e\n \n
    '},FormIndexListing:{name:"FormIndexListing",data:function(){return{subMenuOpen:!1}},props:{depth:Number,formNode:Object,index:Number,parentID:Number},inject:["truncateText","clearListItem","addToListTracker","selectNewFormNode","selectedNodeIndicatorID","startDrag","onDragEnter","onDragLeave","onDrop","moveListing"],mounted:function(){if(this.addToListTracker(this.formNode,this.parentID,this.index),null!==this.selectedNodeIndicatorID&&this.selectedNodeIndicatorID===this.formNode.indicatorID){var e=document.getElementById("index_listing_".concat(this.selectedNodeIndicatorID));if(null!==e){var t=e.closest("li.section_heading");Array.from((null==t?void 0:t.querySelectorAll("li .sub-menu-chevron.closed"))||[]).forEach((function(e){return e.click()})),e.classList.add("index-selected")}}},beforeUnmount:function(){this.clearListItem(this.formNode.indicatorID)},methods:{indexHover:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null==t||null===(e=t.currentTarget)||void 0===e||e.classList.add("index-selected")},indexHoverOff:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null==t||null===(e=t.currentTarget)||void 0===e||e.classList.remove("index-selected")},toggleSubMenu:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};32===(null==t?void 0:t.keyCode)&&t.preventDefault(),this.subMenuOpen=!this.subMenuOpen,null===(e=t.currentTarget.closest("li"))||void 0===e||e.focus()}},computed:{headingNumber:function(){return 0===this.depth?this.index+1+".":""},hasConditions:function(){return 0!==this.depth&&null!==this.formNode.conditions&&""!==this.formNode.conditions&&"null"!==this.formNode.conditions},indexDisplay:function(){var e=this.formNode.description?XSSHelpers.stripAllTags(this.formNode.description):XSSHelpers.stripAllTags(this.formNode.name);return XSSHelpers.decodeHTMLEntities(this.truncateText(e))||"[ blank ]"},suffix:function(){return"".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},required:function(){return 1===parseInt(this.formNode.required)},isEmpty:function(){return!0===this.formNode.isEmpty}},template:'\n
  2. \n
    \n \n {{headingNumber}} {{indexDisplay}}\n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n \x3c!-- NOTE: RECURSIVE SUBQUESTIONS. ul for each for drop zones --\x3e\n
      \n\n \n
    \n
  3. '},EditPropertiesPanel:{data:function(){var e,t,n,o,r,i,s,a,l;return{categoryName:this.stripAndDecodeHTML(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryName)||"Untitled",categoryDescription:this.stripAndDecodeHTML(null===(t=this.focusedFormRecord)||void 0===t?void 0:t.categoryDescription)||"",workflowID:parseInt(null===(n=this.focusedFormRecord)||void 0===n?void 0:n.workflowID)||0,needToKnow:parseInt(null===(o=this.focusedFormRecord)||void 0===o?void 0:o.needToKnow)||0,visible:parseInt(null===(r=this.focusedFormRecord)||void 0===r?void 0:r.visible)||0,type:(null===(i=this.focusedFormRecord)||void 0===i?void 0:i.type)||"",formID:(null===(s=this.focusedFormRecord)||void 0===s?void 0:s.categoryID)||"",formParentID:(null===(a=this.focusedFormRecord)||void 0===a?void 0:a.parentID)||"",destructionAge:(null===(l=this.focusedFormRecord)||void 0===l?void 0:l.destructionAge)||null,lastUpdated:""}},inject:["APIroot","CSRFToken","workflowRecords","allStapledFormCatIDs","focusedFormRecord","focusedFormIsSensitive","updateCategoriesProperty","openEditCollaboratorsDialog","openFormHistoryDialog","showLastUpdate","truncateText","stripAndDecodeHTML"],computed:{workflowDescription:function(){var e=this,t="";if(0!==this.workflowID){var n=this.workflowRecords.find((function(t){return parseInt(t.workflowID)===e.workflowID}));t=(null==n?void 0:n.description)||""}return t},isSubForm:function(){return""!==this.focusedFormRecord.parentID},isStaple:function(){return this.allStapledFormCatIDs.includes(this.formID)},isNeedToKnow:function(){return 1===parseInt(this.focusedFormRecord.needToKnow)},formNameCharsRemaining:function(){return 50-this.categoryName.length},formDescrCharsRemaining:function(){return 255-this.categoryDescription.length}},methods:{updateName:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formName"),data:{name:this.categoryName,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryName",e.categoryName),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated))},error:function(e){return console.log("name post err",e)}})},updateDescription:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formDescription"),data:{description:this.categoryDescription,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryDescription",e.categoryDescription),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated))},error:function(e){return console.log("form description post err",e)}})},updateWorkflow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formWorkflow"),data:{workflowID:this.workflowID,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){!1===t?alert("The workflow could not be set because this form is stapled to another form"):(e.updateCategoriesProperty(e.formID,"workflowID",e.workflowID),e.updateCategoriesProperty(e.formID,"workflowDescription",e.workflowDescription),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated)))},error:function(e){return console.log("workflow post err",e)}})},updateAvailability:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formVisible"),data:{visible:this.visible,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"visible",e.visible),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated))},error:function(e){return console.log("visibility post err",e)}})},updateNeedToKnow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:this.needToKnow,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",e.needToKnow),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated))},error:function(e){return console.log("ntk post err",e)}})},updateType:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formType"),data:{type:this.type,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"type",e.type),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated))},error:function(e){return console.log("type post err",e)}})},updateDestructionAge:function(){var e=this;(null===this.destructionAge||this.destructionAge>=1&&this.destructionAge<=30)&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/destructionAge"),data:{destructionAge:this.destructionAge,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){t===e.destructionAge&&(e.updateCategoriesProperty(e.formID,"destructionAge",e.destructionAge),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated)))},error:function(e){return console.log("destruction age post err",e)}})}},template:'
    \n {{formID}}\n (internal for {{formParentID}})\n \n
    \n \n \n \n \n \n
    \n
    \n
    \n \n \n
    \n \n
    This is an Internal Form
    \n
    \n
    '},FormBrowser:{data:function(){return{test:"test"}},inject:["appIsLoadingCategoryList","showCertificationStatus","activeForms","inactiveForms","supplementalForms"],components:{CategoryItem:Kf},template:''}},inject:["APIroot","CSRFToken","libsPath","setDefaultAjaxResponseMessage","appIsLoadingCategoryList","appIsLoadingForm","categories","internalFormRecords","selectedNodeIndicatorID","selectedFormNode","getFormByCategoryID","showLastUpdate","openFormHistoryDialog","newQuestion","editQuestion","focusedFormRecord","focusedFormTree","openNewFormDialog","currentFormCollection","stripAndDecodeHTML","truncateText"],mounted:function(){},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},provide:function(){var e=this;return{listTracker:Zi((function(){return e.listTracker})),showToolbars:Zi((function(){return e.showToolbars})),clearListItem:this.clearListItem,addToListTracker:this.addToListTracker,allowedConditionChildFormats:this.allowedConditionChildFormats,startDrag:this.startDrag,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDrop:this.onDrop,moveListing:this.moveListing,toggleToolbars:this.toggleToolbars,makePreviewKey:this.makePreviewKey}},computed:{focusedFormID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},currentSectionNumber:function(){var e,t=parseInt(null===(e=this.selectedFormNode)||void 0===e?void 0:e.indicatorID),n=Array.from(document.querySelectorAll("#base_drop_area > li")),o=document.getElementById("index_listing_".concat(t)),r=n.indexOf(o);return-1===r?"":r+1},sortOrParentChanged:function(){return this.sortValuesToUpdate.length>0||this.parentIDsToUpdate.length>0},sortValuesToUpdate:function(){var e=[];for(var t in this.listTracker)this.listTracker[t].sort!==this.listTracker[t].listIndex-this.sortOffset&&e.push(Xf({indicatorID:parseInt(t)},this.listTracker[t]));return e},parentIDsToUpdate:function(){var e=[];for(var t in this.listTracker)""!==this.listTracker[t].newParentID&&this.listTracker[t].parentID!==this.listTracker[t].newParentID&&e.push(Xf({indicatorID:parseInt(t)},this.listTracker[t]));return e},indexHeaderText:function(){return""!==this.focusedFormRecord.parentID?"Internal Form":this.currentFormCollection.length>1?"Form Layout":"Primary Form"}},methods:{forceUpdate:function(){this.updateKey+=1},moveListing:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];32===(null==n?void 0:n.keyCode)&&n.preventDefault();var i,s,a=null==n||null===(e=n.currentTarget)||void 0===e?void 0:e.closest("ul"),l=document.getElementById("index_listing_".concat(o)),c=Array.from(document.querySelectorAll("#".concat(a.id," > li"))),d=c.filter((function(e){return e!==l})),u=this.listTracker[o];r?u.listIndex>0&&(d.splice(u.listIndex-1,0,l),c.forEach((function(e){return a.removeChild(e)})),d.forEach((function(e,n){var o=parseInt(e.id.replace("index_listing_",""));a.appendChild(e),t.listTracker[o].listIndex=n})),null==n||null===(i=n.currentTarget)||void 0===i||i.focus()):u.listIndex0){var n=[];this.sortValuesToUpdate.forEach((function(t){n.push({indicatorID:t.indicatorID,sort:t.listIndex-e.sortOffset})})),t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/sort/batch"),data:{sortData:n,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind sort post err",e)}}))}var o=[];this.parentIDsToUpdate.forEach((function(t){o.push($.ajax({type:"POST",url:"".concat(e.APIroot,"formEditor/").concat(t.indicatorID,"/parentID"),data:{parentID:t.newParentID,CSRFToken:e.CSRFToken},success:function(){},error:function(e){return console.log("ind parentID post err",e)}}))}));var r=t.concat(o);Promise.all(r).then((function(t){t.length>0&&e.getFormByCategoryID(e.focusedFormID,e.selectedNodeIndicatorID).then((function(){e.sortLastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_index_last_update","last modified: ".concat(e.sortLastUpdated)),e.forceUpdate()})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log("an error has occurred",e)}))},clearListItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.listTracker[e]&&delete this.listTracker[e]},addToListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=e.indicatorID,r={sort:e.sort,parentID:t,listIndex:n,newParentID:""};this.listTracker[o]=r},updateListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=Xf({},this.listTracker[e]);o.listIndex=n,o.newParentID=t,this.listTracker[e]=o},startDrag:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=e&&e.dataTransfer&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id))},onDrop:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed){t.preventDefault();var n=t.dataTransfer.getData("text"),o=t.currentTarget,r=parseInt(n.replace(this.dragLI_Prefix,"")),i="base_drop_area"===o.id?null:parseInt(o.id.replace(this.dragUL_Prefix,"")),s=Array.from(document.querySelectorAll("#".concat(o.id," > li")));if(0===s.length)try{o.append(document.getElementById(n)),this.updateListTracker(r,i,0)}catch(e){console.log(e)}else{var a=9999,l=null;s.forEach((function(e){var o=e.getBoundingClientRect().top-t.clientY;e.id!==n&&o>0&&o li"))).forEach((function(t,n){var o=parseInt(t.id.replace(e.dragLI_Prefix,""));e.updateListTracker(o,i,n)}))}catch(e){console.log(e)}}o.classList.contains("entered-drop-zone")&&t.target.classList.remove("entered-drop-zone")}},onDragLeave:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.remove("entered-drop-zone")},onDragEnter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed&&null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.add("entered-drop-zone")},toggleToolbars:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null==e||e.stopPropagation(),32===(null==e?void 0:e.keyCode)&&e.preventDefault(),e.currentTarget.classList.contains("indicator-name-preview"))if(this.showToolbars)t&&this.editQuestion(t);else{var n=e.currentTarget.id,o=e.currentTarget.getBoundingClientRect().top;this.showToolbars=!0,setTimeout((function(){var e=document.getElementById(n).getBoundingClientRect().top;window.scrollBy(0,e-o)}))}else this.showToolbars=!this.showToolbars},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,n=this.categories[e]||"",o=this.stripAndDecodeHTML((null==n?void 0:n.categoryName)||"")||"Untitled";return this.truncateText(o,t).trim()},layoutBtnIsDisabled:function(e){return e.categoryID===this.focusedFormRecord.categoryID&&null===this.selectedFormNode},makePreviewKey:function(e){var t;return"".concat(e.format).concat((null==e||null===(t=e.options)||void 0===t?void 0:t.join())||"","_").concat((null==e?void 0:e.default)||"")}},watch:{sortOrParentChanged:function(e,t){!0===e&&this.applySortAndParentID_Updates()}},template:'
    \n
    \n Loading... \n loading...\n
    \n\n \n
    '}},{path:"/restore",name:"restore",component:{name:"restore-fields-view",data:function(){return{disabledFields:null}},inject:["APIroot","CSRFToken","setDefaultAjaxResponseMessage"],beforeMount:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list/disabled"),success:function(t){e.disabledFields=t.filter((function(e){return parseInt(e.indicatorID)>0}))},error:function(e){return console.log(e)},cache:!1})},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},methods:{restoreField:function(e){var t=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(e,"/disabled"),data:{CSRFToken,disabled:0},success:function(){t.disabledFields=t.disabledFields.filter((function(t){return parseInt(t.indicatorID)!==e})),alert("The field has been restored.")},error:function(e){return console.log(e)}})}},template:'
    \n

    List of disabled fields available for recovery

    \n
    Deleted fields and associated data will be not display in the Report Builder
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    indicatorIDFormField NameInput FormatStatusRestore
    {{ f.indicatorID }}{{ f.categoryName }}{{ f.name }}{{ f.format }}{{ f.disabled }}\n
    \n

    Loading ...

    \n
    \n
    '}}],nm=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const a=!o,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:nf(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);l.aliasOf=o&&o.record;const c=sf(t,e),d=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)d.push(yp({},l,{components:o?o.record.components:l.components,path:e,aliasOf:o?o.record:l}))}let u,p;for(const t of d){const{path:d}=t;if(n&&"/"!==d[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(d&&o+d)}if(u=ef(t,n,c),o?o.alias.push(u):(p=p||u,p!==u&&p.alias.push(u),a&&e.name&&!of(u)&&i(e.name)),l.children){const e=l.children;for(let t=0;t{i(p)}:_p}function i(e){if(Bp(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!af(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!of(e)&&o.set(e.record.name,e)}return t=sf({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,a={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw qp(1,{location:e});s=r.record.name,a=yp(tf(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&tf(e.params,r.keys.map((e=>e.name)))),i=r.stringify(a)}else if("path"in e)i=e.path,r=n.find((e=>e.re.test(i))),r&&(a=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw qp(1,{location:e,currentLocation:t});s=r.record.name,a=yp({},t.params,e.params),i=r.stringify(a)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:i,params:a,matched:l,meta:rf(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||kf,o=e.stringifyQuery||Cf,r=e.history,i=Rf(),s=Rf(),a=Rf(),l=Ut(Vp);let c=Vp;vp&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=bp.bind(null,(e=>""+e)),u=bp.bind(null,Df),p=bp.bind(null,Sf);function f(e,i){if(i=yp({},i||l.value),"string"==typeof e){const o=Dp(n,e,i.path),s=t.resolve({path:o.path},i),a=r.createHref(o.fullPath);return yp(o,s,{params:p(s.params),hash:Sf(o.hash),redirectedFrom:void 0,href:a})}let s;if("path"in e)s=yp({},e,{path:Dp(n,e.path,i.path).path});else{const t=yp({},e.params);for(const e in t)null==t[e]&&delete t[e];s=yp({},e,{params:u(e.params)}),i.params=u(i.params)}const a=t.resolve(s,i),c=e.hash||"";a.params=d(p(a.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,yp({},e,{hash:(m=c,wf(m).replace(yf,"{").replace(_f,"}").replace(gf,"^")),path:a.path}));var m;const h=r.createHref(f);return yp({fullPath:f,hash:c,query:o===Cf?Ff(e.query):e.query||{}},a,{redirectedFrom:void 0,href:h})}function m(e){return"string"==typeof e?Dp(n,e,l.value.path):yp({},e)}function h(e,t){if(c!==e)return qp(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=m(o):{path:o},o.params={}),yp({query:e.query,hash:e.hash,params:"path"in o?{}:e.params},o)}}function y(e,t){const n=c=f(e),r=l.value,i=e.state,s=e.force,a=!0===e.replace,d=v(n);if(d)return y(yp(m(d),{state:"object"==typeof d?yp({},i,d.state):i,force:s,replace:a}),t||n);const u=n;let p;return u.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&kp(t.matched[o],n.matched[r])&&Cp(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(p=qp(16,{to:u,from:r}),T(r,r,!0,!1)),(p?Promise.resolve(p):_(u,r)).catch((e=>zp(e)?zp(e,2)?e:F(e):C(e,u,r))).then((e=>{if(e){if(zp(e,2))return y(yp({replace:a},m(e.to),{state:"object"==typeof e.to?yp({},i,e.to.state):i,force:s}),t||u)}else e=w(u,r,!0,a,i);return I(u,r,e),e}))}function b(e,t){const n=h(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e,t){let n;const[o,r,a]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;skp(e,i)))?o.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find((e=>kp(e,a)))||r.push(a))}return[n,o,r]}(e,t);n=Lf(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(Af(o,e,t))}));const l=b.bind(null,e,t);return n.push(l),qf(n).then((()=>{n=[];for(const o of i.list())n.push(Af(o,e,t));return n.push(l),qf(n)})).then((()=>{n=Lf(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Af(o,e,t))}));return n.push(l),qf(n)})).then((()=>{n=[];for(const o of e.matched)if(o.beforeEnter&&!t.matched.includes(o))if(Ip(o.beforeEnter))for(const r of o.beforeEnter)n.push(Af(r,e,t));else n.push(Af(o.beforeEnter,e,t));return n.push(l),qf(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Lf(a,"beforeRouteEnter",e,t),n.push(l),qf(n)))).then((()=>{n=[];for(const o of s.list())n.push(Af(o,e,t));return n.push(l),qf(n)})).catch((e=>zp(e,8)?e:Promise.reject(e)))}function I(e,t,n){for(const o of a.list())o(e,t,n)}function w(e,t,n,o,i){const s=h(e,t);if(s)return s;const a=t===Vp,c=vp?history.state:{};n&&(o||a?r.replace(e.fullPath,yp({scroll:a&&c&&c.scroll},i)):r.push(e.fullPath,i)),l.value=e,T(e,t,n,a),F()}let x;let D,S=Rf(),k=Rf();function C(e,t,n){F(e);const o=k.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function F(e){return D||(D=!e,x||(x=r.listen(((e,t,n)=>{if(!N.listening)return;const o=f(e),i=v(o);if(i)return void y(yp(i,{replace:!0}),o).catch(_p);c=o;const s=l.value;var a,d;vp&&(a=Ap(s.fullPath,n.delta),d=Rp(),Lp.set(a,d)),_(o,s).catch((e=>zp(e,12)?e:zp(e,2)?(y(e.to,o).then((e=>{zp(e,20)&&!n.delta&&n.type===Ep.pop&&r.go(-1,!1)})).catch(_p),Promise.reject()):(n.delta&&r.go(-n.delta,!1),C(e,o,s)))).then((e=>{(e=e||w(o,s,!1))&&(n.delta&&!zp(e,8)?r.go(-n.delta,!1):n.type===Ep.pop&&zp(e,20)&&r.go(-1,!1)),I(o,s,e)})).catch(_p)}))),S.list().forEach((([t,n])=>e?n(e):t())),S.reset()),e}function T(t,n,o,r){const{scrollBehavior:i}=e;if(!vp||!i)return Promise.resolve();const s=!o&&function(e){const t=Lp.get(e);return Lp.delete(e),t}(Ap(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return yn().then((()=>i(t,n,s))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}(e))).catch((e=>C(e,t,n)))}const E=e=>r.go(e);let P;const O=new Set,N={currentRoute:l,listening:!0,addRoute:function(e,n){let o,r;return Bp(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:g,replace:function(e){return g(yp(m(e),{replace:!0}))},go:E,back:()=>E(-1),forward:()=>E(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:k.add,isReady:function(){return D&&l.value!==Vp?Promise.resolve():new Promise(((e,t)=>{S.add([e,t])}))},install(e){e.component("RouterLink",$f),e.component("RouterView",Uf),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(l)}),vp&&!P&&l.value===Vp&&(P=!0,g(r.location).catch((e=>{})));const t={};for(const e in Vp)t[e]=Zi((()=>l.value[e]));e.provide(Pf,this),e.provide(Of,kt(t)),e.provide(Nf,l);const n=e.unmount;O.add(e),e.unmount=function(){O.delete(e),O.size<1&&(c=Vp,x&&x(),x=null,l.value=Vp,P=!1,D=!1),n()}}};return N}({history:((em=location.host?em||location.pathname+location.search:"").includes("#")||(em+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:Mp(e,n)},r={value:t.state};function i(o,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:jp()+e+o;try{t[s?"replaceState":"pushState"](i,"",l),r.value=i}catch(e){console.error(e),n[s?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=yp({},r.value,t.state,{forward:e,scroll:Rp()});i(s.current,s,!0),i(e,yp({},$p(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,yp({},t.state,$p(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(vp){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),xp(e)}(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const a=({state:i})=>{const a=Mp(e,location),l=n.value,c=t.value;let d=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);d=c?i.position-c.position:0}else o(a);r.forEach((e=>{e(n.value,l,{delta:d,type:Ep.pop,direction:d?d>0?Pp.forward:Pp.back:Pp.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(yp({},e.state,{scroll:Rp()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace),o=yp({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Np.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(em)),routes:tm});const om=nm;var rm=Ba(gp);rm.config.unwrapInjectedRef=!0,rm.use(om),rm.mount("#vue-formeditor-app")})()})(); \ No newline at end of file diff --git a/libs/js/vue-dest/form_editor/171.LEAF_FormEditor_main_build.js b/libs/js/vue-dest/form_editor/171.LEAF_FormEditor_main_build.js new file mode 100644 index 000000000..00dfc5414 --- /dev/null +++ b/libs/js/vue-dest/form_editor/171.LEAF_FormEditor_main_build.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[171],{171:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});const i={name:"restore-fields-view",data:function(){return{disabledFields:null}},inject:["APIroot","CSRFToken","setDefaultAjaxResponseMessage"],beforeMount:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list/disabled"),success:function(t){e.disabledFields=t.filter((function(e){return parseInt(e.indicatorID)>0}))},error:function(e){return console.log(e)},cache:!1})},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},methods:{restoreField:function(e){var t=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(e,"/disabled"),data:{CSRFToken,disabled:0},success:function(){t.disabledFields=t.disabledFields.filter((function(t){return parseInt(t.indicatorID)!==e})),alert("The field has been restored.")},error:function(e){return console.log(e)}})}},template:'
    \n

    List of disabled fields available for recovery

    \n
    Deleted fields and associated data will be not display in the Report Builder
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    indicatorIDFormField NameInput FormatStatusRestore
    {{ f.indicatorID }}{{ f.categoryName }}{{ f.name }}{{ f.format }}{{ f.disabled }}\n
    \n

    Loading ...

    \n
    \n
    '}}}]); \ No newline at end of file diff --git a/libs/js/vue-dest/form_editor/910.LEAF_FormEditor_main_build.js b/libs/js/vue-dest/form_editor/910.LEAF_FormEditor_main_build.js new file mode 100644 index 000000000..fb9c56693 --- /dev/null +++ b/libs/js/vue-dest/form_editor/910.LEAF_FormEditor_main_build.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[910],{910:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var o=n(166);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s={name:"category-item",props:{categoriesRecord:Object,availability:String},inject:["APIroot","CSRFToken","libsPath","categories","updateCategoriesProperty","stripAndDecodeHTML","allStapledFormCatIDs"],computed:{workflowID:function(){return parseInt(this.categoriesRecord.workflowID)},cardLibraryClasses:function(){return"formPreview formLibraryID_".concat(this.categoriesRecord.formLibraryID)},catID:function(){return this.categoriesRecord.categoryID},stapledForms:function(){var e=this,t=[];return this.categoriesRecord.stapledFormIDs.forEach((function(n){return t.push(function(e){for(var t=1;t0?"".concat(this.categoriesRecord.workflowDescription||"No Description"," (#").concat(this.categoriesRecord.workflowID,")"):"No Workflow"}},methods:{updateSort:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=parseInt(t.currentTarget.value);isNaN(o)||(o<-128&&(o=-128,t.currentTarget.value=-128),o>127&&(o=127,t.currentTarget.value=127),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formSort"),data:{sort:o,categoryID:n,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(n,"sort",o)},error:function(e){return console.log("sort post err",e)}}))}},template:'\n \n \n {{ categoryName }}\n \n \n {{ formDescription }}\n {{ workflowDescription }}\n \n
    \n 📑 Stapled\n
    \n \n \n
    \n \n  Need to Know enabled\n
    \n \n \n \n \n \n '};function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t\n \n \n\n \n\n \n\n \n\n \n \n
    File Attachment(s)\n

    Select File to attach:

    \n \n
    \n\n \n\n \n \n \n \n \n\n \n\n
'}},inject:["libsPath","newQuestion","editQuestion","openAdvancedOptionsDialog","openIfThenDialog","listTracker","allowedConditionChildFormats","showToolbars","toggleToolbars","makePreviewKey"],computed:{isHeaderLocation:function(){var e=parseInt(this.formNode.indicatorID),t=this.listTracker[e];return null===(null==t?void 0:t.parentID)||null===(null==t?void 0:t.newParentID)},sensitiveImg:function(){return this.sensitive?''):""},conditionalQuestion:function(){return!this.isHeaderLocation&&null!==this.formNode.conditions&&""!==this.formNode.conditions&"null"!==this.formNode.conditions},conditionsAllowed:function(){var e;return!this.isHeaderLocation&&this.allowedConditionChildFormats.includes(null===(e=this.formNode.format)||void 0===e?void 0:e.toLowerCase())},indicatorName:function(){var e=this.required?'* Required':"",t=this.sensitive?'* Sensitive':"",n=""!==this.formNode.name.trim()?this.formNode.name.trim():"[ blank ]";return"".concat(n).concat(e).concat(t,"  ").concat(this.sensitiveImg)},indicatorFormat:function(){var e;return''.concat(null===(e=this.formNode)||void 0===e?void 0:e.format," ").concat(this.sensitiveImg)},printResponseID:function(){return"xhrIndicator_".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},required:function(){return 1===parseInt(this.formNode.required)},sensitive:function(){return 1===parseInt(this.formNode.is_sensitive)}},template:'
\n\n \x3c!-- EDITING AREA FOR INDICATOR --\x3e\n
\n\n
\n \x3c!-- NAME --\x3e\n
\n \n
\n
\n \x3c!-- FORMAT PREVIEW --\x3e\n
\n \n
\n
\n \x3c!-- TOOLBAR --\x3e\n
\n\n
\n\n
\n
\n advanced options are present\n
\n \n \n
\n \n
\n
\n\n \x3c!-- NOTE: RECURSIVE SUBQUESTIONS --\x3e\n \n
'},FormIndexListing:{name:"FormIndexListing",data:function(){return{subMenuOpen:!1}},props:{depth:Number,formNode:Object,index:Number,parentID:Number},inject:["truncateText","clearListItem","addToListTracker","selectNewFormNode","selectedNodeIndicatorID","startDrag","onDragEnter","onDragLeave","onDrop","moveListing"],mounted:function(){if(this.addToListTracker(this.formNode,this.parentID,this.index),null!==this.selectedNodeIndicatorID&&this.selectedNodeIndicatorID===this.formNode.indicatorID){var e=document.getElementById("index_listing_".concat(this.selectedNodeIndicatorID));if(null!==e){var t=e.closest("li.section_heading");Array.from((null==t?void 0:t.querySelectorAll("li .sub-menu-chevron.closed"))||[]).forEach((function(e){return e.click()})),e.classList.add("index-selected")}}},beforeUnmount:function(){this.clearListItem(this.formNode.indicatorID)},methods:{indexHover:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null==t||null===(e=t.currentTarget)||void 0===e||e.classList.add("index-selected")},indexHoverOff:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null==t||null===(e=t.currentTarget)||void 0===e||e.classList.remove("index-selected")},toggleSubMenu:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};32===(null==t?void 0:t.keyCode)&&t.preventDefault(),this.subMenuOpen=!this.subMenuOpen,null===(e=t.currentTarget.closest("li"))||void 0===e||e.focus()}},computed:{headingNumber:function(){return 0===this.depth?this.index+1+".":""},hasConditions:function(){return 0!==this.depth&&null!==this.formNode.conditions&&""!==this.formNode.conditions&&"null"!==this.formNode.conditions},indexDisplay:function(){var e=this.formNode.description?XSSHelpers.stripAllTags(this.formNode.description):XSSHelpers.stripAllTags(this.formNode.name);return XSSHelpers.decodeHTMLEntities(this.truncateText(e))||"[ blank ]"},suffix:function(){return"".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},required:function(){return 1===parseInt(this.formNode.required)},isEmpty:function(){return!0===this.formNode.isEmpty}},template:'\n
  • \n
    \n \n {{headingNumber}} {{indexDisplay}}\n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n \x3c!-- NOTE: RECURSIVE SUBQUESTIONS. ul for each for drop zones --\x3e\n
      \n\n \n
    \n
  • '},EditPropertiesPanel:{data:function(){var e,t,n,o,i,r,a,s,l;return{categoryName:this.stripAndDecodeHTML(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryName)||"Untitled",categoryDescription:this.stripAndDecodeHTML(null===(t=this.focusedFormRecord)||void 0===t?void 0:t.categoryDescription)||"",workflowID:parseInt(null===(n=this.focusedFormRecord)||void 0===n?void 0:n.workflowID)||0,needToKnow:parseInt(null===(o=this.focusedFormRecord)||void 0===o?void 0:o.needToKnow)||0,visible:parseInt(null===(i=this.focusedFormRecord)||void 0===i?void 0:i.visible)||0,type:(null===(r=this.focusedFormRecord)||void 0===r?void 0:r.type)||"",formID:(null===(a=this.focusedFormRecord)||void 0===a?void 0:a.categoryID)||"",formParentID:(null===(s=this.focusedFormRecord)||void 0===s?void 0:s.parentID)||"",destructionAge:(null===(l=this.focusedFormRecord)||void 0===l?void 0:l.destructionAge)||null,lastUpdated:""}},inject:["APIroot","CSRFToken","workflowRecords","allStapledFormCatIDs","focusedFormRecord","focusedFormIsSensitive","updateCategoriesProperty","openEditCollaboratorsDialog","openFormHistoryDialog","showLastUpdate","truncateText","stripAndDecodeHTML"],computed:{workflowDescription:function(){var e=this,t="";if(0!==this.workflowID){var n=this.workflowRecords.find((function(t){return parseInt(t.workflowID)===e.workflowID}));t=(null==n?void 0:n.description)||""}return t},isSubForm:function(){return""!==this.focusedFormRecord.parentID},isStaple:function(){return this.allStapledFormCatIDs.includes(this.formID)},isNeedToKnow:function(){return 1===parseInt(this.focusedFormRecord.needToKnow)},formNameCharsRemaining:function(){return 50-this.categoryName.length},formDescrCharsRemaining:function(){return 255-this.categoryDescription.length}},methods:{updateName:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formName"),data:{name:this.categoryName,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryName",e.categoryName),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated))},error:function(e){return console.log("name post err",e)}})},updateDescription:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formDescription"),data:{description:this.categoryDescription,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryDescription",e.categoryDescription),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated))},error:function(e){return console.log("form description post err",e)}})},updateWorkflow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formWorkflow"),data:{workflowID:this.workflowID,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){!1===t?alert("The workflow could not be set because this form is stapled to another form"):(e.updateCategoriesProperty(e.formID,"workflowID",e.workflowID),e.updateCategoriesProperty(e.formID,"workflowDescription",e.workflowDescription),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated)))},error:function(e){return console.log("workflow post err",e)}})},updateAvailability:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formVisible"),data:{visible:this.visible,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"visible",e.visible),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated))},error:function(e){return console.log("visibility post err",e)}})},updateNeedToKnow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:this.needToKnow,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",e.needToKnow),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated))},error:function(e){return console.log("ntk post err",e)}})},updateType:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formType"),data:{type:this.type,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"type",e.type),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated))},error:function(e){return console.log("type post err",e)}})},updateDestructionAge:function(){var e=this;(null===this.destructionAge||this.destructionAge>=1&&this.destructionAge<=30)&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/destructionAge"),data:{destructionAge:this.destructionAge,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){t===e.destructionAge&&(e.updateCategoriesProperty(e.formID,"destructionAge",e.destructionAge),e.lastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_properties_last_update","last modified: ".concat(e.lastUpdated)))},error:function(e){return console.log("destruction age post err",e)}})}},template:'
    \n {{formID}}\n (internal for {{formParentID}})\n \n
    \n \n \n \n \n \n
    \n
    \n
    \n \n \n
    \n \n
    This is an Internal Form
    \n
    \n
    '},FormBrowser:{data:function(){return{test:"test"}},inject:["appIsLoadingCategoryList","showCertificationStatus","activeForms","inactiveForms","supplementalForms"],components:{CategoryItem:s},template:''}},inject:["APIroot","CSRFToken","libsPath","setDefaultAjaxResponseMessage","appIsLoadingCategoryList","appIsLoadingForm","categories","internalFormRecords","selectedNodeIndicatorID","selectedFormNode","getFormByCategoryID","showLastUpdate","openFormHistoryDialog","newQuestion","editQuestion","focusedFormRecord","focusedFormTree","openNewFormDialog","currentFormCollection","stripAndDecodeHTML","truncateText"],mounted:function(){},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},provide:function(){var e=this;return{listTracker:(0,o.Fl)((function(){return e.listTracker})),showToolbars:(0,o.Fl)((function(){return e.showToolbars})),clearListItem:this.clearListItem,addToListTracker:this.addToListTracker,allowedConditionChildFormats:this.allowedConditionChildFormats,startDrag:this.startDrag,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDrop:this.onDrop,moveListing:this.moveListing,toggleToolbars:this.toggleToolbars,makePreviewKey:this.makePreviewKey}},computed:{focusedFormID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},currentSectionNumber:function(){var e,t=parseInt(null===(e=this.selectedFormNode)||void 0===e?void 0:e.indicatorID),n=Array.from(document.querySelectorAll("#base_drop_area > li")),o=document.getElementById("index_listing_".concat(t)),i=n.indexOf(o);return-1===i?"":i+1},sortOrParentChanged:function(){return this.sortValuesToUpdate.length>0||this.parentIDsToUpdate.length>0},sortValuesToUpdate:function(){var e=[];for(var t in this.listTracker)this.listTracker[t].sort!==this.listTracker[t].listIndex-this.sortOffset&&e.push(c({indicatorID:parseInt(t)},this.listTracker[t]));return e},parentIDsToUpdate:function(){var e=[];for(var t in this.listTracker)""!==this.listTracker[t].newParentID&&this.listTracker[t].parentID!==this.listTracker[t].newParentID&&e.push(c({indicatorID:parseInt(t)},this.listTracker[t]));return e},indexHeaderText:function(){return""!==this.focusedFormRecord.parentID?"Internal Form":this.currentFormCollection.length>1?"Form Layout":"Primary Form"}},methods:{forceUpdate:function(){this.updateKey+=1},moveListing:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];32===(null==n?void 0:n.keyCode)&&n.preventDefault();var r,a,s=null==n||null===(e=n.currentTarget)||void 0===e?void 0:e.closest("ul"),l=document.getElementById("index_listing_".concat(o)),d=Array.from(document.querySelectorAll("#".concat(s.id," > li"))),c=d.filter((function(e){return e!==l})),p=this.listTracker[o];i?p.listIndex>0&&(c.splice(p.listIndex-1,0,l),d.forEach((function(e){return s.removeChild(e)})),c.forEach((function(e,n){var o=parseInt(e.id.replace("index_listing_",""));s.appendChild(e),t.listTracker[o].listIndex=n})),null==n||null===(r=n.currentTarget)||void 0===r||r.focus()):p.listIndex0){var n=[];this.sortValuesToUpdate.forEach((function(t){n.push({indicatorID:t.indicatorID,sort:t.listIndex-e.sortOffset})})),t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/sort/batch"),data:{sortData:n,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind sort post err",e)}}))}var o=[];this.parentIDsToUpdate.forEach((function(t){o.push($.ajax({type:"POST",url:"".concat(e.APIroot,"formEditor/").concat(t.indicatorID,"/parentID"),data:{parentID:t.newParentID,CSRFToken:e.CSRFToken},success:function(){},error:function(e){return console.log("ind parentID post err",e)}}))}));var i=t.concat(o);Promise.all(i).then((function(t){t.length>0&&e.getFormByCategoryID(e.focusedFormID,e.selectedNodeIndicatorID).then((function(){e.sortLastUpdated=(new Date).toLocaleString(),e.showLastUpdate("form_index_last_update","last modified: ".concat(e.sortLastUpdated)),e.forceUpdate()})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log("an error has occurred",e)}))},clearListItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.listTracker[e]&&delete this.listTracker[e]},addToListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=e.indicatorID,i={sort:e.sort,parentID:t,listIndex:n,newParentID:""};this.listTracker[o]=i},updateListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=c({},this.listTracker[e]);o.listIndex=n,o.newParentID=t,this.listTracker[e]=o},startDrag:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=e&&e.dataTransfer&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id))},onDrop:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed){t.preventDefault();var n=t.dataTransfer.getData("text"),o=t.currentTarget,i=parseInt(n.replace(this.dragLI_Prefix,"")),r="base_drop_area"===o.id?null:parseInt(o.id.replace(this.dragUL_Prefix,"")),a=Array.from(document.querySelectorAll("#".concat(o.id," > li")));if(0===a.length)try{o.append(document.getElementById(n)),this.updateListTracker(i,r,0)}catch(e){console.log(e)}else{var s=9999,l=null;a.forEach((function(e){var o=e.getBoundingClientRect().top-t.clientY;e.id!==n&&o>0&&o li"))).forEach((function(t,n){var o=parseInt(t.id.replace(e.dragLI_Prefix,""));e.updateListTracker(o,r,n)}))}catch(e){console.log(e)}}o.classList.contains("entered-drop-zone")&&t.target.classList.remove("entered-drop-zone")}},onDragLeave:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.remove("entered-drop-zone")},onDragEnter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed&&null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.add("entered-drop-zone")},toggleToolbars:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null==e||e.stopPropagation(),32===(null==e?void 0:e.keyCode)&&e.preventDefault(),e.currentTarget.classList.contains("indicator-name-preview"))if(this.showToolbars)t&&this.editQuestion(t);else{var n=e.currentTarget.id,o=e.currentTarget.getBoundingClientRect().top;this.showToolbars=!0,setTimeout((function(){var e=document.getElementById(n).getBoundingClientRect().top;window.scrollBy(0,e-o)}))}else this.showToolbars=!this.showToolbars},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,n=this.categories[e]||"",o=this.stripAndDecodeHTML((null==n?void 0:n.categoryName)||"")||"Untitled";return this.truncateText(o,t).trim()},layoutBtnIsDisabled:function(e){return e.categoryID===this.focusedFormRecord.categoryID&&null===this.selectedFormNode},makePreviewKey:function(e){var t;return"".concat(e.format).concat((null==e||null===(t=e.options)||void 0===t?void 0:t.join())||"","_").concat((null==e?void 0:e.default)||"")}},watch:{sortOrParentChanged:function(e,t){!0===e&&this.applySortAndParentID_Updates()}},template:'
    \n
    \n Loading... \n loading...\n
    \n\n \n
    '}}}]); \ No newline at end of file diff --git a/libs/js/vue-dest/form_editor/LEAF_FormEditor_main_build.js b/libs/js/vue-dest/form_editor/LEAF_FormEditor_main_build.js new file mode 100644 index 000000000..c2c351b8c --- /dev/null +++ b/libs/js/vue-dest/form_editor/LEAF_FormEditor_main_build.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,t,n={581:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(81),r=n.n(o),i=n(645),s=n.n(i)()(r());s.push([e.id,'body{min-width:-moz-fit-content;min-width:fit-content}[v-cloak]{display:none}#vue-formeditor-app{min-height:100vh}#vue-formeditor-app main{margin:0}#vue-formeditor-app section{margin:0rem 1rem 1rem 1rem}#vue-formeditor-app *{box-sizing:border-box;font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]),.leaf-vue-dialog button:not(.choices__button,[class*=trumbowyg]){display:flex;justify-content:center;align-items:center;cursor:pointer;font-weight:bolder;padding:2px .4em;border-radius:3px;white-space:nowrap;line-height:normal}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,.leaf-vue-dialog button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,.leaf-vue-dialog button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,.leaf-vue-dialog button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active{outline:2px solid #20a0f0}button.btn-general,button.btn-confirm{background-color:#fff;color:#005ea2;border:2px solid #005ea2}button.btn-general:not(.disabled):hover,button.btn-general:not(.disabled):focus,button.btn-general:not(.disabled):active,button.btn-confirm:not(.disabled):hover,button.btn-confirm:not(.disabled):focus,button.btn-confirm:not(.disabled):active{background-color:#005ea2;color:#fff;border:2px solid #000 !important}button.btn-general.disabled,button.btn-confirm.disabled{cursor:auto !important}button.btn-general.disabled:active,button.btn-confirm.disabled:active{border:2px solid #005ea2 !important}button.btn-confirm{color:#fff;background-color:#005ea2}ul{list-style-type:none;margin:0;padding:0}label{padding:0;display:flex;align-items:center;font-weight:bolder;white-space:nowrap;margin-bottom:2px}label.checkable{margin-bottom:0}a.router-link{display:flex;justify-content:center;align-items:center;text-decoration:none;color:inherit;border-radius:3px}td a.router-link{justify-content:flex-start}nav#form-editor-nav{width:100%}nav#form-editor-nav h2{display:flex;justify-content:center;align-items:center;margin:0;font-size:26px;color:#000}nav#form-editor-nav ul li{display:flex;justify-content:center;align-items:center;width:200px;min-width:fit-content;font-size:14px;font-weight:bolder;text-decoration:none}nav#form-editor-nav ul li button,nav#form-editor-nav ul li a{margin:0;padding:0;display:flex;justify-content:center;align-items:center;position:relative;background-color:inherit;text-decoration:inherit;color:inherit;width:100%;height:100%;border:2px solid rgba(0,0,0,0)}nav#form-editor-nav ul li span[role=img]{margin-left:.5rem}nav#form-editor-nav ul li span.header-arrow{margin-left:1rem}nav#form-editor-nav ul#form-editor-menu{display:flex;justify-content:center;align-items:center;justify-content:flex-start;color:#252f3e;background-color:#e8f2ff;border-bottom:1px solid #252f3e;position:relative;z-index:10;margin-bottom:1rem}nav#form-editor-nav ul#form-editor-menu>li{position:relative;height:32px}nav#form-editor-nav ul#form-editor-menu>li:not(:last-child)::after{content:"";position:absolute;right:0;display:block;height:50%;border-radius:2px;width:1px;background-color:#000}nav#form-editor-nav ul#form-editor-menu button:hover,nav#form-editor-nav ul#form-editor-menu button:focus,nav#form-editor-nav ul#form-editor-menu button:active,nav#form-editor-nav ul#form-editor-menu a:hover,nav#form-editor-nav ul#form-editor-menu a:focus,nav#form-editor-nav ul#form-editor-menu a:active{border:2px solid #2491ff;outline:none !important;background-color:#005ea2;color:#fff}nav#form-editor-nav ul#form-breadcrumb-menu{margin:1rem 1rem 0 1rem;display:flex;justify-content:flex-start;align-items:center;background-color:rgba(0,0,0,0);color:#000}nav#form-editor-nav ul#form-breadcrumb-menu li{width:fit-content;position:relative;margin-right:1rem}nav#form-editor-nav ul#form-breadcrumb-menu li button,nav#form-editor-nav ul#form-breadcrumb-menu li a{padding:.25rem;border-radius:3px;text-decoration:underline;outline:none !important}nav#form-editor-nav ul#form-breadcrumb-menu li button:hover,nav#form-editor-nav ul#form-breadcrumb-menu li button:focus,nav#form-editor-nav ul#form-breadcrumb-menu li button:active,nav#form-editor-nav ul#form-breadcrumb-menu li a:hover,nav#form-editor-nav ul#form-breadcrumb-menu li a:focus,nav#form-editor-nav ul#form-breadcrumb-menu li a:active{border:2px solid #2491ff !important}nav#form-editor-nav ul#form-breadcrumb-menu li button:disabled,nav#form-editor-nav ul#form-breadcrumb-menu li a:disabled{border:2px solid rgba(0,0,0,0) !important;text-decoration:none;cursor:default}#leaf-vue-dialog-background{display:flex;justify-content:center;align-items:center;width:100vw;height:100%;z-index:999;background-color:rgba(0,0,20,.5);position:absolute;left:0;top:0}.leaf-vue-dialog{position:absolute;margin:auto;width:auto;min-width:450px;resize:horizontal;z-index:9999;max-width:900px;height:auto;min-height:0;border-radius:4px;background-color:#fff;box-shadow:0 0 5px 1px rgba(0,0,25,.25);overflow:visible}.leaf-vue-dialog *{box-sizing:border-box;font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}.leaf-vue-dialog p{margin:0;padding:0;line-height:1.5}.leaf-vue-dialog>div{padding:.75rem 1rem}.leaf-vue-dialog li{display:flex;align-items:center}.leaf-vue-dialog .leaf-vue-dialog-title{color:#252f3e;border-top:3px solid #fff;border-left:3px solid #fff;border-right:3px solid #cadff0;border-bottom:2px solid #cadff0;border-radius:3px;background-color:#e8f2ff;cursor:move}.leaf-vue-dialog .leaf-vue-dialog-title h2{color:inherit;margin:0}.leaf-vue-dialog #leaf-vue-dialog-close{display:flex;justify-content:center;align-items:center;position:absolute;top:8px;right:8px;width:25px;height:25px;cursor:pointer;font-weight:bold;font-size:1.2rem}.leaf-vue-dialog #leaf-vue-dialog-cancel-save{display:flex;justify-content:space-between;margin-top:1em}.leaf-vue-dialog #leaf-vue-dialog-cancel-save #button_save{margin-right:auto}.leaf-vue-dialog #leaf-vue-dialog-cancel-save #button_cancelchange{margin-left:auto}#form_browser_tables h3{color:#000}#form_browser_tables table{width:100%;background-color:#fff;border-collapse:collapse;border:1px solid #252f3e;border-radius:2px;margin-bottom:2rem}#form_browser_tables table td,#form_browser_tables table th{padding:.25rem .5rem;border:1px solid #252f3e}#form_browser_tables table td a,#form_browser_tables table th a{padding:.25rem .5rem;display:flex;height:100%;align-items:center;color:inherit;border:2px solid rgba(0,0,0,0)}#form_browser_tables table td a:hover,#form_browser_tables table td a:focus,#form_browser_tables table td a:active,#form_browser_tables table th a:hover,#form_browser_tables table th a:focus,#form_browser_tables table th a:active{background-color:#e8f2ff;border:2px solid #2491ff !important}#form_browser_tables table td.form-name{padding:0}#form_browser_tables table th{background-color:#252f3e;color:#fff;border:1px solid #000}#form_browser_tables table tr:not(.header-row){color:#000;border-bottom:1px solid #252f3e}#form_browser_tables table tr.sub-row{color:#333;background-color:#f6f6ff;font-size:85%}#form_browser_tables table tr.sub-row .form-name{padding-left:.75rem}#form_browser_tables table .need-to-know-enabled{display:flex;justify-content:center;align-items:center;color:#c00;font-size:12px}div[class$=SelectorBorder]{display:flex}div[class$=SelectorBorder] div{display:flex;justify-content:center;align-items:center}div[class$=SelectorBorder] input{width:100%;border:1px solid #bbb}table[class$=SelectorTable] th{color:#252f3e}#indicator-editing-dialog-content>div{margin-bottom:2rem}#indicator-editing-dialog-content button{font-size:80%}#indicator-editing-dialog-content input,#indicator-editing-dialog-content select{min-height:24px}#indicator-editing-dialog-content #name{width:100%;margin-bottom:.4rem;padding:.2rem .4rem;display:block}#indicator-editing-dialog-content #description,#indicator-editing-dialog-content #indicatorType,#indicator-editing-dialog-content #defaultValue,#indicator-editing-dialog-content #indicatorMultiAnswer{width:100%;max-width:100%}#indicator-editing-dialog-content #formatDetails{margin:.5rem 0}#indicator-editing-dialog-content #indicator-editing-attributes{position:relative;margin-top:1.5rem;padding:0;min-width:-moz-fit-content;min-width:fit-content}#indicator-editing-dialog-content #indicator-editing-attributes .attribute-row{display:flex;align-items:stretch;justify-content:flex-start;margin:1rem 0}#indicator-editing-dialog-content #indicator-editing-attributes #archived-warning,#indicator-editing-dialog-content #indicator-editing-attributes #deletion-warning{position:absolute;right:0;top:0;color:#a00;font-size:90%}#indicator-editing-dialog-content #indicator-editing-attributes #indicatorPrivileges{line-height:1.4}#indicator-editing-dialog-content div.cell{width:200px;min-width:200px;text-align:center;border:1px gray solid;padding:10px;vertical-align:top;display:table-cell}#indicator-editing-dialog-content div.cell span.columnNumber{display:flex;justify-content:center;align-items:center;margin-bottom:1rem;font-weight:bolder}#indicator-editing-dialog-content div.cell input,#indicator-editing-dialog-content div.cell select{width:100%;margin-bottom:1rem}#edit-properties-panel{padding:0;position:relative;display:flex;margin-bottom:1.25rem;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);overflow:hidden}#edit-properties-panel>div{min-width:400px;padding:.75rem;display:flex;flex-direction:column;width:50%}#edit-properties-panel input,#edit-properties-panel select{border:1px inset #dde;border-radius:2px;line-height:normal;min-height:24px}#edit-properties-panel input{padding-left:.4em}#edit-properties-panel #edit-properties-description{display:flex;flex-direction:column;height:100%;align-self:center;border-right:1px solid #252f3e;min-width:400px}#edit-properties-panel #edit-properties-description #categoryName{width:100%}#edit-properties-panel #edit-properties-description textarea{width:100%;height:100%;padding:.2rem .5rem;border:1px inset #dde;border-radius:2px;resize:none}#edit-properties-panel .form-id{position:absolute;right:.75rem;bottom:1px;font-size:.75rem}#edit-properties-panel .panel-properties{flex-wrap:wrap;gap:.5rem 1rem;display:flex;margin-top:1rem;height:100%}#edit-properties-panel .panel-properties input,#edit-properties-panel .panel-properties select{margin-left:3px}#edit-properties-panel .panel-properties input[type=number]{width:50px}#form_properties_last_update,#form_index_last_update{opacity:0;color:#005ea2;font-size:90%;background-color:rgba(0,0,0,0);border:0}#history-slice td{font-size:14px !important}#history-page-buttons button#next,#history-slice button#prev{width:135px}div#form_content_view{margin:0 auto;display:flex;flex-direction:column;width:100%}#form_index_and_editing{display:flex}#form_index_display{position:relative;margin:0;padding:.75rem;width:420px;flex:0 0 420px;align-self:flex-start;margin-right:1.25rem;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4)}#form_index_display ul#base_drop_area{background-color:#fff;margin-top:.5rem;padding:0 0 6px 0;border:3px solid #f2f2f6;border-radius:3px}#form_index_display ul#base_drop_area.entered-drop-zone,#form_index_display ul#base_drop_area ul.entered-drop-zone{background-color:#e8ebf0}#form_index_display ul#base_drop_area li.section_heading{font-weight:bolder;color:#005ea2}#form_index_display ul#base_drop_area li.subindicator_heading{font-weight:normal;color:#000}#form_index_display ul#base_drop_area li.section_heading>div,#form_index_display ul#base_drop_area li.subindicator_heading>div{padding-left:.25rem}#form_index_display ul#base_drop_area ul.form-index-listing-ul{margin:0;padding:0 0 4px 0;padding-left:1em;display:flex;flex-direction:column;min-height:6px}#form_index_display ul#base_drop_area li{position:relative;cursor:grab;margin:.2em 0;border-radius:2px;outline:none !important}#form_index_display ul#base_drop_area li>div{display:flex;align-items:center;width:100%;height:40px;border-bottom:1px solid #d0d0d4;padding-bottom:.9em}#form_index_display ul#base_drop_area li>div .icon_move_container{display:flex;justify-content:center;align-items:center;flex-direction:column;margin-left:auto;margin-right:.2em}#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move{display:flex;justify-content:center;align-items:center;cursor:pointer;width:0;height:0;background-color:rgba(0,0,0,0);border-radius:2px;border:7px solid rgba(0,0,0,0);margin-left:auto}#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.up{margin-bottom:5px;border-bottom:12px solid #162e51}#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.up:hover,#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.up:focus,#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.up:active{outline:none !important;border-bottom:12px solid #00bde3}#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.down{border-top:12px solid #162e51}#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.down:hover,#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.down:focus,#form_index_display ul#base_drop_area li>div .icon_move_container .icon_move.down:active{outline:none !important;border-top:12px solid #00bde3}#form_index_display ul#base_drop_area li>div .sub-menu-chevron{padding:2px;font-size:1.2em;align-self:center;font-weight:bold;border-radius:2px;cursor:pointer}#form_index_display ul#base_drop_area li>div .sub-menu-chevron:hover,#form_index_display ul#base_drop_area li>div .sub-menu-chevron:focus,#form_index_display ul#base_drop_area li>div .sub-menu-chevron:active{color:#00bde3}#form_index_display ul#base_drop_area li:first-child{margin-top:.75rem}#form_index_display ul#base_drop_area li:last-child{margin-bottom:0}#form_index_display ul#base_drop_area li.index-selected::before,#form_index_display ul#base_drop_area li:focus::before{position:absolute;top:-0.2em;left:-0.5em;content:"";width:3px;height:calc(100% - .6em);border-radius:60%/3px;background-color:#005ea2}#form_index_display div[id^=internalFormRecords_] button,#form_index_display div[id^=layoutFormRecords_] button{padding:.25rem;display:flex;justify-content:flex-start;width:100%;height:100%;background-color:inherit;border:2px solid rgba(0,0,0,0);overflow:hidden;max-height:50px}#form_index_display div[id^=internalFormRecords_] button:not(:disabled):not(#addInternalUse),#form_index_display div[id^=layoutFormRecords_] button:not(:disabled):not(#addInternalUse){color:#252f3e}#form_index_display div[id^=internalFormRecords_] button:not(:disabled):hover,#form_index_display div[id^=internalFormRecords_] button:not(:disabled):focus,#form_index_display div[id^=internalFormRecords_] button:not(:disabled):active,#form_index_display div[id^=layoutFormRecords_] button:not(:disabled):hover,#form_index_display div[id^=layoutFormRecords_] button:not(:disabled):focus,#form_index_display div[id^=layoutFormRecords_] button:not(:disabled):active{background-color:#e8f2ff;border:2px solid #2491ff !important;outline:none}#form_index_display div[id^=internalFormRecords_] button:disabled:hover,#form_index_display div[id^=internalFormRecords_] button:disabled:focus,#form_index_display div[id^=internalFormRecords_] button:disabled:active,#form_index_display div[id^=layoutFormRecords_] button:disabled:hover,#form_index_display div[id^=layoutFormRecords_] button:disabled:focus,#form_index_display div[id^=layoutFormRecords_] button:disabled:active{cursor:default;background-color:inherit;outline:none}#form_index_display div[id^=internalFormRecords_] button.layout-listitem,#form_index_display div[id^=layoutFormRecords_] button.layout-listitem{min-height:50px;border-radius:0;padding:.5rem}#form_index_display div[id^=internalFormRecords_] button.layout-listitem:disabled,#form_index_display div[id^=layoutFormRecords_] button.layout-listitem:disabled{color:#005ea2;border:2px solid #2491ff !important}#form_index_display div[id^=layoutFormRecords_]>ul>li{margin-bottom:.5rem;background-color:#e8f2ff;min-height:50px}#form_index_display div[id^=internalFormRecords_] button span.internal{text-decoration:underline;font-weight:normal;color:#005ea2}#form_entry_and_preview{display:flex;flex-direction:column;align-self:flex-start;width:100%;min-width:420px;background-color:#fff;padding:.75rem;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);overflow:visible}#form_entry_and_preview .form-section-header{align-items:center;justify-content:space-between;margin-bottom:.75rem}#form_entry_and_preview .form-section-header #indicator_toolbar_toggle{width:160px}#form_entry_and_preview div.printformblock{page-break-inside:avoid}#form_entry_and_preview div.printResponse{padding:0;min-height:50px;float:none;border-radius:4px;border-left:6px solid #f2f2f6}#form_entry_and_preview div.printResponse:not(.form-header){margin-left:.5rem}#form_entry_and_preview .form_editing_area{padding:2px 2px .5rem 2px;background-color:#fff}#form_entry_and_preview .form_editing_area button{padding:2px .4rem;border:1px solid rgba(0,0,0,0)}#form_entry_and_preview .form_editing_area button:hover,#form_entry_and_preview .form_editing_area button:focus,#form_entry_and_preview .form_editing_area button:active{border:1px solid #2491ff !important}#form_entry_and_preview .form_editing_area button.icon{padding:0;background-color:rgba(0,0,0,0);border-radius:2px;align-self:flex-start}#form_entry_and_preview .form_editing_area button.icon img{display:block}#form_entry_and_preview .form_editing_area button.add-subquestion{width:-moz-fit-content;width:fit-content;background-color:#e8f2ff;color:#1b1b1b;font-weight:normal;border:1px solid #88a;border-radius:2px}#form_entry_and_preview .form_editing_area button.add-subquestion:hover,#form_entry_and_preview .form_editing_area button.add-subquestion:focus,#form_entry_and_preview .form_editing_area button.add-subquestion:active{color:#fff;background-color:#005ea2}#form_entry_and_preview .form_editing_area div[class*=SelectorBorder]{background-color:rgba(0,0,0,0)}#form_entry_and_preview .form_editing_area tr[class*=Selector]:hover{background-color:#e1f3f8}#form_entry_and_preview .form_editing_area .indicator-name-preview{padding:2px;width:100%}#form_entry_and_preview .form_editing_area .indicator-name-preview>p{display:inline}#form_entry_and_preview .form_editing_area .indicator-name-preview .input-required-sensitive{color:#a00;margin-left:.4em}#form_entry_and_preview .form_editing_area.conditional{background-color:#eaeaf4}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]{margin-left:.25rem;padding:.25rem;border-radius:2px;display:flex;flex-direction:column;align-items:flex-end;align-self:flex-start;font-size:90%;color:#000;gap:4px}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]>div{display:flex;align-items:center}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_] span.sensitive-icon{display:flex;align-items:center;margin-left:.4rem}#form_entry_and_preview .form_editing_area.form-header{background-color:#feffd1;font-weight:bolder}#form_entry_and_preview .form_editing_area.form-header .indicator-name-preview,#form_entry_and_preview .form_editing_area.form-header div[id^=form_editing_toolbar_] button{font-size:110%}#form_entry_and_preview .form_editing_area .form_data_entry_preview{padding:.5rem .25rem 0 .75rem}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview{position:relative;margin-top:.2em}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview .text_input_preview{display:inline-block;width:50%;font-size:1.3em;font-family:monospace;background-color:#fff;border:1px solid gray;padding:.25em}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview .textarea_input_preview{width:100%;padding:.5em;font-size:1.3em;font-family:monospace}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview div.tableinput{overflow-x:auto;max-width:900px}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview div.tableinput table{margin:0}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview div.tableinput table input{width:100%}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview div.tableinput table img{max-width:none}#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview .employeeSelectorInput,#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview .groupSelectorInput,#form_entry_and_preview .form_editing_area .form_data_entry_preview .format-preview .positionSelectorInput{margin-bottom:.5em}.checkable.leaf_check{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:600px;margin-bottom:.2em}input[class*=icheck][class*=leaf_check],input[class*=ischecked][class*=leaf_check]{opacity:0;cursor:pointer;width:18px;flex:0 0 18px;height:18px;margin:2px}span.leaf_check{position:absolute;top:50%;transform:translate(0, -50%);left:0;width:18px;height:18px;background-color:#fff;border:1px solid #979695;border-radius:2px}span.leaf_check:hover,span.leaf_check:focus,span.leaf_check:active,input[class*=ischecked][class*=leaf_check]:focus~span.leaf_check,input[class*=icheck][class*=leaf_check]:focus~span.leaf_check{border:2px solid #47e;background-color:rgba(0,0,0,0)}input[type=radio][class*=icheck][class*=leaf_check]~span.leaf_check{border-radius:50%}span.leaf_check::after{content:"";box-sizing:content-box;position:absolute;top:10%;left:30%;width:25%;height:50%;background-color:rgba(0,0,0,0);border:1px solid #fff;border-width:0px 3px 3px 0px;border-radius:2px;transform:rotate(40deg);display:none}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check{background-color:#47e;border:1px solid #47e;opacity:1}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check::after,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check::after{display:block}.choices__inner div.choices__item.choices__item--selectable,.choices__inner div.choices__item.is-highlighted{background-color:#f6faff;background-image:linear-gradient(0, #eee 50%, #fff 53%);border:1px solid #aaa;border-radius:4px;color:#000}button.choices__button{filter:brightness(25%)}button.choices__button:hover,button.choices__button:focus,button.choices__button:active{filter:brightness(0);transform:scale(1.05);border-left:1px solid #000 !important}.choices__list{color:#000}.choices__list.choices__list--dropdown.is-active .is-highlighted{background-color:#e8f2ff;box-shadow:0px 0px 1px 1px rgba(0,165,187,.3764705882) inset}.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.75}.choices input{float:none}.choices input:hover,.choices input:focus,.choices input:active{outline:none}@media only screen and (max-width: 550px){.leaf-vue-dialog{min-width:350px}#vue-formeditor-app{min-width:350px}#vue-formeditor-app>div{flex-direction:column}#vue-formeditor-app section{margin:0}#vue-formeditor-app nav#form-editor-nav{width:100%}#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu{flex-direction:column;height:fit-content}#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li{width:100%;height:fit-content;flex-direction:column}#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li::after{content:"";background-color:rgba(0,0,0,0)}#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li button,#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li a{height:36px;padding:0;border-radius:0;justify-content:center !important}#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li button span,#vue-formeditor-app nav#form-editor-nav ul#form-editor-menu li a span{margin-left:10px}#vue-formeditor-app nav#form-editor-nav ul#form-breadcrumb-menu{margin:1rem .25rem 0;flex-direction:column;align-items:flex-start;height:auto}#vue-formeditor-app #secure_forms_info{display:flex;flex-wrap:wrap;justify-content:space-between}#vue-formeditor-app div#form_content_view{margin:0}#vue-formeditor-app #edit-properties-panel{flex-direction:column}#vue-formeditor-app #edit-properties-panel>div{width:100%}#vue-formeditor-app #edit-properties-panel #edit-properties-description{border-right:0;border-bottom:1px solid #252f3e}#vue-formeditor-app #form_index_and_editing{flex-direction:column}#vue-formeditor-app #form_index_and_editing #form_index_display{width:100%;margin:0;margin-bottom:1rem;flex:0 0 100%}#vue-formeditor-app #form_index_and_editing .form_editing_area.form-header .indicator-name-preview,#vue-formeditor-app #form_index_and_editing .form_editing_area.form-header div[id^=form_editing_toolbar_]{font-size:100%}}',""]);const a=s},864:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(81),r=n.n(o),i=n(645),s=n.n(i)()(r());s.push([e.id,"#condition_editor_center_panel{min-width:700px;max-width:900px;margin:auto;background-color:#fff}#condition_editor_center_panel .hidden{visibility:hidden}#condition_editor_center_panel #condition_editor_inputs>div{padding:1rem 0;border-bottom:3px solid #e0f4fa}#condition_editor_center_panel #condition_editor_actions>div{padding-top:1rem}#condition_editor_center_panel div.if-then-setup{display:flex;justify-content:space-between;align-items:center}#condition_editor_center_panel div.if-then-setup>div{display:inline-block;width:30%}#condition_editor_center_panel select,#condition_editor_center_panel input:not(.choices__input){font-size:85%;padding:.15em;text-overflow:ellipsis;width:100%;border:1px inset gray}#condition_editor_center_panel select:not(:last-child),#condition_editor_center_panel input:not(.choices__input):not(:last-child){margin-bottom:1em}#condition_editor_center_panel ul#savedConditionsList{padding-bottom:.5em}#condition_editor_center_panel li.savedConditionsCard{display:flex;align-items:center;margin-bottom:.4em}#condition_editor_center_panel button.btnNewCondition{display:flex;align-items:center;margin:.3em 0;width:-moz-fit-content;width:fit-content;color:#fff;background-color:#005ea2;padding:.4em .92em;box-shadow:1px 1px 6px rgba(0,0,25,.5);border:1px solid #005ea2;border-radius:3px;margin-right:1em;transition:box-shadow .1s ease}#condition_editor_center_panel button.btnNewCondition:hover,#condition_editor_center_panel button.btnNewCondition:focus,#condition_editor_center_panel button.btnNewCondition:active{color:#fff;background-color:#162e51;border:1px solid #162e51 !important;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_center_panel button.btnSavedConditions{justify-content:flex-start;font-weight:normal;background-color:#fff;padding:.4em;border:1px outset #005ea2;box-shadow:1px 1px 6px rgba(0,0,25,.5);border-radius:3px;margin-right:1em;max-width:825px;overflow:hidden;transition:box-shadow .1s ease}#condition_editor_center_panel button.btnSavedConditions.isOrphan{background-color:#d8d8d8;color:#000;border:1px solid #000}#condition_editor_center_panel button.btnSavedConditions:hover:not(.isOrphan),#condition_editor_center_panel button.btnSavedConditions:focus:not(.isOrphan),#condition_editor_center_panel button.btnSavedConditions:active:not(.isOrphan){color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_center_panel .changesDetected{color:#c80000}#condition_editor_center_panel .selectedConditionEdit .changesDetected,#condition_editor_center_panel button.btnSavedConditions:hover .changesDetected,#condition_editor_center_panel button.btnSavedConditions:focus .changesDetected,#condition_editor_center_panel button.btnSavedConditions:active .changesDetected{color:#fff}#condition_editor_center_panel button.selectedConditionEdit{color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_center_panel li button{padding:.3em;width:100%;cursor:pointer}#condition_editor_center_panel button.btn-condition-select{margin:0;padding:.4em;border:0;text-align:left;background-color:#fff;color:#162e51;border-left:3px solid rgba(0,0,0,0);border-bottom:1px solid #cbd5da}#condition_editor_center_panel button.btn-condition-select:hover,#condition_editor_center_panel button.btn-condition-select:active,#condition_editor_center_panel button.btn-condition-select:focus{border-left:3px solid #005ea2 !important;border-bottom:1px solid #acb5b9 !important;background-color:#e0f4fa}#condition_editor_center_panel #btn_add_condition,#condition_editor_center_panel #btn_form_editor,#condition_editor_center_panel #btn_cancel,#condition_editor_center_panel .btn_remove_condition{border-radius:3px;font-weight:bolder}#condition_editor_center_panel #btn_add_condition{background-color:#10a020;border:1px solid #10a020;color:#fff}#condition_editor_center_panel #btn_cancel{background-color:#fff;color:#162e51;border:1px solid #005ea2}#condition_editor_center_panel #btn_cancel:hover,#condition_editor_center_panel #btn_cancel:active,#condition_editor_center_panel #btn_cancel:focus{border:1px solid #000 !important;background-color:#005ea2;color:#fff}#condition_editor_center_panel #btn_add_condition:hover,#condition_editor_center_panel #btn_add_condition:active,#condition_editor_center_panel #btn_add_condition:focus{border:1px solid #000 !important;background-color:#005f20}#condition_editor_center_panel .btn_remove_condition{background-color:#922;border:1px solid #922;color:#fff}#condition_editor_center_panel .btn_remove_condition:hover,#condition_editor_center_panel .btn_remove_condition:active,#condition_editor_center_panel .btn_remove_condition:focus{border:1px solid #000 !important;background-color:#600}#condition_editor_center_panel .form-name{color:#162e51}#condition_editor_center_panel .input-info{padding:.4em 0;font-weight:bolder;color:#005ea2}#condition_editor_center_panel #remove-condition-modal{position:absolute;width:400px;height:250px;background-color:#fff;box-shadow:1px 1px 6px 2px rgba(0,0,25,.5)}@media only screen and (max-width: 768px){#condition_editor_center_panel{width:100%;min-width:400px;border:0;padding-right:1em}}",""]);const a=s},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(o)for(var a=0;a0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},81:e=>{e.exports=function(e){return e[1]}},379:e=>{var t=[];function n(e){for(var n=-1,o=0;o{var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},166:(e,t,n)=>{n.d(t,{Fl:()=>es,ri:()=>Va,aZ:()=>xo,h:()=>us,f3:()=>to,Y3:()=>yn,JJ:()=>eo,qj:()=>kt,iH:()=>qt,XI:()=>Ut,SU:()=>Jt,YP:()=>so});var o={};function r(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.r(o),n.d(o,{BaseTransition:()=>ho,Comment:()=>ii,EffectScope:()=>pe,Fragment:()=>oi,KeepAlive:()=>Do,ReactiveEffect:()=>ke,Static:()=>si,Suspense:()=>Jn,Teleport:()=>ti,Text:()=>ri,Transition:()=>zs,TransitionGroup:()=>ca,VueElement:()=>Ms,assertNumber:()=>sn,callWithAsyncErrorHandling:()=>ln,callWithErrorHandling:()=>an,camelize:()=>Z,capitalize:()=>ne,cloneVNode:()=>Di,compatUtils:()=>_s,computed:()=>es,createApp:()=>Va,createBlock:()=>gi,createCommentVNode:()=>Ei,createElementBlock:()=>mi,createElementVNode:()=>Ii,createHydrationRenderer:()=>Gr,createPropsRestProxy:()=>cs,createRenderer:()=>zr,createSSRApp:()=>Ha,createSlots:()=>or,createStaticVNode:()=>Fi,createTextVNode:()=>ki,createVNode:()=>Si,customRef:()=>Xt,defineAsyncComponent:()=>Io,defineComponent:()=>xo,defineCustomElement:()=>As,defineEmits:()=>ns,defineExpose:()=>os,defineProps:()=>ts,defineSSRCustomElement:()=>Ls,devtools:()=>Fn,effect:()=>Ee,effectScope:()=>fe,getCurrentInstance:()=>$i,getCurrentScope:()=>me,getTransitionRawChildren:()=>_o,guardReactiveProps:()=>Ci,h:()=>us,handleError:()=>cn,hydrate:()=>Ba,initCustomFormatter:()=>hs,initDirectivesForSSR:()=>za,inject:()=>to,isMemoSame:()=>gs,isProxy:()=>At,isReactive:()=>Ot,isReadonly:()=>Rt,isRef:()=>Ht,isRuntimeOnly:()=>Ki,isShallow:()=>Nt,isVNode:()=>vi,markRaw:()=>jt,mergeDefaults:()=>ls,mergeProps:()=>Ri,nextTick:()=>yn,normalizeClass:()=>p,normalizeProps:()=>f,normalizeStyle:()=>a,onActivated:()=>Fo,onBeforeMount:()=>Lo,onBeforeUnmount:()=>Bo,onBeforeUpdate:()=>Mo,onDeactivated:()=>Eo,onErrorCaptured:()=>zo,onMounted:()=>jo,onRenderTracked:()=>Uo,onRenderTriggered:()=>qo,onScopeDispose:()=>ge,onServerPrefetch:()=>Ho,onUnmounted:()=>Vo,onUpdated:()=>$o,openBlock:()=>ci,popScopeId:()=>$n,provide:()=>eo,proxyRefs:()=>Yt,pushScopeId:()=>Mn,queuePostFlushCb:()=>wn,reactive:()=>kt,readonly:()=>Et,ref:()=>qt,registerRuntimeCompiler:()=>Ji,render:()=>$a,renderList:()=>nr,renderSlot:()=>rr,resolveComponent:()=>Yo,resolveDirective:()=>Zo,resolveDynamicComponent:()=>Xo,resolveFilter:()=>ys,resolveTransitionHooks:()=>go,setBlockTracking:()=>fi,setDevtoolsHook:()=>Pn,setTransitionHooks:()=>yo,shallowReactive:()=>Ft,shallowReadonly:()=>Tt,shallowRef:()=>Ut,ssrContextKey:()=>ps,ssrUtils:()=>bs,stop:()=>Te,toDisplayString:()=>x,toHandlerKey:()=>oe,toHandlers:()=>sr,toRaw:()=>Lt,toRef:()=>tn,toRefs:()=>Zt,transformVNodeArgs:()=>yi,triggerRef:()=>Wt,unref:()=>Jt,useAttrs:()=>ss,useCssModule:()=>$s,useCssVars:()=>Bs,useSSRContext:()=>fs,useSlots:()=>is,useTransitionState:()=>po,vModelCheckbox:()=>va,vModelDynamic:()=>Sa,vModelRadio:()=>ya,vModelSelect:()=>_a,vModelText:()=>ga,vShow:()=>Oa,version:()=>vs,warn:()=>rn,watch:()=>so,watchEffect:()=>no,watchPostEffect:()=>oo,watchSyncEffect:()=>ro,withAsyncContext:()=>ds,withCtx:()=>Vn,withDefaults:()=>rs,withDirectives:()=>Go,withKeys:()=>Pa,withMemo:()=>ms,withModifiers:()=>Ea,withScopeId:()=>Bn});const i={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},s=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");function a(e){if(N(e)){const t={};for(let n=0;n{if(e){const n=e.split(c);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function p(e){let t="";if(B(e))t=e;else if(N(e))for(let n=0;ny(e,t)))}const x=e=>B(e)?e:null==e?"":N(e)||H(e)&&(e.toString===U||!$(e.toString))?JSON.stringify(e,w,2):String(e),w=(e,t)=>t&&t.__v_isRef?w(e,t.value):A(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:L(t)?{[`Set(${t.size})`]:[...t.values()]}:!H(t)||N(t)||W(t)?t:String(t),I={},S=[],C=()=>{},D=()=>!1,k=/^on[^a-z]/,F=e=>k.test(e),E=e=>e.startsWith("onUpdate:"),T=Object.assign,P=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},O=Object.prototype.hasOwnProperty,R=(e,t)=>O.call(e,t),N=Array.isArray,A=e=>"[object Map]"===z(e),L=e=>"[object Set]"===z(e),j=e=>"[object Date]"===z(e),M=e=>"[object RegExp]"===z(e),$=e=>"function"==typeof e,B=e=>"string"==typeof e,V=e=>"symbol"==typeof e,H=e=>null!==e&&"object"==typeof e,q=e=>H(e)&&$(e.then)&&$(e.catch),U=Object.prototype.toString,z=e=>U.call(e),G=e=>z(e).slice(8,-1),W=e=>"[object Object]"===z(e),J=e=>B(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,K=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Y=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Q=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},X=/-(\w)/g,Z=Q((e=>e.replace(X,((e,t)=>t?t.toUpperCase():"")))),ee=/\B([A-Z])/g,te=Q((e=>e.replace(ee,"-$1").toLowerCase())),ne=Q((e=>e.charAt(0).toUpperCase()+e.slice(1))),oe=Q((e=>e?`on${ne(e)}`:"")),re=(e,t)=>!Object.is(e,t),ie=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ae=e=>{const t=parseFloat(e);return isNaN(t)?e:t},le=e=>{const t=B(e)?Number(e):NaN;return isNaN(t)?e:t};let ce;const de=()=>ce||(ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});let ue;class pe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ue,!e&&ue&&(this.index=(ue.scopes||(ue.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ue;try{return ue=this,e()}finally{ue=t}}}on(){ue=this}off(){ue=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},be=e=>(e.w&we)>0,ye=e=>(e.n&we)>0,_e=new WeakMap;let xe=0,we=1;const Ie=30;let Se;const Ce=Symbol(""),De=Symbol("");class ke{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,he(this,n)}run(){if(!this.active)return this.fn();let e=Se,t=Pe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Se,Se=this,Pe=!0,we=1<<++xe,xe<=Ie?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===n||n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":N(e)?J(n)&&a.push(s.get("length")):(a.push(s.get(Ce)),A(e)&&a.push(s.get(De)));break;case"delete":N(e)||(a.push(s.get(Ce)),A(e)&&a.push(s.get(De)));break;case"set":A(e)&&a.push(s.get(Ce))}if(1===a.length)a[0]&&Me(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);Me(ve(e))}}function Me(e,t){const n=N(e)?e:[...e];for(const e of n)e.computed&&$e(e);for(const e of n)e.computed||$e(e)}function $e(e,t){(e!==Se||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Be=r("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(V)),He=Ke(),qe=Ke(!1,!0),Ue=Ke(!0),ze=Ke(!0,!0),Ge=We();function We(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Lt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Re();const n=Lt(this)[t].apply(this,e);return Ne(),n}})),e}function Je(e){const t=Lt(this);return Ae(t,0,e),t.hasOwnProperty(e)}function Ke(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?Dt:Ct:t?St:It).get(n))return n;const i=N(n);if(!e){if(i&&R(Ge,o))return Reflect.get(Ge,o,r);if("hasOwnProperty"===o)return Je}const s=Reflect.get(n,o,r);return(V(o)?Ve.has(o):Be(o))?s:(e||Ae(n,0,o),t?s:Ht(s)?i&&J(o)?s:s.value:H(s)?e?Et(s):kt(s):s)}}function Ye(e=!1){return function(t,n,o,r){let i=t[n];if(Rt(i)&&Ht(i)&&!Ht(o))return!1;if(!e&&(Nt(o)||Rt(o)||(i=Lt(i),o=Lt(o)),!N(t)&&Ht(i)&&!Ht(o)))return i.value=o,!0;const s=N(t)&&J(n)?Number(n)!0,deleteProperty:(e,t)=>!0},Ze=T({},Qe,{get:qe,set:Ye(!0)}),et=T({},Xe,{get:ze}),tt=e=>e,nt=e=>Reflect.getPrototypeOf(e);function ot(e,t,n=!1,o=!1){const r=Lt(e=e.__v_raw),i=Lt(t);n||(t!==i&&Ae(r,0,t),Ae(r,0,i));const{has:s}=nt(r),a=o?tt:n?$t:Mt;return s.call(r,t)?a(e.get(t)):s.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function rt(e,t=!1){const n=this.__v_raw,o=Lt(n),r=Lt(e);return t||(e!==r&&Ae(o,0,e),Ae(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function it(e,t=!1){return e=e.__v_raw,!t&&Ae(Lt(e),0,Ce),Reflect.get(e,"size",e)}function st(e){e=Lt(e);const t=Lt(this);return nt(t).has.call(t,e)||(t.add(e),je(t,"add",e,e)),this}function at(e,t){t=Lt(t);const n=Lt(this),{has:o,get:r}=nt(n);let i=o.call(n,e);i||(e=Lt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?re(t,s)&&je(n,"set",e,t):je(n,"add",e,t),this}function lt(e){const t=Lt(this),{has:n,get:o}=nt(t);let r=n.call(t,e);r||(e=Lt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&je(t,"delete",e,void 0),i}function ct(){const e=Lt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function dt(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Lt(i),a=t?tt:e?$t:Mt;return!e&&Ae(s,0,Ce),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function ut(e,t,n){return function(...o){const r=this.__v_raw,i=Lt(r),s=A(i),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...o),d=n?tt:t?$t:Mt;return!t&&Ae(i,0,l?De:Ce),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function pt(e){return function(...t){return"delete"!==e&&this}}function ft(){const e={get(e){return ot(this,e)},get size(){return it(this)},has:rt,add:st,set:at,delete:lt,clear:ct,forEach:dt(!1,!1)},t={get(e){return ot(this,e,!1,!0)},get size(){return it(this)},has:rt,add:st,set:at,delete:lt,clear:ct,forEach:dt(!1,!0)},n={get(e){return ot(this,e,!0)},get size(){return it(this,!0)},has(e){return rt.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:dt(!0,!1)},o={get(e){return ot(this,e,!0,!0)},get size(){return it(this,!0)},has(e){return rt.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:dt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=ut(r,!1,!1),n[r]=ut(r,!0,!1),t[r]=ut(r,!1,!0),o[r]=ut(r,!0,!0)})),[e,n,t,o]}const[ht,mt,gt,vt]=ft();function bt(e,t){const n=t?e?vt:gt:e?mt:ht;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(R(n,o)&&o in t?n:t,o,r)}const yt={get:bt(!1,!1)},_t={get:bt(!1,!0)},xt={get:bt(!0,!1)},wt={get:bt(!0,!0)},It=new WeakMap,St=new WeakMap,Ct=new WeakMap,Dt=new WeakMap;function kt(e){return Rt(e)?e:Pt(e,!1,Qe,yt,It)}function Ft(e){return Pt(e,!1,Ze,_t,St)}function Et(e){return Pt(e,!0,Xe,xt,Ct)}function Tt(e){return Pt(e,!0,et,wt,Dt)}function Pt(e,t,n,o,r){if(!H(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(G(a));var a;if(0===s)return e;const l=new Proxy(e,2===s?o:n);return r.set(e,l),l}function Ot(e){return Rt(e)?Ot(e.__v_raw):!(!e||!e.__v_isReactive)}function Rt(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function At(e){return Ot(e)||Rt(e)}function Lt(e){const t=e&&e.__v_raw;return t?Lt(t):e}function jt(e){return se(e,"__v_skip",!0),e}const Mt=e=>H(e)?kt(e):e,$t=e=>H(e)?Et(e):e;function Bt(e){Pe&&Se&&Le((e=Lt(e)).dep||(e.dep=ve()))}function Vt(e,t){const n=(e=Lt(e)).dep;n&&Me(n)}function Ht(e){return!(!e||!0!==e.__v_isRef)}function qt(e){return zt(e,!1)}function Ut(e){return zt(e,!0)}function zt(e,t){return Ht(e)?e:new Gt(e,t)}class Gt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Lt(e),this._value=t?e:Mt(e)}get value(){return Bt(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Rt(e);e=t?e:Lt(e),re(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Mt(e),Vt(this))}}function Wt(e){Vt(e)}function Jt(e){return Ht(e)?e.value:e}const Kt={get:(e,t,n)=>Jt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ht(r)&&!Ht(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Yt(e){return Ot(e)?e:new Proxy(e,Kt)}class Qt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Bt(this)),(()=>Vt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Xt(e){return new Qt(e)}function Zt(e){const t=N(e)?new Array(e.length):{};for(const n in e)t[n]=tn(e,n);return t}class en{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Lt(this._object),t=this._key,null===(n=_e.get(e))||void 0===n?void 0:n.get(t);var e,t,n}}function tn(e,t,n){const o=e[t];return Ht(o)?o:new en(e,t,n)}var nn;class on{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[nn]=!1,this._dirty=!0,this.effect=new ke(e,(()=>{this._dirty||(this._dirty=!0,Vt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Lt(this);return Bt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function rn(e,...t){}function sn(e,t){}function an(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){cn(e,t,n)}return r}function ln(e,t,n,o){if($(e)){const r=an(e,t,n,o);return r&&q(r)&&r.catch((e=>{cn(e,t,n)})),r}const r=[];for(let i=0;i>>1;Cn(pn[o])Cn(e)-Cn(t))),gn=0;gnnull==e.id?1/0:e.id,Dn=(e,t)=>{const n=Cn(e)-Cn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function kn(e){un=!1,dn=!0,pn.sort(Dn);try{for(fn=0;fnFn.emit(e,...t))),En=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null===(o=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===o?void 0:o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{Pn(e,t)})),setTimeout((()=>{Fn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Tn=!0,En=[])}),3e3)):(Tn=!0,En=[])}function On(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||I;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:i}=o[e]||I;i&&(r=n.map((e=>B(e)?e.trim():e))),t&&(r=n.map(ae))}let a,l=o[a=oe(t)]||o[a=oe(Z(t))];!l&&i&&(l=o[a=oe(te(t))]),l&&ln(l,e,6,r);const c=o[a+"Once"];if(c){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,ln(c,e,6,r)}}function Rn(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},a=!1;if(!$(e)){const o=e=>{const n=Rn(e,t,!0);n&&(a=!0,T(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(N(i)?i.forEach((e=>s[e]=null)):T(s,i),H(e)&&o.set(e,s),s):(H(e)&&o.set(e,null),null)}function Nn(e,t){return!(!e||!F(t))&&(t=t.slice(2).replace(/Once$/,""),R(e,t[0].toLowerCase()+t.slice(1))||R(e,te(t))||R(e,t))}let An=null,Ln=null;function jn(e){const t=An;return An=e,Ln=e&&e.type.__scopeId||null,t}function Mn(e){Ln=e}function $n(){Ln=null}const Bn=e=>Vn;function Vn(e,t=An,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&fi(-1);const r=jn(t);let i;try{i=e(...n)}finally{jn(r),o._d&&fi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Hn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:l,emit:c,render:d,renderCache:u,data:p,setupState:f,ctx:h,inheritAttrs:m}=e;let g,v;const b=jn(e);try{if(4&n.shapeFlag){const e=r||o;g=Ti(d.call(e,e,u,i,f,p,h)),v=l}else{const e=t;g=Ti(e.length>1?e(i,{attrs:l,slots:a,emit:c}):e(i,null)),v=t.props?l:qn(l)}}catch(t){ai.length=0,cn(t,e,1),g=Si(ii)}let y=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=y;e.length&&7&t&&(s&&e.some(E)&&(v=Un(v,s)),y=Di(y,v))}return n.dirs&&(y=Di(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),g=y,jn(b),g}const qn=e=>{let t;for(const n in e)("class"===n||"style"===n||F(n))&&((t||(t={}))[n]=e[n]);return t},Un=(e,t)=>{const n={};for(const o in e)E(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function zn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense,Jn={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,a,l,c){null==e?function(e,t,n,o,r,i,s,a,l){const{p:c,o:{createElement:d}}=l,u=d("div"),p=e.suspense=Yn(e,r,o,t,u,n,i,s,a,l);c(null,p.pendingBranch=e.ssContent,u,null,o,p,i,s),p.deps>0?(Kn(e,"onPending"),Kn(e,"onFallback"),c(null,e.ssFallback,t,n,o,null,i,s),Zn(p,e.ssFallback)):p.resolve()}(t,n,o,r,i,s,a,l,c):function(e,t,n,o,r,i,s,a,{p:l,um:c,o:{createElement:d}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=u;if(m)u.pendingBranch=p,bi(p,m)?(l(m,p,u.hiddenContainer,null,r,u,i,s,a),u.deps<=0?u.resolve():g&&(l(h,f,n,o,r,null,i,s,a),Zn(u,f))):(u.pendingId++,v?(u.isHydrating=!1,u.activeBranch=m):c(m,r,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),g?(l(null,p,u.hiddenContainer,null,r,u,i,s,a),u.deps<=0?u.resolve():(l(h,f,n,o,r,null,i,s,a),Zn(u,f))):h&&bi(p,h)?(l(h,p,n,o,r,u,i,s,a),u.resolve(!0)):(l(null,p,u.hiddenContainer,null,r,u,i,s,a),u.deps<=0&&u.resolve()));else if(h&&bi(p,h))l(h,p,n,o,r,u,i,s,a),Zn(u,p);else if(Kn(t,"onPending"),u.pendingBranch=p,u.pendingId++,l(null,p,u.hiddenContainer,null,r,u,i,s,a),u.deps<=0)u.resolve();else{const{timeout:e,pendingId:t}=u;e>0?setTimeout((()=>{u.pendingId===t&&u.fallback(f)}),e):0===e&&u.fallback(f)}}(e,t,n,o,r,s,a,l,c)},hydrate:function(e,t,n,o,r,i,s,a,l){const c=t.suspense=Yn(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,a,!0),d=l(e,c.pendingBranch=t.ssContent,n,c,i,s);return 0===c.deps&&c.resolve(),d},create:Yn,normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=Qn(o?n.default:n),e.ssFallback=o?Qn(n.fallback):Si(ii)}};function Kn(e,t){const n=e.props&&e.props[t];$(n)&&n()}function Yn(e,t,n,o,r,i,s,a,l,c,d=!1){const{p:u,m:p,um:f,n:h,o:{parentNode:m,remove:g}}=c,v=e.props?le(e.props.timeout):void 0,b={vnode:e,parent:t,parentComponent:n,isSVG:s,container:o,hiddenContainer:r,anchor:i,deps:0,pendingId:0,timeout:"number"==typeof v?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:o,pendingId:r,effects:i,parentComponent:s,container:a}=b;if(b.isHydrating)b.isHydrating=!1;else if(!e){const e=n&&o.transition&&"out-in"===o.transition.mode;e&&(n.transition.afterLeave=()=>{r===b.pendingId&&p(o,a,t,0)});let{anchor:t}=b;n&&(t=h(n),f(n,s,b,!0)),e||p(o,a,t,0)}Zn(b,o),b.pendingBranch=null,b.isInFallback=!1;let l=b.parent,c=!1;for(;l;){if(l.pendingBranch){l.effects.push(...i),c=!0;break}l=l.parent}c||wn(i),b.effects=[],Kn(t,"onResolve")},fallback(e){if(!b.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,isSVG:i}=b;Kn(t,"onFallback");const s=h(n),c=()=>{b.isInFallback&&(u(null,e,r,s,o,null,i,a,l),Zn(b,e))},d=e.transition&&"out-in"===e.transition.mode;d&&(n.transition.afterLeave=c),b.isInFallback=!0,f(n,o,null,!0),d||c()},move(e,t,n){b.activeBranch&&p(b.activeBranch,e,t,n),b.container=e},next:()=>b.activeBranch&&h(b.activeBranch),registerDep(e,t){const n=!!b.pendingBranch;n&&b.deps++;const o=e.vnode.el;e.asyncDep.catch((t=>{cn(t,e,0)})).then((r=>{if(e.isUnmounted||b.isUnmounted||b.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;Wi(e,r,!1),o&&(i.el=o);const a=!o&&e.subTree.el;t(e,i,m(o||e.subTree.el),o?null:h(e.subTree),b,s,l),a&&g(a),Gn(e,i.el),n&&0==--b.deps&&b.resolve()}))},unmount(e,t){b.isUnmounted=!0,b.activeBranch&&f(b.activeBranch,n,e,t),b.pendingBranch&&f(b.pendingBranch,n,e,t)}};return b}function Qn(e){let t;if($(e)){const n=pi&&e._c;n&&(e._d=!1,ci()),e=e(),n&&(e._d=!0,t=li,di())}if(N(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function Xn(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):wn(e)}function Zn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,r=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=r,Gn(o,r))}function eo(e,t){if(Mi){let n=Mi.provides;const o=Mi.parent&&Mi.parent.provides;o===n&&(n=Mi.provides=Object.create(o)),n[e]=t}}function to(e,t,n=!1){const o=Mi||An;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&$(t)?t.call(o.proxy):t}}function no(e,t){return ao(e,null,t)}function oo(e,t){return ao(e,null,{flush:"post"})}function ro(e,t){return ao(e,null,{flush:"sync"})}const io={};function so(e,t,n){return ao(e,t,n)}function ao(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=I){const a=me()===(null==Mi?void 0:Mi.scope)?Mi:null;let l,c,d=!1,u=!1;if(Ht(e)?(l=()=>e.value,d=Nt(e)):Ot(e)?(l=()=>e,o=!0):N(e)?(u=!0,d=e.some((e=>Ot(e)||Nt(e))),l=()=>e.map((e=>Ht(e)?e.value:Ot(e)?uo(e):$(e)?an(e,a,2):void 0))):l=$(e)?t?()=>an(e,a,2):()=>{if(!a||!a.isUnmounted)return c&&c(),ln(e,a,3,[f])}:C,t&&o){const e=l;l=()=>uo(e())}let p,f=e=>{c=v.onStop=()=>{an(e,a,4)}};if(zi){if(f=C,t?n&&ln(t,a,3,[l(),u?[]:void 0,f]):l(),"sync"!==r)return C;{const e=fs();p=e.__watcherHandles||(e.__watcherHandles=[])}}let h=u?new Array(e.length).fill(io):io;const m=()=>{if(v.active)if(t){const e=v.run();(o||d||(u?e.some(((e,t)=>re(e,h[t]))):re(e,h)))&&(c&&c(),ln(t,a,3,[e,h===io?void 0:u&&h[0]===io?[]:h,f]),h=e)}else v.run()};let g;m.allowRecurse=!!t,"sync"===r?g=m:"post"===r?g=()=>Ur(m,a&&a.suspense):(m.pre=!0,a&&(m.id=a.uid),g=()=>_n(m));const v=new ke(l,g);t?n?m():h=v.run():"post"===r?Ur(v.run.bind(v),a&&a.suspense):v.run();const b=()=>{v.stop(),a&&a.scope&&P(a.scope.effects,v)};return p&&p.push(b),b}function lo(e,t,n){const o=this.proxy,r=B(e)?e.includes(".")?co(o,e):()=>o[e]:e.bind(o,o);let i;$(t)?i=t:(i=t.handler,n=t);const s=Mi;Bi(this);const a=ao(r,i.bind(o),n);return s?Bi(s):Vi(),a}function co(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{uo(e,t)}));else if(W(e))for(const n in e)uo(e[n],t);return e}function po(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jo((()=>{e.isMounted=!0})),Bo((()=>{e.isUnmounting=!0})),e}const fo=[Function,Array],ho={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:fo,onEnter:fo,onAfterEnter:fo,onEnterCancelled:fo,onBeforeLeave:fo,onLeave:fo,onAfterLeave:fo,onLeaveCancelled:fo,onBeforeAppear:fo,onAppear:fo,onAfterAppear:fo,onAppearCancelled:fo},setup(e,{slots:t}){const n=$i(),o=po();let r;return()=>{const i=t.default&&_o(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==ii){s=t,e=!0;break}}const a=Lt(e),{mode:l}=a;if(o.isLeaving)return vo(s);const c=bo(s);if(!c)return vo(s);const d=go(c,a,o,n);yo(c,d);const u=n.subTree,p=u&&bo(u);let f=!1;const{getTransitionKey:h}=c.type;if(h){const e=h();void 0===r?r=e:e!==r&&(r=e,f=!0)}if(p&&p.type!==ii&&(!bi(c,p)||f)){const e=go(p,a,o,n);if(yo(p,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&n.update()},vo(s);"in-out"===l&&c.type!==ii&&(e.delayLeave=(e,t,n)=>{mo(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return s}}};function mo(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function go(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:p,onAfterLeave:f,onLeaveCancelled:h,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:b}=t,y=String(e.key),_=mo(n,e),x=(e,t)=>{e&&ln(e,o,9,t)},w=(e,t)=>{const n=t[1];x(e,t),N(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},I={mode:i,persisted:s,beforeEnter(t){let o=a;if(!n.isMounted){if(!r)return;o=m||a}t._leaveCb&&t._leaveCb(!0);const i=_[y];i&&bi(e,i)&&i.el._leaveCb&&i.el._leaveCb(),x(o,[t])},enter(e){let t=l,o=c,i=d;if(!n.isMounted){if(!r)return;t=g||l,o=v||c,i=b||d}let s=!1;const a=e._enterCb=t=>{s||(s=!0,x(t?i:o,[e]),I.delayedLeave&&I.delayedLeave(),e._enterCb=void 0)};t?w(t,[e,a]):a()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();x(u,[t]);let i=!1;const s=t._leaveCb=n=>{i||(i=!0,o(),x(n?h:f,[t]),t._leaveCb=void 0,_[r]===e&&delete _[r])};_[r]=e,p?w(p,[t,s]):s()},clone:e=>go(e,t,n,o)};return I}function vo(e){if(Co(e))return(e=Di(e)).children=null,e}function bo(e){return Co(e)?e.children?e.children[0]:void 0:e}function yo(e,t){6&e.shapeFlag&&e.component?yo(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function _o(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let e=0;e!!e.type.__asyncLoader;function Io(e){$(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:a}=e;let l,c=null,d=0;const u=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise(((t,n)=>{a(e,(()=>t((d++,c=null,u()))),(()=>n(e)),d+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return xo({name:"AsyncComponentWrapper",__asyncLoader:u,get __asyncResolved(){return l},setup(){const e=Mi;if(l)return()=>So(l,e);const t=t=>{c=null,cn(t,e,13,!o)};if(s&&e.suspense||zi)return u().then((t=>()=>So(t,e))).catch((e=>(t(e),()=>o?Si(o,{error:e}):null)));const a=qt(!1),d=qt(),p=qt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=i&&setTimeout((()=>{if(!a.value&&!d.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),d.value=e}}),i),u().then((()=>{a.value=!0,e.parent&&Co(e.parent.vnode)&&_n(e.parent.update)})).catch((e=>{t(e),d.value=e})),()=>a.value&&l?So(l,e):d.value&&o?Si(o,{error:d.value}):n&&!p.value?Si(n):void 0}})}function So(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=Si(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const Co=e=>e.type.__isKeepAlive,Do={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=$i(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,i=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=o,p=u("div");function f(e){Oo(e),d(e,n,a,!0)}function h(e){r.forEach(((t,n)=>{const o=Zi(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);s&&bi(t,s)?s&&Oo(s):f(t),r.delete(e),i.delete(e)}o.activate=(e,t,n,o,r)=>{const i=e.component;c(e,t,n,0,a),l(i.vnode,e,t,n,i,a,o,e.slotScopeIds,r),Ur((()=>{i.isDeactivated=!1,i.a&&ie(i.a);const t=e.props&&e.props.onVnodeMounted;t&&Ni(t,i.parent,e)}),a)},o.deactivate=e=>{const t=e.component;c(e,p,null,1,a),Ur((()=>{t.da&&ie(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Ni(n,t.parent,e),t.isDeactivated=!0}),a)},so((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>ko(e,t))),t&&h((e=>!ko(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&r.set(g,Ro(n.subTree))};return jo(v),$o(v),Bo((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=Ro(t);if(e.type!==r.type||e.key!==r.key)f(e);else{Oo(r);const e=r.component.da;e&&Ur(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!vi(o)||!(4&o.shapeFlag||128&o.shapeFlag))return s=null,o;let a=Ro(o);const l=a.type,c=Zi(wo(a)?a.type.__asyncResolved||{}:l),{include:d,exclude:u,max:p}=e;if(d&&(!c||!ko(d,c))||u&&c&&ko(u,c))return s=a,o;const f=null==a.key?l:a.key,h=r.get(f);return a.el&&(a=Di(a),128&o.shapeFlag&&(o.ssContent=a)),g=f,h?(a.el=h.el,a.component=h.component,a.transition&&yo(a,a.transition),a.shapeFlag|=512,i.delete(f),i.add(f)):(i.add(f),p&&i.size>parseInt(p,10)&&m(i.values().next().value)),a.shapeFlag|=256,s=a,Wn(o.type)?o:a}}};function ko(e,t){return N(e)?e.some((e=>ko(e,t))):B(e)?e.split(",").includes(t):!!M(e)&&e.test(t)}function Fo(e,t){To(e,"a",t)}function Eo(e,t){To(e,"da",t)}function To(e,t,n=Mi){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(No(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Co(e.parent.vnode)&&Po(o,t,n,e),e=e.parent}}function Po(e,t,n,o){const r=No(t,e,o,!0);Vo((()=>{P(o[t],r)}),n)}function Oo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ro(e){return 128&e.shapeFlag?e.ssContent:e}function No(e,t,n=Mi,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Re(),Bi(n);const r=ln(t,n,e,o);return Vi(),Ne(),r});return o?r.unshift(i):r.push(i),i}}const Ao=e=>(t,n=Mi)=>(!zi||"sp"===e)&&No(e,((...e)=>t(...e)),n),Lo=Ao("bm"),jo=Ao("m"),Mo=Ao("bu"),$o=Ao("u"),Bo=Ao("bum"),Vo=Ao("um"),Ho=Ao("sp"),qo=Ao("rtg"),Uo=Ao("rtc");function zo(e,t=Mi){No("ec",e,t)}function Go(e,t){const n=An;if(null===n)return e;const o=Xi(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function rr(e,t,n={},o,r){if(An.isCE||An.parent&&wo(An.parent)&&An.parent.isCE)return"default"!==t&&(n.name=t),Si("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),ci();const s=i&&ir(i(n)),a=gi(oi,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&1===e._?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function ir(e){return e.some((e=>!vi(e)||e.type!==ii&&!(e.type===oi&&!ir(e.children))))?e:null}function sr(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:oe(o)]=e[o];return n}const ar=e=>e?Hi(e)?Xi(e)||e.proxy:ar(e.parent):null,lr=T(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ar(e.parent),$root:e=>ar(e.root),$emit:e=>e.emit,$options:e=>mr(e),$forceUpdate:e=>e.f||(e.f=()=>_n(e.update)),$nextTick:e=>e.n||(e.n=yn.bind(e.proxy)),$watch:e=>lo.bind(e)}),cr=(e,t)=>e!==I&&!e.__isScriptSetup&&R(e,t),dr={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let c;if("$"!==t[0]){const a=s[t];if(void 0!==a)switch(a){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(cr(o,t))return s[t]=1,o[t];if(r!==I&&R(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&R(c,t))return s[t]=3,i[t];if(n!==I&&R(n,t))return s[t]=4,n[t];pr&&(s[t]=0)}}const d=lr[t];let u,p;return d?("$attrs"===t&&Ae(e,0,t),d(e)):(u=a.__cssModules)&&(u=u[t])?u:n!==I&&R(n,t)?(s[t]=4,n[t]):(p=l.config.globalProperties,R(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return cr(r,t)?(r[t]=n,!0):o!==I&&R(o,t)?(o[t]=n,!0):!(R(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let a;return!!n[s]||e!==I&&R(e,s)||cr(t,s)||(a=i[0])&&R(a,s)||R(o,s)||R(lr,s)||R(r.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:R(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},ur=T({},dr,{get(e,t){if(t!==Symbol.unscopables)return dr.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!s(t)});let pr=!0;function fr(e,t,n){ln(N(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function hr(e,t,n,o){const r=o.includes(".")?co(n,o):()=>n[o];if(B(e)){const n=t[e];$(n)&&so(r,n)}else if($(e))so(r,e.bind(n));else if(H(e))if(N(e))e.forEach((e=>hr(e,t,n,o)));else{const o=$(e.handler)?e.handler.bind(n):t[e.handler];$(o)&&so(r,o,e)}}function mr(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:r.length||n||o?(l={},r.length&&r.forEach((e=>gr(l,e,s,!0))),gr(l,t,s)):l=t,H(t)&&i.set(t,l),l}function gr(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&gr(e,i,n,!0),r&&r.forEach((t=>gr(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=vr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const vr={data:br,props:xr,emits:xr,methods:xr,computed:xr,beforeCreate:_r,created:_r,beforeMount:_r,mounted:_r,beforeUpdate:_r,updated:_r,beforeDestroy:_r,beforeUnmount:_r,destroyed:_r,unmounted:_r,activated:_r,deactivated:_r,errorCaptured:_r,serverPrefetch:_r,components:xr,directives:xr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=T(Object.create(null),e);for(const o in t)n[o]=_r(e[o],t[o]);return n},provide:br,inject:function(e,t){return xr(yr(e),yr(t))}};function br(e,t){return t?e?function(){return T($(e)?e.call(this,this):e,$(t)?t.call(this,this):t)}:t:e}function yr(e){if(N(e)){const t={};for(let n=0;n{l=!0;const[n,o]=Sr(e,t,!0);T(s,n),o&&a.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!i&&!l)return H(e)&&o.set(e,S),S;if(N(i))for(let e=0;e-1,o[1]=n<0||e-1||R(o,"default"))&&a.push(t)}}}const c=[s,a];return H(e)&&o.set(e,c),c}function Cr(e){return"$"!==e[0]}function Dr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function kr(e,t){return Dr(e)===Dr(t)}function Fr(e,t){return N(t)?t.findIndex((t=>kr(t,e))):$(t)&&kr(t,e)?0:-1}const Er=e=>"_"===e[0]||"$stable"===e,Tr=e=>N(e)?e.map(Ti):[Ti(e)],Pr=(e,t,n)=>{if(t._n)return t;const o=Vn(((...e)=>Tr(t(...e))),n);return o._c=!1,o},Or=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Er(n))continue;const r=e[n];if($(r))t[n]=Pr(0,r,o);else if(null!=r){const e=Tr(r);t[n]=()=>e}}},Rr=(e,t)=>{const n=Tr(t);e.slots.default=()=>n},Nr=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Lt(t),se(t,"_",n)):Or(t,e.slots={})}else e.slots={},t&&Rr(e,t);se(e.slots,_i,1)},Ar=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=I;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:(T(r,t),n||1!==e||delete r._):(i=!t.$stable,Or(t,r)),s=t}else t&&(Rr(e,t),s={default:1});if(i)for(const e in r)Er(e)||e in s||delete r[e]};function Lr(){return{app:null,config:{isNativeTag:D,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let jr=0;function Mr(e,t){return function(n,o=null){$(n)||(n=Object.assign({},n)),null==o||H(o)||(o=null);const r=Lr(),i=new Set;let s=!1;const a=r.app={_uid:jr++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:vs,get config(){return r.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&$(e.install)?(i.add(e),e.install(a,...t)):$(e)&&(i.add(e),e(a,...t))),a),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),a),component:(e,t)=>t?(r.components[e]=t,a):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,a):r.directives[e],mount(i,l,c){if(!s){const d=Si(n,o);return d.appContext=r,l&&t?t(d,i):e(d,i,c),s=!0,a._container=i,i.__vue_app__=a,Xi(d.component)||d.component.proxy}},unmount(){s&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,a)};return a}}function $r(e,t,n,o,r=!1){if(N(e))return void e.forEach(((e,i)=>$r(e,t&&(N(t)?t[i]:t),n,o,r)));if(wo(o)&&!r)return;const i=4&o.shapeFlag?Xi(o.component)||o.component.proxy:o.el,s=r?null:i,{i:a,r:l}=e,c=t&&t.r,d=a.refs===I?a.refs={}:a.refs,u=a.setupState;if(null!=c&&c!==l&&(B(c)?(d[c]=null,R(u,c)&&(u[c]=null)):Ht(c)&&(c.value=null)),$(l))an(l,a,12,[s,d]);else{const t=B(l),o=Ht(l);if(t||o){const a=()=>{if(e.f){const n=t?R(u,l)?u[l]:d[l]:l.value;r?N(n)&&P(n,i):N(n)?n.includes(i)||n.push(i):t?(d[l]=[i],R(u,l)&&(u[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else t?(d[l]=s,R(u,l)&&(u[l]=s)):o&&(l.value=s,e.k&&(d[e.k]=s))};s?(a.id=-1,Ur(a,n)):a()}}}let Br=!1;const Vr=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Hr=e=>8===e.nodeType;function qr(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:a,insert:l,createComment:c}}=e,d=(n,o,a,c,g,v=!1)=>{const b=Hr(n)&&"["===n.data,y=()=>h(n,o,a,c,g,b),{type:_,ref:x,shapeFlag:w,patchFlag:I}=o;let S=n.nodeType;o.el=n,-2===I&&(v=!1,o.dynamicChildren=null);let C=null;switch(_){case ri:3!==S?""===o.children?(l(o.el=r(""),s(n),n),C=n):C=y():(n.data!==o.children&&(Br=!0,n.data=o.children),C=i(n));break;case ii:C=8!==S||b?y():i(n);break;case si:if(b&&(S=(n=i(n)).nodeType),1===S||3===S){C=n;const e=!o.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;const{type:l,props:c,patchFlag:d,shapeFlag:u,dirs:f}=t,h="input"===l&&f||"option"===l;if(h||-1!==d){if(f&&Wo(t,null,n,"created"),c)if(h||!s||48&d)for(const t in c)(h&&t.endsWith("value")||F(t)&&!K(t))&&o(e,t,null,c[t],!1,void 0,n);else c.onClick&&o(e,"onClick",null,c.onClick,!1,void 0,n);let l;if((l=c&&c.onVnodeBeforeMount)&&Ni(l,n,t),f&&Wo(t,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||f)&&Xn((()=>{l&&Ni(l,n,t),f&&Wo(t,null,n,"mounted")}),r),16&u&&(!c||!c.innerHTML&&!c.textContent)){let o=p(e.firstChild,t,e,n,r,i,s);for(;o;){Br=!0;const e=o;o=o.nextSibling,a(e)}}else 8&u&&e.textContent!==t.children&&(Br=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,o,r,i,s,a)=>{a=a||!!t.dynamicChildren;const l=t.children,c=l.length;for(let t=0;t{const{slotScopeIds:d}=t;d&&(r=r?r.concat(d):d);const u=s(e),f=p(i(e),t,u,n,o,r,a);return f&&Hr(f)&&"]"===f.data?i(t.anchor=f):(Br=!0,l(t.anchor=c("]"),u,f),f)},h=(e,t,o,r,l,c)=>{if(Br=!0,t.el=null,c){const t=m(e);for(;;){const n=i(e);if(!n||n===t)break;a(n)}}const d=i(e),u=s(e);return a(e),n(null,t,u,d,o,r,Vr(u),l),d},m=e=>{let t=0;for(;e;)if((e=i(e))&&Hr(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return i(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),Sn(),void(t._vnode=e);Br=!1,d(t.firstChild,e,null,null,null),Sn(),t._vnode=e,Br&&console.error("Hydration completed but contains mismatches.")},d]}const Ur=Xn;function zr(e){return Wr(e)}function Gr(e){return Wr(e,qr)}function Wr(e,t){de().__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:s,createComment:a,setText:l,setElementText:c,parentNode:d,nextSibling:u,setScopeId:p=C,insertStaticContent:f}=e,h=(e,t,n,o=null,r=null,i=null,s=!1,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!bi(e,t)&&(o=U(e),$(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case ri:m(e,t,n,o);break;case ii:g(e,t,n,o);break;case si:null==e&&v(t,n,o,s);break;case oi:F(e,t,n,o,r,i,s,a,l);break;default:1&u?b(e,t,n,o,r,i,s,a,l):6&u?E(e,t,n,o,r,i,s,a,l):(64&u||128&u)&&c.process(e,t,n,o,r,i,s,a,l,G)}null!=d&&r&&$r(d,e&&e.ref,i,t||e,!t)},m=(e,t,o,r)=>{if(null==e)n(t.el=s(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},g=(e,t,o,r)=>{null==e?n(t.el=a(t.children||""),o,r):t.el=e.el},v=(e,t,n,o)=>{[e.el,e.anchor]=f(e.children,t,n,o,e.el,e.anchor)},b=(e,t,n,o,r,i,s,a,l)=>{s=s||"svg"===t.type,null==e?y(t,n,o,r,i,s,a,l):w(e,t,r,i,s,a,l)},y=(e,t,o,s,a,l,d,u)=>{let p,f;const{type:h,props:m,shapeFlag:g,transition:v,dirs:b}=e;if(p=e.el=i(e.type,l,m&&m.is,m),8&g?c(p,e.children):16&g&&x(e.children,p,null,s,a,l&&"foreignObject"!==h,d,u),b&&Wo(e,null,s,"created"),_(p,e,e.scopeId,d,s),m){for(const t in m)"value"===t||K(t)||r(p,t,null,m[t],l,e.children,s,a,q);"value"in m&&r(p,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Ni(f,s,e)}b&&Wo(e,null,s,"beforeMount");const y=(!a||a&&!a.pendingBranch)&&v&&!v.persisted;y&&v.beforeEnter(p),n(p,t,o),((f=m&&m.onVnodeMounted)||y||b)&&Ur((()=>{f&&Ni(f,s,e),y&&v.enter(p),b&&Wo(e,null,s,"mounted")}),a)},_=(e,t,n,o,r)=>{if(n&&p(e,n),o)for(let t=0;t{for(let c=l;c{const l=t.el=e.el;let{patchFlag:d,dynamicChildren:u,dirs:p}=t;d|=16&e.patchFlag;const f=e.props||I,h=t.props||I;let m;n&&Jr(n,!1),(m=h.onVnodeBeforeUpdate)&&Ni(m,n,t,e),p&&Wo(t,e,n,"beforeUpdate"),n&&Jr(n,!0);const g=i&&"foreignObject"!==t.type;if(u?D(e.dynamicChildren,u,l,n,o,g,s):a||A(e,t,l,null,n,o,g,s,!1),d>0){if(16&d)k(l,t,f,h,n,o,i);else if(2&d&&f.class!==h.class&&r(l,"class",null,h.class,i),4&d&&r(l,"style",f.style,h.style,i),8&d){const s=t.dynamicProps;for(let t=0;t{m&&Ni(m,n,t,e),p&&Wo(t,e,n,"updated")}),o)},D=(e,t,n,o,r,i,s)=>{for(let a=0;a{if(n!==o){if(n!==I)for(const l in n)K(l)||l in o||r(e,l,n[l],null,a,t.children,i,s,q);for(const l in o){if(K(l))continue;const c=o[l],d=n[l];c!==d&&"value"!==l&&r(e,l,d,c,a,t.children,i,s,q)}"value"in o&&r(e,"value",n.value,o.value)}},F=(e,t,o,r,i,a,l,c,d)=>{const u=t.el=e?e.el:s(""),p=t.anchor=e?e.anchor:s("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(u,o,r),n(p,o,r),x(t.children,o,p,i,a,l,c,d)):f>0&&64&f&&h&&e.dynamicChildren?(D(e.dynamicChildren,h,o,i,a,l,c),(null!=t.key||i&&t===i.subTree)&&Kr(e,t,!0)):A(e,t,o,p,i,a,l,c,d)},E=(e,t,n,o,r,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,l):T(t,n,o,r,i,s,l):P(e,t,l)},T=(e,t,n,o,r,i,s)=>{const a=e.component=ji(e,o,r);if(Co(e)&&(a.ctx.renderer=G),Gi(a),a.asyncDep){if(r&&r.registerDep(a,O),!e.el){const e=a.subTree=Si(ii);g(null,e,t,n)}}else O(a,e,t,n,r,i,s)},P=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!a||a&&a.$stable)||o!==s&&(o?!s||zn(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?zn(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;tfn&&pn.splice(t,1)}(o.update),o.update()}else t.el=e.el,o.vnode=t},O=(e,t,n,o,r,i,s)=>{const a=e.effect=new ke((()=>{if(e.isMounted){let t,{next:n,bu:o,u:a,parent:l,vnode:c}=e,u=n;Jr(e,!1),n?(n.el=c.el,N(e,n,s)):n=c,o&&ie(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Ni(t,l,n,c),Jr(e,!0);const p=Hn(e),f=e.subTree;e.subTree=p,h(f,p,d(f.el),U(f),e,r,i),n.el=p.el,null===u&&Gn(e,p.el),a&&Ur(a,r),(t=n.props&&n.props.onVnodeUpdated)&&Ur((()=>Ni(t,l,n,c)),r)}else{let s;const{el:a,props:l}=t,{bm:c,m:d,parent:u}=e,p=wo(t);if(Jr(e,!1),c&&ie(c),!p&&(s=l&&l.onVnodeBeforeMount)&&Ni(s,u,t),Jr(e,!0),a&&J){const n=()=>{e.subTree=Hn(e),J(a,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=Hn(e);h(null,s,n,o,e,r,i),t.el=s.el}if(d&&Ur(d,r),!p&&(s=l&&l.onVnodeMounted)){const e=t;Ur((()=>Ni(s,u,e)),r)}(256&t.shapeFlag||u&&wo(u.vnode)&&256&u.vnode.shapeFlag)&&e.a&&Ur(e.a,r),e.isMounted=!0,t=n=o=null}}),(()=>_n(l)),e.scope),l=e.update=()=>a.run();l.id=e.uid,Jr(e,!0),l()},N=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=Lt(r),[l]=e.propsOptions;let c=!1;if(!(o||s>0)||16&s){let o;wr(e,t,r,i)&&(c=!0);for(const i in a)t&&(R(t,i)||(o=te(i))!==i&&R(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Ir(l,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&R(t,e)||(delete i[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const d=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void j(d,p,n,o,r,i,s,a,l);if(256&f)return void L(d,p,n,o,r,i,s,a,l)}8&h?(16&u&&q(d,r,i),p!==d&&c(n,p)):16&u?16&h?j(d,p,n,o,r,i,s,a,l):q(d,r,i,!0):(8&u&&c(n,""),16&h&&x(p,n,o,r,i,s,a,l))},L=(e,t,n,o,r,i,s,a,l)=>{t=t||S;const c=(e=e||S).length,d=t.length,u=Math.min(c,d);let p;for(p=0;pd?q(e,r,i,!0,!1,u):x(t,n,o,r,i,s,a,l,u)},j=(e,t,n,o,r,i,s,a,l)=>{let c=0;const d=t.length;let u=e.length-1,p=d-1;for(;c<=u&&c<=p;){const o=e[c],d=t[c]=l?Pi(t[c]):Ti(t[c]);if(!bi(o,d))break;h(o,d,n,null,r,i,s,a,l),c++}for(;c<=u&&c<=p;){const o=e[u],c=t[p]=l?Pi(t[p]):Ti(t[p]);if(!bi(o,c))break;h(o,c,n,null,r,i,s,a,l),u--,p--}if(c>u){if(c<=p){const e=p+1,u=ep)for(;c<=u;)$(e[c],r,i,!0),c++;else{const f=c,m=c,g=new Map;for(c=m;c<=p;c++){const e=t[c]=l?Pi(t[c]):Ti(t[c]);null!=e.key&&g.set(e.key,c)}let v,b=0;const y=p-m+1;let _=!1,x=0;const w=new Array(y);for(c=0;c=y){$(o,r,i,!0);continue}let d;if(null!=o.key)d=g.get(o.key);else for(v=m;v<=p;v++)if(0===w[v-m]&&bi(o,t[v])){d=v;break}void 0===d?$(o,r,i,!0):(w[d-m]=c+1,d>=x?x=d:_=!0,h(o,t[d],n,null,r,i,s,a,l),b++)}const I=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(w):S;for(v=I.length-1,c=y-1;c>=0;c--){const e=m+c,u=t[e],p=e+1{const{el:s,type:a,transition:l,children:c,shapeFlag:d}=e;if(6&d)M(e.component.subTree,t,o,r);else if(128&d)e.suspense.move(t,o,r);else if(64&d)a.move(e,t,o,G);else if(a!==oi)if(a!==si)if(2!==r&&1&d&&l)if(0===r)l.beforeEnter(s),n(s,t,o),Ur((()=>l.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,a=()=>n(s,t,o),c=()=>{e(s,(()=>{a(),i&&i()}))};r?r(s,a,c):c()}else n(s,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=u(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(s,t,o);for(let e=0;e{const{type:i,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:p}=e;if(null!=a&&$r(a,null,n,e,!0),256&d)return void t.ctx.deactivate(e);const f=1&d&&p,h=!wo(e);let m;if(h&&(m=s&&s.onVnodeBeforeUnmount)&&Ni(m,t,e),6&d)H(e.component,n,o);else{if(128&d)return void e.suspense.unmount(n,o);f&&Wo(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,r,G,o):c&&(i!==oi||u>0&&64&u)?q(c,t,n,!1,!0):(i===oi&&384&u||!r&&16&d)&&q(l,t,n),o&&B(e)}(h&&(m=s&&s.onVnodeUnmounted)||f)&&Ur((()=>{m&&Ni(m,t,e),f&&Wo(e,null,t,"unmounted")}),n)},B=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===oi)return void V(n,r);if(t===si)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=u(e),o(e),e=n;o(t)})(e);const s=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:o}=i,r=()=>t(n,s);o?o(e.el,s,r):r()}else s()},V=(e,t)=>{let n;for(;e!==t;)n=u(e),o(e),e=n;o(t)},H=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:a}=e;o&&ie(o),r.stop(),i&&(i.active=!1,$(s,e,t,n)),a&&Ur(a,t),Ur((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},q=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s6&e.shapeFlag?U(e.component.subTree):128&e.shapeFlag?e.suspense.next():u(e.anchor||e.el),z=(e,t,n)=>{null==e?t._vnode&&$(t._vnode,null,null,!0):h(t._vnode||null,e,t,null,null,null,n),In(),Sn(),t._vnode=e},G={p:h,um:$,m:M,r:B,mt:T,mc:x,pc:A,pbc:D,n:U,o:e};let W,J;return t&&([W,J]=t(G)),{render:z,hydrate:W,createApp:Mr(z,W)}}function Jr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Kr(e,t,n=!1){const o=e.children,r=t.children;if(N(o)&&N(r))for(let e=0;ee.__isTeleport,Qr=e=>e&&(e.disabled||""===e.disabled),Xr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Zr=(e,t)=>{const n=e&&e.to;if(B(n)){if(t){return t(n)}return null}return n};function ei(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:d}=e,u=2===i;if(u&&o(s,t,n),(!u||Qr(d))&&16&l)for(let e=0;e{16&b&&d(y,e,t,r,i,s,a,l)};v?g(n,c):u&&g(u,p)}else{t.el=e.el;const o=t.anchor=e.anchor,d=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=Qr(e.props),g=m?n:d,b=m?o:f;if(s=s||Xr(d),_?(p(e.dynamicChildren,_,g,r,i,s,a),Kr(e,t,!0)):l||u(e,t,g,b,r,i,s,a,!1),v)m||ei(t,n,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Zr(t.props,h);e&&ei(t,e,null,c,0)}else m&&ei(t,d,f,c,1)}ni(t)},remove(e,t,n,o,{um:r,o:{remove:i}},s){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:u,props:p}=e;if(u&&i(d),(s||!Qr(p))&&(i(c),16&a))for(let e=0;e0?li||S:null,di(),pi>0&&li&&li.push(e),e}function mi(e,t,n,o,r,i){return hi(Ii(e,t,n,o,r,i,!0))}function gi(e,t,n,o,r){return hi(Si(e,t,n,o,r,!0))}function vi(e){return!!e&&!0===e.__v_isVNode}function bi(e,t){return e.type===t.type&&e.key===t.key}function yi(e){ui=e}const _i="__vInternal",xi=({key:e})=>null!=e?e:null,wi=({ref:e,ref_key:t,ref_for:n})=>null!=e?B(e)||Ht(e)||$(e)?{i:An,r:e,k:t,f:!!n}:e:null;function Ii(e,t=null,n=null,o=0,r=null,i=(e===oi?0:1),s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xi(t),ref:t&&wi(t),scopeId:Ln,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:An};return a?(Oi(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=B(n)?8:16),pi>0&&!s&&li&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&li.push(l),l}const Si=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==Qo||(e=ii),vi(e)){const o=Di(e,t,!0);return n&&Oi(o,n),pi>0&&!i&&li&&(6&o.shapeFlag?li[li.indexOf(e)]=o:li.push(o)),o.patchFlag|=-2,o}if(s=e,$(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=Ci(t);let{class:e,style:n}=t;e&&!B(e)&&(t.class=p(e)),H(n)&&(At(n)&&!N(n)&&(n=T({},n)),t.style=a(n))}var s;return Ii(e,t,n,o,r,B(e)?1:Wn(e)?128:Yr(e)?64:H(e)?4:$(e)?2:0,i,!0)};function Ci(e){return e?At(e)||_i in e?T({},e):e:null}function Di(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?Ri(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&xi(a),ref:t&&t.ref?n&&r?N(r)?r.concat(wi(t)):[r,wi(t)]:wi(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==oi?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Di(e.ssContent),ssFallback:e.ssFallback&&Di(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ki(e=" ",t=0){return Si(ri,null,e,t)}function Fi(e,t){const n=Si(si,null,e);return n.staticCount=t,n}function Ei(e="",t=!1){return t?(ci(),gi(ii,null,e)):Si(ii,null,e)}function Ti(e){return null==e||"boolean"==typeof e?Si(ii):N(e)?Si(oi,null,e.slice()):"object"==typeof e?Pi(e):Si(ri,null,String(e))}function Pi(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Di(e)}function Oi(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(N(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Oi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||_i in t?3===o&&An&&(1===An.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=An}}else $(t)?(t={default:t,_ctx:An},n=32):(t=String(t),64&o?(n=16,t=[ki(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ri(...e){const t={};for(let n=0;nMi||An,Bi=e=>{Mi=e,e.scope.on()},Vi=()=>{Mi&&Mi.scope.off(),Mi=null};function Hi(e){return 4&e.vnode.shapeFlag}let qi,Ui,zi=!1;function Gi(e,t=!1){zi=t;const{props:n,children:o}=e.vnode,r=Hi(e);!function(e,t,n,o=!1){const r={},i={};se(i,_i,1),e.propsDefaults=Object.create(null),wr(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:Ft(r):e.type.props?e.props=r:e.props=i,e.attrs=i}(e,n,r,t),Nr(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=jt(new Proxy(e.ctx,dr));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Qi(e):null;Bi(e),Re();const r=an(o,e,0,[e.props,n]);if(Ne(),Vi(),q(r)){if(r.then(Vi,Vi),t)return r.then((n=>{Wi(e,n,t)})).catch((t=>{cn(t,e,0)}));e.asyncDep=r}else Wi(e,r,t)}else Yi(e,t)}(e,t):void 0;return zi=!1,i}function Wi(e,t,n){$(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:H(t)&&(e.setupState=Yt(t)),Yi(e,n)}function Ji(e){qi=e,Ui=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,ur))}}const Ki=()=>!qi;function Yi(e,t,n){const o=e.type;if(!e.render){if(!t&&qi&&!o.render){const t=o.template||mr(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,a=T(T({isCustomElement:n,delimiters:i},r),s);o.render=qi(t,a)}}e.render=o.render||C,Ui&&Ui(e)}Bi(e),Re(),function(e){const t=mr(e),n=e.proxy,o=e.ctx;pr=!1,t.beforeCreate&&fr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:f,updated:h,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:b,destroyed:y,unmounted:_,render:x,renderTracked:w,renderTriggered:I,errorCaptured:S,serverPrefetch:D,expose:k,inheritAttrs:F,components:E,directives:T,filters:P}=t;if(c&&function(e,t,n=C,o=!1){N(e)&&(e=yr(e));for(const n in e){const r=e[n];let i;i=H(r)?"default"in r?to(r.from||n,r.default,!0):to(r.from||n):to(r),Ht(i)&&o?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(c,o,null,e.appContext.config.unwrapInjectedRef),s)for(const e in s){const t=s[e];$(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);H(t)&&(e.data=kt(t))}if(pr=!0,i)for(const e in i){const t=i[e],r=$(t)?t.bind(n,n):$(t.get)?t.get.bind(n,n):C,s=!$(t)&&$(t.set)?t.set.bind(n):C,a=es({get:r,set:s});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(a)for(const e in a)hr(a[e],o,n,e);if(l){const e=$(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{eo(t,e[t])}))}function O(e,t){N(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&fr(d,e,"c"),O(Lo,u),O(jo,p),O(Mo,f),O($o,h),O(Fo,m),O(Eo,g),O(zo,S),O(Uo,w),O(qo,I),O(Bo,b),O(Vo,_),O(Ho,D),N(k))if(k.length){const t=e.exposed||(e.exposed={});k.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===C&&(e.render=x),null!=F&&(e.inheritAttrs=F),E&&(e.components=E),T&&(e.directives=T)}(e),Ne(),Vi()}function Qi(e){let t;return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Ae(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Xi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Yt(jt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in lr?lr[n](e):void 0,has:(e,t)=>t in e||t in lr}))}function Zi(e,t=!0){return $(e)?e.displayName||e.name:e.name||t&&e.__name}const es=(e,t)=>function(e,t,n=!1){let o,r;const i=$(e);return i?(o=e,r=C):(o=e.get,r=e.set),new on(o,r,i||!r,n)}(e,0,zi);function ts(){return null}function ns(){return null}function os(e){}function rs(e,t){return null}function is(){return as().slots}function ss(){return as().attrs}function as(){const e=$i();return e.setupContext||(e.setupContext=Qi(e))}function ls(e,t){const n=N(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const o=n[e];o?N(o)||$(o)?n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(n[e]={default:t[e]})}return n}function cs(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ds(e){const t=$i();let n=e();return Vi(),q(n)&&(n=n.catch((e=>{throw Bi(t),e}))),[n,()=>Bi(t)]}function us(e,t,n){const o=arguments.length;return 2===o?H(t)&&!N(t)?vi(t)?Si(e,null,[t]):Si(e,t):Si(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&vi(n)&&(n=[n]),Si(e,t,n))}const ps=Symbol(""),fs=()=>to(ps);function hs(){}function ms(e,t,n,o){const r=n[o];if(r&&gs(r,e))return r;const i=t();return i.memo=e.slice(),n[o]=i}function gs(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&li&&li.push(e),!0}const vs="3.2.47",bs={createComponentInstance:ji,setupComponent:Gi,renderComponentRoot:Hn,setCurrentRenderingInstance:jn,isVNode:vi,normalizeVNode:Ti},ys=null,_s=null,xs="undefined"!=typeof document?document:null,ws=xs&&xs.createElement("template"),Is={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?xs.createElementNS("http://www.w3.org/2000/svg",e):xs.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>xs.createTextNode(e),createComment:e=>xs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{ws.innerHTML=o?`${e}`:e;const r=ws.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ss=/\s*!important$/;function Cs(e,t,n){if(N(n))n.forEach((n=>Cs(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=ks[t];if(n)return n;let o=Z(t);if("filter"!==o&&o in e)return ks[t]=o;o=ne(o);for(let n=0;nPs||(Os.then((()=>Ps=0)),Ps=Date.now()),Ns=/^on[a-z]/;function As(e,t){const n=xo(e);class o extends Ms{constructor(e){super(n,e,t)}}return o.def=n,o}const Ls=e=>As(e,Ba),js="undefined"!=typeof HTMLElement?HTMLElement:class{};class Ms extends js{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,yn((()=>{this._connected||($a(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!N(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=le(this._props[e])),(r||(r=Object.create(null)))[Z(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=N(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(Z))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.getAttribute(e);const n=Z(e);this._numberProps&&this._numberProps[n]&&(t=le(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(te(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(te(e),t+""):t||this.removeAttribute(te(e))))}_update(){$a(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Si(this._def,T({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),te(e)!==e&&t(te(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Ms){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function $s(e="$style"){{const t=$i();if(!t)return I;const n=t.type.__cssModules;if(!n)return I;return n[e]||I}}function Bs(e){const t=$i();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Hs(e,n)))},o=()=>{const o=e(t.proxy);Vs(t.subTree,o),n(o)};oo(o),jo((()=>{const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),Vo((()=>e.disconnect()))}))}function Vs(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Vs(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Hs(e.el,t);else if(e.type===oi)e.children.forEach((e=>Vs(e,t)));else if(e.type===si){let{el:n,anchor:o}=e;for(;n&&(Hs(n,t),n!==o);)n=n.nextSibling}}function Hs(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const qs="transition",Us="animation",zs=(e,{slots:t})=>us(ho,Ys(e),t);zs.displayName="Transition";const Gs={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ws=zs.props=T({},ho.props,Gs),Js=(e,t=[])=>{N(e)?e.forEach((e=>e(...t))):e&&e(...t)},Ks=e=>!!e&&(N(e)?e.some((e=>e.length>1)):e.length>1);function Ys(e){const t={};for(const n in e)n in Gs||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:d=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,h=function(e){if(null==e)return null;if(H(e))return[Qs(e.enter),Qs(e.leave)];{const t=Qs(e);return[t,t]}}(r),m=h&&h[0],g=h&&h[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:_,onLeaveCancelled:x,onBeforeAppear:w=v,onAppear:I=b,onAppearCancelled:S=y}=t,C=(e,t,n)=>{Zs(e,t?d:a),Zs(e,t?c:s),n&&n()},D=(e,t)=>{e._isLeaving=!1,Zs(e,u),Zs(e,f),Zs(e,p),t&&t()},k=e=>(t,n)=>{const r=e?I:b,s=()=>C(t,e,n);Js(r,[t,s]),ea((()=>{Zs(t,e?l:i),Xs(t,e?d:a),Ks(r)||na(t,o,m,s)}))};return T(t,{onBeforeEnter(e){Js(v,[e]),Xs(e,i),Xs(e,s)},onBeforeAppear(e){Js(w,[e]),Xs(e,l),Xs(e,c)},onEnter:k(!1),onAppear:k(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>D(e,t);Xs(e,u),sa(),Xs(e,p),ea((()=>{e._isLeaving&&(Zs(e,u),Xs(e,f),Ks(_)||na(e,o,g,n))})),Js(_,[e,n])},onEnterCancelled(e){C(e,!1),Js(y,[e])},onAppearCancelled(e){C(e,!0),Js(S,[e])},onLeaveCancelled(e){D(e),Js(x,[e])}})}function Qs(e){return le(e)}function Xs(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Zs(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ea(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ta=0;function na(e,t,n,o){const r=e._endId=++ta,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=oa(e,t);if(!s)return o();const c=s+"end";let d=0;const u=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++d>=l&&u()};setTimeout((()=>{d(n[e]||"").split(", "),r=o(`${qs}Delay`),i=o(`${qs}Duration`),s=ra(r,i),a=o(`${Us}Delay`),l=o(`${Us}Duration`),c=ra(a,l);let d=null,u=0,p=0;return t===qs?s>0&&(d=qs,u=s,p=i.length):t===Us?c>0&&(d=Us,u=c,p=l.length):(u=Math.max(s,c),d=u>0?s>c?qs:Us:null,p=d?d===qs?i.length:l.length:0),{type:d,timeout:u,propCount:p,hasTransform:d===qs&&/\b(transform|all)(,|$)/.test(o(`${qs}Property`).toString())}}function ra(e,t){for(;e.lengthia(t)+ia(e[n]))))}function ia(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function sa(){return document.body.offsetHeight}const aa=new WeakMap,la=new WeakMap,ca={name:"TransitionGroup",props:T({},Ws,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=$i(),o=po();let r,i;return $o((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(o);const{hasTransform:i}=oa(o);return r.removeChild(o),i}(r[0].el,n.vnode.el,t))return;r.forEach(da),r.forEach(ua);const o=r.filter(pa);sa(),o.forEach((e=>{const n=e.el,o=n.style;Xs(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n._moveCb=null,Zs(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=Lt(e),a=Ys(s);let l=s.tag||oi;r=i,i=t.default?_o(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?e=>ie(t,e):t};function ha(e){e.target.composing=!0}function ma(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ga={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=fa(r);const i=o||r.props&&"number"===r.props.type;Es(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=ae(o)),e._assign(o)})),n&&Es(e,"change",(()=>{e.value=e.value.trim()})),t||(Es(e,"compositionstart",ha),Es(e,"compositionend",ma),Es(e,"change",ma))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=fa(i),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===t)return;if((r||"number"===e.type)&&ae(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},va={deep:!0,created(e,t,n){e._assign=fa(n),Es(e,"change",(()=>{const t=e._modelValue,n=wa(e),o=e.checked,r=e._assign;if(N(t)){const e=_(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(L(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(Ia(e,o))}))},mounted:ba,beforeUpdate(e,t,n){e._assign=fa(n),ba(e,t,n)}};function ba(e,{value:t,oldValue:n},o){e._modelValue=t,N(t)?e.checked=_(t,o.props.value)>-1:L(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=y(t,Ia(e,!0)))}const ya={created(e,{value:t},n){e.checked=y(t,n.props.value),e._assign=fa(n),Es(e,"change",(()=>{e._assign(wa(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=fa(o),t!==n&&(e.checked=y(t,o.props.value))}},_a={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=L(t);Es(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?ae(wa(e)):wa(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=fa(o)},mounted(e,{value:t}){xa(e,t)},beforeUpdate(e,t,n){e._assign=fa(n)},updated(e,{value:t}){xa(e,t)}};function xa(e,t){const n=e.multiple;if(!n||N(t)||L(t)){for(let o=0,r=e.options.length;o-1:r.selected=t.has(i);else if(y(wa(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function wa(e){return"_value"in e?e._value:e.value}function Ia(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Sa={created(e,t,n){Da(e,t,n,null,"created")},mounted(e,t,n){Da(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){Da(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){Da(e,t,n,o,"updated")}};function Ca(e,t){switch(e){case"SELECT":return _a;case"TEXTAREA":return ga;default:switch(t){case"checkbox":return va;case"radio":return ya;default:return ga}}}function Da(e,t,n,o,r){const i=Ca(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const ka=["ctrl","shift","alt","meta"],Fa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ka.some((n=>e[`${n}Key`]&&!t.includes(n)))},Ea=(e,t)=>(n,...o)=>{for(let e=0;en=>{if(!("key"in n))return;const o=te(n.key);return t.some((e=>e===o||Ta[e]===o))?e(n):void 0},Oa={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ra(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Ra(e,!0),o.enter(e)):o.leave(e,(()=>{Ra(e,!1)})):Ra(e,t))},beforeUnmount(e,{value:t}){Ra(e,t)}};function Ra(e,t){e.style.display=t?e._vod:"none"}const Na=T({patchProp:(e,t,n,o,r=!1,i,s,a,l)=>{"class"===t?function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,r=B(n);if(n&&!r){if(t&&!B(t))for(const e in t)null==n[e]&&Cs(o,e,"");for(const e in n)Cs(o,e,n[e])}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}(e,n,o):F(t)?E(t)||function(e,t,n,o,r=null){const i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[n,a]=function(e){let t;if(Ts.test(e)){let n;for(t={};n=e.match(Ts);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):te(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();ln(function(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Rs(),n}(o,r);Es(e,n,s,a)}else s&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,a),i[t]=void 0)}}(e,t,0,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&Ns.test(t)&&$(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Ns.test(t)||!B(n))&&t in e))))}(e,t,o,r))?function(e,t,n,o,r,i,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,r,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}let a=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=b(n):null==n&&"string"===o?(n="",a=!0):"number"===o&&(n=0,a=!0)}try{e[t]=n}catch(e){}a&&e.removeAttribute(t)}(e,t,o,i,s,a,l):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Fs,t.slice(6,t.length)):e.setAttributeNS(Fs,t,n);else{const o=v(t);null==n||o&&!b(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))}},Is);let Aa,La=!1;function ja(){return Aa||(Aa=zr(Na))}function Ma(){return Aa=La?Aa:Gr(Na),La=!0,Aa}const $a=(...e)=>{ja().render(...e)},Ba=(...e)=>{Ma().hydrate(...e)},Va=(...e)=>{const t=ja().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=qa(e);if(!o)return;const r=t._component;$(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Ha=(...e)=>{const t=Ma().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=qa(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function qa(e){return B(e)?document.querySelector(e):e}let Ua=!1;const za=()=>{Ua||(Ua=!0,ga.getSSRProps=({value:e})=>({value:e}),ya.getSSRProps=({value:e},t)=>{if(t.props&&y(t.props.value,e))return{checked:!0}},va.getSSRProps=({value:e},t)=>{if(N(e)){if(t.props&&_(e,t.props.value)>-1)return{checked:!0}}else if(L(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Sa.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Ca(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Oa.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})};function Ga(e){throw e}function Wa(e){}function Ja(e,t,n,o){const r=new SyntaxError(String(e));return r.code=e,r.loc=t,r}const Ka=Symbol(""),Ya=Symbol(""),Qa=Symbol(""),Xa=Symbol(""),Za=Symbol(""),el=Symbol(""),tl=Symbol(""),nl=Symbol(""),ol=Symbol(""),rl=Symbol(""),il=Symbol(""),sl=Symbol(""),al=Symbol(""),ll=Symbol(""),cl=Symbol(""),dl=Symbol(""),ul=Symbol(""),pl=Symbol(""),fl=Symbol(""),hl=Symbol(""),ml=Symbol(""),gl=Symbol(""),vl=Symbol(""),bl=Symbol(""),yl=Symbol(""),_l=Symbol(""),xl=Symbol(""),wl=Symbol(""),Il=Symbol(""),Sl=Symbol(""),Cl=Symbol(""),Dl=Symbol(""),kl=Symbol(""),Fl=Symbol(""),El=Symbol(""),Tl=Symbol(""),Pl=Symbol(""),Ol=Symbol(""),Rl=Symbol(""),Nl={[Ka]:"Fragment",[Ya]:"Teleport",[Qa]:"Suspense",[Xa]:"KeepAlive",[Za]:"BaseTransition",[el]:"openBlock",[tl]:"createBlock",[nl]:"createElementBlock",[ol]:"createVNode",[rl]:"createElementVNode",[il]:"createCommentVNode",[sl]:"createTextVNode",[al]:"createStaticVNode",[ll]:"resolveComponent",[cl]:"resolveDynamicComponent",[dl]:"resolveDirective",[ul]:"resolveFilter",[pl]:"withDirectives",[fl]:"renderList",[hl]:"renderSlot",[ml]:"createSlots",[gl]:"toDisplayString",[vl]:"mergeProps",[bl]:"normalizeClass",[yl]:"normalizeStyle",[_l]:"normalizeProps",[xl]:"guardReactiveProps",[wl]:"toHandlers",[Il]:"camelize",[Sl]:"capitalize",[Cl]:"toHandlerKey",[Dl]:"setBlockTracking",[kl]:"pushScopeId",[Fl]:"popScopeId",[El]:"withCtx",[Tl]:"unref",[Pl]:"isRef",[Ol]:"withMemo",[Rl]:"isMemoSame"},Al={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Ll(e,t,n,o,r,i,s,a=!1,l=!1,c=!1,d=Al){return e&&(a?(e.helper(el),e.helper(uc(e.inSSR,c))):e.helper(dc(e.inSSR,c)),s&&e.helper(pl)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:i,directives:s,isBlock:a,disableTracking:l,isComponent:c,loc:d}}function jl(e,t=Al){return{type:17,loc:t,elements:e}}function Ml(e,t=Al){return{type:15,loc:t,properties:e}}function $l(e,t){return{type:16,loc:Al,key:B(e)?Bl(e,!0):e,value:t}}function Bl(e,t=!1,n=Al,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Vl(e,t=Al){return{type:8,loc:t,children:e}}function Hl(e,t=[],n=Al){return{type:14,loc:n,callee:e,arguments:t}}function ql(e,t=undefined,n=!1,o=!1,r=Al){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Ul(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Al}}const zl=e=>4===e.type&&e.isStatic,Gl=(e,t)=>e===t||e===te(t);function Wl(e){return Gl(e,"Teleport")?Ya:Gl(e,"Suspense")?Qa:Gl(e,"KeepAlive")?Xa:Gl(e,"BaseTransition")?Za:void 0}const Jl=/^\d|[^\$\w]/,Kl=e=>!Jl.test(e),Yl=/[A-Za-z_$\xA0-\uFFFF]/,Ql=/[\.\?\w$\xA0-\uFFFF]/,Xl=/\s+[.[]\s*|\s*[.[]\s+/g,Zl=e=>{e=e.trim().replace(Xl,(e=>e.trim()));let t=0,n=[],o=0,r=0,i=null;for(let s=0;s4===e.key.type&&e.key.content===o))}return n}function gc(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function vc(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(dc(o,e.isComponent)),t(el),t(uc(o,e.isComponent)))}function bc(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,o=n&&n[e];return"MODE"===e?o||3:o}function yc(e,t){const n=bc("MODE",t),o=bc(e,t);return 3===n?!0===o:!1!==o}function _c(e,t,n,...o){return yc(e,t)}const xc=/&(gt|lt|amp|apos|quot);/g,wc={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ic={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:D,isPreTag:D,isCustomElement:D,decodeEntities:e=>e.replace(xc,((e,t)=>wc[t])),onError:Ga,onWarn:Wa,comments:!1};function Sc(e,t,n){const o=$c(n),r=o?o.ns:0,i=[];for(;!zc(e,t,n);){const s=e.source;let a;if(0===t||1===t)if(!e.inVPre&&Bc(s,e.options.delimiters[0]))a=Nc(e,t);else if(0===t&&"<"===s[0])if(1===s.length)Uc(e,5,1);else if("!"===s[1])Bc(s,"\x3c!--")?a=kc(e):Bc(s,""===s[2]){Uc(e,14,2),Vc(e,3);continue}if(/[a-z]/i.test(s[2])){Uc(e,23),Pc(e,1,o);continue}Uc(e,12,2),a=Fc(e)}else/[a-z]/i.test(s[1])?(a=Ec(e,n),yc("COMPILER_NATIVE_TEMPLATE",e)&&a&&"template"===a.tag&&!a.props.some((e=>7===e.type&&Tc(e.name)))&&(a=a.children)):"?"===s[1]?(Uc(e,21,1),a=Fc(e)):Uc(e,12,1);if(a||(a=Ac(e,t)),N(a))for(let e=0;e/.exec(e.source);if(o){o.index<=3&&Uc(e,0),o[1]&&Uc(e,10),n=e.source.slice(4,o.index);const t=e.source.slice(0,o.index);let r=1,i=0;for(;-1!==(i=t.indexOf("\x3c!--",r));)Vc(e,i-r+1),i+4");return-1===r?(o=e.source.slice(n),Vc(e,e.source.length)):(o=e.source.slice(n,r),Vc(e,r+1)),{type:3,content:o,loc:Mc(e,t)}}function Ec(e,t){const n=e.inPre,o=e.inVPre,r=$c(t),i=Pc(e,0,r),s=e.inPre&&!n,a=e.inVPre&&!o;if(i.isSelfClosing||e.options.isVoidTag(i.tag))return s&&(e.inPre=!1),a&&(e.inVPre=!1),i;t.push(i);const l=e.options.getTextMode(i,r),c=Sc(e,l,t);t.pop();{const t=i.props.find((e=>6===e.type&&"inline-template"===e.name));if(t&&_c("COMPILER_INLINE_TEMPLATE",e,t.loc)){const n=Mc(e,i.loc.end);t.value={type:2,content:n.source,loc:n}}}if(i.children=c,Gc(e.source,i.tag))Pc(e,1,r);else if(Uc(e,24,0,i.loc.start),0===e.source.length&&"script"===i.tag.toLowerCase()){const t=c[0];t&&Bc(t.loc.source,"\x3c!--")&&Uc(e,8)}return i.loc=Mc(e,i.loc.start),s&&(e.inPre=!1),a&&(e.inVPre=!1),i}const Tc=r("if,else,else-if,for,slot");function Pc(e,t,n){const o=jc(e),r=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),i=r[1],s=e.options.getNamespace(i,n);Vc(e,r[0].length),Hc(e);const a=jc(e),l=e.source;e.options.isPreTag(i)&&(e.inPre=!0);let c=Oc(e,t);0===t&&!e.inVPre&&c.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,T(e,a),e.source=l,c=Oc(e,t).filter((e=>"v-pre"!==e.name)));let d=!1;if(0===e.source.length?Uc(e,9):(d=Bc(e.source,"/>"),1===t&&d&&Uc(e,4),Vc(e,d?2:1)),1===t)return;let u=0;return e.inVPre||("slot"===i?u=2:"template"===i?c.some((e=>7===e.type&&Tc(e.name)))&&(u=3):function(e,t,n){const o=n.options;if(o.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||Wl(e)||o.isBuiltInComponent&&o.isBuiltInComponent(e)||o.isNativeTag&&!o.isNativeTag(e))return!0;for(let e=0;e0&&!Bc(e.source,">")&&!Bc(e.source,"/>");){if(Bc(e.source,"/")){Uc(e,22),Vc(e,1),Hc(e);continue}1===t&&Uc(e,3);const r=Rc(e,o);6===r.type&&r.value&&"class"===r.name&&(r.value.content=r.value.content.replace(/\s+/g," ").trim()),0===t&&n.push(r),/^[^\t\r\n\f />]/.test(e.source)&&Uc(e,15),Hc(e)}return n}function Rc(e,t){const n=jc(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o)&&Uc(e,2),t.add(o),"="===o[0]&&Uc(e,19);{const t=/["'<]/g;let n;for(;n=t.exec(o);)Uc(e,17,n.index)}let r;Vc(e,o.length),/^[\t\r\n\f ]*=/.test(e.source)&&(Hc(e),Vc(e,1),Hc(e),r=function(e){const t=jc(e);let n;const o=e.source[0],r='"'===o||"'"===o;if(r){Vc(e,1);const t=e.source.indexOf(o);-1===t?n=Lc(e,e.source.length,4):(n=Lc(e,t,4),Vc(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const o=/["'<=`]/g;let r;for(;r=o.exec(t[0]);)Uc(e,18,r.index);n=Lc(e,t[0].length,4)}return{content:n,isQuoted:r,loc:Mc(e,t)}}(e),r||Uc(e,13));const i=Mc(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let s,a=Bc(o,"."),l=t[1]||(a||Bc(o,":")?"bind":Bc(o,"@")?"on":"slot");if(t[2]){const r="slot"===l,i=o.lastIndexOf(t[2]),a=Mc(e,qc(e,n,i),qc(e,n,i+t[2].length+(r&&t[3]||"").length));let c=t[2],d=!0;c.startsWith("[")?(d=!1,c.endsWith("]")?c=c.slice(1,c.length-1):(Uc(e,27),c=c.slice(1))):r&&(c+=t[3]||""),s={type:4,content:c,isStatic:d,constType:d?3:0,loc:a}}if(r&&r.isQuoted){const e=r.loc;e.start.offset++,e.start.column++,e.end=tc(e.start,r.content),e.source=e.source.slice(1,-1)}const c=t[3]?t[3].slice(1).split("."):[];return a&&c.push("prop"),"bind"===l&&s&&c.includes("sync")&&_c("COMPILER_V_BIND_SYNC",e,0,s.loc.source)&&(l="model",c.splice(c.indexOf("sync"),1)),{type:7,name:l,exp:r&&{type:4,content:r.content,isStatic:!1,constType:0,loc:r.loc},arg:s,modifiers:c,loc:i}}return!e.inVPre&&Bc(o,"v-")&&Uc(e,26),{type:6,name:o,value:r&&{type:2,content:r.content,loc:r.loc},loc:i}}function Nc(e,t){const[n,o]=e.options.delimiters,r=e.source.indexOf(o,n.length);if(-1===r)return void Uc(e,25);const i=jc(e);Vc(e,n.length);const s=jc(e),a=jc(e),l=r-n.length,c=e.source.slice(0,l),d=Lc(e,l,t),u=d.trim(),p=d.indexOf(u);return p>0&&nc(s,c,p),nc(a,c,l-(d.length-u.length-p)),Vc(e,o.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:u,loc:Mc(e,s,a)},loc:Mc(e,i)}}function Ac(e,t){const n=3===t?["]]>"]:["<",e.options.delimiters[0]];let o=e.source.length;for(let t=0;tr&&(o=r)}const r=jc(e);return{type:2,content:Lc(e,o,t),loc:Mc(e,r)}}function Lc(e,t,n){const o=e.source.slice(0,t);return Vc(e,t),2!==n&&3!==n&&o.includes("&")?e.options.decodeEntities(o,4===n):o}function jc(e){const{column:t,line:n,offset:o}=e;return{column:t,line:n,offset:o}}function Mc(e,t,n){return{start:t,end:n=n||jc(e),source:e.originalSource.slice(t.offset,n.offset)}}function $c(e){return e[e.length-1]}function Bc(e,t){return e.startsWith(t)}function Vc(e,t){const{source:n}=e;nc(e,n,t),e.source=n.slice(t)}function Hc(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&Vc(e,t[0].length)}function qc(e,t,n){return tc(t,e.originalSource.slice(t.offset,n),n)}function Uc(e,t,n,o=jc(e)){n&&(o.offset+=n,o.column+=n),e.options.onError(Ja(t,{start:o,end:o,source:""}))}function zc(e,t,n){const o=e.source;switch(t){case 0:if(Bc(o,"=0;--e)if(Gc(o,n[e].tag))return!0;break;case 1:case 2:{const e=$c(n);if(e&&Gc(o,e.tag))return!0;break}case 3:if(Bc(o,"]]>"))return!0}return!o}function Gc(e,t){return Bc(e,"]/.test(e[2+t.length]||">")}function Wc(e,t){Kc(e,t,Jc(e,e.children[0]))}function Jc(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!cc(t)}function Kc(e,t,n=!1){const{children:o}=e,r=o.length;let i=0;for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag="-1",r.codegenNode=t.hoist(r.codegenNode),i++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=td(e);if((!n||512===n||1===n)&&Zc(r,t)>=2){const n=ed(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Kc(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Kc(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${Nl[S.helper(e)]}`,replaceNode(e){S.parent.children[S.childIndex]=S.currentNode=e},removeNode(e){const t=S.parent.children,n=e?t.indexOf(e):S.currentNode?S.childIndex:-1;e&&e!==S.currentNode?S.childIndex>n&&(S.childIndex--,S.onNodeRemoved()):(S.currentNode=null,S.onNodeRemoved()),S.parent.children.splice(n,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){B(e)&&(e=Bl(e)),S.hoists.push(e);const t=Bl(`_hoisted_${S.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Al}}(S.cached++,e,t)};return S.filters=new Set,S}(e,t);od(e,n),t.hoistStatic&&Wc(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Jc(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&vc(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;i[64],e.codegenNode=Ll(t,n(Ka),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function od(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(ac))return;const i=[];for(let s=0;s`${Nl[e]}: _${Nl[e]}`;function ad(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:d=!1,isTS:u=!1,inSSR:p=!1}){const f={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:i,optimizeImports:s,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:d,isTS:u,inSSR:p,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${Nl[e]}`,push(e,t){f.code+=e},indent(){h(++f.indentLevel)},deindent(e=!1){e?--f.indentLevel:h(--f.indentLevel)},newline(){h(f.indentLevel)}};function h(e){f.push("\n"+" ".repeat(e))}return f}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:i,indent:s,deindent:a,newline:l,scopeId:c,ssr:d}=n,u=Array.from(e.helpers),p=u.length>0,f=!i&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:i,runtimeModuleName:s,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,d=Array.from(e.helpers);d.length>0&&(r(`const _Vue = ${c}\n`),e.hoists.length)&&r(`const { ${[ol,rl,il,sl,al].filter((e=>d.includes(e))).map(sd).join(", ")} } = _Vue\n`),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:i,mode:s}=t;o();for(let r=0;r0)&&l()),e.directives.length&&(ld(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),ld(e.filters,"filter",n),l()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n"),l()),d||r("return "),e.codegenNode?ud(e.codegenNode,n):r("null"),f&&(a(),r("}")),a(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function ld(e,t,{helper:n,push:o,newline:r,isTS:i}){const s=n("filter"===t?ul:"component"===t?ll:dl);for(let n=0;n3||!1;t.push("["),n&&t.indent(),dd(e,t,n),n&&t.deindent(),t.push("]")}function dd(e,t,n=!1,o=!0){const{push:r,newline:i}=t;for(let s=0;se||"null"))}([i,s,a,l,c]),t),n(")"),u&&n(")"),d&&(n(", "),ud(d,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,i=B(e.callee)?e.callee:o(e.callee);r&&n(id),n(i+"(",e),dd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",e);const a=s.length>1||!1;n(a?"{":"{ "),a&&o();for(let e=0;e "),(l||a)&&(n("{"),o()),s?(l&&n("return "),N(s)?cd(s,t):ud(s,t)):a&&ud(a,t),(l||a)&&(r(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:i}=e,{push:s,indent:a,deindent:l,newline:c}=t;if(4===n.type){const e=!Kl(n.content);e&&s("("),pd(n,t),e&&s(")")}else s("("),ud(n,t),s(")");i&&a(),t.indentLevel++,i||s(" "),s("? "),ud(o,t),t.indentLevel--,i&&c(),i||s(" "),s(": ");const d=19===r.type;d||t.indentLevel++,ud(r,t),d||t.indentLevel--,i&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(`${o(Dl)}(-1),`),s()),n(`_cache[${e.index}] = `),ud(e.value,t),e.isVNode&&(n(","),s(),n(`${o(Dl)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:dd(e.body,t,!0,!1)}}function pd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,e)}function fd(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ja(28,t.loc)),t.exp=Bl("true",!1,o)}if("if"===t.name){const r=gd(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),o)return o(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-- >=-1;){const s=r[i];if(s&&3===s.type)n.removeNode(s);else{if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(Ja(30,e.loc)),n.removeNode();const r=gd(e,t);s.branches.push(r);const i=o&&o(s,r,!1);od(r,n),i&&i(),n.currentNode=null}else n.onError(Ja(30,e.loc));break}n.removeNode(s)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let i=r.indexOf(e),s=0;for(;i-- >=0;){const e=r[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(o)e.codegenNode=vd(t,s,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=vd(t,s+e.branches.length-1,n)}}}))));function gd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!oc(e,"for")?e.children:[e],userKey:rc(e,"key"),isTemplateIf:n}}function vd(e,t,n){return e.condition?Ul(e.condition,bd(e,t,n),Hl(n.helper(il),['""',"true"])):bd(e,t,n)}function bd(e,t,n){const{helper:o}=n,r=$l("key",Bl(`${t}`,!1,Al,2)),{children:s}=e,a=s[0];if(1!==s.length||1!==a.type){if(1===s.length&&11===a.type){const e=a.codegenNode;return hc(e,r,n),e}{let t=64;return i[64],Ll(n,o(Ka),Ml([r]),s,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=14===(l=e).type&&l.callee===Ol?l.arguments[1].returns:l;return 13===t.type&&vc(t,n),hc(t,r,n),e}var l}const yd=rd("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ja(31,t.loc));const r=Id(t.exp);if(!r)return void n.onError(Ja(32,t.loc));const{addIdentifiers:i,removeIdentifiers:s,scopes:a}=n,{source:l,value:c,key:d,index:u}=r,p={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:d,objectIndexAlias:u,parseResult:r,children:lc(e)?e.children:[e]};n.replaceNode(p),a.vFor++;const f=o&&o(p);return()=>{a.vFor--,f&&f()}}(e,t,n,(t=>{const i=Hl(o(fl),[t.source]),s=lc(e),a=oc(e,"memo"),l=rc(e,"key"),c=l&&(6===l.type?Bl(l.value.content,!0):l.exp),d=l?$l("key",c):null,u=4===t.source.type&&t.source.constType>0,p=u?64:l?128:256;return t.codegenNode=Ll(n,o(Ka),void 0,i,p+"",void 0,void 0,!0,!u,!1,e.loc),()=>{let l;const{children:p}=t,f=1!==p.length||1!==p[0].type,h=cc(e)?e:s&&1===e.children.length&&cc(e.children[0])?e.children[0]:null;if(h?(l=h.codegenNode,s&&d&&hc(l,d,n)):f?l=Ll(n,o(Ka),d?Ml([d]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(l=p[0].codegenNode,s&&d&&hc(l,d,n),l.isBlock!==!u&&(l.isBlock?(r(el),r(uc(n.inSSR,l.isComponent))):r(dc(n.inSSR,l.isComponent))),l.isBlock=!u,l.isBlock?(o(el),o(uc(n.inSSR,l.isComponent))):o(dc(n.inSSR,l.isComponent))),a){const e=ql(Cd(t.parseResult,[Bl("_cached")]));e.body={type:21,body:[Vl(["const _memo = (",a.exp,")"]),Vl(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(Rl)}(_cached, _memo)) return _cached`]),Vl(["const _item = ",l]),Bl("_item.memo = _memo"),Bl("return _item")],loc:Al},i.arguments.push(e,Bl("_cache"),Bl(String(n.cached++)))}else i.arguments.push(ql(Cd(t.parseResult),l,!0))}}))})),_d=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,xd=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,wd=/^\(|\)$/g;function Id(e,t){const n=e.loc,o=e.content,r=o.match(_d);if(!r)return;const[,i,s]=r,a={source:Sd(n,s.trim(),o.indexOf(s,i.length)),value:void 0,key:void 0,index:void 0};let l=i.trim().replace(wd,"").trim();const c=i.indexOf(l),d=l.match(xd);if(d){l=l.replace(xd,"").trim();const e=d[1].trim();let t;if(e&&(t=o.indexOf(e,c+l.length),a.key=Sd(n,e,t)),d[2]){const r=d[2].trim();r&&(a.index=Sd(n,r,o.indexOf(r,a.key?t+e.length:c+l.length)))}}return l&&(a.value=Sd(n,l,c)),a}function Sd(e,t,n){return Bl(t,!1,ec(e,n,t.length))}function Cd({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Bl("_".repeat(t+1),!1)))}([e,t,n,...o])}const Dd=Bl("undefined",!1),kd=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=oc(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Fd=(e,t,n)=>ql(e,t,!1,!0,t.length?t[0].loc:n);function Ed(e,t,n=Fd){t.helper(El);const{children:o,loc:r}=e,i=[],s=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=oc(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!zl(e)&&(a=!0),i.push($l(e||Bl("default",!0),n(t,o,r)))}let c=!1,d=!1;const u=[],p=new Set;let f=0;for(let e=0;e{const i=n(e,o,r);return t.compatConfig&&(i.isNonScopedSlot=!0),$l("default",i)};c?u.length&&u.some((e=>Od(e)))&&(d?t.onError(Ja(39,u[0].loc)):i.push(e(void 0,u))):i.push(e(void 0,o))}const h=a?2:Pd(e.children)?3:1;let m=Ml(i.concat($l("_",Bl(h+"",!1))),r);return s.length&&(m=Hl(t.helper(ml),[m,jl(s)])),{slots:m,hasDynamicSlots:a}}function Td(e,t,n){const o=[$l("name",e),$l("fn",t)];return null!=n&&o.push($l("key",Bl(String(n),!0))),Ml(o)}function Pd(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let i=r?function(e,t,n=!1){let{tag:o}=e;const r=Md(o),i=rc(e,"is");if(i)if(r||yc("COMPILER_IS_ON_ELEMENT",t)){const e=6===i.type?i.value&&Bl(i.value.content,!0):i.exp;if(e)return Hl(t.helper(cl),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const s=!r&&oc(e,"is");if(s&&s.exp)return Hl(t.helper(cl),[s.exp]);const a=Wl(o)||t.isBuiltInComponent(o);return a?(n||t.helper(a),a):(t.helper(ll),t.components.add(o),gc(o,"component"))}(e,t):`"${n}"`;const s=H(i)&&i.callee===cl;let a,l,c,d,u,p,f=0,h=s||i===Ya||i===Qa||!r&&("svg"===n||"foreignObject"===n);if(o.length>0){const n=Ad(e,t,void 0,r,s);a=n.props,f=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;p=o&&o.length?jl(o.map((e=>function(e,t){const n=[],o=Rd.get(e);o?n.push(t.helperString(o)):(t.helper(dl),t.directives.add(e.name),n.push(gc(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Bl("true",!1,r);n.push(Ml(e.modifiers.map((e=>$l(e,t))),r))}return jl(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0)if(i===Xa&&(h=!0,f|=1024),r&&i!==Ya&&i!==Xa){const{slots:n,hasDynamicSlots:o}=Ed(e,t);l=n,o&&(f|=1024)}else if(1===e.children.length&&i!==Ya){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Yc(n,t)&&(f|=1),l=r||2===o?n:e.children}else l=e.children;0!==f&&(c=String(f),u&&u.length&&(d=function(e){let t="[";for(let n=0,o=e.length;n0;let f=!1,h=0,m=!1,g=!1,v=!1,b=!1,y=!1,_=!1;const x=[],w=e=>{c.length&&(d.push(Ml(Ld(c),a)),c=[]),e&&d.push(e)},I=({key:e,value:n})=>{if(zl(e)){const i=e.content,s=F(i);if(!s||o&&!r||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||K(i)||(b=!0),s&&K(i)&&(_=!0),20===n.type||(4===n.type||8===n.type)&&Yc(n,t)>0)return;"ref"===i?m=!0:"class"===i?g=!0:"style"===i?v=!0:"key"===i||x.includes(i)||x.push(i),!o||"class"!==i&&"style"!==i||x.includes(i)||x.push(i)}else y=!0};for(let r=0;r0&&c.push($l(Bl("ref_for",!0),Bl("true")))),"is"===n&&(Md(s)||o&&o.content.startsWith("vue:")||yc("COMPILER_IS_ON_ELEMENT",t)))continue;c.push($l(Bl(n,!0,ec(e,0,n.length)),Bl(o?o.content:"",r,o?o.loc:e)))}else{const{name:n,arg:r,exp:h,loc:m}=l,g="bind"===n,v="on"===n;if("slot"===n){o||t.onError(Ja(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||g&&ic(r,"is")&&(Md(s)||yc("COMPILER_IS_ON_ELEMENT",t)))continue;if(v&&i)continue;if((g&&ic(r,"key")||v&&p&&ic(r,"vue:before-update"))&&(f=!0),g&&ic(r,"ref")&&t.scopes.vFor>0&&c.push($l(Bl("ref_for",!0),Bl("true"))),!r&&(g||v)){if(y=!0,h)if(g){if(w(),yc("COMPILER_V_BIND_OBJECT_ORDER",t)){d.unshift(h);continue}d.push(h)}else w({type:14,loc:m,callee:t.helper(wl),arguments:o?[h]:[h,"true"]});else t.onError(Ja(g?34:35,m));continue}const b=t.directiveTransforms[n];if(b){const{props:n,needRuntime:o}=b(l,e,t);!i&&n.forEach(I),v&&r&&!zl(r)?w(Ml(n,a)):c.push(...n),o&&(u.push(l),V(o)&&Rd.set(l,o))}else Y(n)||(u.push(l),p&&(f=!0))}}let S;if(d.length?(w(),S=d.length>1?Hl(t.helper(vl),d,a):d[0]):c.length&&(S=Ml(Ld(c),a)),y?h|=16:(g&&!o&&(h|=2),v&&!o&&(h|=4),x.length&&(h|=8),b&&(h|=32)),f||0!==h&&32!==h||!(m||_||u.length>0)||(h|=512),!t.inSSR&&S)switch(S.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{const t=Object.create(null);return e=>t[e]||(t[e]=(e=>e.replace($d,((e,t)=>t?t.toUpperCase():"")))(e))})(),Vd=(e,t)=>{if(cc(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:i}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:i}=Ad(e,t,r,!1,!1);n=o,i.length&&t.onError(Ja(36,i[0].loc))}return{slotName:o,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let a=2;i&&(s[2]=i,a=3),n.length&&(s[3]=ql([],n,!1,!1,o),a=4),t.scopeId&&!t.slotted&&(a=5),s.splice(a),e.codegenNode=Hl(t.helper(hl),s,o)}},Hd=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,qd=(e,t,n,o)=>{const{loc:r,modifiers:i,arg:s}=e;let a;if(e.exp||i.length||n.onError(Ja(35,r)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),a=Bl(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?oe(Z(e)):`on:${e}`,!0,s.loc)}else a=Vl([`${n.helperString(Cl)}(`,s,")"]);else a=s,a.children.unshift(`${n.helperString(Cl)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=Zl(l.content),t=!(e||Hd.test(l.content)),n=l.content.includes(";");(t||c&&e)&&(l=Vl([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let d={props:[$l(a,l||Bl("() => {}",!1,r))]};return o&&(d=o(d)),c&&(d.props[0].value=n.cache(d.props[0].value)),d.props.forEach((e=>e.key.isHandlerKey=!0)),d},Ud=(e,t,n)=>{const{exp:o,modifiers:r,loc:i}=e,s=e.arg;return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),r.includes("camel")&&(4===s.type?s.isStatic?s.content=Z(s.content):s.content=`${n.helperString(Il)}(${s.content})`:(s.children.unshift(`${n.helperString(Il)}(`),s.children.push(")"))),n.inSSR||(r.includes("prop")&&zd(s,"."),r.includes("attr")&&zd(s,"^")),!o||4===o.type&&!o.content.trim()?(n.onError(Ja(34,i)),{props:[$l(s,Bl("",!0,i))]}):{props:[$l(s,o)]}},zd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Gd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&oc(e,"once",!0)){if(Wd.has(e)||t.inVOnce)return;return Wd.add(e),t.inVOnce=!0,t.helper(Dl),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Kd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ja(41,e.loc)),Yd();const i=o.loc.source,s=4===o.type?o.content:i,a=n.bindingMetadata[i];if("props"===a||"props-aliased"===a)return n.onError(Ja(44,o.loc)),Yd();if(!s.trim()||!Zl(s))return n.onError(Ja(42,o.loc)),Yd();const l=r||Bl("modelValue",!0),c=r?zl(r)?`onUpdate:${Z(r.content)}`:Vl(['"onUpdate:" + ',r]):"onUpdate:modelValue";let d;d=Vl([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const u=[$l(l,e.exp),$l(c,d)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Kl(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?zl(r)?`${r.content}Modifiers`:Vl([r,' + "Modifiers"']):"modelModifiers";u.push($l(n,Bl(`{ ${t} }`,!1,e.loc,2)))}return Yd(u)};function Yd(e=[]){return{props:e}}const Qd=/[\w).+\-_$\]]/,Xd=(e,t)=>{yc("COMPILER_FILTER",t)&&(5===e.type&&Zd(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Zd(e.exp,t)})))};function Zd(e,t){if(4===e.type)eu(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Qd.test(e)||(d=!0)}}else void 0===s?(h=i+1,s=n.slice(0,i).trim()):g();function g(){m.push(n.slice(h,i).trim()),h=i+1}if(void 0===s?s=n.slice(0,i).trim():0!==h&&g(),m.length){for(i=0;i{if(1===e.type){const n=oc(e,"memo");if(!n||nu.has(e))return;return nu.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&vc(o,t),e.codegenNode=Hl(t.helper(Ol),[n.exp,ql(void 0,o),"_cache",String(t.cached++)]))}}};function ru(e,t={}){const n=t.onError||Ga,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ja(47)):o&&n(Ja(48)),t.cacheHandlers&&n(Ja(49)),t.scopeId&&!o&&n(Ja(50));const r=B(e)?function(e,t={}){const n=function(e,t){const n=T({},Ic);let o;for(o in t)n[o]=void 0===t[o]?Ic[o]:t[o];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),o=jc(n);return function(e,t=Al){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(Sc(n,0,[]),Mc(n,o))}(e,t):e,[i,s]=[[Jd,md,ou,yd,Xd,Vd,Nd,kd,Gd],{on:qd,bind:Ud,model:Kd}];return nd(r,T({},t,{prefixIdentifiers:!1,nodeTransforms:[...i,...t.nodeTransforms||[]],directiveTransforms:T({},s,t.directiveTransforms||{})})),ad(r,T({},t,{prefixIdentifiers:!1}))}const iu=Symbol(""),su=Symbol(""),au=Symbol(""),lu=Symbol(""),cu=Symbol(""),du=Symbol(""),uu=Symbol(""),pu=Symbol(""),fu=Symbol(""),hu=Symbol("");var mu;let gu;mu={[iu]:"vModelRadio",[su]:"vModelCheckbox",[au]:"vModelText",[lu]:"vModelSelect",[cu]:"vModelDynamic",[du]:"withModifiers",[uu]:"withKeys",[pu]:"vShow",[fu]:"Transition",[hu]:"TransitionGroup"},Object.getOwnPropertySymbols(mu).forEach((e=>{Nl[e]=mu[e]}));const vu=r("style,iframe,script,noscript",!0),bu={isVoidTag:g,isNativeTag:e=>h(e)||m(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return gu||(gu=document.createElement("div")),t?(gu.innerHTML=`
    `,gu.children[0].getAttribute("foo")):(gu.innerHTML=e,gu.textContent)},isBuiltInComponent:e=>Gl(e,"Transition")?fu:Gl(e,"TransitionGroup")?hu:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(vu(e))return 2}return 0}},yu=(e,t)=>{const n=u(e);return Bl(JSON.stringify(n),!1,t,3)};function _u(e,t){return Ja(e,t)}const xu=r("passive,once,capture"),wu=r("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Iu=r("left,right"),Su=r("onkeyup,onkeydown,onkeypress",!0),Cu=(e,t)=>zl(e)&&"onclick"===e.content.toLowerCase()?Bl(t,!0):4!==e.type?Vl(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Du=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||(t.onError(_u(61,e.loc)),t.removeNode())},ku=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Bl("style",!0,t.loc),exp:yu(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Fu={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(_u(51,r)),t.children.length&&(n.onError(_u(52,r)),t.children.length=0),{props:[$l(Bl("innerHTML",!0,r),o||Bl("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(_u(53,r)),t.children.length&&(n.onError(_u(54,r)),t.children.length=0),{props:[$l(Bl("textContent",!0),o?Yc(o,n)>0?o:Hl(n.helperString(gl),[o],r):Bl("",!0))]}},model:(e,t,n)=>{const o=Kd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(_u(56,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||i){let s=au,a=!1;if("input"===r||i){const o=rc(t,"type");if(o){if(7===o.type)s=cu;else if(o.value)switch(o.value.content){case"radio":s=iu;break;case"checkbox":s=su;break;case"file":a=!0,n.onError(_u(57,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(s=cu)}else"select"===r&&(s=lu);a||(o.needRuntime=n.helper(s))}else n.onError(_u(55,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>qd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:i}=t.props[0];const{keyModifiers:s,nonKeyModifiers:a,eventOptionModifiers:l}=((e,t,n,o)=>{const r=[],i=[],s=[];for(let o=0;o{const{exp:o,loc:r}=e;return o||n.onError(_u(59,r)),{props:[],needRuntime:n.helper(pu)}}},Eu=Object.create(null);Ji((function(e,t){if(!B(e)){if(!e.nodeType)return C;e=e.innerHTML}const n=e,r=Eu[n];if(r)return r;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const i=T({hoistStatic:!0,onError:void 0,onWarn:C},t);i.isCustomElement||"undefined"==typeof customElements||(i.isCustomElement=e=>!!customElements.get(e));const{code:s}=function(e,t={}){return ru(e,T({},bu,t,{nodeTransforms:[Du,...ku,...t.nodeTransforms||[]],directiveTransforms:T({},Fu,t.directiveTransforms||{}),transformHoist:null}))}(e,i),a=new Function("Vue",s)(o);return a._rc=!0,Eu[n]=a}))}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}r.m=n,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>e+".LEAF_FormEditor_main_build.js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="leaf_vue:",r.l=(n,o,i,s)=>{if(e[n])e[n].push(o);else{var a,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(f);var r=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(o))),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={179:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=i);var s=r.p+r.u(t),a=new Error;r.l(s,(n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,o[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,i,[s,a,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);l&&l(r)}for(t&&t(n);c{var e=r(166);const t={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null}},props:{hasDevConsoleAccess:{type:Number,default:0}},inject:["dialogTitle","showFormDialog","closeFormDialog","formSaveFunction","dialogButtonText"],provide:function(){return{hasDevConsoleAccess:this.hasDevConsoleAccess}},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID);var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes)},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,r=0,i=0,s=function(e){(e=e||window.event).preventDefault(),n=r-e.clientX,o=i-e.clientY,r=e.clientX,i=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",l()},a=function(){document.onmouseup=null,document.onmousemove=null},l=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),r=e.clientX,i=e.clientY,document.onmouseup=a,document.onmousemove=s})}},template:'\n
    \n \n
    \n
    '},n={name:"indicator-editing-dialog",data:function(){var e,t,n,o,r,i,s,a,l,c,d,u,p,f;return{initialFocusElID:"name",showAdditionalOptions:!1,showDetailedFormatInfo:!1,formID:this.focusedFormRecord.categoryID,formats:{text:"Single line text",textarea:"Multi-line text",grid:"Grid (Table with rows and columns)",number:"Numeric",currency:"Currency",date:"Date",radio:"Radio (single select, multiple options)",checkbox:"Checkbox (A single checkbox)",checkboxes:"Checkboxes (Multiple Checkboxes)",multiselect:"Multi-Select Dropdown",dropdown:"Dropdown Menu (single select, multiple options)",fileupload:"File Attachment",image:"Image Attachment",orgchart_group:"Orgchart Group",orgchart_position:"Orgchart Position",orgchart_employee:"Orgchart Employee",raw_data:"Raw Data (for programmers)"},formatInfo:{text:"A single input for short text entries.",textarea:"A large area for multiple lines of text and limited text formatting options.",grid:"A table format with rows and columns. Additional rows can be added, removed, or moved during data entry.",number:"A single input used to store numeric data. Useful for information that will be used for calculations.",currency:"A single input used to store currency values in dollars to two decimal places.",date:"Embeds a datepicker.",radio:"Radio buttons allow a single selection from multiple options. All of the question's options will display.",checkbox:"A single checkbox is typically used for confirmation. The checkbox label text can be further customized.",checkboxes:"Checkboxes will allow the selection of multiple options. All of the question's options will display.",multiselect:"Multi-Select format will allow the selection of several options from a selection box with a dropdown. Only selected items will display.",dropdown:"A dropdown menu will allow one selection from multiple options. Only the selected option will display.",fileupload:"File Attachment",image:"Similar to file upload, but only image format files will be shown during selection",orgchart_group:"Orgchart Group format is used to select a specific LEAF User Access Group",orgchart_position:"Orgchart Position format is used to select a specific LEAF user by their position in the orgchart",orgchart_employee:"Orgchart Employee format is used to select a specific LEAF user from the orgchart",raw_data:"Raw Data is associated with Advanced Options, which can be used by programmers to run custom code during form data entry or review"},listForParentIDs:[],isLoadingParentIDs:!0,multianswerFormats:["checkboxes","radio","multiselect","dropdown"],newIndicatorID:null,name:(null===(e=this.indicatorRecord[this.currIndicatorID])||void 0===e?void 0:e.name)||"",options:(null===(t=this.indicatorRecord[this.currIndicatorID])||void 0===t?void 0:t.options)||[],format:(null===(n=this.indicatorRecord[this.currIndicatorID])||void 0===n?void 0:n.format)||"",description:(null===(o=this.indicatorRecord[this.currIndicatorID])||void 0===o?void 0:o.description)||"",defaultValue:this.stripAndDecodeHTML((null===(r=this.indicatorRecord[this.currIndicatorID])||void 0===r?void 0:r.default)||""),required:1===parseInt(null===(i=this.indicatorRecord[this.currIndicatorID])||void 0===i?void 0:i.required)||!1,is_sensitive:1===parseInt(null===(s=this.indicatorRecord[this.currIndicatorID])||void 0===s?void 0:s.is_sensitive)||!1,parentID:null!==(a=this.indicatorRecord[this.currIndicatorID])&&void 0!==a&&a.parentID?parseInt(this.indicatorRecord[this.currIndicatorID].parentID):this.newIndicatorParentID,sort:void 0!==(null===(l=this.indicatorRecord[this.currIndicatorID])||void 0===l?void 0:l.sort)?parseInt(this.indicatorRecord[this.currIndicatorID].sort):null,singleOptionValue:"checkbox"===(null===(c=this.indicatorRecord[this.currIndicatorID])||void 0===c?void 0:c.format)?this.indicatorRecord[this.currIndicatorID].options:"",multiOptionValue:["checkboxes","radio","multiselect","dropdown"].includes(null===(d=this.indicatorRecord[this.currIndicatorID])||void 0===d?void 0:d.format)?null===(u=this.indicatorRecord[this.currIndicatorID].options)||void 0===u?void 0:u.join("\n"):"",gridBodyElement:"div#container_indicatorGrid > div",gridJSON:"grid"===(null===(p=this.indicatorRecord[this.currIndicatorID])||void 0===p?void 0:p.format)?JSON.parse(null===(f=this.indicatorRecord[this.currIndicatorID])||void 0===f?void 0:f.options[0]):[],archived:!1,deleted:!1}},inject:["APIroot","CSRFToken","initializeOrgSelector","isEditingModal","closeFormDialog","currIndicatorID","indicatorRecord","focusedFormRecord","focusedFormTree","selectedNodeIndicatorID","selectNewCategory","updateCategoriesProperty","newIndicatorParentID","truncateText","stripAndDecodeHTML","orgchartFormats"],provide:function(){var t=this;return{gridJSON:(0,e.Fl)((function(){return t.gridJSON})),updateGridJSON:this.updateGridJSON}},components:{GridCell:{data:function(){var e,t,n,o,r;return{name:(null===(e=this.cell)||void 0===e?void 0:e.name)||"No title",id:(null===(t=this.cell)||void 0===t?void 0:t.id)||this.makeColumnID(),gridType:(null===(n=this.cell)||void 0===n?void 0:n.type)||"text",textareaDropOptions:(null===(o=this.cell)||void 0===o||null===(r=o.options)||void 0===r?void 0:r.join("\n"))||""}},props:{cell:Object,column:Number},inject:["libsPath","gridJSON","updateGridJSON"],mounted:function(){0===this.gridJSON.length&&this.updateGridJSON()},computed:{gridJSONlength:function(){return this.gridJSON.length}},methods:{makeColumnID:function(){return"col_"+(65536*(1+Math.random())|0).toString(16).substring(1)},deleteColumn:function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),n=document.getElementById("gridcell_col_parent"),o=Array.from(n.querySelectorAll("div.cell")),r=o.indexOf(t)+1,i=o.length;2===i?(t.remove(),i--,e=o[0]):(e=null===t.querySelector('[title="Move column right"]')?t.previousElementSibling.querySelector('[title="Delete column"]'):t.nextElementSibling.querySelector('[title="Delete column"]'),t.remove(),i--),document.getElementById("tableStatus").setAttribute("aria-label","column ".concat(r," removed, ").concat(i," total.")),e.focus(),this.updateGridJSON()},moveRight:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.nextElementSibling,n=e.nextElementSibling.querySelector('[title="Move column right"]');t.after(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===n?"left":"right",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved right to column ".concat(this.column+1," of ").concat(this.gridJSONlength)),this.updateGridJSON()},moveLeft:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.previousElementSibling,n=e.previousElementSibling.querySelector('[title="Move column left"]');t.before(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===n?"right":"left",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved left to column ".concat(this.column-1," of ").concat(this.gridJSONlength)),this.updateGridJSON()}},watch:{gridJSONlength:function(e,t){e>t&&document.getElementById("tableStatus").setAttribute("aria-label","Added a new column, ".concat(this.gridJSONlength," total."))}},template:'
    \n Move column left\n Move column right
    \n \n Column #{{column}}:\n Delete column\n \n \n \n \n \n \n \n \n \n
    '},IndicatorPrivileges:{data:function(){return{allGroups:[],groupsWithPrivileges:[],group:0,statusMessageError:""}},inject:["APIroot","CSRFToken","currIndicatorID"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.currIndicatorID,"/privileges"),success:function(t){e.groupsWithPrivileges=t},error:function(t){console.log(t),e.statusMessageError="There was an error retrieving the Indicator Privileges. Please try again."},cache:!1})];Promise.all(t).then((function(e){})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.groupsWithPrivileges.map((function(t){return e.push(parseInt(t.id))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removeIndicatorPrivilege:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0!==t&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.currIndicatorID,"/privileges/remove"),data:{groupID:t,CSRFToken:this.CSRFToken},success:function(n){e.groupsWithPrivileges=e.groupsWithPrivileges.filter((function(e){return e.id!==t}))},error:function(e){return console.log(e)}})},addIndicatorPrivilege:function(){var e=this;0!==this.group&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.currIndicatorID,"/privileges"),data:{groupIDs:[this.group.groupID],CSRFToken:this.CSRFToken},success:function(){e.groupsWithPrivileges.push({id:e.group.groupID,name:e.group.name}),e.group=0},error:function(e){return console.log("an error occurred while setting group access restrictions",e)}})}},template:'
    \n Special access restrictions\n
    \n Restrictions will limit view access to the request initiator and members of specific groups.
    \n They will also only allow the specified groups to apply search filters for this field.
    \n All others will see "[protected data]".\n
    \n \n
    {{ statusMessageError }}
    \n \n
    \n \n
    \n
    '}},mounted:function(){var e=this;if(!0===this.isEditingModal&&this.getFormParentIDs().then((function(t){e.listForParentIDs=t,e.isLoadingParentIDs=!1})).catch((function(e){return console.log("an error has occurred",e)})),null===this.sort&&(this.sort=this.newQuestionSortValue),XSSHelpers.containsTags(this.name,["","","","
      ","
    1. ","
      ","

      ",""])?(document.getElementById("advNameEditor").click(),document.querySelector(".trumbowyg-editor").focus()):document.getElementById(this.initialFocusElID).focus(),this.orgchartFormats.includes(this.format)){var t,n=this.format.slice(this.format.indexOf("_")+1);this.initializeOrgSelector(n,this.currIndicatorID,"modal_",this.defaultValue),null===(t=document.querySelector("#modal_orgSel_".concat(this.currIndicatorID," input")))||void 0===t||t.addEventListener("change",this.updateDefaultValue)}},beforeUnmount:function(){var e;null===(e=document.querySelector("#modal_orgSel_".concat(this.currIndicatorID," input")))||void 0===e||e.removeEventListener("change",this.updateDefaultValue)},computed:{shortLabelTriggered:function(){return this.name.trim().split(" ").length>3},formatBtnText:function(){return this.showDetailedFormatInfo?"Hide Details":"What's this?"},isMultiOptionQuestion:function(){return this.multianswerFormats.includes(this.format)},fullFormatForPost:function(){var e=this.format;switch(this.format.toLowerCase()){case"grid":this.updateGridJSON(),e=e+"\n"+JSON.stringify(this.gridJSON);break;case"radio":case"checkboxes":case"multiselect":case"dropdown":e=e+"\n"+this.formatIndicatorMultiAnswer();break;case"checkbox":e=e+"\n"+this.singleOptionValue}return e},shortlabelCharsRemaining:function(){return 50-this.description.length},newQuestionSortValue:function(){var e="#drop_area_parent_".concat(this.parentID," > li");return null===this.parentID?this.focusedFormTree.length-128:Array.from(document.querySelectorAll(e)).length-128}},methods:{updateDefaultValue:function(e){this.defaultValue=e.currentTarget.value},toggleSelection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"showDetailedFormatInfo";"boolean"==typeof this[t]&&(this[t]=!this[t])},getFormParentIDs:function(){var e=this;return new Promise((function(t,n){$.ajax({type:"GET",url:"".concat(e.APIroot,"/form/_").concat(e.formID,"/flat"),success:function(e){for(var n in e)e[n][1].name=XSSHelpers.stripAllTags(e[n][1].name);t(e)},error:function(e){return n(e)}})}))},preventSelectionIfFormatNone:function(){""!==this.format||!0!==this.required&&!0!==this.is_sensitive||(this.required=!1,this.is_sensitive=!1,alert('You can\'t mark a field as sensitive or required if the Input Format is "None".'))},onSave:function(){var e=this,t=document.querySelector(".trumbowyg-editor");null!=t&&(this.name=t.innerHTML);var n=[];if(this.isEditingModal){var o,r,i,s=this.name!==this.indicatorRecord[this.currIndicatorID].name,a=this.description!==this.indicatorRecord[this.currIndicatorID].description,l=null!==(o=this.indicatorRecord[this.currIndicatorID])&&void 0!==o&&o.options?"\n"+(null===(r=this.indicatorRecord[this.currIndicatorID])||void 0===r||null===(i=r.options)||void 0===i?void 0:i.join("\n")):"",c=this.fullFormatForPost!==this.indicatorRecord[this.currIndicatorID].format+l,d=this.stripAndDecodeHTML(this.defaultValue)!==this.stripAndDecodeHTML(this.indicatorRecord[this.currIndicatorID].default),u=+this.required!==parseInt(this.indicatorRecord[this.currIndicatorID].required),p=+this.is_sensitive!==parseInt(this.indicatorRecord[this.currIndicatorID].is_sensitive),f=this.parentID!==this.indicatorRecord[this.currIndicatorID].parentID,h=!0===this.archived,m=!0===this.deleted;s&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/name"),data:{name:this.name,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind name post err",e)}})),a&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/description"),data:{description:this.description,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind desciption post err",e)}})),c&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/format"),data:{format:this.fullFormatForPost,CSRFToken:this.CSRFToken},success:function(e){"size limit exceeded"===e&&alert("The input format was not saved because it was too long.\nIf you require extended length, please submit a YourIT ticket.")},error:function(e){return console.log("ind format post err",e)}})),d&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/default"),data:{default:this.defaultValue,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind default value post err",e)}})),u&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/required"),data:{required:this.required?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind required post err",e)}})),p&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/sensitive"),data:{is_sensitive:this.is_sensitive?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind is_sensitive post err",e)}})),p&&!0===this.is_sensitive&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",1)},error:function(e){return console.log("set form need to know post err",e)}})),h&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/disabled"),data:{disabled:1,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (archive) post err",e)}})),m&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/disabled"),data:{disabled:2,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (deletion) post err",e)}})),f&&this.parentID!==this.currIndicatorID&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/parentID"),data:{parentID:this.parentID,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind parentID post err",e)}}))}else this.is_sensitive&&n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",1)},error:function(e){return console.log("set form need to know post err",e)}})),n.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/newIndicator"),data:{name:this.name,format:this.fullFormatForPost,description:this.description,default:this.defaultValue,parentID:this.parentID,categoryID:this.formID,required:this.required?1:0,is_sensitive:this.is_sensitive?1:0,sort:this.newQuestionSortValue,CSRFToken:this.CSRFToken},success:function(t){e.newIndicatorID=parseInt(t)},error:function(e){return console.log("error posting new question",e)}}));Promise.all(n).then((function(t){if(t.length>0)if(null!==e.newIndicatorID&&null===e.parentID)e.selectNewCategory(e.formID,e.newIndicatorID);else{var n=e.currIndicatorID!==e.selectedNodeIndicatorID||!0!==e.archived&&!0!==e.deleted?e.selectedNodeIndicatorID:e.parentID;e.selectNewCategory(e.formID,n)}e.closeFormDialog()})).catch((function(e){return console.log("an error has occurred",e)}))},radioBehavior:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null==e?void 0:e.target.id;"archived"===t.toLowerCase()&&this.deleted&&(document.getElementById("deleted").checked=!1,this.deleted=!1),"deleted"===t.toLowerCase()&&this.archived&&(document.getElementById("archived").checked=!1,this.archived=!1)},appAddCell:function(){this.gridJSON.push({})},gridDropdown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(null!==e&&0!==e.length){var n=e.split("\n");n=(n=n.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),t=Array.from(new Set(n))}return t},updateGridJSON:function(){var e=[],t=this;$(this.gridBodyElement).find("div.cell").each((function(){var n=new Object;"undefined"===$(this).children("input:eq(0)").val()?n.name="No title":n.name=$(this).children("input:eq(0)").val(),n.id=$(this).attr("id"),n.type=$(this).find("select").val(),void 0!==n.type&&null!==n.type?"dropdown"===n.type.toLowerCase()&&(n.options=t.gridDropdown($(this).find("textarea").val().replace(/,/g,""))):n.type="textarea",e.push(n)})),this.gridJSON=e},formatIndicatorMultiAnswer:function(){var e=this.multiOptionValue.split("\n");return e=(e=e.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),Array.from(new Set(e)).join("\n")},advNameEditorClick:function(){$("#advNameEditor").css("display","none"),$("#rawNameEditor").css("display","block"),$("#name").trumbowyg({resetCss:!0,btns:["formatting","bold","italic","underline","|","unorderedList","orderedList","|","link","|","foreColor","|","justifyLeft","justifyCenter","justifyRight"]}),$(".trumbowyg-box").css({"min-height":"130px","max-width":"700px",margin:"0.5rem 0"}),$(".trumbowyg-editor, .trumbowyg-texteditor").css({"min-height":"100px",height:"100px",padding:"1rem"})},rawNameEditorClick:function(){$("#advNameEditor").css("display","block"),$("#rawNameEditor").css("display","none"),$("#name").trumbowyg("destroy")}},watch:{format:function(e,t){var n=this;if(this.defaultValue="",this.orgchartFormats.includes(e)){var o=e.slice(e.indexOf("_")+1);setTimeout((function(){n.initializeOrgSelector(o,n.currIndicatorID,"modal_",""),document.getElementById("modal_orgSel_data".concat(n.currIndicatorID)).addEventListener("change",n.updateDefaultValue)}),10)}}},template:'

      \n
      \n \n \n
      \n \n \n
      \n
      \n
      \n
      \n \n
      {{shortlabelCharsRemaining}}
      \n
      \n \n
      \n
      \n
      \n \n
      \n \n \n
      \n
      \n

      Format Information

      \n {{ format !== \'\' ? formatInfo[format] : \'No format. Indicators without a format are often used to provide additional information for the user. They are often used for form section headers.\' }}\n
      \n
      \n
      \n \n \n
      \n
      \n \n \n
      \n
      \n \n
      \n
      \n  Columns ({{gridJSON.length}}):\n
      \n
      \n \n \n
      \n
      \n
      \n \n \n \n
      \n
      \n
      \n Attributes\n
      \n \n \x3c!-- --\x3e\n \n
      \n \n \n \n This field will be archived.  It can be
      re-enabled by using Restore Fields.\n
      \n \n Deleted items can only be re-enabled
      within 30 days by using Restore Fields.\n
      \n
      \n
      '},o={name:"advanced-options-dialog",data:function(){return{initialFocusElID:"#advanced legend",left:"{{",right:"}}",formID:this.focusedFormRecord.categoryID,codeEditorHtml:{},codeEditorHtmlPrint:{},html:null===this.indicatorRecord[this.currIndicatorID].html?"":this.indicatorRecord[this.currIndicatorID].html,htmlPrint:null===this.indicatorRecord[this.currIndicatorID].htmlPrint?"":this.indicatorRecord[this.currIndicatorID].htmlPrint}},inject:["APIroot","libsPath","CSRFToken","closeFormDialog","focusedFormRecord","currIndicatorID","indicatorRecord","selectNewCategory","hasDevConsoleAccess","selectedNodeIndicatorID"],mounted:function(){var e;null===(e=document.querySelector(this.initialFocusElID))||void 0===e||e.focus(),1===parseInt(this.hasDevConsoleAccess)&&this.setupAdvancedOptions()},methods:{setupAdvancedOptions:function(){var e=this;this.codeEditorHtml=CodeMirror.fromTextArea(document.getElementById("html"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTML()}}}),this.codeEditorHtmlPrint=CodeMirror.fromTextArea(document.getElementById("htmlPrint"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTMLPrint()}}}),$(".CodeMirror").css("border","1px solid black")},saveCodeHTML:function(){var e=this,t=this.codeEditorHtml.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/html"),data:{html:t,CSRFToken:this.CSRFToken},success:function(){e.html=t;var n=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_html").innerHTML=", Last saved: "+n,e.selectNewCategory(e.formID,e.selectedNodeIndicatorID)},error:function(e){return console.log(e)}})},saveCodeHTMLPrint:function(){var e=this,t=this.codeEditorHtmlPrint.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/htmlPrint"),data:{htmlPrint:t,CSRFToken:this.CSRFToken},success:function(){e.htmlPrint=t;var n=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_htmlPrint").innerHTML=", Last saved: "+n,e.selectNewCategory(e.formID,e.selectedNodeIndicatorID)},error:function(e){return console.log(e)}})},onSave:function(){var e=this,t=[],n=this.html!==this.codeEditorHtml.getValue(),o=this.htmlPrint!==this.codeEditorHtmlPrint.getValue();n&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/html"),data:{html:this.codeEditorHtml.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind html post err",e)}})),o&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.currIndicatorID,"/htmlPrint"),data:{htmlPrint:this.codeEditorHtmlPrint.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind htmlPrint post err",e)}})),Promise.all(t).then((function(t){e.closeFormDialog(),t.length>0&&e.selectNewCategory(e.formID,e.selectedNodeIndicatorID)})).catch((function(e){return console.log("an error has occurred",e)}))}},template:'
      \n
      Template Variables and Controls\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
      {{ left }} iID {{ right }}The indicatorID # of the current data field.Ctrl-SSave the focused section
      {{ left }} recordID {{ right }}The record ID # of the current request.F11Toggle Full Screen mode for the focused section
      {{ left }} data {{ right }}The contents of the current data field as stored in the database.EscEscape Full Screen mode

      \n
      \n html (for pages where the user can edit data): \n \n
      \n
      \n
      \n htmlPrint (for pages where the user can only read data): \n \n
      \n \n
      \n
      \n
      \n Notice: Please go to Admin Panel → LEAF Programmer to ensure continued access to this area.\n
      '},i={name:"new-form-dialog",data:function(){return{categoryName:"",categoryDescription:""}},inject:["APIroot","CSRFToken","focusedFormRecord","addNewCategory","selectNewCategory","closeFormDialog"],mounted:function(){document.getElementById("name").focus()},computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)},newFormParentID:function(){var e;return""===(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.parentID)?this.focusedFormRecord.categoryID:""}},methods:{onSave:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:this.categoryName,description:this.categoryDescription,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(t){var n,o=t,r={};r.categoryID=o,r.categoryName=e.categoryName,r.categoryDescription=e.categoryDescription,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(o,r),null!==(n=e.focusedFormRecord)&&void 0!==n&&n.categoryID?e.selectNewCategory(o):e.$router.push({name:"category",query:{formID:o}}),e.closeFormDialog()},error:function(e){console.log("error posting new form",e),reject(e)}})}},template:'
      \n
      \n
      Form Name (up to 50 characters)
      \n
      {{nameCharsRemaining}}
      \n
      \n \n
      \n
      Form Description (up to 255 characters)
      \n
      {{descrCharsRemaining}}
      \n
      \n \n
      '},s={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null}},inject:["APIroot","CSRFToken","closeFormDialog","selectNewCategory"],mounted:function(){document.getElementById(this.initialFocusElID).focus()},methods:{onSave:function(){var e=this;if(null!==this.files){var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==t&&alert(t),e.closeFormDialog(),e.selectNewCategory()},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
      \n

      Select LEAF Form Packet to import:

      \n \n
      '},a={name:"form-history-dialog",data:function(){return{divSaveCancelID:"leaf-vue-dialog-cancel-save",page:1,formID:this.focusedFormRecord.categoryID,ajaxRes:""}},inject:["focusedFormRecord"],mounted:function(){document.getElementById(this.divSaveCancelID).style.display="none",this.getPage()},computed:{showNext:function(){return-1===this.ajaxRes.indexOf("No history to show")},showPrev:function(){return this.page>1}},methods:{getNext:function(){this.page++,this.getPage()},getPrev:function(){this.page--,this.getPage()},getPage:function(){var e=this;$.ajax({type:"GET",url:"ajaxIndex.php?a=gethistory&type=form&gethistoryslice=1&page=".concat(this.page,"&id=").concat(this.formID),dataType:"text",success:function(t){e.ajaxRes=t},error:function(e){return console.log(e)},cache:!1})}},template:'
      \n
      \n \n \n
      '};function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={name:"staple-form-dialog",data:function(){return{catIDtoStaple:""}},inject:["APIroot","CSRFToken","truncateText","stripAndDecodeHTML","categories","focusedFormRecord","closeFormDialog","updateStapledFormsInfo"],mounted:function(){if(this.isSubform&&this.closeFormDialog(),this.mergeableForms.length>0){var e=document.getElementById("select-form-to-staple");null!==e&&e.focus()}},computed:{isSubform:function(){var e;return""!==(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.parentID)},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.formID])||void 0===e?void 0:e.stapledFormIDs)||[]},mergeableForms:function(){var e=this,t=[],n=function(){var n=parseInt(e.categories[o].workflowID),r=e.categories[o].categoryID,i=e.categories[o].parentID,s=e.currentStapleIDs.every((function(e){return e!==r}));0===n&&""===i&&r!==e.formID&&s&&t.push(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/stapled/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(n){e.updateStapledFormsInfo(t,!0)},error:function(e){return console.log(e)}})},onSave:function(){var e=this;""!==this.catIDtoStaple&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/stapled"),data:{CSRFToken:this.CSRFToken,stapledCategoryID:this.catIDtoStaple},success:function(t){1!==t?alert(t):(e.updateStapledFormsInfo(e.catIDtoStaple),e.catIDtoStaple="")},error:function(e){return console.log(e)},cache:!1})}},template:'
      \n

      Stapled forms will show up on the same page as the primary form.

      \n

      The order of the forms will be determined by the forms\' assigned sort values.

      \n
      \n
        \n
      • \n {{truncateText(stripAndDecodeHTML(categories[id]?.categoryName || \'Untitled\')) }}\n \n
      • \n
      \n

      \n
      \n \n
      There are no available forms to merge
      \n
      \n
      '},p={name:"edit-collaborators-dialog",data:function(){return{formID:this.focusedFormRecord.categoryID,group:"",allGroups:[],collaborators:[]}},inject:["APIroot","CSRFToken","categories","focusedFormRecord","closeFormDialog"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),success:function(t){e.collaborators=t},error:function(e){return console.log(e)},cache:!1})];Promise.all(t).then((function(){var e=document.getElementById("selectFormCollaborators");null!==e&&e.focus()})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.collaborators.map((function(t){return e.push(parseInt(t.groupID))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removePermission:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:t,read:0,write:0},success:function(n){e.collaborators=e.collaborators.filter((function(e){return parseInt(e.groupID)!==t}))},error:function(e){return console.log(e)}})},formNameStripped:function(){var e=this.categories[this.formID].categoryName;return XSSHelpers.stripAllTags(e)||"Untitled"},onSave:function(){var e=this;""!==this.group&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:parseInt(this.group.groupID),read:1,write:1},success:function(t){void 0===e.collaborators.find((function(t){return parseInt(t.groupID)===parseInt(e.group.groupID)}))&&(e.collaborators.push({groupID:e.group.groupID,name:e.group.name}),e.group="")},error:function(e){return console.log(e)},cache:!1})}},template:'
      \n

      {{formNameStripped()}}

      \n

      Collaborators have access to fill out data fields at any time in the workflow.

      \n

      This is typically used to give groups access to fill out internal-use fields.

      \n
      \n \n

      \n
      \n \n
      There are no available groups to add
      \n
      \n
      '},f={name:"confirm-delete-dialog",inject:["APIroot","CSRFToken","focusedFormRecord","selectNewCategory","removeCategory","closeFormDialog"],computed:{formName:function(){return XSSHelpers.stripAllTags(this.focusedFormRecord.categoryName)},formDescription:function(){return XSSHelpers.stripAllTags(this.focusedFormRecord.categoryDescription)},currentStapleIDs:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{onSave:function(){var e=this;if(0===this.currentStapleIDs.length){var t=this.focusedFormRecord.categoryID,n=this.focusedFormRecord.parentID;$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formStack/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(o){!0!==o?alert(o):(e.selectNewCategory(n,null,!0),e.removeCategory(t),e.closeFormDialog())},error:function(e){return console.log("an error has occurred",e)}})}else alert("Please remove all stapled forms before deleting.")}},template:'
      \n
      Are you sure you want to delete this form?
      \n
      {{formName}}
      \n
      {{formDescription}}
      \n
      ⚠️ This form still has stapled forms attached
      \n
      '};function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t0&&0===parseInt(e.isDisabled)}));e.indicators=n,e.indicators.forEach((function(t){null!==t.parentIndicatorID&&e.crawlParents(t,t)})),e.appIsLoadingIndicators=!1,e.updateSelectedChildIndicator()},error:function(e){console.log(e)}})},updateSelectedParentIndicator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=document.getElementById("parent_compValue_entry");null!=t&&t.choicesjs&&t.choicesjs.destroy(),this.selectedParentValue="";var n=this.indicators.find((function(t){return null!==e&&parseInt(t.indicatorID)===parseInt(e)}));if(void 0===n)return this.parentFound=!1,void(this.selectedDisabledParentID=0===e?this.selectedDisabledParentID:parseInt(e));this.parentFound=!0,this.selectedDisabledParentID=null;var o=n.format.split("\n"),r=o.length>1?o.slice(1):[];switch(r=r.map((function(e){return e.trim()})),this.selectedParentIndicator=g({},n),this.selectedParentValueOptions=r.filter((function(e){return""!==e})),this.parentFormat){case"number":case"currency":this.selectedParentOperators=[{val:"==",text:"is equal to"},{val:"!=",text:"is not equal to"},{val:">",text:"is greater than"},{val:"<",text:"is less than"}];break;case"multiselect":case"checkboxes":this.selectedParentOperators=[{val:"==",text:"includes"},{val:"!=",text:"does not include"}];break;case"dropdown":case"radio":this.selectedParentOperators=[{val:"==",text:"is"},{val:"!=",text:"is not"}];break;case"checkbox":this.selectedParentOperators=[{val:"==",text:"is checked"},{val:"!=",text:"is not checked"}];break;case"date":this.selectedParentOperators=[{val:"==",text:"on"},{val:">=",text:"on and after"},{val:"<=",text:"on and before"}];break;case"orgchart_employee":case"orgchart_group":case"orgchart_position":break;default:this.selectedParentOperators=[{val:"LIKE",text:"contains"},{val:"NOT LIKE",text:"does not contain"}]}},updateSelectedOutcome:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.getElementById("child_prefill_entry");null!=t&&t.choicesjs&&t.choicesjs.destroy(),this.selectedChildOutcome=e,this.selectedChildValue=""},updateSelectedParentValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.selectedParentIndicator.format.split("\n")[0].trim().toLowerCase(),n="";this.multiOptionFormats.includes(t)?(Array.from(e.selectedOptions).forEach((function(e){n+=e.label.replaceAll("\r","").trim()+"\n"})),n=n.trim()):n=e.value,this.selectedParentValue=n},updateSelectedChildValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.childIndicator.format.split("\n")[0].trim().toLowerCase(),n="";this.multiOptionFormats.includes(t)?(Array.from(e.selectedOptions).forEach((function(e){n+=e.label.replaceAll("\r","").trim()+"\n"})),n=n.trim()):n=e.value,this.selectedChildValue=n},updateSelectedChildIndicator:function(){var e=this;if(0!==this.vueData.indicatorID){var t=this.indicators.find((function(t){return parseInt(t.indicatorID)===e.vueData.indicatorID})),n=-1===t.format.indexOf("\n")?[]:t.format.slice(t.format.indexOf("\n")+1).split("\n");this.childIndicator=g({},t),this.selectedChildValueOptions=n.filter((function(e){return""!==e}));var o=parseInt(t.headerIndicatorID);this.selectableParents=this.indicators.filter((function(t){var n,r=null===(n=t.format)||void 0===n?void 0:n.split("\n")[0].trim().toLowerCase();return parseInt(t.headerIndicatorID)===o&&parseInt(t.indicatorID)!==parseInt(e.childIndicator.indicatorID)&&e.enabledParentFormats.includes(r)}))}$.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(this.vueData.formID),success:function(t){t.forEach((function(t,n){e.indicators.forEach((function(e){parseInt(e.headerIndicatorID)===parseInt(t.indicatorID)&&(e.formPage=n)}))}))},error:function(e){console.log(e)}})},crawlParents:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=parseInt((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).parentIndicatorID),n=this.indicators.find((function(e){return parseInt(e.indicatorID)===t}));void 0===n||null===n.parentIndicatorID?this.indicators.find((function(t){return parseInt(t.indicatorID)===parseInt(e.indicatorID)})).headerIndicatorID=t:this.crawlParents(n,e)},newCondition:function(){this.editingCondition="",this.showConditionEditor=!0,this.selectedParentIndicator={},this.selectedParentOperators=[],this.selectedOperator="",this.selectedParentValue="",this.selectedParentValueOptions=[],this.selectedChildOutcome="",this.selectedChildValue="";var e=document.getElementById("child_prefill_entry");null!=e&&e.choicesjs&&e.choicesjs.destroy();var t=document.getElementById("parent_compValue_entry");null!=t&&t.choicesjs&&t.choicesjs.destroy(),document.activeElement instanceof HTMLElement&&document.activeElement.blur()},postCondition:function(){var e=this,t=this.conditions.childIndID;if(this.conditionComplete){var n=JSON.stringify(this.conditions),o=this.indicators.find((function(e){return parseInt(e.indicatorID)===parseInt(t)})),r=(""===o.conditions||null===o.conditions||"null"===o.conditions?[]:JSON.parse(o.conditions)).filter((function(t){return JSON.stringify(t)!==e.editingCondition}));r.every((function(e){return JSON.stringify(e)!==n}))?(r.push(this.conditions),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(t,"/conditions"),data:{conditions:JSON.stringify(r),CSRFToken:this.CSRFToken},success:function(t){"Invalid Token."!==t?(e.selectNewCategory(e.vueData.formID,e.selectedNodeIndicatorID),e.closeFormDialog()):console.log("error adding condition",t)},error:function(e){console.log(e)}})):this.closeFormDialog()}},removeCondition:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.selectConditionFromList(t.condition),!0===t.confirmDelete){var n=t.condition,o=n.childIndID,r=n.parentIndID,i=n.selectedOutcome,s=n.selectedChildValue;if(void 0!==o){var a=this.indicators.some((function(e){return parseInt(e.indicatorID)===parseInt(r)})),l=JSON.stringify(t.condition),c=JSON.parse(this.indicators.find((function(e){return parseInt(e.indicatorID)===parseInt(o)})).conditions)||[];c.forEach((function(e){e.childIndID=parseInt(e.childIndID),e.parentIndID=parseInt(e.parentIndID)}));var d=[];0===(d=a?c.filter((function(e){return JSON.stringify(e)!==l})):c.filter((function(t){return!(t.parentIndID===e.selectedDisabledParentID&&t.selectedOutcome===i&&t.selectedChildValue===s)}))).length&&(d=null),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(o,"/conditions"),data:{conditions:null!==d?JSON.stringify(d):"",CSRFToken:this.CSRFToken},success:function(t){"Invalid Token."!==t?(e.closeFormDialog(),e.selectNewCategory(e.vueData.formID,e.selectedNodeIndicatorID)):console.log("error removing condition",t)},error:function(e){console.log(e)}})}}else this.showRemoveConditionModal=!0},selectConditionFromList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.editingCondition=JSON.stringify(e),this.showConditionEditor=!0,this.updateSelectedParentIndicator(parseInt(null==e?void 0:e.parentIndID)),this.parentFound&&this.enabledParentFormats.includes(this.parentFormat)&&(this.selectedOperator=null==e?void 0:e.selectedOp,this.selectedParentValue=null==e?void 0:e.selectedParentValue);var t=document.getElementById("child_prefill_entry");null!=t&&t.choicesjs&&t.choicesjs.destroy(),this.selectedChildOutcome=null==e?void 0:e.selectedOutcome,this.selectedChildValue=null==e?void 0:e.selectedChildValue},getIndicatorName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(0!==e){var t,n=(null===(t=this.indicators.find((function(t){return parseInt(t.indicatorID)===e})))||void 0===t?void 0:t.name)||"";return this.truncateText(n,40)}},textValueDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return $("
      ").html(e).text()},getOperatorText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.selectedOp,n=e.parentFormat;switch(t){case"==":return this.multiOptionFormats.includes(n)?"includes":"is";case"!=":return"is not";case">":return"is greater than";case"<":return"is less than";default:return t}},isOrphan:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return!this.selectableParents.some((function(t){return parseInt(t.indicatorID)===e}))},childFormatChangedSinceSave:function(){var e,t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).childFormat,o=null===(e=this.childIndicator)||void 0===e||null===(t=e.format)||void 0===t?void 0:t.split("\n")[0];return(null==n?void 0:n.trim())!==(null==o?void 0:o.trim())},updateChoicesJS:function(){var e=this,t=document.querySelector("#outcome-editor > div.choices"),n=document.getElementById("parent_compValue_entry"),o=document.getElementById("child_prefill_entry"),r=this.conditions.childFormat.toLowerCase(),i=this.conditions.parentFormat.toLowerCase(),s=this.conditions.selectedOutcome.toLowerCase();if(this.multiOptionFormats.includes(i)&&null!==n&&!n.choicesjs){var a,l=(null===(a=this.conditions)||void 0===a?void 0:a.selectedParentValue.split("\n"))||[];l=l.map((function(t){return e.textValueDisplay(t).trim()}));var c=this.selectedParentValueOptions||[];c=c.map((function(e){return{value:e.trim(),label:e.trim(),selected:l.includes(e.trim())}}));var d=new Choices(n,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:c.filter((function(e){return""!==e.value}))});n.choicesjs=d}if("pre-fill"===s&&this.multiOptionFormats.includes(r)&&null!==o&&null===t){var u,p=(null===(u=this.conditions)||void 0===u?void 0:u.selectedChildValue.split("\n"))||[];p=p.map((function(t){return e.textValueDisplay(t).trim()}));var f=this.selectedChildValueOptions||[];f=f.map((function(e){return{value:e.trim(),label:e.trim(),selected:p.includes(e.trim())}}));var h=new Choices(o,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:f.filter((function(e){return""!==e.value}))});o.choicesjs=h}},onSave:function(){this.postCondition()}},computed:{parentFormat:function(){var e;return null!==(e=this.selectedParentIndicator)&&void 0!==e&&e.format?this.selectedParentIndicator.format.toLowerCase().split("\n")[0].trim():""},childFormat:function(){var e;return null!==(e=this.childIndicator)&&void 0!==e&&e.format?this.childIndicator.format.toLowerCase().split("\n")[0].trim():""},conditions:function(){var e,t,n=(null===(e=this.childIndicator)||void 0===e?void 0:e.indicatorID)||0,o=(null===(t=this.selectedParentIndicator)||void 0===t?void 0:t.indicatorID)||0,r=this.selectedOperator,i=this.selectedParentValue,s=this.selectedChildOutcome;return{childIndID:n,parentIndID:o,selectedOp:r,selectedParentValue:i,selectedChildValue:this.selectedChildValue,selectedOutcome:s,childFormat:this.childFormat,parentFormat:this.parentFormat}},conditionComplete:function(){var e=this.conditions,t=e.childIndID,n=e.parentIndID,o=e.selectedOp,r=e.selectedParentValue,i=e.selectedChildValue,s=e.selectedOutcome,a=0!==t&&0!==n&&""!==o&&""!==r&&(s&&"pre-fill"!==s.toLowerCase()||"pre-fill"===s.toLowerCase()&&""!==i),l=document.getElementById("button_save");return null!==l&&(l.style.display=a?"block":"none"),a},savedConditions:function(){return this.childIndicator.conditions?JSON.parse(this.childIndicator.conditions):[]},conditionTypes:function(){return{show:this.savedConditions.filter((function(e){return"show"===e.selectedOutcome.toLowerCase()})),hide:this.savedConditions.filter((function(e){return"hide"===e.selectedOutcome.toLowerCase()})),prefill:this.savedConditions.filter((function(e){return"pre-fill"===e.selectedOutcome.toLowerCase()}))}}},watch:{showRemoveConditionModal:function(e){var t=document.getElementById("leaf-vue-dialog-cancel-save");null!==t&&(t.style.display=!0===e?"none":"flex")}},template:'
      \n
      \n Loading... \n loading...\n
      \n \x3c!-- NOTE: MAIN EDITOR TEMPLATE --\x3e\n
      \n
      \n
        \n \x3c!-- NOTE: SHOW LIST --\x3e\n
        \n

        This field will be hidden except:

        \n
      • \n \n \n
      • \n
        \n \x3c!-- NOTE: HIDE LIST --\x3e\n
        \n

        This field will be shown except:

        \n
      • \n \n \n
      • \n
        \n \x3c!-- NOTE: PREFILL LIST --\x3e\n
        \n

        This field will be pre-filled:

        \n
      • \n \n \n
      • \n
        \n
      \n \n
      \n
      Choose Delete to confirm removal, or cancel to return
      \n
        \n
      • \n \n
      • \n
      • \n \n
      • \n
      \n
      \n
      \n
      \n \x3c!-- OUTCOME SELECTION --\x3e\n Select an outcome\n \n Enter a pre-fill value\n \x3c!-- NOTE: PRE-FILL ENTRY AREA dropdown, multidropdown, text, radio, checkboxes --\x3e\n \n \n \n
      \n
      \n

      IF

      \n
      \n \x3c!-- NOTE: PARENT CONTROLLER SELECTION --\x3e\n \n
      \n
      \n \x3c!-- NOTE: OPERATOR SELECTION --\x3e\n \n \n \n \n
      \n
      \n \x3c!-- NOTE: COMPARED VALUE SELECTION (active parent formats: dropdown, multiselect, radio, checkboxes) --\x3e\n \n \n
      \n
      \n

      THEN

      \'{{getIndicatorName(vueData.indicatorID)}}\'\n will \n have the value{{childFormat === \'multiselect\' ? \'(s)\':\'\'}} \'{{textValueDisplay(conditions.selectedChildValue)}}\'\n \n will \n \n be {{conditions.selectedOutcome === "Show" ? \'shown\' : \'hidden\'}}\n \n \n
      \n
      No options are currently available for the indicators on this form
      \n
      \n
      '},y={inject:["APIroot","truncateText","stripAndDecodeHTML","selectNewCategory","categories","focusedFormRecord","internalFormRecords","focusedFormTree","allStapledFormCatIDs","openNewFormDialog","openImportFormDialog","openFormHistoryDialog","openStapleFormsDialog","openConfirmDeleteFormDialog"],computed:{mainFormID:function(){var e,t;return""===(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.parentID)?this.focusedFormRecord.categoryID:(null===(t=this.focusedFormRecord)||void 0===t?void 0:t.parentID)||""},subformID:function(){var e;return null!==(e=this.focusedFormRecord)&&void 0!==e&&e.parentID?this.focusedFormRecord.categoryID:""},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{exportForm:function(){var e=this,t=this.mainFormID,n={form:{},subforms:{}},o=[];o.push($.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"/export"),success:function(e){n.form=e,n.categoryID=t},error:function(e){return console.log(e)}})),this.internalFormRecords.forEach((function(t){var r=t.categoryID;o.push($.ajax({type:"GET",url:"".concat(e.APIroot,"form/_").concat(r,"/export"),success:function(e){n.subforms[r]={},n.subforms[r].name=t.categoryName,n.subforms[r].description=t.categoryDescription,n.subforms[r].packet=e},error:function(e){return console.log("an error has occurred",e)}}))})),o.push($.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"/workflow"),success:function(e){n.workflowID=e[0].workflowID},error:function(e){return console.log("an error has occurred",e)}})),Promise.all(o).then((function(){var o={version:1};o.name=e.categories[t].categoryName+" (Copy)",o.description=e.categories[t].categoryDescription,o.packet=n;var r=new Blob([JSON.stringify(o).replace(/[^ -~]/g,"")],{type:"text/plain"});saveAs(r,"LEAF_FormPacket_"+t+".txt")})).catch((function(e){return console.log("an error has occurred",e)}))},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,n=this.categories[e]||"",o=this.stripAndDecodeHTML(null==n?void 0:n.categoryName)||"Untitled";return this.truncateText(o,t).trim()}},template:''},_={name:"response-message",props:{message:{type:String}},template:'
      {{ message }}
      '};var x=r(379),w=r.n(x),I=r(795),S=r.n(I),C=r(569),D=r.n(C),k=r(565),F=r.n(k),E=r(216),T=r.n(E),P=r(589),O=r.n(P),R=r(581),N={};N.styleTagTransform=O(),N.setAttributes=F(),N.insert=D().bind(null,"head"),N.domAPI=S(),N.insertStyleElement=T(),w()(R.Z,N),R.Z&&R.Z.locals&&R.Z.locals;var A=r(864),L={};function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function M(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=1&&e.getSecureFormsInfo()})).catch((function(e){return console.log("error getting site settings",e)})),this.getWorkflowRecords()},watch:{"$route.query.formID":function(){"category"!==this.$route.name||this.appIsLoadingCategoryList||this.getFormFromQueryParam()}},computed:{currentCategoryQuery:function(){var e=this.$route.query.formID;return this.categories[e]||{}},focusedFormRecord:function(){return this.categories[this.focusedFormID]||{}},selectedFormNode:function(){var e=this,t=null;return null!==this.selectedNodeIndicatorID&&this.focusedFormTree.forEach((function(n){null===t&&(t=e.getNodeSelection(n,e.selectedNodeIndicatorID)||null)})),t},focusedFormIsSensitive:function(){var e=this,t=!1;return this.focusedFormTree.forEach((function(n){t||(t=e.checkSensitive(n))})),t},activeForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&1===parseInt(this.categories[t].visible)&&e.push(H({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},inactiveForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&0===parseInt(this.categories[t].visible)&&e.push(H({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},supplementalForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0===parseInt(this.categories[t].workflowID)&&e.push(H({},this.categories[t]));return e=e.sort((function(e,t){return e.sort-t.sort}))},internalFormRecords:function(){var e=[];for(var t in this.categories)this.categories[t].parentID===this.focusedFormID&&e.push(H({},this.categories[t]));return e},currentFormCollection:function(){var e,t,n=this,o=[];((null===(e=this.currentCategoryQuery)||void 0===e?void 0:e.stapledFormIDs)||[]).forEach((function(e){o.push(H(H({},n.categories[e]),{},{formContextType:"staple"}))}));var r=""!==this.currentCategoryQuery.parentID?"internal":this.allStapledFormCatIDs.includes((null===(t=this.currentCategoryQuery)||void 0===t?void 0:t.categoryID)||"")?"staple":"main form";return o.push(H(H({},this.currentCategoryQuery),{},{formContextType:r})),o.sort((function(e,t){return e.sort-t.sort}))}},methods:{truncateText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return e.length<=t?e:e.slice(0,t)+n},stripAndDecodeHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.innerHTML=e,XSSHelpers.stripAllTags(t.innerText)},showLastUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=document.getElementById(e);null!==n&&(n.innerText=t,n.style.opacity=1,n.style.border="2px solid #20a0f0",setTimeout((function(){n.style.border="2px solid transparent"}),750))},setDefaultAjaxResponseMessage:function(){var e=this;$.ajax({type:"POST",url:"ajaxIndex.php?a=checkstatus",data:{CSRFToken},success:function(t){e.ajaxResponseMessage=t||""},error:function(e){return reject(e)}})},initializeOrgSelector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"employee",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r="group"===(e=e.toLowerCase())?"group#":"#",i={};(i="group"===e?new groupSelector("".concat(n,"orgSel_").concat(t)):"position"===e?new positionSelector("".concat(n,"orgSel_").concat(t)):new employeeSelector("".concat(n,"orgSel_").concat(t))).apiPath="".concat(this.orgchartPath,"/api/"),i.rootPath="".concat(this.orgchartPath,"/"),i.basePath="".concat(this.orgchartPath,"/"),i.setSelectHandler((function(){document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput")).value="".concat(r)+i.selection;var n=document.getElementById("modal_orgSel_data".concat(t));null!==n&&(n.value=i.selection,n.dispatchEvent(new Event("change")))})),i.initialize();var s=document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput"));""!==o&&null!==s&&(s.value="".concat(r)+o)},getCategoryListAll:function(){var e=this;return this.appIsLoadingCategoryList=!0,new Promise((function(t,n){$.ajax({type:"GET",url:"".concat(e.APIroot,"formStack/categoryList/allWithStaples"),success:function(n){for(var o in n)e.categories[n[o].categoryID]=n[o],n[o].stapledFormIDs.forEach((function(t){e.allStapledFormCatIDs.includes(t)||e.allStapledFormCatIDs.push(t)}));e.appIsLoadingCategoryList=!1,t(n)},error:function(e){return n(e)}})}))},getFormFromQueryParam:function(){var e,t=/^form_[0-9a-f]{5}$/i.test((null===(e=this.$route.query)||void 0===e?void 0:e.formID)||"")?this.$route.query.formID:null;null===t||void 0===this.categories[t]?this.selectNewCategory():this.selectNewCategory(t,this.selectedNodeIndicatorID,!0)},getWorkflowRecords:function(){var e=this;return new Promise((function(t,n){$.ajax({type:"GET",url:"".concat(e.APIroot,"workflow"),success:function(n){e.workflowRecords=n,t(n)},error:function(e){return n(e)}})}))},getSiteSettings:function(){var e=this;return new Promise((function(t,n){$.ajax({type:"GET",url:"".concat(e.APIroot,"system/settings"),success:function(e){return t(e)},error:function(e){return n(e)},cache:!1})}))},fetchLEAFSRequests:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(t,n){var o=new LeafFormQuery;o.setRootURL("../"),o.addTerm("categoryID","=","leaf_secure"),!0===e?(o.addTerm("stepID","=","resolved"),o.join("recordResolutionData")):o.addTerm("stepID","!=","resolved"),o.onSuccess((function(e){return t(e)})),o.execute()}))},getSecureFormsInfo:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list"),success:function(e){},error:function(e){return console.log(e)},cache:!1}),this.fetchLEAFSRequests(!0)];Promise.all(t).then((function(t){var n=t[0],o=t[1];e.checkLeafSRequestStatus(n,o)})).catch((function(e){return console.log("an error has occurred",e)}))},checkLeafSRequestStatus:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=!1,s=0;for(var a in o)"approved"===o[a].recordResolutionData.lastStatus.toLowerCase()&&o[a].recordResolutionData.fulfillmentTime>s&&(s=o[a].recordResolutionData.fulfillmentTime,r=a);null===(e=document.getElementById("secureBtn"))||void 0===e||e.setAttribute("href","../index.php?a=printview&recordID="+r);var l=new Date(1e3*parseInt(s));for(var c in n)if(new Date(n[c].timeAdded).getTime()>l.getTime()){i=!0;break}!0===i&&""===this.focusedFormID&&(this.showCertificationStatus=!0,this.fetchLEAFSRequests(!1).then((function(e){if(""===t.focusedFormID)if(0===Object.keys(e).length){var n,o,r;null===(n=document.getElementById("secureStatus"))||void 0===n||n.setAttribute("innerText","Forms have been modified."),null===(o=document.getElementById("secureBtn"))||void 0===o||o.setAttribute("innerText","Please Recertify Your Site"),null===(r=document.getElementById("secureBtn"))||void 0===r||r.setAttribute("href","../report.php?a=LEAF_start_leaf_secure_certification")}else{var i,s,a,l=e[Object.keys(e)[0]].recordID;null===(i=document.getElementById("secureStatus"))||void 0===i||i.setAttribute("innerText","Re-certification in progress."),null===(s=document.getElementById("secureBtn"))||void 0===s||s.setAttribute("innerText","Check Certification Progress"),null===(a=document.getElementById("secureBtn"))||void 0===a||a.setAttribute("href","../index.php?a=printview&recordID="+l)}})).catch((function(e){return console.log("an error has occurred",e)})))},getFormByCategoryID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(o,r){$.ajax({type:"GET",url:"".concat(e.APIroot,"form/_").concat(t,"?childkeys=nonnumeric"),success:function(r){e.focusedFormID=t,e.focusedFormTree=r,e.selectedNodeIndicatorID=n,e.appIsLoadingForm=!1,o(r)},error:function(e){return r(e)}})}))},getIndicatorByID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(n,o){$.ajax({type:"GET",url:"".concat(e.APIroot,"formEditor/indicator/").concat(t),success:function(e){n(e)},error:function(e){return o(e)}})}))},updateCategoriesProperty:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";void 0!==this.categories[e][t]&&(this.categories[e][t]=n)},updateStapledFormsInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.currentCategoryQuery.categoryID;!0===t?(this.allStapledFormCatIDs=this.allStapledFormCatIDs.filter((function(t){return t!==e})),this.categories[n].stapledFormIDs=this.categories[n].stapledFormIDs.filter((function(t){return t!==e}))):(this.allStapledFormCatIDs=Array.from(new Set([].concat(M(this.allStapledFormCatIDs),[e]))),this.categories[n].stapledFormIDs=[].concat(M(this.currentCategoryQuery.stapledFormIDs),[e]))},addNewCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.categories[e]=t},removeCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";delete this.categories[e]},selectNewCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.setDefaultAjaxResponseMessage(),""!==e?(!0===n&&(this.appIsLoadingForm=!0),this.getFormByCategoryID(e,t)):(this.selectedNodeIndicatorID=null,this.focusedFormID="",this.focusedFormTree=[],this.categories={},this.workflowRecords=[],this.getCategoryListAll(),this.getSecureFormsInfo(),this.getWorkflowRecords())},selectNewFormNode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.target.classList.contains("icon_move")||e.target.classList.contains("sub-menu-chevron")||(this.selectedNodeIndicatorID=(null==t?void 0:t.indicatorID)||null,null!==(null==t?void 0:t.indicatorID)&&Array.from(document.querySelectorAll("li#index_listing_".concat(null==t?void 0:t.indicatorID," .sub-menu-chevron.closed"))).forEach((function(e){return e.click()})))},setCustomDialogTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setFormDialogComponent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},closeFormDialog:function(){this.showFormDialog=!1,this.setCustomDialogTitle(""),this.setFormDialogComponent(""),this.dialogButtonText={confirm:"Save",cancel:"Cancel"}},openConfirmDeleteFormDialog:function(){this.setCustomDialogTitle("

      Delete this form

      "),this.setFormDialogComponent("confirm-delete-dialog"),this.dialogButtonText={confirm:"Yes",cancel:"No"},this.showFormDialog=!0},openStapleFormsDialog:function(){this.setCustomDialogTitle("

      Editing Stapled Forms

      "),this.setFormDialogComponent("staple-form-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openEditCollaboratorsDialog:function(){this.setCustomDialogTitle("

      Editing Collaborators

      "),this.setFormDialogComponent("edit-collaborators-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openIfThenDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Untitled",n=this.truncateText(XSSHelpers.stripAllTags(t));this.currIndicatorID=e,this.setCustomDialogTitle('

      Conditions For '.concat(n," (").concat(e,")

      ")),this.setFormDialogComponent("conditions-editor-dialog"),this.showFormDialog=!0},openIndicatorEditingDialog:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e=null===t?"

      Adding new Section

      ":this.currIndicatorID===parseInt(t)?"

      Editing indicator ".concat(t,"

      "):"

      Adding question to ".concat(t,"

      "),this.setCustomDialogTitle(e),this.setFormDialogComponent("indicator-editing-dialog"),this.showFormDialog=!0},openAdvancedOptionsDialog:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorRecord={},this.currIndicatorID=t,this.getIndicatorByID(t).then((function(n){e.indicatorRecord=n,e.setCustomDialogTitle("

      Advanced Options for indicator ".concat(t,"

      ")),e.setFormDialogComponent("advanced-options-dialog"),e.showFormDialog=!0})).catch((function(e){return console.log("error getting indicator information",e)}))},openNewFormDialog:function(){var e=""===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")?"

      New Form

      ":"

      New Internal Use Form

      ";this.setCustomDialogTitle(e),this.setFormDialogComponent("new-form-dialog"),this.showFormDialog=!0},openImportFormDialog:function(){this.setCustomDialogTitle("

      Import Form

      "),this.setFormDialogComponent("import-form-dialog"),this.showFormDialog=!0},openFormHistoryDialog:function(){this.setCustomDialogTitle("

      Form History

      "),this.setFormDialogComponent("form-history-dialog"),this.showFormDialog=!0},newQuestion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.currIndicatorID=null,this.newIndicatorParentID=null!==e?parseInt(e):null,this.isEditingModal=!1,this.openIndicatorEditingDialog(e)},editQuestion:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorRecord={},this.currIndicatorID=t,this.newIndicatorParentID=null,this.getIndicatorByID(t).then((function(n){e.isEditingModal=!0,e.indicatorRecord=n,e.openIndicatorEditingDialog(t)})).catch((function(e){return console.log("error getting indicator information",e)}))},checkSensitive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(1===parseInt(e.is_sensitive))return!0;var t=!1;if(e.child)for(var n in e.child)if(!0===(t=this.checkSensitive(e.child[n])||!1))break;return t},getNodeSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(parseInt(e.indicatorID)===parseInt(t))return e;var n=null;if(e.child&&Object.keys(e.child).length>0)for(var o in e.child)if(null!==(n=this.getNodeSelection(e.child[o],t)||null))break;return n}}},z="undefined"!=typeof window;const G=Object.assign;function W(e,t){const n={};for(const o in t){const r=t[o];n[o]=K(r)?r.map(e):e(r)}return n}const J=()=>{},K=Array.isArray,Y=/\/$/,Q=e=>e.replace(Y,"");function X(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let r,i,s=n.length-1;for(r=0;r1&&s--}return n.slice(0,s).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:s}}function Z(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function ee(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function te(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ne(e[n],t[n]))return!1;return!0}function ne(e,t){return K(e)?oe(e,t):K(t)?oe(t,e):e===t}function oe(e,t){return K(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var re,ie;!function(e){e.pop="pop",e.push="push"}(re||(re={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(ie||(ie={}));const se=/^[^#]+#/;function ae(e,t){return e.replace(se,"#")+t}const le=()=>({left:window.pageXOffset,top:window.pageYOffset});function ce(e,t){return(history.state?history.state.position-t:-1)+e}const de=new Map;let ue=()=>location.protocol+"//"+location.host;function pe(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Z(n,"")}return Z(n,e)+o+r}function fe(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?le():null}}function he(e){return"string"==typeof e||"symbol"==typeof e}const me={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ge=Symbol("");var ve;function be(e,t){return G(new Error,{type:e,[ge]:!0},t)}function ye(e,t){return e instanceof Error&&ge in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(ve||(ve={}));const _e="[^/]+?",xe={sensitive:!1,strict:!1,start:!0,end:!0},we=/[.+*?^${}()[\]/\\]/g;function Ie(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Se(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const De={type:0,value:""},ke=/[a-zA-Z0-9_]/;function Fe(e,t,n){const o=function(e,t){const n=G({},xe,t),o=[];let r=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:d,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function p(){c+=a}for(;lG(e,t.meta)),{})}function Re(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Ne(e,t){return t.children.some((t=>t===e||Ne(e,t)))}const Ae=/#/g,Le=/&/g,je=/\//g,Me=/=/g,$e=/\?/g,Be=/\+/g,Ve=/%5B/g,He=/%5D/g,qe=/%5E/g,Ue=/%60/g,ze=/%7B/g,Ge=/%7C/g,We=/%7D/g,Je=/%20/g;function Ke(e){return encodeURI(""+e).replace(Ge,"|").replace(Ve,"[").replace(He,"]")}function Ye(e){return Ke(e).replace(Be,"%2B").replace(Je,"+").replace(Ae,"%23").replace(Le,"%26").replace(Ue,"`").replace(ze,"{").replace(We,"}").replace(qe,"^")}function Qe(e){return null==e?"":function(e){return Ke(e).replace(Ae,"%23").replace($e,"%3F")}(e).replace(je,"%2F")}function Xe(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}function Ze(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&Ye(e))):[o&&Ye(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function tt(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=K(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const nt=Symbol(""),ot=Symbol(""),rt=Symbol(""),it=Symbol(""),st=Symbol("");function at(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function lt(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((s,a)=>{const l=e=>{var l;!1===e?a(be(4,{from:n,to:t})):e instanceof Error?a(e):"string"==typeof(l=e)||l&&"object"==typeof l?a(be(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),s())},c=e.call(o&&o.instances[r],t,n,l);let d=Promise.resolve(c);e.length<3&&(d=d.then(l)),d.catch((e=>a(e)))}))}function ct(e,t,n,o){const r=[];for(const s of e)for(const e in s.components){let a=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(i=a)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(a.__vccOpts||a)[t];i&&r.push(lt(i,n,o,s,e))}else{let i=a();r.push((()=>i.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const i=(a=r).__esModule||"Module"===a[Symbol.toStringTag]?r.default:r;var a;s.components[e]=i;const l=(i.__vccOpts||i)[t];return l&<(l,n,o,s,e)()}))))}}var i;return r}function dt(t){const n=(0,e.f3)(rt),o=(0,e.f3)(it),r=(0,e.Fl)((()=>n.resolve((0,e.SU)(t.to)))),i=(0,e.Fl)((()=>{const{matched:e}=r.value,{length:t}=e,n=e[t-1],i=o.matched;if(!n||!i.length)return-1;const s=i.findIndex(ee.bind(null,n));if(s>-1)return s;const a=ft(e[t-2]);return t>1&&ft(n)===a&&i[i.length-1].path!==a?i.findIndex(ee.bind(null,e[t-2])):s})),s=(0,e.Fl)((()=>i.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!K(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(o.params,r.value.params))),a=(0,e.Fl)((()=>i.value>-1&&i.value===o.matched.length-1&&te(o.params,r.value.params)));return{route:r,href:(0,e.Fl)((()=>r.value.href)),isActive:s,isExactActive:a,navigate:function(o={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(o)?n[(0,e.SU)(t.replace)?"replace":"push"]((0,e.SU)(t.to)).catch(J):Promise.resolve()}}}const ut=(0,e.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:dt,setup(t,{slots:n}){const o=(0,e.qj)(dt(t)),{options:r}=(0,e.f3)(rt),i=(0,e.Fl)((()=>({[ht(t.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[ht(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive})));return()=>{const r=n.default&&n.default(o);return t.custom?r:(0,e.h)("a",{"aria-current":o.isExactActive?t.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:i.value},r)}}}),pt=ut;function ft(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ht=(e,t,n)=>null!=e?e:null!=t?t:n;function mt(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const gt=(0,e.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:o}){const r=(0,e.f3)(st),i=(0,e.Fl)((()=>t.route||r.value)),s=(0,e.f3)(ot,0),a=(0,e.Fl)((()=>{let t=(0,e.SU)(s);const{matched:n}=i.value;let o;for(;(o=n[t])&&!o.components;)t++;return t})),l=(0,e.Fl)((()=>i.value.matched[a.value]));(0,e.JJ)(ot,(0,e.Fl)((()=>a.value+1))),(0,e.JJ)(nt,l),(0,e.JJ)(st,i);const c=(0,e.iH)();return(0,e.YP)((()=>[c.value,l.value,t.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&ee(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=i.value,s=t.name,a=l.value,d=a&&a.components[s];if(!d)return mt(o.default,{Component:d,route:r});const u=a.props[s],p=u?!0===u?r.params:"function"==typeof u?u(r):u:null,f=(0,e.h)(d,G({},p,n,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[s]=null)},ref:c}));return mt(o.default,{Component:f,route:r})||f}}});function vt(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}var bt,yt=[{path:"/",redirect:{name:"category"}},{path:"/forms",name:"category",component:function(){return r.e(910).then(r.bind(r,910))}},{path:"/restore",name:"restore",component:function(){return r.e(171).then(r.bind(r,171))}}],_t=function(t){const n=function(e,t){const n=[],o=new Map;function r(e,n,o){const a=!o,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Te(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);l.aliasOf=o&&o.record;const c=Re(t,e),d=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)d.push(G({},l,{components:o?o.record.components:l.components,path:e,aliasOf:o?o.record:l}))}let u,p;for(const t of d){const{path:d}=t;if(n&&"/"!==d[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(d&&o+d)}if(u=Fe(t,n,c),o?o.alias.push(u):(p=p||u,p!==u&&p.alias.push(u),a&&e.name&&!Pe(u)&&i(e.name)),l.children){const e=l.children;for(let t=0;t{i(p)}:J}function i(e){if(he(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!Ne(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Pe(e)&&o.set(e.record.name,e)}return t=Re({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,a={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw be(1,{location:e});s=r.record.name,a=G(Ee(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&Ee(e.params,r.keys.map((e=>e.name)))),i=r.stringify(a)}else if("path"in e)i=e.path,r=n.find((e=>e.re.test(i))),r&&(a=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw be(1,{location:e,currentLocation:t});s=r.record.name,a=G({},t.params,e.params),i=r.stringify(a)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:i,params:a,matched:l,meta:Oe(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(t.routes,t),o=t.parseQuery||Ze,r=t.stringifyQuery||et,i=t.history,s=at(),a=at(),l=at(),c=(0,e.XI)(me);let d=me;z&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=W.bind(null,(e=>""+e)),p=W.bind(null,Qe),f=W.bind(null,Xe);function h(e,t){if(t=G({},t||c.value),"string"==typeof e){const r=X(o,e,t.path),s=n.resolve({path:r.path},t),a=i.createHref(r.fullPath);return G(r,s,{params:f(s.params),hash:Xe(r.hash),redirectedFrom:void 0,href:a})}let s;if("path"in e)s=G({},e,{path:X(o,e.path,t.path).path});else{const n=G({},e.params);for(const e in n)null==n[e]&&delete n[e];s=G({},e,{params:p(e.params)}),t.params=p(t.params)}const a=n.resolve(s,t),l=e.hash||"";a.params=u(f(a.params));const d=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(r,G({},e,{hash:(h=l,Ke(h).replace(ze,"{").replace(We,"}").replace(qe,"^")),path:a.path}));var h;const m=i.createHref(d);return G({fullPath:d,hash:l,query:r===et?tt(e.query):e.query||{}},a,{redirectedFrom:void 0,href:m})}function m(e){return"string"==typeof e?X(o,e,c.value.path):G({},e)}function g(e,t){if(d!==e)return be(8,{from:t,to:e})}function v(e){return y(e)}function b(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=m(o):{path:o},o.params={}),G({query:e.query,hash:e.hash,params:"path"in o?{}:e.params},o)}}function y(e,t){const n=d=h(e),o=c.value,i=e.state,s=e.force,a=!0===e.replace,l=b(n);if(l)return y(G(m(l),{state:"object"==typeof l?G({},i,l.state):i,force:s,replace:a}),t||n);const u=n;let p;return u.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&ee(t.matched[o],n.matched[r])&&te(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(r,o,n)&&(p=be(16,{to:u,from:o}),T(o,o,!0,!1)),(p?Promise.resolve(p):x(u,o)).catch((e=>ye(e)?ye(e,2)?e:E(e):F(e,u,o))).then((e=>{if(e){if(ye(e,2))return y(G({replace:a},m(e.to),{state:"object"==typeof e.to?G({},i,e.to.state):i,force:s}),t||u)}else e=I(u,o,!0,a,i);return w(u,o,e),e}))}function _(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function x(e,t){let n;const[o,r,i]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;see(e,i)))?o.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find((e=>ee(e,a)))||r.push(a))}return[n,o,r]}(e,t);n=ct(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(lt(o,e,t))}));const l=_.bind(null,e,t);return n.push(l),vt(n).then((()=>{n=[];for(const o of s.list())n.push(lt(o,e,t));return n.push(l),vt(n)})).then((()=>{n=ct(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(lt(o,e,t))}));return n.push(l),vt(n)})).then((()=>{n=[];for(const o of e.matched)if(o.beforeEnter&&!t.matched.includes(o))if(K(o.beforeEnter))for(const r of o.beforeEnter)n.push(lt(r,e,t));else n.push(lt(o.beforeEnter,e,t));return n.push(l),vt(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=ct(i,"beforeRouteEnter",e,t),n.push(l),vt(n)))).then((()=>{n=[];for(const o of a.list())n.push(lt(o,e,t));return n.push(l),vt(n)})).catch((e=>ye(e,8)?e:Promise.reject(e)))}function w(e,t,n){for(const o of l.list())o(e,t,n)}function I(e,t,n,o,r){const s=g(e,t);if(s)return s;const a=t===me,l=z?history.state:{};n&&(o||a?i.replace(e.fullPath,G({scroll:a&&l&&l.scroll},r)):i.push(e.fullPath,r)),c.value=e,T(e,t,n,a),E()}let S;let C,D=at(),k=at();function F(e,t,n){E(e);const o=k.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function E(e){return C||(C=!e,S||(S=i.listen(((e,t,n)=>{if(!N.listening)return;const o=h(e),r=b(o);if(r)return void y(G(r,{replace:!0}),o).catch(J);d=o;const s=c.value;var a,l;z&&(a=ce(s.fullPath,n.delta),l=le(),de.set(a,l)),x(o,s).catch((e=>ye(e,12)?e:ye(e,2)?(y(e.to,o).then((e=>{ye(e,20)&&!n.delta&&n.type===re.pop&&i.go(-1,!1)})).catch(J),Promise.reject()):(n.delta&&i.go(-n.delta,!1),F(e,o,s)))).then((e=>{(e=e||I(o,s,!1))&&(n.delta&&!ye(e,8)?i.go(-n.delta,!1):n.type===re.pop&&ye(e,20)&&i.go(-1,!1)),w(o,s,e)})).catch(J)}))),D.list().forEach((([t,n])=>e?n(e):t())),D.reset()),e}function T(n,o,r,i){const{scrollBehavior:s}=t;if(!z||!s)return Promise.resolve();const a=!r&&function(e){const t=de.get(e);return de.delete(e),t}(ce(n.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return(0,e.Y3)().then((()=>s(n,o,a))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}(e))).catch((e=>F(e,n,o)))}const P=e=>i.go(e);let O;const R=new Set,N={currentRoute:c,listening:!0,addRoute:function(e,t){let o,r;return he(e)?(o=n.getRecordMatcher(e),r=t):r=e,n.addRoute(r,o)},removeRoute:function(e){const t=n.getRecordMatcher(e);t&&n.removeRoute(t)},hasRoute:function(e){return!!n.getRecordMatcher(e)},getRoutes:function(){return n.getRoutes().map((e=>e.record))},resolve:h,options:t,push:v,replace:function(e){return v(G(m(e),{replace:!0}))},go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:s.add,beforeResolve:a.add,afterEach:l.add,onError:k.add,isReady:function(){return C&&c.value!==me?Promise.resolve():new Promise(((e,t)=>{D.add([e,t])}))},install(t){t.component("RouterLink",pt),t.component("RouterView",gt),t.config.globalProperties.$router=this,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,e.SU)(c)}),z&&!O&&c.value===me&&(O=!0,v(i.location).catch((e=>{})));const n={};for(const t in me)n[t]=(0,e.Fl)((()=>c.value[t]));t.provide(rt,this),t.provide(it,(0,e.qj)(n)),t.provide(st,c);const o=t.unmount;R.add(t),t.unmount=function(){R.delete(t),R.size<1&&(d=me,S&&S(),S=null,c.value=me,O=!1,C=!1),o()}}};return N}({history:((bt=location.host?bt||location.pathname+location.search:"").includes("#")||(bt+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:pe(e,n)},r={value:t.state};function i(o,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:ue()+e+o;try{t[s?"replaceState":"pushState"](i,"",l),r.value=i}catch(e){console.error(e),n[s?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=G({},r.value,t.state,{forward:e,scroll:le()});i(s.current,s,!0),i(e,G({},fe(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,G({},t.state,fe(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(z){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),Q(e)}(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const a=({state:i})=>{const a=pe(e,location),l=n.value,c=t.value;let d=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);d=c?i.position-c.position:0}else o(a);r.forEach((e=>{e(n.value,l,{delta:d,type:re.pop,direction:d?d>0?ie.forward:ie.back:ie.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(G({},e.state,{scroll:le()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace),o=G({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:ae.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(bt)),routes:yt});const xt=_t;var wt=(0,e.ri)(U);wt.config.unwrapInjectedRef=!0,wt.use(xt),wt.mount("#vue-formeditor-app")})()})(); \ No newline at end of file diff --git a/libs/js/vue-dest/site_designer/LEAF_designer_main_build.js b/libs/js/vue-dest/site_designer/LEAF_designer_main_build.js new file mode 100644 index 000000000..7a350dc63 --- /dev/null +++ b/libs/js/vue-dest/site_designer/LEAF_designer_main_build.js @@ -0,0 +1,188 @@ +/* + * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). + * This devtool is neither made for production nor for readable output files. + * It uses "eval()" calls to create a separate source file in the browser devtools. + * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) + * or disable the default devtool with "devtool: false". + * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). + */ +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js": +/*!***************************************************************************!*\ + !*** ./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"BASE_TRANSITION\": () => (/* binding */ BASE_TRANSITION),\n/* harmony export */ \"CAMELIZE\": () => (/* binding */ CAMELIZE),\n/* harmony export */ \"CAPITALIZE\": () => (/* binding */ CAPITALIZE),\n/* harmony export */ \"CREATE_BLOCK\": () => (/* binding */ CREATE_BLOCK),\n/* harmony export */ \"CREATE_COMMENT\": () => (/* binding */ CREATE_COMMENT),\n/* harmony export */ \"CREATE_ELEMENT_BLOCK\": () => (/* binding */ CREATE_ELEMENT_BLOCK),\n/* harmony export */ \"CREATE_ELEMENT_VNODE\": () => (/* binding */ CREATE_ELEMENT_VNODE),\n/* harmony export */ \"CREATE_SLOTS\": () => (/* binding */ CREATE_SLOTS),\n/* harmony export */ \"CREATE_STATIC\": () => (/* binding */ CREATE_STATIC),\n/* harmony export */ \"CREATE_TEXT\": () => (/* binding */ CREATE_TEXT),\n/* harmony export */ \"CREATE_VNODE\": () => (/* binding */ CREATE_VNODE),\n/* harmony export */ \"FRAGMENT\": () => (/* binding */ FRAGMENT),\n/* harmony export */ \"GUARD_REACTIVE_PROPS\": () => (/* binding */ GUARD_REACTIVE_PROPS),\n/* harmony export */ \"IS_MEMO_SAME\": () => (/* binding */ IS_MEMO_SAME),\n/* harmony export */ \"IS_REF\": () => (/* binding */ IS_REF),\n/* harmony export */ \"KEEP_ALIVE\": () => (/* binding */ KEEP_ALIVE),\n/* harmony export */ \"MERGE_PROPS\": () => (/* binding */ MERGE_PROPS),\n/* harmony export */ \"NORMALIZE_CLASS\": () => (/* binding */ NORMALIZE_CLASS),\n/* harmony export */ \"NORMALIZE_PROPS\": () => (/* binding */ NORMALIZE_PROPS),\n/* harmony export */ \"NORMALIZE_STYLE\": () => (/* binding */ NORMALIZE_STYLE),\n/* harmony export */ \"OPEN_BLOCK\": () => (/* binding */ OPEN_BLOCK),\n/* harmony export */ \"POP_SCOPE_ID\": () => (/* binding */ POP_SCOPE_ID),\n/* harmony export */ \"PUSH_SCOPE_ID\": () => (/* binding */ PUSH_SCOPE_ID),\n/* harmony export */ \"RENDER_LIST\": () => (/* binding */ RENDER_LIST),\n/* harmony export */ \"RENDER_SLOT\": () => (/* binding */ RENDER_SLOT),\n/* harmony export */ \"RESOLVE_COMPONENT\": () => (/* binding */ RESOLVE_COMPONENT),\n/* harmony export */ \"RESOLVE_DIRECTIVE\": () => (/* binding */ RESOLVE_DIRECTIVE),\n/* harmony export */ \"RESOLVE_DYNAMIC_COMPONENT\": () => (/* binding */ RESOLVE_DYNAMIC_COMPONENT),\n/* harmony export */ \"RESOLVE_FILTER\": () => (/* binding */ RESOLVE_FILTER),\n/* harmony export */ \"SET_BLOCK_TRACKING\": () => (/* binding */ SET_BLOCK_TRACKING),\n/* harmony export */ \"SUSPENSE\": () => (/* binding */ SUSPENSE),\n/* harmony export */ \"TELEPORT\": () => (/* binding */ TELEPORT),\n/* harmony export */ \"TO_DISPLAY_STRING\": () => (/* binding */ TO_DISPLAY_STRING),\n/* harmony export */ \"TO_HANDLERS\": () => (/* binding */ TO_HANDLERS),\n/* harmony export */ \"TO_HANDLER_KEY\": () => (/* binding */ TO_HANDLER_KEY),\n/* harmony export */ \"UNREF\": () => (/* binding */ UNREF),\n/* harmony export */ \"WITH_CTX\": () => (/* binding */ WITH_CTX),\n/* harmony export */ \"WITH_DIRECTIVES\": () => (/* binding */ WITH_DIRECTIVES),\n/* harmony export */ \"WITH_MEMO\": () => (/* binding */ WITH_MEMO),\n/* harmony export */ \"advancePositionWithClone\": () => (/* binding */ advancePositionWithClone),\n/* harmony export */ \"advancePositionWithMutation\": () => (/* binding */ advancePositionWithMutation),\n/* harmony export */ \"assert\": () => (/* binding */ assert),\n/* harmony export */ \"baseCompile\": () => (/* binding */ baseCompile),\n/* harmony export */ \"baseParse\": () => (/* binding */ baseParse),\n/* harmony export */ \"buildDirectiveArgs\": () => (/* binding */ buildDirectiveArgs),\n/* harmony export */ \"buildProps\": () => (/* binding */ buildProps),\n/* harmony export */ \"buildSlots\": () => (/* binding */ buildSlots),\n/* harmony export */ \"checkCompatEnabled\": () => (/* binding */ checkCompatEnabled),\n/* harmony export */ \"createArrayExpression\": () => (/* binding */ createArrayExpression),\n/* harmony export */ \"createAssignmentExpression\": () => (/* binding */ createAssignmentExpression),\n/* harmony export */ \"createBlockStatement\": () => (/* binding */ createBlockStatement),\n/* harmony export */ \"createCacheExpression\": () => (/* binding */ createCacheExpression),\n/* harmony export */ \"createCallExpression\": () => (/* binding */ createCallExpression),\n/* harmony export */ \"createCompilerError\": () => (/* binding */ createCompilerError),\n/* harmony export */ \"createCompoundExpression\": () => (/* binding */ createCompoundExpression),\n/* harmony export */ \"createConditionalExpression\": () => (/* binding */ createConditionalExpression),\n/* harmony export */ \"createForLoopParams\": () => (/* binding */ createForLoopParams),\n/* harmony export */ \"createFunctionExpression\": () => (/* binding */ createFunctionExpression),\n/* harmony export */ \"createIfStatement\": () => (/* binding */ createIfStatement),\n/* harmony export */ \"createInterpolation\": () => (/* binding */ createInterpolation),\n/* harmony export */ \"createObjectExpression\": () => (/* binding */ createObjectExpression),\n/* harmony export */ \"createObjectProperty\": () => (/* binding */ createObjectProperty),\n/* harmony export */ \"createReturnStatement\": () => (/* binding */ createReturnStatement),\n/* harmony export */ \"createRoot\": () => (/* binding */ createRoot),\n/* harmony export */ \"createSequenceExpression\": () => (/* binding */ createSequenceExpression),\n/* harmony export */ \"createSimpleExpression\": () => (/* binding */ createSimpleExpression),\n/* harmony export */ \"createStructuralDirectiveTransform\": () => (/* binding */ createStructuralDirectiveTransform),\n/* harmony export */ \"createTemplateLiteral\": () => (/* binding */ createTemplateLiteral),\n/* harmony export */ \"createTransformContext\": () => (/* binding */ createTransformContext),\n/* harmony export */ \"createVNodeCall\": () => (/* binding */ createVNodeCall),\n/* harmony export */ \"extractIdentifiers\": () => (/* binding */ extractIdentifiers),\n/* harmony export */ \"findDir\": () => (/* binding */ findDir),\n/* harmony export */ \"findProp\": () => (/* binding */ findProp),\n/* harmony export */ \"generate\": () => (/* binding */ generate),\n/* harmony export */ \"generateCodeFrame\": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_0__.generateCodeFrame),\n/* harmony export */ \"getBaseTransformPreset\": () => (/* binding */ getBaseTransformPreset),\n/* harmony export */ \"getConstantType\": () => (/* binding */ getConstantType),\n/* harmony export */ \"getInnerRange\": () => (/* binding */ getInnerRange),\n/* harmony export */ \"getMemoedVNodeCall\": () => (/* binding */ getMemoedVNodeCall),\n/* harmony export */ \"getVNodeBlockHelper\": () => (/* binding */ getVNodeBlockHelper),\n/* harmony export */ \"getVNodeHelper\": () => (/* binding */ getVNodeHelper),\n/* harmony export */ \"hasDynamicKeyVBind\": () => (/* binding */ hasDynamicKeyVBind),\n/* harmony export */ \"hasScopeRef\": () => (/* binding */ hasScopeRef),\n/* harmony export */ \"helperNameMap\": () => (/* binding */ helperNameMap),\n/* harmony export */ \"injectProp\": () => (/* binding */ injectProp),\n/* harmony export */ \"isBuiltInType\": () => (/* binding */ isBuiltInType),\n/* harmony export */ \"isCoreComponent\": () => (/* binding */ isCoreComponent),\n/* harmony export */ \"isFunctionType\": () => (/* binding */ isFunctionType),\n/* harmony export */ \"isInDestructureAssignment\": () => (/* binding */ isInDestructureAssignment),\n/* harmony export */ \"isMemberExpression\": () => (/* binding */ isMemberExpression),\n/* harmony export */ \"isMemberExpressionBrowser\": () => (/* binding */ isMemberExpressionBrowser),\n/* harmony export */ \"isMemberExpressionNode\": () => (/* binding */ isMemberExpressionNode),\n/* harmony export */ \"isReferencedIdentifier\": () => (/* binding */ isReferencedIdentifier),\n/* harmony export */ \"isSimpleIdentifier\": () => (/* binding */ isSimpleIdentifier),\n/* harmony export */ \"isSlotOutlet\": () => (/* binding */ isSlotOutlet),\n/* harmony export */ \"isStaticArgOf\": () => (/* binding */ isStaticArgOf),\n/* harmony export */ \"isStaticExp\": () => (/* binding */ isStaticExp),\n/* harmony export */ \"isStaticProperty\": () => (/* binding */ isStaticProperty),\n/* harmony export */ \"isStaticPropertyKey\": () => (/* binding */ isStaticPropertyKey),\n/* harmony export */ \"isTemplateNode\": () => (/* binding */ isTemplateNode),\n/* harmony export */ \"isText\": () => (/* binding */ isText$1),\n/* harmony export */ \"isVSlot\": () => (/* binding */ isVSlot),\n/* harmony export */ \"locStub\": () => (/* binding */ locStub),\n/* harmony export */ \"makeBlock\": () => (/* binding */ makeBlock),\n/* harmony export */ \"noopDirectiveTransform\": () => (/* binding */ noopDirectiveTransform),\n/* harmony export */ \"processExpression\": () => (/* binding */ processExpression),\n/* harmony export */ \"processFor\": () => (/* binding */ processFor),\n/* harmony export */ \"processIf\": () => (/* binding */ processIf),\n/* harmony export */ \"processSlotOutlet\": () => (/* binding */ processSlotOutlet),\n/* harmony export */ \"registerRuntimeHelpers\": () => (/* binding */ registerRuntimeHelpers),\n/* harmony export */ \"resolveComponentType\": () => (/* binding */ resolveComponentType),\n/* harmony export */ \"stringifyExpression\": () => (/* binding */ stringifyExpression),\n/* harmony export */ \"toValidAssetId\": () => (/* binding */ toValidAssetId),\n/* harmony export */ \"trackSlotScopes\": () => (/* binding */ trackSlotScopes),\n/* harmony export */ \"trackVForSlotScopes\": () => (/* binding */ trackVForSlotScopes),\n/* harmony export */ \"transform\": () => (/* binding */ transform),\n/* harmony export */ \"transformBind\": () => (/* binding */ transformBind),\n/* harmony export */ \"transformElement\": () => (/* binding */ transformElement),\n/* harmony export */ \"transformExpression\": () => (/* binding */ transformExpression),\n/* harmony export */ \"transformModel\": () => (/* binding */ transformModel),\n/* harmony export */ \"transformOn\": () => (/* binding */ transformOn),\n/* harmony export */ \"traverseNode\": () => (/* binding */ traverseNode),\n/* harmony export */ \"walkBlockDeclarations\": () => (/* binding */ walkBlockDeclarations),\n/* harmony export */ \"walkFunctionParams\": () => (/* binding */ walkFunctionParams),\n/* harmony export */ \"walkIdentifiers\": () => (/* binding */ walkIdentifiers),\n/* harmony export */ \"warnDeprecation\": () => (/* binding */ warnDeprecation)\n/* harmony export */ });\n/* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/shared */ \"./node_modules/@vue/shared/dist/shared.esm-bundler.js\");\n\n\n\nfunction defaultOnError(error) {\n throw error;\n}\nfunction defaultOnWarn(msg) {\n ( true) && console.warn(`[Vue warn] ${msg.message}`);\n}\nfunction createCompilerError(code, loc, messages, additionalMessage) {\n const msg = true\n ? (messages || errorMessages)[code] + (additionalMessage || ``)\n : 0;\n const error = new SyntaxError(String(msg));\n error.code = code;\n error.loc = loc;\n return error;\n}\nconst errorMessages = {\n // parse errors\n [0 /* ErrorCodes.ABRUPT_CLOSING_OF_EMPTY_COMMENT */]: 'Illegal comment.',\n [1 /* ErrorCodes.CDATA_IN_HTML_CONTENT */]: 'CDATA section is allowed only in XML context.',\n [2 /* ErrorCodes.DUPLICATE_ATTRIBUTE */]: 'Duplicate attribute.',\n [3 /* ErrorCodes.END_TAG_WITH_ATTRIBUTES */]: 'End tag cannot have attributes.',\n [4 /* ErrorCodes.END_TAG_WITH_TRAILING_SOLIDUS */]: \"Illegal '/' in tags.\",\n [5 /* ErrorCodes.EOF_BEFORE_TAG_NAME */]: 'Unexpected EOF in tag.',\n [6 /* ErrorCodes.EOF_IN_CDATA */]: 'Unexpected EOF in CDATA section.',\n [7 /* ErrorCodes.EOF_IN_COMMENT */]: 'Unexpected EOF in comment.',\n [8 /* ErrorCodes.EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */]: 'Unexpected EOF in script.',\n [9 /* ErrorCodes.EOF_IN_TAG */]: 'Unexpected EOF in tag.',\n [10 /* ErrorCodes.INCORRECTLY_CLOSED_COMMENT */]: 'Incorrectly closed comment.',\n [11 /* ErrorCodes.INCORRECTLY_OPENED_COMMENT */]: 'Incorrectly opened comment.',\n [12 /* ErrorCodes.INVALID_FIRST_CHARACTER_OF_TAG_NAME */]: \"Illegal tag name. Use '<' to print '<'.\",\n [13 /* ErrorCodes.MISSING_ATTRIBUTE_VALUE */]: 'Attribute value was expected.',\n [14 /* ErrorCodes.MISSING_END_TAG_NAME */]: 'End tag name was expected.',\n [15 /* ErrorCodes.MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */]: 'Whitespace was expected.',\n [16 /* ErrorCodes.NESTED_COMMENT */]: \"Unexpected '|--!>| looseEqual(item, val));\n}\n\n/**\n * For converting {{ interpolation }} values to displayed strings.\n * @private\n */\nconst toDisplayString = (val) => {\n return isString(val)\n ? val\n : val == null\n ? ''\n : isArray(val) ||\n (isObject(val) &&\n (val.toString === objectToString || !isFunction(val.toString)))\n ? JSON.stringify(val, replacer, 2)\n : String(val);\n};\nconst replacer = (_key, val) => {\n // can't use isRef here since @vue/shared has no deps\n if (val && val.__v_isRef) {\n return replacer(_key, val.value);\n }\n else if (isMap(val)) {\n return {\n [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val]) => {\n entries[`${key} =>`] = val;\n return entries;\n }, {})\n };\n }\n else if (isSet(val)) {\n return {\n [`Set(${val.size})`]: [...val.values()]\n };\n }\n else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {\n return String(val);\n }\n return val;\n};\n\nconst EMPTY_OBJ = ( true)\n ? Object.freeze({})\n : 0;\nconst EMPTY_ARR = ( true) ? Object.freeze([]) : 0;\nconst NOOP = () => { };\n/**\n * Always return false.\n */\nconst NO = () => false;\nconst onRE = /^on[^a-z]/;\nconst isOn = (key) => onRE.test(key);\nconst isModelListener = (key) => key.startsWith('onUpdate:');\nconst extend = Object.assign;\nconst remove = (arr, el) => {\n const i = arr.indexOf(el);\n if (i > -1) {\n arr.splice(i, 1);\n }\n};\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nconst hasOwn = (val, key) => hasOwnProperty.call(val, key);\nconst isArray = Array.isArray;\nconst isMap = (val) => toTypeString(val) === '[object Map]';\nconst isSet = (val) => toTypeString(val) === '[object Set]';\nconst isDate = (val) => toTypeString(val) === '[object Date]';\nconst isRegExp = (val) => toTypeString(val) === '[object RegExp]';\nconst isFunction = (val) => typeof val === 'function';\nconst isString = (val) => typeof val === 'string';\nconst isSymbol = (val) => typeof val === 'symbol';\nconst isObject = (val) => val !== null && typeof val === 'object';\nconst isPromise = (val) => {\n return isObject(val) && isFunction(val.then) && isFunction(val.catch);\n};\nconst objectToString = Object.prototype.toString;\nconst toTypeString = (value) => objectToString.call(value);\nconst toRawType = (value) => {\n // extract \"RawType\" from strings like \"[object RawType]\"\n return toTypeString(value).slice(8, -1);\n};\nconst isPlainObject = (val) => toTypeString(val) === '[object Object]';\nconst isIntegerKey = (key) => isString(key) &&\n key !== 'NaN' &&\n key[0] !== '-' &&\n '' + parseInt(key, 10) === key;\nconst isReservedProp = /*#__PURE__*/ makeMap(\n// the leading comma is intentional so empty string \"\" is also included\n',key,ref,ref_for,ref_key,' +\n 'onVnodeBeforeMount,onVnodeMounted,' +\n 'onVnodeBeforeUpdate,onVnodeUpdated,' +\n 'onVnodeBeforeUnmount,onVnodeUnmounted');\nconst isBuiltInDirective = /*#__PURE__*/ makeMap('bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo');\nconst cacheStringFunction = (fn) => {\n const cache = Object.create(null);\n return ((str) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n });\n};\nconst camelizeRE = /-(\\w)/g;\n/**\n * @private\n */\nconst camelize = cacheStringFunction((str) => {\n return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));\n});\nconst hyphenateRE = /\\B([A-Z])/g;\n/**\n * @private\n */\nconst hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());\n/**\n * @private\n */\nconst capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));\n/**\n * @private\n */\nconst toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);\n// compare whether a value has changed, accounting for NaN.\nconst hasChanged = (value, oldValue) => !Object.is(value, oldValue);\nconst invokeArrayFns = (fns, arg) => {\n for (let i = 0; i < fns.length; i++) {\n fns[i](arg);\n }\n};\nconst def = (obj, key, value) => {\n Object.defineProperty(obj, key, {\n configurable: true,\n enumerable: false,\n value\n });\n};\n/**\n * \"123-foo\" will be parsed to 123\n * This is used for the .number modifier in v-model\n */\nconst looseToNumber = (val) => {\n const n = parseFloat(val);\n return isNaN(n) ? val : n;\n};\n/**\n * Only conerces number-like strings\n * \"123-foo\" will be returned as-is\n */\nconst toNumber = (val) => {\n const n = isString(val) ? Number(val) : NaN;\n return isNaN(n) ? val : n;\n};\nlet _globalThis;\nconst getGlobalThis = () => {\n return (_globalThis ||\n (_globalThis =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof __webpack_require__.g !== 'undefined'\n ? __webpack_require__.g\n : {}));\n};\nconst identRE = /^[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*$/;\nfunction genPropsAccessExp(name) {\n return identRE.test(name)\n ? `__props.${name}`\n : `__props[${JSON.stringify(name)}]`;\n}\n\n\n\n\n//# sourceURL=webpack://leaf_vue/./node_modules/@vue/shared/dist/shared.esm-bundler.js?"); + +/***/ }), + +/***/ "./src_designer/LEAF_designer_App.js": +/*!*******************************************!*\ + !*** ./src_designer/LEAF_designer_App.js ***! + \*******************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.esm-bundler.js\");\n/* harmony import */ var _components_ModHomeMenu_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/ModHomeMenu.js */ \"./src_designer/components/ModHomeMenu.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n data: function data() {\n return {\n CSRFToken: CSRFToken,\n test: 'some test data'\n };\n },\n provide: function provide() {\n var _this = this;\n return {\n CSRFToken: (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(function () {\n return _this.CSRFToken;\n })\n };\n },\n components: {\n ModHomeMenu: _components_ModHomeMenu_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n }\n});\n\n//# sourceURL=webpack://leaf_vue/./src_designer/LEAF_designer_App.js?"); + +/***/ }), + +/***/ "./src_designer/LEAF_designer_main.js": +/*!********************************************!*\ + !*** ./src_designer/LEAF_designer_main.js ***! + \********************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.esm-bundler.js\");\n/* harmony import */ var _LEAF_designer_App_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LEAF_designer_App.js */ \"./src_designer/LEAF_designer_App.js\");\n\n\n\n/*TODO: test if still needed.\r\nThis opt-in config setting is used to allow computed injections to be used without\r\nthe value property. per Vue dev, will not be needed after next minor update \r\napp.config.unwrapInjectedRef = true; */\n\nvar app = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createApp)(_LEAF_designer_App_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\napp.mount('#site-designer-app');\n\n//# sourceURL=webpack://leaf_vue/./src_designer/LEAF_designer_main.js?"); + +/***/ }), + +/***/ "./src_designer/components/ModHomeMenu.js": +/*!************************************************!*\ + !*** ./src_designer/components/ModHomeMenu.js ***! + \************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: 'mod-home-item',\n data: function data() {\n return {\n test: 'test mod home menu'\n };\n },\n template: \"

      TEST HEADER

      {{ test }}

      \"\n});\n\n//# sourceURL=webpack://leaf_vue/./src_designer/components/ModHomeMenu.js?"); + +/***/ }), + +/***/ "./node_modules/vue/dist/vue.esm-bundler.js": +/*!**************************************************!*\ + !*** ./node_modules/vue/dist/vue.esm-bundler.js ***! + \**************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"BaseTransition\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.BaseTransition),\n/* harmony export */ \"Comment\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Comment),\n/* harmony export */ \"EffectScope\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.EffectScope),\n/* harmony export */ \"Fragment\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Fragment),\n/* harmony export */ \"KeepAlive\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.KeepAlive),\n/* harmony export */ \"ReactiveEffect\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect),\n/* harmony export */ \"Static\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Static),\n/* harmony export */ \"Suspense\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Suspense),\n/* harmony export */ \"Teleport\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Teleport),\n/* harmony export */ \"Text\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Text),\n/* harmony export */ \"Transition\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Transition),\n/* harmony export */ \"TransitionGroup\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.TransitionGroup),\n/* harmony export */ \"VueElement\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.VueElement),\n/* harmony export */ \"assertNumber\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.assertNumber),\n/* harmony export */ \"callWithAsyncErrorHandling\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling),\n/* harmony export */ \"callWithErrorHandling\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.callWithErrorHandling),\n/* harmony export */ \"camelize\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.camelize),\n/* harmony export */ \"capitalize\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.capitalize),\n/* harmony export */ \"cloneVNode\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.cloneVNode),\n/* harmony export */ \"compatUtils\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.compatUtils),\n/* harmony export */ \"compile\": () => (/* binding */ compileToFunction),\n/* harmony export */ \"computed\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.computed),\n/* harmony export */ \"createApp\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createApp),\n/* harmony export */ \"createBlock\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createBlock),\n/* harmony export */ \"createCommentVNode\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode),\n/* harmony export */ \"createElementBlock\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createElementBlock),\n/* harmony export */ \"createElementVNode\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createElementVNode),\n/* harmony export */ \"createHydrationRenderer\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer),\n/* harmony export */ \"createPropsRestProxy\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createPropsRestProxy),\n/* harmony export */ \"createRenderer\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createRenderer),\n/* harmony export */ \"createSSRApp\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createSSRApp),\n/* harmony export */ \"createSlots\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createSlots),\n/* harmony export */ \"createStaticVNode\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode),\n/* harmony export */ \"createTextVNode\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createTextVNode),\n/* harmony export */ \"createVNode\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createVNode),\n/* harmony export */ \"customRef\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.customRef),\n/* harmony export */ \"defineAsyncComponent\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent),\n/* harmony export */ \"defineComponent\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineComponent),\n/* harmony export */ \"defineCustomElement\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineCustomElement),\n/* harmony export */ \"defineEmits\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineEmits),\n/* harmony export */ \"defineExpose\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineExpose),\n/* harmony export */ \"defineProps\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineProps),\n/* harmony export */ \"defineSSRCustomElement\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineSSRCustomElement),\n/* harmony export */ \"devtools\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.devtools),\n/* harmony export */ \"effect\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.effect),\n/* harmony export */ \"effectScope\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.effectScope),\n/* harmony export */ \"getCurrentInstance\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance),\n/* harmony export */ \"getCurrentScope\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope),\n/* harmony export */ \"getTransitionRawChildren\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren),\n/* harmony export */ \"guardReactiveProps\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps),\n/* harmony export */ \"h\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.h),\n/* harmony export */ \"handleError\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.handleError),\n/* harmony export */ \"hydrate\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.hydrate),\n/* harmony export */ \"initCustomFormatter\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.initCustomFormatter),\n/* harmony export */ \"initDirectivesForSSR\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.initDirectivesForSSR),\n/* harmony export */ \"inject\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.inject),\n/* harmony export */ \"isMemoSame\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isMemoSame),\n/* harmony export */ \"isProxy\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isProxy),\n/* harmony export */ \"isReactive\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isReactive),\n/* harmony export */ \"isReadonly\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isReadonly),\n/* harmony export */ \"isRef\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isRef),\n/* harmony export */ \"isRuntimeOnly\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly),\n/* harmony export */ \"isShallow\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isShallow),\n/* harmony export */ \"isVNode\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isVNode),\n/* harmony export */ \"markRaw\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.markRaw),\n/* harmony export */ \"mergeDefaults\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.mergeDefaults),\n/* harmony export */ \"mergeProps\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.mergeProps),\n/* harmony export */ \"nextTick\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.nextTick),\n/* harmony export */ \"normalizeClass\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeClass),\n/* harmony export */ \"normalizeProps\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeProps),\n/* harmony export */ \"normalizeStyle\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle),\n/* harmony export */ \"onActivated\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onActivated),\n/* harmony export */ \"onBeforeMount\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeMount),\n/* harmony export */ \"onBeforeUnmount\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeUnmount),\n/* harmony export */ \"onBeforeUpdate\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeUpdate),\n/* harmony export */ \"onDeactivated\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onDeactivated),\n/* harmony export */ \"onErrorCaptured\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured),\n/* harmony export */ \"onMounted\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onMounted),\n/* harmony export */ \"onRenderTracked\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onRenderTracked),\n/* harmony export */ \"onRenderTriggered\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onRenderTriggered),\n/* harmony export */ \"onScopeDispose\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose),\n/* harmony export */ \"onServerPrefetch\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onServerPrefetch),\n/* harmony export */ \"onUnmounted\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onUnmounted),\n/* harmony export */ \"onUpdated\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onUpdated),\n/* harmony export */ \"openBlock\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.openBlock),\n/* harmony export */ \"popScopeId\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.popScopeId),\n/* harmony export */ \"provide\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.provide),\n/* harmony export */ \"proxyRefs\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.proxyRefs),\n/* harmony export */ \"pushScopeId\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.pushScopeId),\n/* harmony export */ \"queuePostFlushCb\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.queuePostFlushCb),\n/* harmony export */ \"reactive\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.reactive),\n/* harmony export */ \"readonly\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.readonly),\n/* harmony export */ \"ref\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ref),\n/* harmony export */ \"registerRuntimeCompiler\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeCompiler),\n/* harmony export */ \"render\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.render),\n/* harmony export */ \"renderList\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.renderList),\n/* harmony export */ \"renderSlot\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.renderSlot),\n/* harmony export */ \"resolveComponent\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveComponent),\n/* harmony export */ \"resolveDirective\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveDirective),\n/* harmony export */ \"resolveDynamicComponent\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent),\n/* harmony export */ \"resolveFilter\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveFilter),\n/* harmony export */ \"resolveTransitionHooks\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks),\n/* harmony export */ \"setBlockTracking\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setBlockTracking),\n/* harmony export */ \"setDevtoolsHook\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setDevtoolsHook),\n/* harmony export */ \"setTransitionHooks\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks),\n/* harmony export */ \"shallowReactive\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowReactive),\n/* harmony export */ \"shallowReadonly\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly),\n/* harmony export */ \"shallowRef\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowRef),\n/* harmony export */ \"ssrContextKey\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ssrContextKey),\n/* harmony export */ \"ssrUtils\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ssrUtils),\n/* harmony export */ \"stop\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.stop),\n/* harmony export */ \"toDisplayString\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toDisplayString),\n/* harmony export */ \"toHandlerKey\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey),\n/* harmony export */ \"toHandlers\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toHandlers),\n/* harmony export */ \"toRaw\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRaw),\n/* harmony export */ \"toRef\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRef),\n/* harmony export */ \"toRefs\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRefs),\n/* harmony export */ \"transformVNodeArgs\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.transformVNodeArgs),\n/* harmony export */ \"triggerRef\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.triggerRef),\n/* harmony export */ \"unref\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.unref),\n/* harmony export */ \"useAttrs\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useAttrs),\n/* harmony export */ \"useCssModule\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useCssModule),\n/* harmony export */ \"useCssVars\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useCssVars),\n/* harmony export */ \"useSSRContext\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useSSRContext),\n/* harmony export */ \"useSlots\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useSlots),\n/* harmony export */ \"useTransitionState\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useTransitionState),\n/* harmony export */ \"vModelCheckbox\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox),\n/* harmony export */ \"vModelDynamic\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic),\n/* harmony export */ \"vModelRadio\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelRadio),\n/* harmony export */ \"vModelSelect\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelSelect),\n/* harmony export */ \"vModelText\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelText),\n/* harmony export */ \"vShow\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vShow),\n/* harmony export */ \"version\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.version),\n/* harmony export */ \"warn\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.warn),\n/* harmony export */ \"watch\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watch),\n/* harmony export */ \"watchEffect\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchEffect),\n/* harmony export */ \"watchPostEffect\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect),\n/* harmony export */ \"watchSyncEffect\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchSyncEffect),\n/* harmony export */ \"withAsyncContext\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withAsyncContext),\n/* harmony export */ \"withCtx\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withCtx),\n/* harmony export */ \"withDefaults\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withDefaults),\n/* harmony export */ \"withDirectives\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withDirectives),\n/* harmony export */ \"withKeys\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withKeys),\n/* harmony export */ \"withMemo\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withMemo),\n/* harmony export */ \"withModifiers\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withModifiers),\n/* harmony export */ \"withScopeId\": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withScopeId)\n/* harmony export */ });\n/* harmony import */ var _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/runtime-dom */ \"./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js\");\n/* harmony import */ var _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/runtime-dom */ \"./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js\");\n/* harmony import */ var _vue_compiler_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @vue/compiler-dom */ \"./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js\");\n/* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @vue/shared */ \"./node_modules/@vue/shared/dist/shared.esm-bundler.js\");\n\n\n\n\n\n\nfunction initDev() {\n {\n (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.initCustomFormatter)();\n }\n}\n\n// This entry is the \"full-build\" that includes both the runtime\nif ((true)) {\n initDev();\n}\nconst compileCache = Object.create(null);\nfunction compileToFunction(template, options) {\n if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_2__.isString)(template)) {\n if (template.nodeType) {\n template = template.innerHTML;\n }\n else {\n ( true) && (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.warn)(`invalid template option: `, template);\n return _vue_shared__WEBPACK_IMPORTED_MODULE_2__.NOOP;\n }\n }\n const key = template;\n const cached = compileCache[key];\n if (cached) {\n return cached;\n }\n if (template[0] === '#') {\n const el = document.querySelector(template);\n if (( true) && !el) {\n (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.warn)(`Template element not found or is empty: ${template}`);\n }\n // __UNSAFE__\n // Reason: potential execution of JS expressions in in-DOM template.\n // The user must make sure the in-DOM template is trusted. If it's rendered\n // by the server, the template should not contain any user data.\n template = el ? el.innerHTML : ``;\n }\n const opts = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_2__.extend)({\n hoistStatic: true,\n onError: ( true) ? onError : 0,\n onWarn: ( true) ? e => onError(e, true) : 0\n }, options);\n if (!opts.isCustomElement && typeof customElements !== 'undefined') {\n opts.isCustomElement = tag => !!customElements.get(tag);\n }\n const { code } = (0,_vue_compiler_dom__WEBPACK_IMPORTED_MODULE_3__.compile)(template, opts);\n function onError(err, asWarning = false) {\n const message = asWarning\n ? err.message\n : `Template compilation error: ${err.message}`;\n const codeFrame = err.loc &&\n (0,_vue_shared__WEBPACK_IMPORTED_MODULE_2__.generateCodeFrame)(template, err.loc.start.offset, err.loc.end.offset);\n (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.warn)(codeFrame ? `${message}\\n${codeFrame}` : message);\n }\n // The wildcard import results in a huge object with every export\n // with keys that cannot be mangled, and can be quite heavy size-wise.\n // In the global build we know `Vue` is available globally so we can avoid\n // the wildcard object.\n const render = (new Function('Vue', code)(_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__));\n render._rc = true;\n return (compileCache[key] = render);\n}\n(0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.registerRuntimeCompiler)(compileToFunction);\n\n\n\n\n//# sourceURL=webpack://leaf_vue/./node_modules/vue/dist/vue.esm-bundler.js?"); + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/global */ +/******/ (() => { +/******/ __webpack_require__.g = (function() { +/******/ if (typeof globalThis === 'object') return globalThis; +/******/ try { +/******/ return this || new Function('return this')(); +/******/ } catch (e) { +/******/ if (typeof window === 'object') return window; +/******/ } +/******/ })(); +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module can't be inlined because the eval devtool is used. +/******/ var __webpack_exports__ = __webpack_require__("./src_designer/LEAF_designer_main.js"); +/******/ +/******/ })() +; \ No newline at end of file From e450bdfce8786454b1a09d9754966607bd04efc7 Mon Sep 17 00:00:00 2001 From: Carrie Hanscom Date: Tue, 18 Apr 2023 11:30:54 -0400 Subject: [PATCH 02/60] LEAF 3451 config updates, common comps, modal integration --- LEAF_Request_Portal/admin/index.php | 2 + .../admin/templates/site_designer_vue.tpl | 19 +- .../admin/templates/view_admin_menu.tpl | 2 +- docker/docker-compose.yml | 1 + docker/vue-app/src/LEAF_FormEditor.scss | 354 +++++++++--------- docker/vue-app/src/LEAF_FormEditor_App_vue.js | 6 +- docker/vue-app/src/LEAF_IfThen.scss | 207 ---------- .../src_common/LEAF_Vue_Dialog__Common.scss | 191 ++++++++++ .../components/LeafFormDialog.js | 3 +- .../vue-app/src_designer/LEAF_designer.scss | 1 + .../vue-app/src_designer/LEAF_designer_App.js | 49 ++- .../src_designer/LEAF_designer_main.js | 10 +- .../dialog_content/DesignButtonDialog.js | 69 ++++ .../form_editor/LEAF_FormEditor_main_build.js | 2 +- .../site_designer/LEAF_designer_main_build.js | 143 ++++++- 15 files changed, 647 insertions(+), 412 deletions(-) delete mode 100644 docker/vue-app/src/LEAF_IfThen.scss create mode 100644 docker/vue-app/src_common/LEAF_Vue_Dialog__Common.scss rename docker/vue-app/{src => src_common}/components/LeafFormDialog.js (95%) create mode 100644 docker/vue-app/src_designer/LEAF_designer.scss create mode 100644 docker/vue-app/src_designer/components/dialog_content/DesignButtonDialog.js diff --git a/LEAF_Request_Portal/admin/index.php b/LEAF_Request_Portal/admin/index.php index 74f5025cd..6036a40ec 100644 --- a/LEAF_Request_Portal/admin/index.php +++ b/LEAF_Request_Portal/admin/index.php @@ -530,7 +530,9 @@ function hasDevConsoleAccess($login, $oc_db) $t_form->assign('CSRFToken', $_SESSION['CSRFToken']); $t_form->assign('APIroot', '../api/'); $t_form->assign('libsPath', $libsPath); + $t_form->assign('hasDevConsoleAccess', hasDevConsoleAccess($login, $oc_db)); + $main->assign('useUI', true); //needed for jQ associated w trumbowyg $main->assign('javascripts', array( '../../libs/js/LEAF/XSSHelpers.js', '../../libs/js/jquery/trumbowyg/plugins/colors/trumbowyg.colors.min.js', diff --git a/LEAF_Request_Portal/admin/templates/site_designer_vue.tpl b/LEAF_Request_Portal/admin/templates/site_designer_vue.tpl index cc80d7732..6bef94894 100644 --- a/LEAF_Request_Portal/admin/templates/site_designer_vue.tpl +++ b/LEAF_Request_Portal/admin/templates/site_designer_vue.tpl @@ -1,8 +1,19 @@ -

      TEST entry

      -

      {{ CSRFToken }}

      -

      {{ test }}

      - +
      +
      +

      TEST designer page load

      +

      {{ CSRFToken }}

      + +

      {{ test }}

      + +
      +
      + + + +
      diff --git a/LEAF_Request_Portal/admin/templates/view_admin_menu.tpl b/LEAF_Request_Portal/admin/templates/view_admin_menu.tpl index 14e344513..ae4c7ac90 100644 --- a/LEAF_Request_Portal/admin/templates/view_admin_menu.tpl +++ b/LEAF_Request_Portal/admin/templates/view_admin_menu.tpl @@ -148,7 +148,7 @@ Site Designer - Create Custom Pages (Alpha) + Change the way the site looks (Alpha) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 3538e58e1..eb94f4355 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -11,6 +11,7 @@ services: volumes: - './vue-app/src:/app/src' - './vue-app/src_designer:/app/src_designer' + - './vue-app/src_common:/app/src_common' - '/app/node_modules' - '../libs/js/vue-dest:/app/vue-dest' networks: diff --git a/docker/vue-app/src/LEAF_FormEditor.scss b/docker/vue-app/src/LEAF_FormEditor.scss index c1d7a3a9d..194694a3f 100644 --- a/docker/vue-app/src/LEAF_FormEditor.scss +++ b/docker/vue-app/src/LEAF_FormEditor.scss @@ -1,104 +1,4 @@ -$BG-DarkNavy: #162e51; -$base_navy: #005EA2; -$LtNavy: #1476bd; -$LEAF_CSS_outline: #2491ff; -$charcoal: #252f3e; -$dk-gray: #4a5778; -$BG_LightGray: #dcdee0; -$BG_Pearl: #f2f2f6; -$manila: #feffd1; -$USWDS_LtGray: #c9c9c9; -$USWDS_Cyan: #00bde3; -$lt_cyan: #e8f2ff; -$BG_VividOrange: #ff6800; /*changed from Figma #f56600 to meet accessibility contrast*/ -$attention: #a00; - -@mixin flexcenter { - display: flex; - justify-content: center; - align-items: center; -} - -body { /* fixes header not extending entire width */ - min-width: -moz-fit-content; /*firefox prior to nov 2021*/ - min-width: fit-content; -} -[v-cloak] { - display: none; -} -/* general app-wide styles and resets */ -#vue-formeditor-app { - min-height: 100vh; - main { - margin: 0; - } - section { - margin: 0rem 1rem 1rem 1rem; - } -} -#vue-formeditor-app * { - box-sizing: border-box; - font-family: 'Source Sans Pro Web', Helvetica, Arial, sans-serif; -} -#vue-formeditor-app button:not(.choices__button,[class*="trumbowyg"]), -.leaf-vue-dialog button:not(.choices__button,[class*="trumbowyg"]) { - @include flexcenter; - cursor: pointer; - font-weight: bolder; - padding: 2px 0.4em; - border-radius: 3px; - white-space: nowrap; - line-height: normal; - &:not(.disabled):hover, &:not(.disabled):focus, &:not(.disabled):active { - outline: 2px solid #20a0f0; - } -} -button.btn-general, button.btn-confirm { - background-color: white; - color: $base_navy; - border: 2px solid $base_navy; - &:not(.disabled):hover, &:not(.disabled):focus, &:not(.disabled):active { - background-color: $base_navy; - color: white; - border: 2px solid black !important; - } - &.disabled { - cursor: auto !important; - &:active { - border: 2px solid $base_navy !important; - } - } -} -button.btn-confirm { - color: white; - background-color: $base_navy; -} -ul { - list-style-type: none; - margin: 0; - padding: 0; -} -label { - padding: 0; - display: flex; - align-items: center; - font-weight: bolder; - white-space: nowrap; - margin-bottom: 2px; - &.checkable { - margin-bottom: 0; - } -} - -a.router-link { - @include flexcenter; - text-decoration: none; - color: inherit; - border-radius: 3px; -} -td a.router-link { - justify-content: flex-start; -} +@import '../src_common/LEAF_Vue_Dialog__Common.scss'; nav#form-editor-nav { width: 100%; @@ -205,89 +105,6 @@ nav#form-editor-nav { } -/* base dialog modal styling */ -#leaf-vue-dialog-background { - @include flexcenter; - width: 100vw; - height: 100%; - z-index: 999; - background-color: rgba(0,0,20,0.5); - position: absolute; - left: 0; - top: 0; -} -.leaf-vue-dialog { - position: absolute; - margin: auto; - width: auto; - min-width: 450px; - resize: horizontal; - z-index: 9999; - max-width: 900px; - height: auto; - min-height: 0; - border-radius: 4px; - background-color: white; - box-shadow: 0 0 5px 1px rgba(0,0,25,0.25); - overflow: visible; - - * { - box-sizing: border-box; - font-family: 'Source Sans Pro Web', Helvetica, Arial, sans-serif; - } - - p { - margin: 0; - padding: 0; - line-height: 1.5; - } - - > div { - padding: 0.75rem 1rem; - } - li { - display: flex; - align-items: center; - } - .leaf-vue-dialog-title { - color: $charcoal; - border-top: 3px solid white; - border-left: 3px solid white; - border-right: 3px solid #cadff0; - border-bottom: 2px solid #cadff0; - border-radius: 3px; - background-color: $lt_cyan; - cursor: move; - - h2 { - color: inherit; - margin: 0; - } - } - #leaf-vue-dialog-close { - @include flexcenter; - position: absolute; - top: 8px; - right: 8px; - width: 25px; - height: 25px; - cursor: pointer; - font-weight: bold; - font-size: 1.2rem; - } - #leaf-vue-dialog-cancel-save { - display:flex; - justify-content: space-between; - margin-top: 1em; - #button_save { - margin-right:auto; - } - #button_cancelchange { - margin-left: auto; - } - } -} - #form_browser_tables { h3 { color: black; @@ -882,6 +699,175 @@ div#form_content_view { } } +/* ifthen sections */ +#condition_editor_center_panel { + min-width: 700px; + max-width: 900px; + margin: auto; + background-color: white; + + .hidden { + visibility: hidden; + } + + #condition_editor_inputs > div { + padding: 1rem 0; + border-bottom: 3px solid $lt_cyan; + } + #condition_editor_actions > div { + padding-top: 1rem; + } + div.if-then-setup { + display: flex; + justify-content: space-between; + align-items: center; + + > div { + display: inline-block; + width: 30%; + } + } + select, input:not(.choices__input) { + font-size: 85%; + padding: 0.15em; + text-overflow: ellipsis; + width: 100%; + border: 1px inset gray; + + &:not(:last-child) { + margin-bottom: 1em; + } + } + + ul#savedConditionsList { + padding-bottom: 0.5em; + } + + li.savedConditionsCard { + display: flex; + align-items: center; + margin-bottom: 0.4em; + } + + button.btnNewCondition { + display: flex; + align-items: center; + margin: 0.3em 0; + width: -moz-fit-content; + width: fit-content; + color: white; + background-color: $base_navy; + padding: 0.4em 0.92em; + box-shadow: 1px 1px 6px rgba(0, 0, 25, 0.5); + border: 1px solid $base_navy; + border-radius: 3px; + margin-right: 1em; + transition: box-shadow 0.1s ease; + + &:hover, &:focus, &:active { + color: white; + background-color: $BG_DarkNavy; + border: 1px solid $BG_DarkNavy !important; + box-shadow: 0px 0px 2px rgba(0, 0, 25, 0.75); + } + } + button.btnSavedConditions { + justify-content: flex-start; + font-weight: normal; + background-color: white; + padding: 0.4em; + border: 1px outset $base_navy; + box-shadow: 1px 1px 6px rgba(0, 0, 25, 0.5); + border-radius: 3px; + margin-right: 1em; + max-width: 825px; + overflow: hidden; + transition: box-shadow 0.1s ease; + + &.isOrphan { + background-color: #d8d8d8; + color: black; + border: 1px solid black; + } + + &:hover:not(.isOrphan), &:focus:not(.isOrphan), &:active:not(.isOrphan) { + color: white; + border: 1px outset $base_navy !important; + background-color: $base_navy; + box-shadow: 0px 0px 2px rgba(0, 0, 25, 0.75); + } + } + + + .changesDetected { + color: #c80000; + } + .selectedConditionEdit .changesDetected, + button.btnSavedConditions:hover .changesDetected, + button.btnSavedConditions:focus .changesDetected, + button.btnSavedConditions:active .changesDetected { + color: white; + } + + button.selectedConditionEdit { + color: white; + border: 1px outset $base_navy !important; + background-color: $base_navy; + box-shadow: 0px 0px 2px rgba(0, 0, 25, 0.75); + } + + li button { + padding: 0.3em; + width: 100%; + cursor: pointer; + } + button.btn-condition-select { + margin: 0; + padding: 0.4em; + border: 0; + text-align: left; + background-color: white; + color: $BG_DarkNavy; + border-left:3px solid transparent; + border-bottom: 1px solid rgb(203, 213, 218); + + &:hover, &:active, &:focus { + border-left:3px solid #005EA2 !important; + border-bottom: 1px solid rgb(172, 181, 185) !important; + background-color: $lt_cyan; + } + } + + .btn_remove_condition { + background-color: #922; + border: 1px solid #922; + color: white; + } + .btn_remove_condition:hover, .btn_remove_condition:active, .btn_remove_condition:focus { + border: 1px solid black !important; + background-color: #600; + } + + .form-name { + color: $BG_DarkNavy; + } + .input-info { + padding: 0.4em 0; + font-weight: bolder; + color: $base_navy; + } + + #remove-condition-modal { + position: absolute; + width: 400px; + height: 250px; + background-color: white; + box-shadow: 1px 1px 6px 2px rgba(0,0,25,0.5); + } + +} + + /* checkboxes and radio */ .checkable.leaf_check { cursor: pointer; diff --git a/docker/vue-app/src/LEAF_FormEditor_App_vue.js b/docker/vue-app/src/LEAF_FormEditor_App_vue.js index 907a5ab3f..ad2cd13d4 100644 --- a/docker/vue-app/src/LEAF_FormEditor_App_vue.js +++ b/docker/vue-app/src/LEAF_FormEditor_App_vue.js @@ -1,6 +1,7 @@ import { computed } from 'vue'; -import LeafFormDialog from "./components/LeafFormDialog.js"; +import LeafFormDialog from "../src_common/components/LeafFormDialog.js"; + import IndicatorEditingDialog from "./components/dialog_content/IndicatorEditingDialog.js"; import AdvancedOptionsDialog from "./components/dialog_content/AdvancedOptionsDialog.js"; import NewFormDialog from "./components/dialog_content/NewFormDialog.js"; @@ -14,9 +15,7 @@ import ConditionsEditorDialog from "./components/dialog_content/ConditionsEditor import ModFormMenu from "./components/ModFormMenu.js"; import ResponseMessage from "./components/ResponseMessage"; - import './LEAF_FormEditor.scss'; -import './LEAF_IfThen.scss'; export default { data() { @@ -76,7 +75,6 @@ export default { inactiveForms: computed(() => this.inactiveForms), supplementalForms: computed(() => this.supplementalForms), showCertificationStatus: computed(() => this.showCertificationStatus), - showFormDialog: computed(() => this.showFormDialog), dialogTitle: computed(() => this.dialogTitle), dialogFormContent: computed(() => this.dialogFormContent), dialogButtonText: computed(() => this.dialogButtonText), diff --git a/docker/vue-app/src/LEAF_IfThen.scss b/docker/vue-app/src/LEAF_IfThen.scss deleted file mode 100644 index d4ebe4341..000000000 --- a/docker/vue-app/src/LEAF_IfThen.scss +++ /dev/null @@ -1,207 +0,0 @@ - -$lt_cyan: #E0F4FA; -$base_navy: #005EA2; -$BG-DarkNavy: #162e51; - - -#condition_editor_center_panel { - min-width: 700px; - max-width: 900px; - margin: auto; - background-color: white; - - .hidden { - visibility: hidden; - } - - #condition_editor_inputs > div { - padding: 1rem 0; - border-bottom: 3px solid $lt-cyan; - } - #condition_editor_actions > div { - padding-top: 1rem; - } - div.if-then-setup { - display: flex; - justify-content: space-between; - align-items: center; - - > div { - display: inline-block; - width: 30%; - } - } - select, input:not(.choices__input) { - font-size: 85%; - padding: 0.15em; - text-overflow: ellipsis; - width: 100%; - border: 1px inset gray; - - &:not(:last-child) { - margin-bottom: 1em; - } - } - - ul#savedConditionsList { - padding-bottom: 0.5em; - } - - li.savedConditionsCard { - display: flex; - align-items: center; - margin-bottom: 0.4em; - } - - button.btnNewCondition { - display: flex; - align-items: center; - margin: 0.3em 0; - width: -moz-fit-content; - width: fit-content; - color: white; - background-color: $base-navy; - padding: 0.4em 0.92em; - box-shadow: 1px 1px 6px rgba(0, 0, 25, 0.5); - border: 1px solid $base-navy; - border-radius: 3px; - margin-right: 1em; - transition: box-shadow 0.1s ease; - - &:hover, &:focus, &:active { - color: white; - background-color: $BG-DarkNavy; - border: 1px solid $BG-DarkNavy !important; - box-shadow: 0px 0px 2px rgba(0, 0, 25, 0.75); - } - } - button.btnSavedConditions { - justify-content: flex-start; - font-weight: normal; - background-color: white; - padding: 0.4em; - border: 1px outset $base-navy; - box-shadow: 1px 1px 6px rgba(0, 0, 25, 0.5); - border-radius: 3px; - margin-right: 1em; - max-width: 825px; - overflow: hidden; - transition: box-shadow 0.1s ease; - - &.isOrphan { - background-color: #d8d8d8; - color: black; - border: 1px solid black; - } - - &:hover:not(.isOrphan), &:focus:not(.isOrphan), &:active:not(.isOrphan) { - color: white; - border: 1px outset $base-navy !important; - background-color: $base-navy; - box-shadow: 0px 0px 2px rgba(0, 0, 25, 0.75); - } - } - - - .changesDetected { - color: #c80000; - } - .selectedConditionEdit .changesDetected, - button.btnSavedConditions:hover .changesDetected, - button.btnSavedConditions:focus .changesDetected, - button.btnSavedConditions:active .changesDetected { - color: white; - } - - button.selectedConditionEdit { - color: white; - border: 1px outset $base-navy !important; - background-color: $base-navy; - box-shadow: 0px 0px 2px rgba(0, 0, 25, 0.75); - } - - li button { - padding: 0.3em; - width: 100%; - cursor: pointer; - } - button.btn-condition-select { - margin: 0; - padding: 0.4em; - border: 0; - text-align: left; - background-color: white; - color: $BG-DarkNavy; - border-left:3px solid transparent; - border-bottom: 1px solid rgb(203, 213, 218); - - &:hover, &:active, &:focus { - border-left:3px solid #005EA2 !important; - border-bottom: 1px solid rgb(172, 181, 185) !important; - background-color: $lt-cyan; - } - } - - #btn_add_condition, #btn_form_editor, #btn_cancel, .btn_remove_condition { - border-radius: 3px; - font-weight: bolder; - } - - #btn_add_condition { - background-color: #10A020; - border: 1px solid #10A020; - color: white; - } - #btn_cancel { - background-color: white; - color: $BG-DarkNavy; - border: 1px solid #005EA2; - } - #btn_cancel:hover, #btn_cancel:active, #btn_cancel:focus { - border: 1px solid #000 !important; - background-color: #005EA2; - color: white; - } - #btn_add_condition:hover, #btn_add_condition:active, #btn_add_condition:focus { - border: 1px solid black !important; - background-color: #005f20; - } - .btn_remove_condition { - background-color: #922; - border: 1px solid #922; - color: white; - } - .btn_remove_condition:hover, .btn_remove_condition:active, .btn_remove_condition:focus { - border: 1px solid black !important; - background-color: #600; - } - - .form-name { - color: $BG-DarkNavy; - } - .input-info { - padding: 0.4em 0; - font-weight: bolder; - color: $base_navy; - } - - #remove-condition-modal { - position: absolute; - width: 400px; - height: 250px; - background-color: white; - box-shadow: 1px 1px 6px 2px rgba(0,0,25,0.5); - } - -} - - -@media only screen and (max-width: 768px) { - - #condition_editor_center_panel { - width: 100%; - min-width: 400px; - border: 0; - padding-right: 1em; - } -} \ No newline at end of file diff --git a/docker/vue-app/src_common/LEAF_Vue_Dialog__Common.scss b/docker/vue-app/src_common/LEAF_Vue_Dialog__Common.scss new file mode 100644 index 000000000..c6c96b8cc --- /dev/null +++ b/docker/vue-app/src_common/LEAF_Vue_Dialog__Common.scss @@ -0,0 +1,191 @@ +/* variables, SASS mixins, Modal styles */ + +$BG_DarkNavy: #162e51; +$base_navy: #005EA2; +$LtNavy: #1476bd; +$LEAF_CSS_outline: #2491ff; +$charcoal: #252f3e; +$dk-gray: #4a5778; +$BG_LightGray: #dcdee0; +$BG_Pearl: #f2f2f6; +$manila: #feffd1; +$USWDS_LtGray: #c9c9c9; +$USWDS_Cyan: #00bde3; +$lt_cyan: #e8f2ff; +$BG_VividOrange: #ff6800; /*changed from Figma #f56600 to meet accessibility contrast*/ +$attention: #a00; + +@mixin flexcenter { + display: flex; + justify-content: center; + align-items: center; +} + +body { /* fixes header not extending entire width */ + min-width: -moz-fit-content; /*firefox prior to nov 2021*/ + min-width: fit-content; +} +[v-cloak] { + display: none; +} + + +/* base dialog modal styling */ +#leaf-vue-dialog-background { + @include flexcenter; + width: 100vw; + height: 100%; + z-index: 999; + background-color: rgba(0,0,20,0.5); + position: absolute; + left: 0; + top: 0; +} +.leaf-vue-dialog { + position: absolute; + margin: auto; + width: auto; + min-width: 450px; + resize: horizontal; + z-index: 9999; + max-width: 900px; + height: auto; + min-height: 0; + border-radius: 4px; + background-color: white; + box-shadow: 0 0 5px 1px rgba(0,0,25,0.25); + overflow: visible; + + * { + box-sizing: border-box; + font-family: 'Source Sans Pro Web', Helvetica, Arial, sans-serif; + } + + p { + margin: 0; + padding: 0; + line-height: 1.5; + } + + > div { + padding: 0.75rem 1rem; + } + li { + display: flex; + align-items: center; + } + .leaf-vue-dialog-title { + color: $charcoal; + border-top: 3px solid white; + border-left: 3px solid white; + border-right: 3px solid #cadff0; + border-bottom: 2px solid #cadff0; + border-radius: 3px; + background-color: $lt_cyan; + cursor: move; + + h2 { + color: inherit; + margin: 0; + } + } + #leaf-vue-dialog-close { + @include flexcenter; + position: absolute; + top: 8px; + right: 8px; + width: 25px; + height: 25px; + cursor: pointer; + font-weight: bold; + font-size: 1.2rem; + } + #leaf-vue-dialog-cancel-save { + display:flex; + justify-content: space-between; + margin-top: 1em; + #button_save { + margin-right:auto; + } + #button_cancelchange { + margin-left: auto; + } + } +} +/* dialog modal end */ + + +/* general styles and resets */ +#vue-formeditor-app, #site-designer-app { + min-height: 100vh; + main { + margin: 0; + } + section { + margin: 0rem 1rem 1rem 1rem; + } +} +#vue-formeditor-app *, #site-designer-app * { + box-sizing: border-box; + font-family: 'Source Sans Pro Web', Helvetica, Arial, sans-serif; +} +#vue-formeditor-app button:not(.choices__button,[class*="trumbowyg"]), +#site-designer-app button:not(.choices__button,[class*="trumbowyg"]), +.leaf-vue-dialog button:not(.choices__button,[class*="trumbowyg"]) { + @include flexcenter; + cursor: pointer; + font-weight: bolder; + padding: 2px 0.4em; + border-radius: 3px; + white-space: nowrap; + line-height: normal; + &:not(.disabled):hover, &:not(.disabled):focus, &:not(.disabled):active { + outline: 2px solid #20a0f0; + } +} +button.btn-general, button.btn-confirm { + background-color: white; + color: $base_navy; + border: 2px solid $base_navy; + &:not(.disabled):hover, &:not(.disabled):focus, &:not(.disabled):active { + background-color: $base_navy; + color: white; + border: 2px solid black !important; + } + &.disabled { + cursor: auto !important; + &:active { + border: 2px solid $base_navy !important; + } + } +} +button.btn-confirm { + color: white; + background-color: $base_navy; +} +ul { + list-style-type: none; + margin: 0; + padding: 0; +} +label { + padding: 0; + display: flex; + align-items: center; + font-weight: bolder; + white-space: nowrap; + margin-bottom: 2px; + &.checkable { + margin-bottom: 0; + } +} + +a.router-link { + @include flexcenter; + text-decoration: none; + color: inherit; + border-radius: 3px; +} +td a.router-link { + justify-content: flex-start; +} \ No newline at end of file diff --git a/docker/vue-app/src/components/LeafFormDialog.js b/docker/vue-app/src_common/components/LeafFormDialog.js similarity index 95% rename from docker/vue-app/src/components/LeafFormDialog.js rename to docker/vue-app/src_common/components/LeafFormDialog.js index 7509f3e70..ed3cf4374 100644 --- a/docker/vue-app/src/components/LeafFormDialog.js +++ b/docker/vue-app/src_common/components/LeafFormDialog.js @@ -19,7 +19,6 @@ export default { }, inject: [ 'dialogTitle', - 'showFormDialog', 'closeFormDialog', 'formSaveFunction', 'dialogButtonText' @@ -100,7 +99,7 @@ export default { } }, template: ` -
      +