index.COlZ6IW8.js 211 KB

12345678910
  1. import{a as vl,aH as pl,aB as ml,r as $,_ as et,f as si,q as gl,W as hl,w as yl,aj as Oe,at as bl,c as X,o as j,b as l,S as f,K as y,P as U,Q as ie,u as ye,M as Ue,J as Ce,R as We,a9 as He,L as jo,G as xt,T as Yi,Y as Sl,F as El,a7 as Xi}from"./vue.D1BjjNmv.js";import{b as xl,C as Il,U as It}from"./api.Bg3aWuN8.js";import{r as tt,a3 as Cl,g as Al,a4 as wl,c as Ol,E as R,X as pt,U as mn,a5 as Tl,a6 as Zi,Y as qi,a7 as di,a8 as Dl,a9 as _i,Z as ea}from"./index.nXNoPKU6.js";import{g as Vl}from"./pcaData.5HEg6BqW.js";import Pl from"./QuestionBankForm.B6SFK6ZE.js";import{A as Rl}from"./api.BKX1XnmU.js";import{_ as Ul}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./QuestionOptionsEditor.CfqO4x61.js";import"./BlankAnswerEditor.C4I2efc6.js";const ta="/assets/sheng.BKW1Im68.png",Kl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkoAAAImCAQAAAAGHG0zAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFyGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyNS0wNi0xM1QxNzowMToyMCswODowMCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNDE0NGJjZC05NWJlLTMxNGMtODlmZC01MTk0MTdmODc5OWEiIHhtcE1NOkRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDplYzMyM2E1Zi04ZWZiLTgxNGUtYWMzOS05Nzc3ODNiNDUzYjQiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIHN0RXZ0OndoZW49IjIwMjUtMDYtMTNUMTc6MDE6MjArMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChXaW5kb3dzKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MzQxNDRiY2QtOTViZS0zMTRjLTg5ZmQtNTE5NDE3Zjg3OTlhIiBzdEV2dDp3aGVuPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+JOr+gQAABzlJREFUeJzt1rENwzAQBEHTUOHsnEoVKhDwG8xUcNHi1vkBdPynBwA8iRKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHJND3hrn+kFULXX9IIveUpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEp60wvAHjwlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSDlmh7w1j7TC6Bqr+kFX/KUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUtaZXgDw4CkBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHIDp74LS5/6zzUAAAAASUVORK5CYII=";function Ml(r){return tt({url:"/api/system/competency/list",method:"get",params:{...r,tenant_id:1}})}function uo(r){return tt({url:"/api/system/interview_question/list",method:"get",params:{...r,tenant_id:1}})}function Bl(r){return tt({url:"/api/system/interview_question/ai_generated",method:"post",data:{...r,tenant_id:1},timeout:0})}function na(r){return tt({url:"/api/system/interview_question/draft_list",method:"get",params:{...r,tenant_id:1}})}function kl(r){return tt({url:"/api/system/interview_question/confirm_draft",method:"post",data:{...r,tenant_id:1},timeout:0})}function jl(r){return tt({url:"/api/system/digital_human/",method:"get",params:{...r,tenant_id:1}})}function ui(r){return tt({url:"/api/system/job_config/list",method:"post",data:{...r,tenant_id:1}})}function kt(r){return tt({url:`/api/system/job_config/detail/${r.id}`,method:"put",data:{...r,tenant_id:1}})}function Un(r){return tt({url:`/api/system/job_config/position/detail/${r}`,method:"get"})}function oa(r){return tt({url:"api/system/job/add_question",method:"post",data:{...r,tenant_id:"1"}})}function ci(r){return tt({url:"/api/system/digital_human/generate_opening_video",method:"post",data:{...r,tenant_id:"1"},timeout:0})}function ia(r){return tt({url:"/api/system/digital_human/generate_question_videos",method:"post",data:{...r,tenant_id:"1",force_regenerate:!0},timeout:0})}function Nl(r){return tt({url:"/api/system/job/batch_delete_questions",method:"post",data:{...r,tenant_id:"1"}})}function aa(r){return tt({url:"/competency/generate_from_position/",method:"post",data:{...r,tenant_id:"1"},timeout:0})}function Fl(r){return tt({url:"/competency/save_position_tags/",method:"post",data:{...r,tenant_id:"1"}})}function Ll(r){return tt({url:"/api/system/competency/list",method:"get",params:{...r,tenant_id:"1"}})}function Ql(r){return tt({url:"/api/system/job/questions",method:"get",params:{...r,tenant_id:1}})}function zl(r){return tt({url:"/api/system/competency/create",method:"post",data:{...r,tenant_id:1}})}function Gl(r){return tt({url:"/api/system/competency/batch_bind",method:"post",data:{...r,tenant_id:1}})}var ba={exports:{}};/**!
  2. * Sortable 1.14.0
  3. * @author RubaXa <trash@rubaxa.org>
  4. * @author owenm <owen23355@gmail.com>
  5. * @license MIT
  6. */function ra(r,i){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(r);i&&(d=d.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),o.push.apply(o,d)}return o}function Nt(r){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?ra(Object(o),!0).forEach(function(d){$l(r,d,o[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):ra(Object(o)).forEach(function(d){Object.defineProperty(r,d,Object.getOwnPropertyDescriptor(o,d))})}return r}function $o(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$o=function(i){return typeof i}:$o=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$o(r)}function $l(r,i,o){return i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}function Vt(){return Vt=Object.assign||function(r){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(r[d]=o[d])}return r},Vt.apply(this,arguments)}function Jl(r,i){if(r==null)return{};var o={},d=Object.keys(r),n,c;for(c=0;c<d.length;c++)n=d[c],!(i.indexOf(n)>=0)&&(o[n]=r[n]);return o}function Wl(r,i){if(r==null)return{};var o=Jl(r,i),d,n;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);for(n=0;n<c.length;n++)d=c[n],!(i.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(r,d)&&(o[d]=r[d])}return o}function Hl(r){return Yl(r)||Xl(r)||Zl(r)||ql()}function Yl(r){if(Array.isArray(r))return xi(r)}function Xl(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Zl(r,i){if(r){if(typeof r=="string")return xi(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return xi(r,i)}}function xi(r,i){(i==null||i>r.length)&&(i=r.length);for(var o=0,d=new Array(i);o<i;o++)d[o]=r[o];return d}function ql(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  7. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _l="1.14.0";function Gt(r){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(r)}var $t=Gt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Io=Gt(/Edge/i),la=Gt(/firefox/i),yo=Gt(/safari/i)&&!Gt(/chrome/i)&&!Gt(/android/i),Sa=Gt(/iP(ad|od|hone)/i),es=Gt(/chrome/i)&&Gt(/android/i),Ea={capture:!1,passive:!1};function be(r,i,o){r.addEventListener(i,o,!$t&&Ea)}function ge(r,i,o){r.removeEventListener(i,o,!$t&&Ea)}function Xo(r,i){if(i){if(i[0]===">"&&(i=i.substring(1)),r)try{if(r.matches)return r.matches(i);if(r.msMatchesSelector)return r.msMatchesSelector(i);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(i)}catch{return!1}return!1}}function ts(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function Kt(r,i,o,d){if(r){o=o||document;do{if(i!=null&&(i[0]===">"?r.parentNode===o&&Xo(r,i):Xo(r,i))||d&&r===o)return r;if(r===o)break}while(r=ts(r))}return null}var sa=/\s+/g;function Qe(r,i,o){if(r&&i)if(r.classList)r.classList[o?"add":"remove"](i);else{var d=(" "+r.className+" ").replace(sa," ").replace(" "+i+" "," ");r.className=(d+(o?" "+i:"")).replace(sa," ")}}function te(r,i,o){var d=r&&r.style;if(d){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(o=r.currentStyle),i===void 0?o:o[i];!(i in d)&&i.indexOf("webkit")===-1&&(i="-webkit-"+i),d[i]=o+(typeof o=="string"?"":"px")}}function bn(r,i){var o="";if(typeof r=="string")o=r;else do{var d=te(r,"transform");d&&d!=="none"&&(o=d+" "+o)}while(!i&&(r=r.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function xa(r,i,o){if(r){var d=r.getElementsByTagName(i),n=0,c=d.length;if(o)for(;n<c;n++)o(d[n],n);return d}return[]}function jt(){var r=document.scrollingElement;return r||document.documentElement}function Fe(r,i,o,d,n){if(!(!r.getBoundingClientRect&&r!==window)){var c,t,a,s,u,m,g;if(r!==window&&r.parentNode&&r!==jt()?(c=r.getBoundingClientRect(),t=c.top,a=c.left,s=c.bottom,u=c.right,m=c.height,g=c.width):(t=0,a=0,s=window.innerHeight,u=window.innerWidth,m=window.innerHeight,g=window.innerWidth),(i||o)&&r!==window&&(n=n||r.parentNode,!$t))do if(n&&n.getBoundingClientRect&&(te(n,"transform")!=="none"||o&&te(n,"position")!=="static")){var h=n.getBoundingClientRect();t-=h.top+parseInt(te(n,"border-top-width")),a-=h.left+parseInt(te(n,"border-left-width")),s=t+c.height,u=a+c.width;break}while(n=n.parentNode);if(d&&r!==window){var b=bn(n||r),S=b&&b.a,E=b&&b.d;b&&(t/=E,a/=S,g/=S,m/=E,s=t+m,u=a+g)}return{top:t,left:a,bottom:s,right:u,width:g,height:m}}}function da(r,i,o){for(var d=an(r,!0),n=Fe(r)[i];d;){var c=Fe(d)[o],t=void 0;if(t=n>=c,!t)return d;if(d===jt())break;d=an(d,!1)}return!1}function Nn(r,i,o,d){for(var n=0,c=0,t=r.children;c<t.length;){if(t[c].style.display!=="none"&&t[c]!==de.ghost&&(d||t[c]!==de.dragged)&&Kt(t[c],o.draggable,r,!1)){if(n===i)return t[c];n++}c++}return null}function Oi(r,i){for(var o=r.lastElementChild;o&&(o===de.ghost||te(o,"display")==="none"||i&&!Xo(o,i));)o=o.previousElementSibling;return o||null}function $e(r,i){var o=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==de.clone&&(!i||Xo(r,i))&&o++;return o}function ua(r){var i=0,o=0,d=jt();if(r)do{var n=bn(r),c=n.a,t=n.d;i+=r.scrollLeft*c,o+=r.scrollTop*t}while(r!==d&&(r=r.parentNode));return[i,o]}function ns(r,i){for(var o in r)if(r.hasOwnProperty(o)){for(var d in i)if(i.hasOwnProperty(d)&&i[d]===r[o][d])return Number(o)}return-1}function an(r,i){if(!r||!r.getBoundingClientRect)return jt();var o=r,d=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=te(o);if(o.clientWidth<o.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return jt();if(d||i)return o;d=!0}}while(o=o.parentNode);return jt()}function os(r,i){if(r&&i)for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o]);return r}function fi(r,i){return Math.round(r.top)===Math.round(i.top)&&Math.round(r.left)===Math.round(i.left)&&Math.round(r.height)===Math.round(i.height)&&Math.round(r.width)===Math.round(i.width)}var bo;function Ia(r,i){return function(){if(!bo){var o=arguments,d=this;o.length===1?r.call(d,o[0]):r.apply(d,o),bo=setTimeout(function(){bo=void 0},i)}}}function is(){clearTimeout(bo),bo=void 0}function Ca(r,i,o){r.scrollLeft+=i,r.scrollTop+=o}function Ti(r){var i=window.Polymer,o=window.jQuery||window.Zepto;return i&&i.dom?i.dom(r).cloneNode(!0):o?o(r).clone(!0)[0]:r.cloneNode(!0)}function ca(r,i){te(r,"position","absolute"),te(r,"top",i.top),te(r,"left",i.left),te(r,"width",i.width),te(r,"height",i.height)}function vi(r){te(r,"position",""),te(r,"top",""),te(r,"left",""),te(r,"width",""),te(r,"height","")}var ft="Sortable"+new Date().getTime();function as(){var r=[],i;return{captureAnimationState:function(){if(r=[],!!this.options.animation){var d=[].slice.call(this.el.children);d.forEach(function(n){if(!(te(n,"display")==="none"||n===de.ghost)){r.push({target:n,rect:Fe(n)});var c=Nt({},r[r.length-1].rect);if(n.thisAnimationDuration){var t=bn(n,!0);t&&(c.top-=t.f,c.left-=t.e)}n.fromRect=c}})}},addAnimationState:function(d){r.push(d)},removeAnimationState:function(d){r.splice(ns(r,{target:d}),1)},animateAll:function(d){var n=this;if(!this.options.animation){clearTimeout(i),typeof d=="function"&&d();return}var c=!1,t=0;r.forEach(function(a){var s=0,u=a.target,m=u.fromRect,g=Fe(u),h=u.prevFromRect,b=u.prevToRect,S=a.rect,E=bn(u,!0);E&&(g.top-=E.f,g.left-=E.e),u.toRect=g,u.thisAnimationDuration&&fi(h,g)&&!fi(m,g)&&(S.top-g.top)/(S.left-g.left)===(m.top-g.top)/(m.left-g.left)&&(s=ls(S,h,b,n.options)),fi(g,m)||(u.prevFromRect=m,u.prevToRect=g,s||(s=n.options.animation),n.animate(u,S,g,s)),s&&(c=!0,t=Math.max(t,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(i),c?i=setTimeout(function(){typeof d=="function"&&d()},t):typeof d=="function"&&d(),r=[]},animate:function(d,n,c,t){if(t){te(d,"transition",""),te(d,"transform","");var a=bn(this.el),s=a&&a.a,u=a&&a.d,m=(n.left-c.left)/(s||1),g=(n.top-c.top)/(u||1);d.animatingX=!!m,d.animatingY=!!g,te(d,"transform","translate3d("+m+"px,"+g+"px,0)"),this.forRepaintDummy=rs(d),te(d,"transition","transform "+t+"ms"+(this.options.easing?" "+this.options.easing:"")),te(d,"transform","translate3d(0,0,0)"),typeof d.animated=="number"&&clearTimeout(d.animated),d.animated=setTimeout(function(){te(d,"transition",""),te(d,"transform",""),d.animated=!1,d.animatingX=!1,d.animatingY=!1},t)}}}}function rs(r){return r.offsetWidth}function ls(r,i,o,d){return Math.sqrt(Math.pow(i.top-r.top,2)+Math.pow(i.left-r.left,2))/Math.sqrt(Math.pow(i.top-o.top,2)+Math.pow(i.left-o.left,2))*d.animation}var Kn=[],pi={initializeByDefault:!0},Co={mount:function(i){for(var o in pi)pi.hasOwnProperty(o)&&!(o in i)&&(i[o]=pi[o]);Kn.forEach(function(d){if(d.pluginName===i.pluginName)throw"Sortable: Cannot mount plugin ".concat(i.pluginName," more than once")}),Kn.push(i)},pluginEvent:function(i,o,d){var n=this;this.eventCanceled=!1,d.cancel=function(){n.eventCanceled=!0};var c=i+"Global";Kn.forEach(function(t){o[t.pluginName]&&(o[t.pluginName][c]&&o[t.pluginName][c](Nt({sortable:o},d)),o.options[t.pluginName]&&o[t.pluginName][i]&&o[t.pluginName][i](Nt({sortable:o},d)))})},initializePlugins:function(i,o,d,n){Kn.forEach(function(a){var s=a.pluginName;if(!(!i.options[s]&&!a.initializeByDefault)){var u=new a(i,o,i.options);u.sortable=i,u.options=i.options,i[s]=u,Vt(d,u.defaults)}});for(var c in i.options)if(i.options.hasOwnProperty(c)){var t=this.modifyOption(i,c,i.options[c]);typeof t<"u"&&(i.options[c]=t)}},getEventProperties:function(i,o){var d={};return Kn.forEach(function(n){typeof n.eventProperties=="function"&&Vt(d,n.eventProperties.call(o[n.pluginName],i))}),d},modifyOption:function(i,o,d){var n;return Kn.forEach(function(c){i[c.pluginName]&&c.optionListeners&&typeof c.optionListeners[o]=="function"&&(n=c.optionListeners[o].call(i[c.pluginName],d))}),n}};function po(r){var i=r.sortable,o=r.rootEl,d=r.name,n=r.targetEl,c=r.cloneEl,t=r.toEl,a=r.fromEl,s=r.oldIndex,u=r.newIndex,m=r.oldDraggableIndex,g=r.newDraggableIndex,h=r.originalEvent,b=r.putSortable,S=r.extraEventProperties;if(i=i||o&&o[ft],!!i){var E,x=i.options,O="on"+d.charAt(0).toUpperCase()+d.substr(1);window.CustomEvent&&!$t&&!Io?E=new CustomEvent(d,{bubbles:!0,cancelable:!0}):(E=document.createEvent("Event"),E.initEvent(d,!0,!0)),E.to=t||o,E.from=a||o,E.item=n||o,E.clone=c,E.oldIndex=s,E.newIndex=u,E.oldDraggableIndex=m,E.newDraggableIndex=g,E.originalEvent=h,E.pullMode=b?b.lastPutMode:void 0;var A=Nt(Nt({},S),Co.getEventProperties(d,i));for(var V in A)E[V]=A[V];o&&o.dispatchEvent(E),x[O]&&x[O].call(i,E)}}var ss=["evt"],bt=function(i,o){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=d.evt,c=Wl(d,ss);Co.pluginEvent.bind(de)(i,o,Nt({dragEl:W,parentEl:ze,ghostEl:pe,rootEl:Ne,nextEl:yn,lastDownEl:Jo,cloneEl:Ge,cloneHidden:on,dragStarted:mo,putSortable:lt,activeSortable:de.active,originalEvent:n,oldIndex:jn,oldDraggableIndex:So,newIndex:At,newDraggableIndex:nn,hideGhostForTarget:Ta,unhideGhostForTarget:Da,cloneNowHidden:function(){on=!0},cloneNowShown:function(){on=!1},dispatchSortableEvent:function(a){mt({sortable:o,name:a,originalEvent:n})}},c))};function mt(r){po(Nt({putSortable:lt,cloneEl:Ge,targetEl:W,rootEl:Ne,oldIndex:jn,oldDraggableIndex:So,newIndex:At,newDraggableIndex:nn},r))}var W,ze,pe,Ne,yn,Jo,Ge,on,jn,At,So,nn,No,lt,kn=!1,Zo=!1,qo=[],gn,Rt,mi,gi,fa,va,mo,Mn,Eo,xo=!1,Fo=!1,Wo,ct,hi=[],Ii=!1,_o=[],ti=typeof document<"u",Lo=Sa,pa=Io||$t?"cssFloat":"float",ds=ti&&!es&&!Sa&&"draggable"in document.createElement("div"),Aa=function(){if(ti){if($t)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),wa=function(i,o){var d=te(i),n=parseInt(d.width)-parseInt(d.paddingLeft)-parseInt(d.paddingRight)-parseInt(d.borderLeftWidth)-parseInt(d.borderRightWidth),c=Nn(i,0,o),t=Nn(i,1,o),a=c&&te(c),s=t&&te(t),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Fe(c).width,m=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Fe(t).width;if(d.display==="flex")return d.flexDirection==="column"||d.flexDirection==="column-reverse"?"vertical":"horizontal";if(d.display==="grid")return d.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(c&&a.float&&a.float!=="none"){var g=a.float==="left"?"left":"right";return t&&(s.clear==="both"||s.clear===g)?"vertical":"horizontal"}return c&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=n&&d[pa]==="none"||t&&d[pa]==="none"&&u+m>n)?"vertical":"horizontal"},us=function(i,o,d){var n=d?i.left:i.top,c=d?i.right:i.bottom,t=d?i.width:i.height,a=d?o.left:o.top,s=d?o.right:o.bottom,u=d?o.width:o.height;return n===a||c===s||n+t/2===a+u/2},cs=function(i,o){var d;return qo.some(function(n){var c=n[ft].options.emptyInsertThreshold;if(!(!c||Oi(n))){var t=Fe(n),a=i>=t.left-c&&i<=t.right+c,s=o>=t.top-c&&o<=t.bottom+c;if(a&&s)return d=n}}),d},Oa=function(i){function o(c,t){return function(a,s,u,m){var g=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(c==null&&(t||g))return!0;if(c==null||c===!1)return!1;if(t&&c==="clone")return c;if(typeof c=="function")return o(c(a,s,u,m),t)(a,s,u,m);var h=(t?a:s).options.group.name;return c===!0||typeof c=="string"&&c===h||c.join&&c.indexOf(h)>-1}}var d={},n=i.group;(!n||$o(n)!="object")&&(n={name:n}),d.name=n.name,d.checkPull=o(n.pull,!0),d.checkPut=o(n.put),d.revertClone=n.revertClone,i.group=d},Ta=function(){!Aa&&pe&&te(pe,"display","none")},Da=function(){!Aa&&pe&&te(pe,"display","")};ti&&document.addEventListener("click",function(r){if(Zo)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),Zo=!1,!1},!0);var hn=function(i){if(W){i=i.touches?i.touches[0]:i;var o=cs(i.clientX,i.clientY);if(o){var d={};for(var n in i)i.hasOwnProperty(n)&&(d[n]=i[n]);d.target=d.rootEl=o,d.preventDefault=void 0,d.stopPropagation=void 0,o[ft]._onDragOver(d)}}},fs=function(i){W&&W.parentNode[ft]._isOutsideThisEl(i.target)};function de(r,i){if(!(r&&r.nodeType&&r.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));this.el=r,this.options=i=Vt({},i),r[ft]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(r.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return wa(r,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,a){t.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:de.supportPointer!==!1&&"PointerEvent"in window&&!yo,emptyInsertThreshold:5};Co.initializePlugins(this,r,o);for(var d in o)!(d in i)&&(i[d]=o[d]);Oa(i);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=i.forceFallback?!1:ds,this.nativeDraggable&&(this.options.touchStartThreshold=1),i.supportPointer?be(r,"pointerdown",this._onTapStart):(be(r,"mousedown",this._onTapStart),be(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(be(r,"dragover",this),be(r,"dragenter",this)),qo.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),Vt(this,as())}de.prototype={constructor:de,_isOutsideThisEl:function(i){!this.el.contains(i)&&i!==this.el&&(Mn=null)},_getDirection:function(i,o){return typeof this.options.direction=="function"?this.options.direction.call(this,i,o,W):this.options.direction},_onTapStart:function(i){if(i.cancelable){var o=this,d=this.el,n=this.options,c=n.preventOnFilter,t=i.type,a=i.touches&&i.touches[0]||i.pointerType&&i.pointerType==="touch"&&i,s=(a||i).target,u=i.target.shadowRoot&&(i.path&&i.path[0]||i.composedPath&&i.composedPath()[0])||s,m=n.filter;if(Ss(d),!W&&!(/mousedown|pointerdown/.test(t)&&i.button!==0||n.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&yo&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Kt(s,n.draggable,d,!1),!(s&&s.animated)&&Jo!==s)){if(jn=$e(s),So=$e(s,n.draggable),typeof m=="function"){if(m.call(this,i,s,this)){mt({sortable:o,rootEl:u,name:"filter",targetEl:s,toEl:d,fromEl:d}),bt("filter",o,{evt:i}),c&&i.cancelable&&i.preventDefault();return}}else if(m&&(m=m.split(",").some(function(g){if(g=Kt(u,g.trim(),d,!1),g)return mt({sortable:o,rootEl:g,name:"filter",targetEl:s,fromEl:d,toEl:d}),bt("filter",o,{evt:i}),!0}),m)){c&&i.cancelable&&i.preventDefault();return}n.handle&&!Kt(u,n.handle,d,!1)||this._prepareDragStart(i,a,s)}}},_prepareDragStart:function(i,o,d){var n=this,c=n.el,t=n.options,a=c.ownerDocument,s;if(d&&!W&&d.parentNode===c){var u=Fe(d);if(Ne=c,W=d,ze=W.parentNode,yn=W.nextSibling,Jo=d,No=t.group,de.dragged=W,gn={target:W,clientX:(o||i).clientX,clientY:(o||i).clientY},fa=gn.clientX-u.left,va=gn.clientY-u.top,this._lastX=(o||i).clientX,this._lastY=(o||i).clientY,W.style["will-change"]="all",s=function(){if(bt("delayEnded",n,{evt:i}),de.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!la&&n.nativeDraggable&&(W.draggable=!0),n._triggerDragStart(i,o),mt({sortable:n,name:"choose",originalEvent:i}),Qe(W,t.chosenClass,!0)},t.ignore.split(",").forEach(function(m){xa(W,m.trim(),yi)}),be(a,"dragover",hn),be(a,"mousemove",hn),be(a,"touchmove",hn),be(a,"mouseup",n._onDrop),be(a,"touchend",n._onDrop),be(a,"touchcancel",n._onDrop),la&&this.nativeDraggable&&(this.options.touchStartThreshold=4,W.draggable=!0),bt("delayStart",this,{evt:i}),t.delay&&(!t.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Io||$t))){if(de.eventCanceled){this._onDrop();return}be(a,"mouseup",n._disableDelayedDrag),be(a,"touchend",n._disableDelayedDrag),be(a,"touchcancel",n._disableDelayedDrag),be(a,"mousemove",n._delayedDragTouchMoveHandler),be(a,"touchmove",n._delayedDragTouchMoveHandler),t.supportPointer&&be(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,t.delay)}else s()}},_delayedDragTouchMoveHandler:function(i){var o=i.touches?i.touches[0]:i;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){W&&yi(W),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var i=this.el.ownerDocument;ge(i,"mouseup",this._disableDelayedDrag),ge(i,"touchend",this._disableDelayedDrag),ge(i,"touchcancel",this._disableDelayedDrag),ge(i,"mousemove",this._delayedDragTouchMoveHandler),ge(i,"touchmove",this._delayedDragTouchMoveHandler),ge(i,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(i,o){o=o||i.pointerType=="touch"&&i,!this.nativeDraggable||o?this.options.supportPointer?be(document,"pointermove",this._onTouchMove):o?be(document,"touchmove",this._onTouchMove):be(document,"mousemove",this._onTouchMove):(be(W,"dragend",this),be(Ne,"dragstart",this._onDragStart));try{document.selection?Ho(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(i,o){if(kn=!1,Ne&&W){bt("dragStarted",this,{evt:o}),this.nativeDraggable&&be(document,"dragover",fs);var d=this.options;!i&&Qe(W,d.dragClass,!1),Qe(W,d.ghostClass,!0),de.active=this,i&&this._appendGhost(),mt({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(Rt){this._lastX=Rt.clientX,this._lastY=Rt.clientY,Ta();for(var i=document.elementFromPoint(Rt.clientX,Rt.clientY),o=i;i&&i.shadowRoot&&(i=i.shadowRoot.elementFromPoint(Rt.clientX,Rt.clientY),i!==o);)o=i;if(W.parentNode[ft]._isOutsideThisEl(i),o)do{if(o[ft]){var d=void 0;if(d=o[ft]._onDragOver({clientX:Rt.clientX,clientY:Rt.clientY,target:i,rootEl:o}),d&&!this.options.dragoverBubble)break}i=o}while(o=o.parentNode);Da()}},_onTouchMove:function(i){if(gn){var o=this.options,d=o.fallbackTolerance,n=o.fallbackOffset,c=i.touches?i.touches[0]:i,t=pe&&bn(pe,!0),a=pe&&t&&t.a,s=pe&&t&&t.d,u=Lo&&ct&&ua(ct),m=(c.clientX-gn.clientX+n.x)/(a||1)+(u?u[0]-hi[0]:0)/(a||1),g=(c.clientY-gn.clientY+n.y)/(s||1)+(u?u[1]-hi[1]:0)/(s||1);if(!de.active&&!kn){if(d&&Math.max(Math.abs(c.clientX-this._lastX),Math.abs(c.clientY-this._lastY))<d)return;this._onDragStart(i,!0)}if(pe){t?(t.e+=m-(mi||0),t.f+=g-(gi||0)):t={a:1,b:0,c:0,d:1,e:m,f:g};var h="matrix(".concat(t.a,",").concat(t.b,",").concat(t.c,",").concat(t.d,",").concat(t.e,",").concat(t.f,")");te(pe,"webkitTransform",h),te(pe,"mozTransform",h),te(pe,"msTransform",h),te(pe,"transform",h),mi=m,gi=g,Rt=c}i.cancelable&&i.preventDefault()}},_appendGhost:function(){if(!pe){var i=this.options.fallbackOnBody?document.body:Ne,o=Fe(W,!0,Lo,!0,i),d=this.options;if(Lo){for(ct=i;te(ct,"position")==="static"&&te(ct,"transform")==="none"&&ct!==document;)ct=ct.parentNode;ct!==document.body&&ct!==document.documentElement?(ct===document&&(ct=jt()),o.top+=ct.scrollTop,o.left+=ct.scrollLeft):ct=jt(),hi=ua(ct)}pe=W.cloneNode(!0),Qe(pe,d.ghostClass,!1),Qe(pe,d.fallbackClass,!0),Qe(pe,d.dragClass,!0),te(pe,"transition",""),te(pe,"transform",""),te(pe,"box-sizing","border-box"),te(pe,"margin",0),te(pe,"top",o.top),te(pe,"left",o.left),te(pe,"width",o.width),te(pe,"height",o.height),te(pe,"opacity","0.8"),te(pe,"position",Lo?"absolute":"fixed"),te(pe,"zIndex","100000"),te(pe,"pointerEvents","none"),de.ghost=pe,i.appendChild(pe),te(pe,"transform-origin",fa/parseInt(pe.style.width)*100+"% "+va/parseInt(pe.style.height)*100+"%")}},_onDragStart:function(i,o){var d=this,n=i.dataTransfer,c=d.options;if(bt("dragStart",this,{evt:i}),de.eventCanceled){this._onDrop();return}bt("setupClone",this),de.eventCanceled||(Ge=Ti(W),Ge.draggable=!1,Ge.style["will-change"]="",this._hideClone(),Qe(Ge,this.options.chosenClass,!1),de.clone=Ge),d.cloneId=Ho(function(){bt("clone",d),!de.eventCanceled&&(d.options.removeCloneOnHide||Ne.insertBefore(Ge,W),d._hideClone(),mt({sortable:d,name:"clone"}))}),!o&&Qe(W,c.dragClass,!0),o?(Zo=!0,d._loopId=setInterval(d._emulateDragOver,50)):(ge(document,"mouseup",d._onDrop),ge(document,"touchend",d._onDrop),ge(document,"touchcancel",d._onDrop),n&&(n.effectAllowed="move",c.setData&&c.setData.call(d,n,W)),be(document,"drop",d),te(W,"transform","translateZ(0)")),kn=!0,d._dragStartId=Ho(d._dragStarted.bind(d,o,i)),be(document,"selectstart",d),mo=!0,yo&&te(document.body,"user-select","none")},_onDragOver:function(i){var o=this.el,d=i.target,n,c,t,a=this.options,s=a.group,u=de.active,m=No===s,g=a.sort,h=lt||u,b,S=this,E=!1;if(Ii)return;function x(Ee,Te){bt(Ee,S,Nt({evt:i,isOwner:m,axis:b?"vertical":"horizontal",revert:t,dragRect:n,targetRect:c,canSort:g,fromSortable:h,target:d,completed:A,onMove:function(Ke,Me){return Qo(Ne,o,W,n,Ke,Fe(Ke),i,Me)},changed:V},Te))}function O(){x("dragOverAnimationCapture"),S.captureAnimationState(),S!==h&&h.captureAnimationState()}function A(Ee){return x("dragOverCompleted",{insertion:Ee}),Ee&&(m?u._hideClone():u._showClone(S),S!==h&&(Qe(W,lt?lt.options.ghostClass:u.options.ghostClass,!1),Qe(W,a.ghostClass,!0)),lt!==S&&S!==de.active?lt=S:S===de.active&&lt&&(lt=null),h===S&&(S._ignoreWhileAnimating=d),S.animateAll(function(){x("dragOverAnimationComplete"),S._ignoreWhileAnimating=null}),S!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(d===W&&!W.animated||d===o&&!d.animated)&&(Mn=null),!a.dragoverBubble&&!i.rootEl&&d!==document&&(W.parentNode[ft]._isOutsideThisEl(i.target),!Ee&&hn(i)),!a.dragoverBubble&&i.stopPropagation&&i.stopPropagation(),E=!0}function V(){At=$e(W),nn=$e(W,a.draggable),mt({sortable:S,name:"change",toEl:o,newIndex:At,newDraggableIndex:nn,originalEvent:i})}if(i.preventDefault!==void 0&&i.cancelable&&i.preventDefault(),d=Kt(d,a.draggable,o,!0),x("dragOver"),de.eventCanceled)return E;if(W.contains(i.target)||d.animated&&d.animatingX&&d.animatingY||S._ignoreWhileAnimating===d)return A(!1);if(Zo=!1,u&&!a.disabled&&(m?g||(t=ze!==Ne):lt===this||(this.lastPutMode=No.checkPull(this,u,W,i))&&s.checkPut(this,u,W,i))){if(b=this._getDirection(i,d)==="vertical",n=Fe(W),x("dragOverValid"),de.eventCanceled)return E;if(t)return ze=Ne,O(),this._hideClone(),x("revert"),de.eventCanceled||(yn?Ne.insertBefore(W,yn):Ne.appendChild(W)),A(!0);var P=Oi(o,a.draggable);if(!P||gs(i,b,this)&&!P.animated){if(P===W)return A(!1);if(P&&o===i.target&&(d=P),d&&(c=Fe(d)),Qo(Ne,o,W,n,d,c,i,!!d)!==!1)return O(),o.appendChild(W),ze=o,V(),A(!0)}else if(P&&ms(i,b,this)){var B=Nn(o,0,a,!0);if(B===W)return A(!1);if(d=B,c=Fe(d),Qo(Ne,o,W,n,d,c,i,!1)!==!1)return O(),o.insertBefore(W,B),ze=o,V(),A(!0)}else if(d.parentNode===o){c=Fe(d);var K=0,z,q=W.parentNode!==o,k=!us(W.animated&&W.toRect||n,d.animated&&d.toRect||c,b),Y=b?"top":"left",Z=da(d,"top","top")||da(W,"top","top"),re=Z?Z.scrollTop:void 0;Mn!==d&&(z=c[Y],xo=!1,Fo=!k&&a.invertSwap||q),K=hs(i,d,c,b,k?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Fo,Mn===d);var L;if(K!==0){var T=$e(W);do T-=K,L=ze.children[T];while(L&&(te(L,"display")==="none"||L===pe))}if(K===0||L===d)return A(!1);Mn=d,Eo=K;var ue=d.nextElementSibling,H=!1;H=K===1;var ne=Qo(Ne,o,W,n,d,c,i,H);if(ne!==!1)return(ne===1||ne===-1)&&(H=ne===1),Ii=!0,setTimeout(ps,30),O(),H&&!ue?o.appendChild(W):d.parentNode.insertBefore(W,H?ue:d),Z&&Ca(Z,0,re-Z.scrollTop),ze=W.parentNode,z!==void 0&&!Fo&&(Wo=Math.abs(z-Fe(d)[Y])),V(),A(!0)}if(o.contains(W))return A(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ge(document,"mousemove",this._onTouchMove),ge(document,"touchmove",this._onTouchMove),ge(document,"pointermove",this._onTouchMove),ge(document,"dragover",hn),ge(document,"mousemove",hn),ge(document,"touchmove",hn)},_offUpEvents:function(){var i=this.el.ownerDocument;ge(i,"mouseup",this._onDrop),ge(i,"touchend",this._onDrop),ge(i,"pointerup",this._onDrop),ge(i,"touchcancel",this._onDrop),ge(document,"selectstart",this)},_onDrop:function(i){var o=this.el,d=this.options;if(At=$e(W),nn=$e(W,d.draggable),bt("drop",this,{evt:i}),ze=W&&W.parentNode,At=$e(W),nn=$e(W,d.draggable),de.eventCanceled){this._nulling();return}kn=!1,Fo=!1,xo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ci(this.cloneId),Ci(this._dragStartId),this.nativeDraggable&&(ge(document,"drop",this),ge(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),yo&&te(document.body,"user-select",""),te(W,"transform",""),i&&(mo&&(i.cancelable&&i.preventDefault(),!d.dropBubble&&i.stopPropagation()),pe&&pe.parentNode&&pe.parentNode.removeChild(pe),(Ne===ze||lt&&lt.lastPutMode!=="clone")&&Ge&&Ge.parentNode&&Ge.parentNode.removeChild(Ge),W&&(this.nativeDraggable&&ge(W,"dragend",this),yi(W),W.style["will-change"]="",mo&&!kn&&Qe(W,lt?lt.options.ghostClass:this.options.ghostClass,!1),Qe(W,this.options.chosenClass,!1),mt({sortable:this,name:"unchoose",toEl:ze,newIndex:null,newDraggableIndex:null,originalEvent:i}),Ne!==ze?(At>=0&&(mt({rootEl:ze,name:"add",toEl:ze,fromEl:Ne,originalEvent:i}),mt({sortable:this,name:"remove",toEl:ze,originalEvent:i}),mt({rootEl:ze,name:"sort",toEl:ze,fromEl:Ne,originalEvent:i}),mt({sortable:this,name:"sort",toEl:ze,originalEvent:i})),lt&&lt.save()):At!==jn&&At>=0&&(mt({sortable:this,name:"update",toEl:ze,originalEvent:i}),mt({sortable:this,name:"sort",toEl:ze,originalEvent:i})),de.active&&((At==null||At===-1)&&(At=jn,nn=So),mt({sortable:this,name:"end",toEl:ze,originalEvent:i}),this.save()))),this._nulling()},_nulling:function(){bt("nulling",this),Ne=W=ze=pe=yn=Ge=Jo=on=gn=Rt=mo=At=nn=jn=So=Mn=Eo=lt=No=de.dragged=de.ghost=de.clone=de.active=null,_o.forEach(function(i){i.checked=!0}),_o.length=mi=gi=0},handleEvent:function(i){switch(i.type){case"drop":case"dragend":this._onDrop(i);break;case"dragenter":case"dragover":W&&(this._onDragOver(i),vs(i));break;case"selectstart":i.preventDefault();break}},toArray:function(){for(var i=[],o,d=this.el.children,n=0,c=d.length,t=this.options;n<c;n++)o=d[n],Kt(o,t.draggable,this.el,!1)&&i.push(o.getAttribute(t.dataIdAttr)||bs(o));return i},sort:function(i,o){var d={},n=this.el;this.toArray().forEach(function(c,t){var a=n.children[t];Kt(a,this.options.draggable,n,!1)&&(d[c]=a)},this),o&&this.captureAnimationState(),i.forEach(function(c){d[c]&&(n.removeChild(d[c]),n.appendChild(d[c]))}),o&&this.animateAll()},save:function(){var i=this.options.store;i&&i.set&&i.set(this)},closest:function(i,o){return Kt(i,o||this.options.draggable,this.el,!1)},option:function(i,o){var d=this.options;if(o===void 0)return d[i];var n=Co.modifyOption(this,i,o);typeof n<"u"?d[i]=n:d[i]=o,i==="group"&&Oa(d)},destroy:function(){bt("destroy",this);var i=this.el;i[ft]=null,ge(i,"mousedown",this._onTapStart),ge(i,"touchstart",this._onTapStart),ge(i,"pointerdown",this._onTapStart),this.nativeDraggable&&(ge(i,"dragover",this),ge(i,"dragenter",this)),Array.prototype.forEach.call(i.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),qo.splice(qo.indexOf(this.el),1),this.el=i=null},_hideClone:function(){if(!on){if(bt("hideClone",this),de.eventCanceled)return;te(Ge,"display","none"),this.options.removeCloneOnHide&&Ge.parentNode&&Ge.parentNode.removeChild(Ge),on=!0}},_showClone:function(i){if(i.lastPutMode!=="clone"){this._hideClone();return}if(on){if(bt("showClone",this),de.eventCanceled)return;W.parentNode==Ne&&!this.options.group.revertClone?Ne.insertBefore(Ge,W):yn?Ne.insertBefore(Ge,yn):Ne.appendChild(Ge),this.options.group.revertClone&&this.animate(W,Ge),te(Ge,"display",""),on=!1}}};function vs(r){r.dataTransfer&&(r.dataTransfer.dropEffect="move"),r.cancelable&&r.preventDefault()}function Qo(r,i,o,d,n,c,t,a){var s,u=r[ft],m=u.options.onMove,g;return window.CustomEvent&&!$t&&!Io?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=i,s.from=r,s.dragged=o,s.draggedRect=d,s.related=n||i,s.relatedRect=c||Fe(i),s.willInsertAfter=a,s.originalEvent=t,r.dispatchEvent(s),m&&(g=m.call(u,s,t)),g}function yi(r){r.draggable=!1}function ps(){Ii=!1}function ms(r,i,o){var d=Fe(Nn(o.el,0,o.options,!0)),n=10;return i?r.clientX<d.left-n||r.clientY<d.top&&r.clientX<d.right:r.clientY<d.top-n||r.clientY<d.bottom&&r.clientX<d.left}function gs(r,i,o){var d=Fe(Oi(o.el,o.options.draggable)),n=10;return i?r.clientX>d.right+n||r.clientX<=d.right&&r.clientY>d.bottom&&r.clientX>=d.left:r.clientX>d.right&&r.clientY>d.top||r.clientX<=d.right&&r.clientY>d.bottom+n}function hs(r,i,o,d,n,c,t,a){var s=d?r.clientY:r.clientX,u=d?o.height:o.width,m=d?o.top:o.left,g=d?o.bottom:o.right,h=!1;if(!t){if(a&&Wo<u*n){if(!xo&&(Eo===1?s>m+u*c/2:s<g-u*c/2)&&(xo=!0),xo)h=!0;else if(Eo===1?s<m+Wo:s>g-Wo)return-Eo}else if(s>m+u*(1-n)/2&&s<g-u*(1-n)/2)return ys(i)}return h=h||t,h&&(s<m+u*c/2||s>g-u*c/2)?s>m+u/2?1:-1:0}function ys(r){return $e(W)<$e(r)?1:-1}function bs(r){for(var i=r.tagName+r.className+r.src+r.href+r.textContent,o=i.length,d=0;o--;)d+=i.charCodeAt(o);return d.toString(36)}function Ss(r){_o.length=0;for(var i=r.getElementsByTagName("input"),o=i.length;o--;){var d=i[o];d.checked&&_o.push(d)}}function Ho(r){return setTimeout(r,0)}function Ci(r){return clearTimeout(r)}ti&&be(document,"touchmove",function(r){(de.active||kn)&&r.cancelable&&r.preventDefault()});de.utils={on:be,off:ge,css:te,find:xa,is:function(i,o){return!!Kt(i,o,i,!1)},extend:os,throttle:Ia,closest:Kt,toggleClass:Qe,clone:Ti,index:$e,nextTick:Ho,cancelNextTick:Ci,detectDirection:wa,getChild:Nn};de.get=function(r){return r[ft]};de.mount=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];i[0].constructor===Array&&(i=i[0]),i.forEach(function(d){if(!d.prototype||!d.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(d));d.utils&&(de.utils=Nt(Nt({},de.utils),d.utils)),Co.mount(d)})};de.create=function(r,i){return new de(r,i)};de.version=_l;var Ze=[],go,Ai,wi=!1,bi,Si,ei,ho;function Es(){function r(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this))}return r.prototype={dragStarted:function(o){var d=o.originalEvent;this.sortable.nativeDraggable?be(document,"dragover",this._handleAutoScroll):this.options.supportPointer?be(document,"pointermove",this._handleFallbackAutoScroll):d.touches?be(document,"touchmove",this._handleFallbackAutoScroll):be(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var d=o.originalEvent;!this.options.dragOverBubble&&!d.rootEl&&this._handleAutoScroll(d)},drop:function(){this.sortable.nativeDraggable?ge(document,"dragover",this._handleAutoScroll):(ge(document,"pointermove",this._handleFallbackAutoScroll),ge(document,"touchmove",this._handleFallbackAutoScroll),ge(document,"mousemove",this._handleFallbackAutoScroll)),ma(),Yo(),is()},nulling:function(){ei=Ai=go=wi=ho=bi=Si=null,Ze.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,d){var n=this,c=(o.touches?o.touches[0]:o).clientX,t=(o.touches?o.touches[0]:o).clientY,a=document.elementFromPoint(c,t);if(ei=o,d||this.options.forceAutoScrollFallback||Io||$t||yo){Ei(o,this.options,a,d);var s=an(a,!0);wi&&(!ho||c!==bi||t!==Si)&&(ho&&ma(),ho=setInterval(function(){var u=an(document.elementFromPoint(c,t),!0);u!==s&&(s=u,Yo()),Ei(o,n.options,u,d)},10),bi=c,Si=t)}else{if(!this.options.bubbleScroll||an(a,!0)===jt()){Yo();return}Ei(o,this.options,an(a,!1),!1)}}},Vt(r,{pluginName:"scroll",initializeByDefault:!0})}function Yo(){Ze.forEach(function(r){clearInterval(r.pid)}),Ze=[]}function ma(){clearInterval(ho)}var Ei=Ia(function(r,i,o,d){if(i.scroll){var n=(r.touches?r.touches[0]:r).clientX,c=(r.touches?r.touches[0]:r).clientY,t=i.scrollSensitivity,a=i.scrollSpeed,s=jt(),u=!1,m;Ai!==o&&(Ai=o,Yo(),go=i.scroll,m=i.scrollFn,go===!0&&(go=an(o,!0)));var g=0,h=go;do{var b=h,S=Fe(b),E=S.top,x=S.bottom,O=S.left,A=S.right,V=S.width,P=S.height,B=void 0,K=void 0,z=b.scrollWidth,q=b.scrollHeight,k=te(b),Y=b.scrollLeft,Z=b.scrollTop;b===s?(B=V<z&&(k.overflowX==="auto"||k.overflowX==="scroll"||k.overflowX==="visible"),K=P<q&&(k.overflowY==="auto"||k.overflowY==="scroll"||k.overflowY==="visible")):(B=V<z&&(k.overflowX==="auto"||k.overflowX==="scroll"),K=P<q&&(k.overflowY==="auto"||k.overflowY==="scroll"));var re=B&&(Math.abs(A-n)<=t&&Y+V<z)-(Math.abs(O-n)<=t&&!!Y),L=K&&(Math.abs(x-c)<=t&&Z+P<q)-(Math.abs(E-c)<=t&&!!Z);if(!Ze[g])for(var T=0;T<=g;T++)Ze[T]||(Ze[T]={});(Ze[g].vx!=re||Ze[g].vy!=L||Ze[g].el!==b)&&(Ze[g].el=b,Ze[g].vx=re,Ze[g].vy=L,clearInterval(Ze[g].pid),(re!=0||L!=0)&&(u=!0,Ze[g].pid=setInterval((function(){d&&this.layer===0&&de.active._onTouchMove(ei);var ue=Ze[this.layer].vy?Ze[this.layer].vy*a:0,H=Ze[this.layer].vx?Ze[this.layer].vx*a:0;typeof m=="function"&&m.call(de.dragged.parentNode[ft],H,ue,r,ei,Ze[this.layer].el)!=="continue"||Ca(Ze[this.layer].el,H,ue)}).bind({layer:g}),24))),g++}while(i.bubbleScroll&&h!==s&&(h=an(h,!1)));wi=u}},30),Va=function(i){var o=i.originalEvent,d=i.putSortable,n=i.dragEl,c=i.activeSortable,t=i.dispatchSortableEvent,a=i.hideGhostForTarget,s=i.unhideGhostForTarget;if(o){var u=d||c;a();var m=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,g=document.elementFromPoint(m.clientX,m.clientY);s(),u&&!u.el.contains(g)&&(t("spill"),this.onSpill({dragEl:n,putSortable:d}))}};function Di(){}Di.prototype={startIndex:null,dragStart:function(i){var o=i.oldDraggableIndex;this.startIndex=o},onSpill:function(i){var o=i.dragEl,d=i.putSortable;this.sortable.captureAnimationState(),d&&d.captureAnimationState();var n=Nn(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),d&&d.animateAll()},drop:Va};Vt(Di,{pluginName:"revertOnSpill"});function Vi(){}Vi.prototype={onSpill:function(i){var o=i.dragEl,d=i.putSortable,n=d||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:Va};Vt(Vi,{pluginName:"removeOnSpill"});var Dt;function xs(){function r(){this.defaults={swapClass:"sortable-swap-highlight"}}return r.prototype={dragStart:function(o){var d=o.dragEl;Dt=d},dragOverValid:function(o){var d=o.completed,n=o.target,c=o.onMove,t=o.activeSortable,a=o.changed,s=o.cancel;if(t.options.swap){var u=this.sortable.el,m=this.options;if(n&&n!==u){var g=Dt;c(n)!==!1?(Qe(n,m.swapClass,!0),Dt=n):Dt=null,g&&g!==Dt&&Qe(g,m.swapClass,!1)}a(),d(!0),s()}},drop:function(o){var d=o.activeSortable,n=o.putSortable,c=o.dragEl,t=n||this.sortable,a=this.options;Dt&&Qe(Dt,a.swapClass,!1),Dt&&(a.swap||n&&n.options.swap)&&c!==Dt&&(t.captureAnimationState(),t!==d&&d.captureAnimationState(),Is(c,Dt),t.animateAll(),t!==d&&d.animateAll())},nulling:function(){Dt=null}},Vt(r,{pluginName:"swap",eventProperties:function(){return{swapItem:Dt}}})}function Is(r,i){var o=r.parentNode,d=i.parentNode,n,c;!o||!d||o.isEqualNode(i)||d.isEqualNode(r)||(n=$e(r),c=$e(i),o.isEqualNode(d)&&n<c&&c++,o.insertBefore(i,o.children[n]),d.insertBefore(r,d.children[c]))}var ce=[],Ct=[],co,Ut,fo=!1,St=!1,Bn=!1,Pe,vo,zo;function Cs(){function r(i){for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));i.options.supportPointer?be(document,"pointerup",this._deselectMultiDrag):(be(document,"mouseup",this._deselectMultiDrag),be(document,"touchend",this._deselectMultiDrag)),be(document,"keydown",this._checkKeyDown),be(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(n,c){var t="";ce.length&&Ut===i?ce.forEach(function(a,s){t+=(s?", ":"")+a.textContent}):t=c.textContent,n.setData("Text",t)}}}return r.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(o){var d=o.dragEl;Pe=d},delayEnded:function(){this.isMultiDrag=~ce.indexOf(Pe)},setupClone:function(o){var d=o.sortable,n=o.cancel;if(this.isMultiDrag){for(var c=0;c<ce.length;c++)Ct.push(Ti(ce[c])),Ct[c].sortableIndex=ce[c].sortableIndex,Ct[c].draggable=!1,Ct[c].style["will-change"]="",Qe(Ct[c],this.options.selectedClass,!1),ce[c]===Pe&&Qe(Ct[c],this.options.chosenClass,!1);d._hideClone(),n()}},clone:function(o){var d=o.sortable,n=o.rootEl,c=o.dispatchSortableEvent,t=o.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ce.length&&Ut===d&&(ga(!0,n),c("clone"),t()))},showClone:function(o){var d=o.cloneNowShown,n=o.rootEl,c=o.cancel;this.isMultiDrag&&(ga(!1,n),Ct.forEach(function(t){te(t,"display","")}),d(),zo=!1,c())},hideClone:function(o){var d=this;o.sortable;var n=o.cloneNowHidden,c=o.cancel;this.isMultiDrag&&(Ct.forEach(function(t){te(t,"display","none"),d.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),zo=!0,c())},dragStartGlobal:function(o){o.sortable,!this.isMultiDrag&&Ut&&Ut.multiDrag._deselectMultiDrag(),ce.forEach(function(d){d.sortableIndex=$e(d)}),ce=ce.sort(function(d,n){return d.sortableIndex-n.sortableIndex}),Bn=!0},dragStarted:function(o){var d=this,n=o.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){ce.forEach(function(t){t!==Pe&&te(t,"position","absolute")});var c=Fe(Pe,!1,!0,!0);ce.forEach(function(t){t!==Pe&&ca(t,c)}),St=!0,fo=!0}n.animateAll(function(){St=!1,fo=!1,d.options.animation&&ce.forEach(function(t){vi(t)}),d.options.sort&&Go()})}},dragOver:function(o){var d=o.target,n=o.completed,c=o.cancel;St&&~ce.indexOf(d)&&(n(!1),c())},revert:function(o){var d=o.fromSortable,n=o.rootEl,c=o.sortable,t=o.dragRect;ce.length>1&&(ce.forEach(function(a){c.addAnimationState({target:a,rect:St?Fe(a):t}),vi(a),a.fromRect=t,d.removeAnimationState(a)}),St=!1,As(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(o){var d=o.sortable,n=o.isOwner,c=o.insertion,t=o.activeSortable,a=o.parentEl,s=o.putSortable,u=this.options;if(c){if(n&&t._hideClone(),fo=!1,u.animation&&ce.length>1&&(St||!n&&!t.options.sort&&!s)){var m=Fe(Pe,!1,!0,!0);ce.forEach(function(h){h!==Pe&&(ca(h,m),a.appendChild(h))}),St=!0}if(!n)if(St||Go(),ce.length>1){var g=zo;t._showClone(d),t.options.animation&&!zo&&g&&Ct.forEach(function(h){t.addAnimationState({target:h,rect:vo}),h.fromRect=vo,h.thisAnimationDuration=null})}else t._showClone(d)}},dragOverAnimationCapture:function(o){var d=o.dragRect,n=o.isOwner,c=o.activeSortable;if(ce.forEach(function(a){a.thisAnimationDuration=null}),c.options.animation&&!n&&c.multiDrag.isMultiDrag){vo=Vt({},d);var t=bn(Pe,!0);vo.top-=t.f,vo.left-=t.e}},dragOverAnimationComplete:function(){St&&(St=!1,Go())},drop:function(o){var d=o.originalEvent,n=o.rootEl,c=o.parentEl,t=o.sortable,a=o.dispatchSortableEvent,s=o.oldIndex,u=o.putSortable,m=u||this.sortable;if(d){var g=this.options,h=c.children;if(!Bn)if(g.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Qe(Pe,g.selectedClass,!~ce.indexOf(Pe)),~ce.indexOf(Pe))ce.splice(ce.indexOf(Pe),1),co=null,po({sortable:t,rootEl:n,name:"deselect",targetEl:Pe});else{if(ce.push(Pe),po({sortable:t,rootEl:n,name:"select",targetEl:Pe}),d.shiftKey&&co&&t.el.contains(co)){var b=$e(co),S=$e(Pe);if(~b&&~S&&b!==S){var E,x;for(S>b?(x=b,E=S):(x=S,E=b+1);x<E;x++)~ce.indexOf(h[x])||(Qe(h[x],g.selectedClass,!0),ce.push(h[x]),po({sortable:t,rootEl:n,name:"select",targetEl:h[x]}))}}else co=Pe;Ut=m}if(Bn&&this.isMultiDrag){if(St=!1,(c[ft].options.sort||c!==n)&&ce.length>1){var O=Fe(Pe),A=$e(Pe,":not(."+this.options.selectedClass+")");if(!fo&&g.animation&&(Pe.thisAnimationDuration=null),m.captureAnimationState(),!fo&&(g.animation&&(Pe.fromRect=O,ce.forEach(function(P){if(P.thisAnimationDuration=null,P!==Pe){var B=St?Fe(P):O;P.fromRect=B,m.addAnimationState({target:P,rect:B})}})),Go(),ce.forEach(function(P){h[A]?c.insertBefore(P,h[A]):c.appendChild(P),A++}),s===$e(Pe))){var V=!1;ce.forEach(function(P){if(P.sortableIndex!==$e(P)){V=!0;return}}),V&&a("update")}ce.forEach(function(P){vi(P)}),m.animateAll()}Ut=m}(n===c||u&&u.lastPutMode!=="clone")&&Ct.forEach(function(P){P.parentNode&&P.parentNode.removeChild(P)})}},nullingGlobal:function(){this.isMultiDrag=Bn=!1,Ct.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ge(document,"pointerup",this._deselectMultiDrag),ge(document,"mouseup",this._deselectMultiDrag),ge(document,"touchend",this._deselectMultiDrag),ge(document,"keydown",this._checkKeyDown),ge(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(o){if(!(typeof Bn<"u"&&Bn)&&Ut===this.sortable&&!(o&&Kt(o.target,this.options.draggable,this.sortable.el,!1))&&!(o&&o.button!==0))for(;ce.length;){var d=ce[0];Qe(d,this.options.selectedClass,!1),ce.shift(),po({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:d})}},_checkKeyDown:function(o){o.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(o){o.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Vt(r,{pluginName:"multiDrag",utils:{select:function(o){var d=o.parentNode[ft];!d||!d.options.multiDrag||~ce.indexOf(o)||(Ut&&Ut!==d&&(Ut.multiDrag._deselectMultiDrag(),Ut=d),Qe(o,d.options.selectedClass,!0),ce.push(o))},deselect:function(o){var d=o.parentNode[ft],n=ce.indexOf(o);!d||!d.options.multiDrag||!~n||(Qe(o,d.options.selectedClass,!1),ce.splice(n,1))}},eventProperties:function(){var o=this,d=[],n=[];return ce.forEach(function(c){d.push({multiDragElement:c,index:c.sortableIndex});var t;St&&c!==Pe?t=-1:St?t=$e(c,":not(."+o.options.selectedClass+")"):t=$e(c),n.push({multiDragElement:c,index:t})}),{items:Hl(ce),clones:[].concat(Ct),oldIndicies:d,newIndicies:n}},optionListeners:{multiDragKey:function(o){return o=o.toLowerCase(),o==="ctrl"?o="Control":o.length>1&&(o=o.charAt(0).toUpperCase()+o.substr(1)),o}}})}function As(r,i){ce.forEach(function(o,d){var n=i.children[o.sortableIndex+(r?Number(d):0)];n?i.insertBefore(o,n):i.appendChild(o)})}function ga(r,i){Ct.forEach(function(o,d){var n=i.children[o.sortableIndex+(r?Number(d):0)];n?i.insertBefore(o,n):i.appendChild(o)})}function Go(){ce.forEach(function(r){r!==Pe&&r.parentNode&&r.parentNode.removeChild(r)})}de.mount(new Es);de.mount(Vi,Di);const ws=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Cs,Sortable:de,Swap:xs,default:de},Symbol.toStringTag,{value:"Module"})),Os=Cl(ws);(function(r,i){(function(d,n){r.exports=n(wl,Os)})(typeof self<"u"?self:Ol,function(o,d){return function(n){var c={};function t(a){if(c[a])return c[a].exports;var s=c[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,t),s.l=!0,s.exports}return t.m=n,t.c=c,t.d=function(a,s,u){t.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:u})},t.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},t.t=function(a,s){if(s&1&&(a=t(a)),s&8||s&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(t.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),s&2&&typeof a!="string")for(var m in a)t.d(u,m,(function(g){return a[g]}).bind(null,m));return u},t.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return t.d(s,"a",s),s},t.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},t.p="",t(t.s="fb15")}({"00ee":function(n,c,t){var a=t("b622"),s=a("toStringTag"),u={};u[s]="z",n.exports=String(u)==="[object z]"},"0366":function(n,c,t){var a=t("1c0b");n.exports=function(s,u,m){if(a(s),u===void 0)return s;switch(m){case 0:return function(){return s.call(u)};case 1:return function(g){return s.call(u,g)};case 2:return function(g,h){return s.call(u,g,h)};case 3:return function(g,h,b){return s.call(u,g,h,b)}}return function(){return s.apply(u,arguments)}}},"057f":function(n,c,t){var a=t("fc6a"),s=t("241c").f,u={}.toString,m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],g=function(h){try{return s(h)}catch{return m.slice()}};n.exports.f=function(b){return m&&u.call(b)=="[object Window]"?g(b):s(a(b))}},"06cf":function(n,c,t){var a=t("83ab"),s=t("d1e7"),u=t("5c6c"),m=t("fc6a"),g=t("c04e"),h=t("5135"),b=t("0cfb"),S=Object.getOwnPropertyDescriptor;c.f=a?S:function(x,O){if(x=m(x),O=g(O,!0),b)try{return S(x,O)}catch{}if(h(x,O))return u(!s.f.call(x,O),x[O])}},"0cfb":function(n,c,t){var a=t("83ab"),s=t("d039"),u=t("cc12");n.exports=!a&&!s(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(n,c,t){var a=t("23e7"),s=t("d58f").left,u=t("a640"),m=t("ae40"),g=u("reduce"),h=m("reduce",{1:0});a({target:"Array",proto:!0,forced:!g||!h},{reduce:function(S){return s(this,S,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(n,c,t){var a=t("c6b6"),s=t("9263");n.exports=function(u,m){var g=u.exec;if(typeof g=="function"){var h=g.call(u,m);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(a(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return s.call(u,m)}},"159b":function(n,c,t){var a=t("da84"),s=t("fdbc"),u=t("17c2"),m=t("9112");for(var g in s){var h=a[g],b=h&&h.prototype;if(b&&b.forEach!==u)try{m(b,"forEach",u)}catch{b.forEach=u}}},"17c2":function(n,c,t){var a=t("b727").forEach,s=t("a640"),u=t("ae40"),m=s("forEach"),g=u("forEach");n.exports=!m||!g?function(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(n,c,t){var a=t("d066");n.exports=a("document","documentElement")},"1c0b":function(n,c){n.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(n,c,t){var a=t("b622"),s=a("iterator"),u=!1;try{var m=0,g={next:function(){return{done:!!m++}},return:function(){u=!0}};g[s]=function(){return this},Array.from(g,function(){throw 2})}catch{}n.exports=function(h,b){if(!b&&!u)return!1;var S=!1;try{var E={};E[s]=function(){return{next:function(){return{done:S=!0}}}},h(E)}catch{}return S}},"1d80":function(n,c){n.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(n,c,t){var a=t("d039"),s=t("b622"),u=t("2d00"),m=s("species");n.exports=function(g){return u>=51||!a(function(){var h=[],b=h.constructor={};return b[m]=function(){return{foo:1}},h[g](Boolean).foo!==1})}},"23cb":function(n,c,t){var a=t("a691"),s=Math.max,u=Math.min;n.exports=function(m,g){var h=a(m);return h<0?s(h+g,0):u(h,g)}},"23e7":function(n,c,t){var a=t("da84"),s=t("06cf").f,u=t("9112"),m=t("6eeb"),g=t("ce4e"),h=t("e893"),b=t("94ca");n.exports=function(S,E){var x=S.target,O=S.global,A=S.stat,V,P,B,K,z,q;if(O?P=a:A?P=a[x]||g(x,{}):P=(a[x]||{}).prototype,P)for(B in E){if(z=E[B],S.noTargetGet?(q=s(P,B),K=q&&q.value):K=P[B],V=b(O?B:x+(A?".":"#")+B,S.forced),!V&&K!==void 0){if(typeof z==typeof K)continue;h(z,K)}(S.sham||K&&K.sham)&&u(z,"sham",!0),m(P,B,z,S)}}},"241c":function(n,c,t){var a=t("ca84"),s=t("7839"),u=s.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(g){return a(g,u)}},"25f0":function(n,c,t){var a=t("6eeb"),s=t("825a"),u=t("d039"),m=t("ad6d"),g="toString",h=RegExp.prototype,b=h[g],S=u(function(){return b.call({source:"a",flags:"b"})!="/a/b"}),E=b.name!=g;(S||E)&&a(RegExp.prototype,g,function(){var O=s(this),A=String(O.source),V=O.flags,P=String(V===void 0&&O instanceof RegExp&&!("flags"in h)?m.call(O):V);return"/"+A+"/"+P},{unsafe:!0})},"2ca0":function(n,c,t){var a=t("23e7"),s=t("06cf").f,u=t("50c4"),m=t("5a34"),g=t("1d80"),h=t("ab13"),b=t("c430"),S="".startsWith,E=Math.min,x=h("startsWith"),O=!b&&!x&&!!function(){var A=s(String.prototype,"startsWith");return A&&!A.writable}();a({target:"String",proto:!0,forced:!O&&!x},{startsWith:function(V){var P=String(g(this));m(V);var B=u(E(arguments.length>1?arguments[1]:void 0,P.length)),K=String(V);return S?S.call(P,K,B):P.slice(B,B+K.length)===K}})},"2d00":function(n,c,t){var a=t("da84"),s=t("342f"),u=a.process,m=u&&u.versions,g=m&&m.v8,h,b;g?(h=g.split("."),b=h[0]+h[1]):s&&(h=s.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=s.match(/Chrome\/(\d+)/),h&&(b=h[1]))),n.exports=b&&+b},"342f":function(n,c,t){var a=t("d066");n.exports=a("navigator","userAgent")||""},"35a1":function(n,c,t){var a=t("f5df"),s=t("3f8c"),u=t("b622"),m=u("iterator");n.exports=function(g){if(g!=null)return g[m]||g["@@iterator"]||s[a(g)]}},"37e8":function(n,c,t){var a=t("83ab"),s=t("9bf2"),u=t("825a"),m=t("df75");n.exports=a?Object.defineProperties:function(h,b){u(h);for(var S=m(b),E=S.length,x=0,O;E>x;)s.f(h,O=S[x++],b[O]);return h}},"3bbe":function(n,c,t){var a=t("861d");n.exports=function(s){if(!a(s)&&s!==null)throw TypeError("Can't set "+String(s)+" as a prototype");return s}},"3ca3":function(n,c,t){var a=t("6547").charAt,s=t("69f3"),u=t("7dd0"),m="String Iterator",g=s.set,h=s.getterFor(m);u(String,"String",function(b){g(this,{type:m,string:String(b),index:0})},function(){var S=h(this),E=S.string,x=S.index,O;return x>=E.length?{value:void 0,done:!0}:(O=a(E,x),S.index+=O.length,{value:O,done:!1})})},"3f8c":function(n,c){n.exports={}},4160:function(n,c,t){var a=t("23e7"),s=t("17c2");a({target:"Array",proto:!0,forced:[].forEach!=s},{forEach:s})},"428f":function(n,c,t){var a=t("da84");n.exports=a},"44ad":function(n,c,t){var a=t("d039"),s=t("c6b6"),u="".split;n.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(m){return s(m)=="String"?u.call(m,""):Object(m)}:Object},"44d2":function(n,c,t){var a=t("b622"),s=t("7c73"),u=t("9bf2"),m=a("unscopables"),g=Array.prototype;g[m]==null&&u.f(g,m,{configurable:!0,value:s(null)}),n.exports=function(h){g[m][h]=!0}},"44e7":function(n,c,t){var a=t("861d"),s=t("c6b6"),u=t("b622"),m=u("match");n.exports=function(g){var h;return a(g)&&((h=g[m])!==void 0?!!h:s(g)=="RegExp")}},4930:function(n,c,t){var a=t("d039");n.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(n,c,t){var a=t("fc6a"),s=t("50c4"),u=t("23cb"),m=function(g){return function(h,b,S){var E=a(h),x=s(E.length),O=u(S,x),A;if(g&&b!=b){for(;x>O;)if(A=E[O++],A!=A)return!0}else for(;x>O;O++)if((g||O in E)&&E[O]===b)return g||O||0;return!g&&-1}};n.exports={includes:m(!0),indexOf:m(!1)}},"4de4":function(n,c,t){var a=t("23e7"),s=t("b727").filter,u=t("1dde"),m=t("ae40"),g=u("filter"),h=m("filter");a({target:"Array",proto:!0,forced:!g||!h},{filter:function(S){return s(this,S,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,c,t){var a=t("0366"),s=t("7b0b"),u=t("9bdd"),m=t("e95a"),g=t("50c4"),h=t("8418"),b=t("35a1");n.exports=function(E){var x=s(E),O=typeof this=="function"?this:Array,A=arguments.length,V=A>1?arguments[1]:void 0,P=V!==void 0,B=b(x),K=0,z,q,k,Y,Z,re;if(P&&(V=a(V,A>2?arguments[2]:void 0,2)),B!=null&&!(O==Array&&m(B)))for(Y=B.call(x),Z=Y.next,q=new O;!(k=Z.call(Y)).done;K++)re=P?u(Y,V,[k.value,K],!0):k.value,h(q,K,re);else for(z=g(x.length),q=new O(z);z>K;K++)re=P?V(x[K],K):x[K],h(q,K,re);return q.length=K,q}},"4fad":function(n,c,t){var a=t("23e7"),s=t("6f53").entries;a({target:"Object",stat:!0},{entries:function(m){return s(m)}})},"50c4":function(n,c,t){var a=t("a691"),s=Math.min;n.exports=function(u){return u>0?s(a(u),9007199254740991):0}},5135:function(n,c){var t={}.hasOwnProperty;n.exports=function(a,s){return t.call(a,s)}},5319:function(n,c,t){var a=t("d784"),s=t("825a"),u=t("7b0b"),m=t("50c4"),g=t("a691"),h=t("1d80"),b=t("8aa5"),S=t("14c3"),E=Math.max,x=Math.min,O=Math.floor,A=/\$([$&'`]|\d\d?|<[^>]*>)/g,V=/\$([$&'`]|\d\d?)/g,P=function(B){return B===void 0?B:String(B)};a("replace",2,function(B,K,z,q){var k=q.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Y=q.REPLACE_KEEPS_$0,Z=k?"$":"$0";return[function(T,ue){var H=h(this),ne=T==null?void 0:T[B];return ne!==void 0?ne.call(T,H,ue):K.call(String(H),T,ue)},function(L,T){if(!k&&Y||typeof T=="string"&&T.indexOf(Z)===-1){var ue=z(K,L,this,T);if(ue.done)return ue.value}var H=s(L),ne=String(this),Ee=typeof T=="function";Ee||(T=String(T));var Te=H.global;if(Te){var Ye=H.unicode;H.lastIndex=0}for(var Ke=[];;){var Me=S(H,ne);if(Me===null||(Ke.push(Me),!Te))break;var we=String(Me[0]);we===""&&(H.lastIndex=b(ne,m(H.lastIndex),Ye))}for(var Xe="",De=0,Ae=0;Ae<Ke.length;Ae++){Me=Ke[Ae];for(var Re=String(Me[0]),st=E(x(g(Me.index),ne.length),0),ot=[],dt=1;dt<Me.length;dt++)ot.push(P(Me[dt]));var ut=Me.groups;if(Ee){var Mt=[Re].concat(ot,st,ne);ut!==void 0&&Mt.push(ut);var qe=String(T.apply(void 0,Mt))}else qe=re(Re,ne,st,ot,ut,T);st>=De&&(Xe+=ne.slice(De,st)+qe,De=st+Re.length)}return Xe+ne.slice(De)}];function re(L,T,ue,H,ne,Ee){var Te=ue+L.length,Ye=H.length,Ke=V;return ne!==void 0&&(ne=u(ne),Ke=A),K.call(Ee,Ke,function(Me,we){var Xe;switch(we.charAt(0)){case"$":return"$";case"&":return L;case"`":return T.slice(0,ue);case"'":return T.slice(Te);case"<":Xe=ne[we.slice(1,-1)];break;default:var De=+we;if(De===0)return Me;if(De>Ye){var Ae=O(De/10);return Ae===0?Me:Ae<=Ye?H[Ae-1]===void 0?we.charAt(1):H[Ae-1]+we.charAt(1):Me}Xe=H[De-1]}return Xe===void 0?"":Xe})}})},5692:function(n,c,t){var a=t("c430"),s=t("c6cd");(n.exports=function(u,m){return s[u]||(s[u]=m!==void 0?m:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(n,c,t){var a=t("d066"),s=t("241c"),u=t("7418"),m=t("825a");n.exports=a("Reflect","ownKeys")||function(h){var b=s.f(m(h)),S=u.f;return S?b.concat(S(h)):b}},"5a34":function(n,c,t){var a=t("44e7");n.exports=function(s){if(a(s))throw TypeError("The method doesn't accept regular expressions");return s}},"5c6c":function(n,c){n.exports=function(t,a){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:a}}},"5db7":function(n,c,t){var a=t("23e7"),s=t("a2bf"),u=t("7b0b"),m=t("50c4"),g=t("1c0b"),h=t("65f0");a({target:"Array",proto:!0},{flatMap:function(S){var E=u(this),x=m(E.length),O;return g(S),O=h(E,0),O.length=s(O,E,E,x,0,1,S,arguments.length>1?arguments[1]:void 0),O}})},6547:function(n,c,t){var a=t("a691"),s=t("1d80"),u=function(m){return function(g,h){var b=String(s(g)),S=a(h),E=b.length,x,O;return S<0||S>=E?m?"":void 0:(x=b.charCodeAt(S),x<55296||x>56319||S+1===E||(O=b.charCodeAt(S+1))<56320||O>57343?m?b.charAt(S):x:m?b.slice(S,S+2):(x-55296<<10)+(O-56320)+65536)}};n.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(n,c,t){var a=t("861d"),s=t("e8b5"),u=t("b622"),m=u("species");n.exports=function(g,h){var b;return s(g)&&(b=g.constructor,typeof b=="function"&&(b===Array||s(b.prototype))?b=void 0:a(b)&&(b=b[m],b===null&&(b=void 0))),new(b===void 0?Array:b)(h===0?0:h)}},"69f3":function(n,c,t){var a=t("7f9a"),s=t("da84"),u=t("861d"),m=t("9112"),g=t("5135"),h=t("f772"),b=t("d012"),S=s.WeakMap,E,x,O,A=function(k){return O(k)?x(k):E(k,{})},V=function(k){return function(Y){var Z;if(!u(Y)||(Z=x(Y)).type!==k)throw TypeError("Incompatible receiver, "+k+" required");return Z}};if(a){var P=new S,B=P.get,K=P.has,z=P.set;E=function(k,Y){return z.call(P,k,Y),Y},x=function(k){return B.call(P,k)||{}},O=function(k){return K.call(P,k)}}else{var q=h("state");b[q]=!0,E=function(k,Y){return m(k,q,Y),Y},x=function(k){return g(k,q)?k[q]:{}},O=function(k){return g(k,q)}}n.exports={set:E,get:x,has:O,enforce:A,getterFor:V}},"6eeb":function(n,c,t){var a=t("da84"),s=t("9112"),u=t("5135"),m=t("ce4e"),g=t("8925"),h=t("69f3"),b=h.get,S=h.enforce,E=String(String).split("String");(n.exports=function(x,O,A,V){var P=V?!!V.unsafe:!1,B=V?!!V.enumerable:!1,K=V?!!V.noTargetGet:!1;if(typeof A=="function"&&(typeof O=="string"&&!u(A,"name")&&s(A,"name",O),S(A).source=E.join(typeof O=="string"?O:"")),x===a){B?x[O]=A:m(O,A);return}else P?!K&&x[O]&&(B=!0):delete x[O];B?x[O]=A:s(x,O,A)})(Function.prototype,"toString",function(){return typeof this=="function"&&b(this).source||g(this)})},"6f53":function(n,c,t){var a=t("83ab"),s=t("df75"),u=t("fc6a"),m=t("d1e7").f,g=function(h){return function(b){for(var S=u(b),E=s(S),x=E.length,O=0,A=[],V;x>O;)V=E[O++],(!a||m.call(S,V))&&A.push(h?[V,S[V]]:S[V]);return A}};n.exports={entries:g(!0),values:g(!1)}},"73d9":function(n,c,t){var a=t("44d2");a("flatMap")},7418:function(n,c){c.f=Object.getOwnPropertySymbols},"746f":function(n,c,t){var a=t("428f"),s=t("5135"),u=t("e538"),m=t("9bf2").f;n.exports=function(g){var h=a.Symbol||(a.Symbol={});s(h,g)||m(h,g,{value:u.f(g)})}},7839:function(n,c){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(n,c,t){var a=t("1d80");n.exports=function(s){return Object(a(s))}},"7c73":function(n,c,t){var a=t("825a"),s=t("37e8"),u=t("7839"),m=t("d012"),g=t("1be4"),h=t("cc12"),b=t("f772"),S=">",E="<",x="prototype",O="script",A=b("IE_PROTO"),V=function(){},P=function(k){return E+O+S+k+E+"/"+O+S},B=function(k){k.write(P("")),k.close();var Y=k.parentWindow.Object;return k=null,Y},K=function(){var k=h("iframe"),Y="java"+O+":",Z;return k.style.display="none",g.appendChild(k),k.src=String(Y),Z=k.contentWindow.document,Z.open(),Z.write(P("document.F=Object")),Z.close(),Z.F},z,q=function(){try{z=document.domain&&new ActiveXObject("htmlfile")}catch{}q=z?B(z):K();for(var k=u.length;k--;)delete q[x][u[k]];return q()};m[A]=!0,n.exports=Object.create||function(Y,Z){var re;return Y!==null?(V[x]=a(Y),re=new V,V[x]=null,re[A]=Y):re=q(),Z===void 0?re:s(re,Z)}},"7dd0":function(n,c,t){var a=t("23e7"),s=t("9ed3"),u=t("e163"),m=t("d2bb"),g=t("d44e"),h=t("9112"),b=t("6eeb"),S=t("b622"),E=t("c430"),x=t("3f8c"),O=t("ae93"),A=O.IteratorPrototype,V=O.BUGGY_SAFARI_ITERATORS,P=S("iterator"),B="keys",K="values",z="entries",q=function(){return this};n.exports=function(k,Y,Z,re,L,T,ue){s(Z,Y,re);var H=function(Ae){if(Ae===L&&Ke)return Ke;if(!V&&Ae in Te)return Te[Ae];switch(Ae){case B:return function(){return new Z(this,Ae)};case K:return function(){return new Z(this,Ae)};case z:return function(){return new Z(this,Ae)}}return function(){return new Z(this)}},ne=Y+" Iterator",Ee=!1,Te=k.prototype,Ye=Te[P]||Te["@@iterator"]||L&&Te[L],Ke=!V&&Ye||H(L),Me=Y=="Array"&&Te.entries||Ye,we,Xe,De;if(Me&&(we=u(Me.call(new k)),A!==Object.prototype&&we.next&&(!E&&u(we)!==A&&(m?m(we,A):typeof we[P]!="function"&&h(we,P,q)),g(we,ne,!0,!0),E&&(x[ne]=q))),L==K&&Ye&&Ye.name!==K&&(Ee=!0,Ke=function(){return Ye.call(this)}),(!E||ue)&&Te[P]!==Ke&&h(Te,P,Ke),x[Y]=Ke,L)if(Xe={values:H(K),keys:T?Ke:H(B),entries:H(z)},ue)for(De in Xe)(V||Ee||!(De in Te))&&b(Te,De,Xe[De]);else a({target:Y,proto:!0,forced:V||Ee},Xe);return Xe}},"7f9a":function(n,c,t){var a=t("da84"),s=t("8925"),u=a.WeakMap;n.exports=typeof u=="function"&&/native code/.test(s(u))},"825a":function(n,c,t){var a=t("861d");n.exports=function(s){if(!a(s))throw TypeError(String(s)+" is not an object");return s}},"83ab":function(n,c,t){var a=t("d039");n.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(n,c,t){var a=t("c04e"),s=t("9bf2"),u=t("5c6c");n.exports=function(m,g,h){var b=a(g);b in m?s.f(m,b,u(0,h)):m[b]=h}},"861d":function(n,c){n.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(n,c,t){var a,s,u;(function(m,g){s=[],a=g,u=typeof a=="function"?a.apply(c,s):a,u!==void 0&&(n.exports=u)})(typeof self<"u"?self:this,function(){function m(){var g=Object.getOwnPropertyDescriptor(document,"currentScript");if(!g&&"currentScript"in document&&document.currentScript||g&&g.get!==m&&document.currentScript)return document.currentScript;try{throw new Error}catch(z){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,b=/@([^@]*):(\d+):(\d+)\s*$/ig,S=h.exec(z.stack)||b.exec(z.stack),E=S&&S[1]||!1,x=S&&S[2]||!1,O=document.location.href.replace(document.location.hash,""),A,V,P,B=document.getElementsByTagName("script");E===O&&(A=document.documentElement.outerHTML,V=new RegExp("(?:[^\\n]+?\\n){0,"+(x-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),P=A.replace(V,"$1").trim());for(var K=0;K<B.length;K++)if(B[K].readyState==="interactive"||B[K].src===E||E===O&&B[K].innerHTML&&B[K].innerHTML.trim()===P)return B[K];return null}}return m})},8925:function(n,c,t){var a=t("c6cd"),s=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return s.call(u)}),n.exports=a.inspectSource},"8aa5":function(n,c,t){var a=t("6547").charAt;n.exports=function(s,u,m){return u+(m?a(s,u).length:1)}},"8bbf":function(n,c){n.exports=o},"90e3":function(n,c){var t=0,a=Math.random();n.exports=function(s){return"Symbol("+String(s===void 0?"":s)+")_"+(++t+a).toString(36)}},9112:function(n,c,t){var a=t("83ab"),s=t("9bf2"),u=t("5c6c");n.exports=a?function(m,g,h){return s.f(m,g,u(1,h))}:function(m,g,h){return m[g]=h,m}},9263:function(n,c,t){var a=t("ad6d"),s=t("9f7f"),u=RegExp.prototype.exec,m=String.prototype.replace,g=u,h=function(){var x=/a/,O=/b*/g;return u.call(x,"a"),u.call(O,"a"),x.lastIndex!==0||O.lastIndex!==0}(),b=s.UNSUPPORTED_Y||s.BROKEN_CARET,S=/()??/.exec("")[1]!==void 0,E=h||S||b;E&&(g=function(O){var A=this,V,P,B,K,z=b&&A.sticky,q=a.call(A),k=A.source,Y=0,Z=O;return z&&(q=q.replace("y",""),q.indexOf("g")===-1&&(q+="g"),Z=String(O).slice(A.lastIndex),A.lastIndex>0&&(!A.multiline||A.multiline&&O[A.lastIndex-1]!==`
  8. `)&&(k="(?: "+k+")",Z=" "+Z,Y++),P=new RegExp("^(?:"+k+")",q)),S&&(P=new RegExp("^"+k+"$(?!\\s)",q)),h&&(V=A.lastIndex),B=u.call(z?P:A,Z),z?B?(B.input=B.input.slice(Y),B[0]=B[0].slice(Y),B.index=A.lastIndex,A.lastIndex+=B[0].length):A.lastIndex=0:h&&B&&(A.lastIndex=A.global?B.index+B[0].length:V),S&&B&&B.length>1&&m.call(B[0],P,function(){for(K=1;K<arguments.length-2;K++)arguments[K]===void 0&&(B[K]=void 0)}),B}),n.exports=g},"94ca":function(n,c,t){var a=t("d039"),s=/#|\.prototype\./,u=function(S,E){var x=g[m(S)];return x==b?!0:x==h?!1:typeof E=="function"?a(E):!!E},m=u.normalize=function(S){return String(S).replace(s,".").toLowerCase()},g=u.data={},h=u.NATIVE="N",b=u.POLYFILL="P";n.exports=u},"99af":function(n,c,t){var a=t("23e7"),s=t("d039"),u=t("e8b5"),m=t("861d"),g=t("7b0b"),h=t("50c4"),b=t("8418"),S=t("65f0"),E=t("1dde"),x=t("b622"),O=t("2d00"),A=x("isConcatSpreadable"),V=9007199254740991,P="Maximum allowed index exceeded",B=O>=51||!s(function(){var k=[];return k[A]=!1,k.concat()[0]!==k}),K=E("concat"),z=function(k){if(!m(k))return!1;var Y=k[A];return Y!==void 0?!!Y:u(k)},q=!B||!K;a({target:"Array",proto:!0,forced:q},{concat:function(Y){var Z=g(this),re=S(Z,0),L=0,T,ue,H,ne,Ee;for(T=-1,H=arguments.length;T<H;T++)if(Ee=T===-1?Z:arguments[T],z(Ee)){if(ne=h(Ee.length),L+ne>V)throw TypeError(P);for(ue=0;ue<ne;ue++,L++)ue in Ee&&b(re,L,Ee[ue])}else{if(L>=V)throw TypeError(P);b(re,L++,Ee)}return re.length=L,re}})},"9bdd":function(n,c,t){var a=t("825a");n.exports=function(s,u,m,g){try{return g?u(a(m)[0],m[1]):u(m)}catch(b){var h=s.return;throw h!==void 0&&a(h.call(s)),b}}},"9bf2":function(n,c,t){var a=t("83ab"),s=t("0cfb"),u=t("825a"),m=t("c04e"),g=Object.defineProperty;c.f=a?g:function(b,S,E){if(u(b),S=m(S,!0),u(E),s)try{return g(b,S,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported");return"value"in E&&(b[S]=E.value),b}},"9ed3":function(n,c,t){var a=t("ae93").IteratorPrototype,s=t("7c73"),u=t("5c6c"),m=t("d44e"),g=t("3f8c"),h=function(){return this};n.exports=function(b,S,E){var x=S+" Iterator";return b.prototype=s(a,{next:u(1,E)}),m(b,x,!1,!0),g[x]=h,b}},"9f7f":function(n,c,t){var a=t("d039");function s(u,m){return RegExp(u,m)}c.UNSUPPORTED_Y=a(function(){var u=s("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),c.BROKEN_CARET=a(function(){var u=s("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(n,c,t){var a=t("e8b5"),s=t("50c4"),u=t("0366"),m=function(g,h,b,S,E,x,O,A){for(var V=E,P=0,B=O?u(O,A,3):!1,K;P<S;){if(P in b){if(K=B?B(b[P],P,h):b[P],x>0&&a(K))V=m(g,h,K,s(K.length),V,x-1)-1;else{if(V>=9007199254740991)throw TypeError("Exceed the acceptable array length");g[V]=K}V++}P++}return V};n.exports=m},a352:function(n,c){n.exports=d},a434:function(n,c,t){var a=t("23e7"),s=t("23cb"),u=t("a691"),m=t("50c4"),g=t("7b0b"),h=t("65f0"),b=t("8418"),S=t("1dde"),E=t("ae40"),x=S("splice"),O=E("splice",{ACCESSORS:!0,0:0,1:2}),A=Math.max,V=Math.min,P=9007199254740991,B="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!x||!O},{splice:function(z,q){var k=g(this),Y=m(k.length),Z=s(z,Y),re=arguments.length,L,T,ue,H,ne,Ee;if(re===0?L=T=0:re===1?(L=0,T=Y-Z):(L=re-2,T=V(A(u(q),0),Y-Z)),Y+L-T>P)throw TypeError(B);for(ue=h(k,T),H=0;H<T;H++)ne=Z+H,ne in k&&b(ue,H,k[ne]);if(ue.length=T,L<T){for(H=Z;H<Y-T;H++)ne=H+T,Ee=H+L,ne in k?k[Ee]=k[ne]:delete k[Ee];for(H=Y;H>Y-T+L;H--)delete k[H-1]}else if(L>T)for(H=Y-T;H>Z;H--)ne=H+T-1,Ee=H+L-1,ne in k?k[Ee]=k[ne]:delete k[Ee];for(H=0;H<L;H++)k[H+Z]=arguments[H+2];return k.length=Y-T+L,ue}})},a4d3:function(n,c,t){var a=t("23e7"),s=t("da84"),u=t("d066"),m=t("c430"),g=t("83ab"),h=t("4930"),b=t("fdbf"),S=t("d039"),E=t("5135"),x=t("e8b5"),O=t("861d"),A=t("825a"),V=t("7b0b"),P=t("fc6a"),B=t("c04e"),K=t("5c6c"),z=t("7c73"),q=t("df75"),k=t("241c"),Y=t("057f"),Z=t("7418"),re=t("06cf"),L=t("9bf2"),T=t("d1e7"),ue=t("9112"),H=t("6eeb"),ne=t("5692"),Ee=t("f772"),Te=t("d012"),Ye=t("90e3"),Ke=t("b622"),Me=t("e538"),we=t("746f"),Xe=t("d44e"),De=t("69f3"),Ae=t("b727").forEach,Re=Ee("hidden"),st="Symbol",ot="prototype",dt=Ke("toPrimitive"),ut=De.set,Mt=De.getterFor(st),qe=Object[ot],_e=s.Symbol,Ft=u("JSON","stringify"),wt=re.f,Ot=L.f,Sn=Y.f,Fn=T.f,Et=ne("symbols"),Bt=ne("op-symbols"),Jt=ne("string-to-symbol-registry"),rn=ne("symbol-to-string-registry"),ln=ne("wks"),sn=s.QObject,dn=!sn||!sn[ot]||!sn[ot].findChild,un=g&&S(function(){return z(Ot({},"a",{get:function(){return Ot(this,"a",{value:7}).a}})).a!=7})?function(se,J,ae){var he=wt(qe,J);he&&delete qe[J],Ot(se,J,ae),he&&se!==qe&&Ot(qe,J,he)}:Ot,Wt=function(se,J){var ae=Et[se]=z(_e[ot]);return ut(ae,{type:st,tag:se,description:J}),g||(ae.description=J),ae},w=b?function(se){return typeof se=="symbol"}:function(se){return Object(se)instanceof _e},C=function(J,ae,he){J===qe&&C(Bt,ae,he),A(J);var Se=B(ae,!0);return A(he),E(Et,Se)?(he.enumerable?(E(J,Re)&&J[Re][Se]&&(J[Re][Se]=!1),he=z(he,{enumerable:K(0,!1)})):(E(J,Re)||Ot(J,Re,K(1,{})),J[Re][Se]=!0),un(J,Se,he)):Ot(J,Se,he)},D=function(J,ae){A(J);var he=P(ae),Se=q(he).concat(xe(he));return Ae(Se,function(it){(!g||ee.call(he,it))&&C(J,it,he[it])}),J},N=function(J,ae){return ae===void 0?z(J):D(z(J),ae)},ee=function(J){var ae=B(J,!0),he=Fn.call(this,ae);return this===qe&&E(Et,ae)&&!E(Bt,ae)?!1:he||!E(this,ae)||!E(Et,ae)||E(this,Re)&&this[Re][ae]?he:!0},le=function(J,ae){var he=P(J),Se=B(ae,!0);if(!(he===qe&&E(Et,Se)&&!E(Bt,Se))){var it=wt(he,Se);return it&&E(Et,Se)&&!(E(he,Re)&&he[Re][Se])&&(it.enumerable=!0),it}},fe=function(J){var ae=Sn(P(J)),he=[];return Ae(ae,function(Se){!E(Et,Se)&&!E(Te,Se)&&he.push(Se)}),he},xe=function(J){var ae=J===qe,he=Sn(ae?Bt:P(J)),Se=[];return Ae(he,function(it){E(Et,it)&&(!ae||E(qe,it))&&Se.push(Et[it])}),Se};if(h||(_e=function(){if(this instanceof _e)throw TypeError("Symbol is not a constructor");var J=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ae=Ye(J),he=function(Se){this===qe&&he.call(Bt,Se),E(this,Re)&&E(this[Re],ae)&&(this[Re][ae]=!1),un(this,ae,K(1,Se))};return g&&dn&&un(qe,ae,{configurable:!0,set:he}),Wt(ae,J)},H(_e[ot],"toString",function(){return Mt(this).tag}),H(_e,"withoutSetter",function(se){return Wt(Ye(se),se)}),T.f=ee,L.f=C,re.f=le,k.f=Y.f=fe,Z.f=xe,Me.f=function(se){return Wt(Ke(se),se)},g&&(Ot(_e[ot],"description",{configurable:!0,get:function(){return Mt(this).description}}),m||H(qe,"propertyIsEnumerable",ee,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:_e}),Ae(q(ln),function(se){we(se)}),a({target:st,stat:!0,forced:!h},{for:function(se){var J=String(se);if(E(Jt,J))return Jt[J];var ae=_e(J);return Jt[J]=ae,rn[ae]=J,ae},keyFor:function(J){if(!w(J))throw TypeError(J+" is not a symbol");if(E(rn,J))return rn[J]},useSetter:function(){dn=!0},useSimple:function(){dn=!1}}),a({target:"Object",stat:!0,forced:!h,sham:!g},{create:N,defineProperty:C,defineProperties:D,getOwnPropertyDescriptor:le}),a({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:fe,getOwnPropertySymbols:xe}),a({target:"Object",stat:!0,forced:S(function(){Z.f(1)})},{getOwnPropertySymbols:function(J){return Z.f(V(J))}}),Ft){var Le=!h||S(function(){var se=_e();return Ft([se])!="[null]"||Ft({a:se})!="{}"||Ft(Object(se))!="{}"});a({target:"JSON",stat:!0,forced:Le},{stringify:function(J,ae,he){for(var Se=[J],it=1,Ln;arguments.length>it;)Se.push(arguments[it++]);if(Ln=ae,!(!O(ae)&&J===void 0||w(J)))return x(ae)||(ae=function(Ao,En){if(typeof Ln=="function"&&(En=Ln.call(this,Ao,En)),!w(En))return En}),Se[1]=ae,Ft.apply(null,Se)}})}_e[ot][dt]||ue(_e[ot],dt,_e[ot].valueOf),Xe(_e,st),Te[Re]=!0},a630:function(n,c,t){var a=t("23e7"),s=t("4df4"),u=t("1c7e"),m=!u(function(g){Array.from(g)});a({target:"Array",stat:!0,forced:m},{from:s})},a640:function(n,c,t){var a=t("d039");n.exports=function(s,u){var m=[][s];return!!m&&a(function(){m.call(null,u||function(){throw 1},1)})}},a691:function(n,c){var t=Math.ceil,a=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?a:t)(s)}},ab13:function(n,c,t){var a=t("b622"),s=a("match");n.exports=function(u){var m=/./;try{"/./"[u](m)}catch{try{return m[s]=!1,"/./"[u](m)}catch{}}return!1}},ac1f:function(n,c,t){var a=t("23e7"),s=t("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},ad6d:function(n,c,t){var a=t("825a");n.exports=function(){var s=a(this),u="";return s.global&&(u+="g"),s.ignoreCase&&(u+="i"),s.multiline&&(u+="m"),s.dotAll&&(u+="s"),s.unicode&&(u+="u"),s.sticky&&(u+="y"),u}},ae40:function(n,c,t){var a=t("83ab"),s=t("d039"),u=t("5135"),m=Object.defineProperty,g={},h=function(b){throw b};n.exports=function(b,S){if(u(g,b))return g[b];S||(S={});var E=[][b],x=u(S,"ACCESSORS")?S.ACCESSORS:!1,O=u(S,0)?S[0]:h,A=u(S,1)?S[1]:void 0;return g[b]=!!E&&!s(function(){if(x&&!a)return!0;var V={length:-1};x?m(V,1,{enumerable:!0,get:h}):V[1]=1,E.call(V,O,A)})}},ae93:function(n,c,t){var a=t("e163"),s=t("9112"),u=t("5135"),m=t("b622"),g=t("c430"),h=m("iterator"),b=!1,S=function(){return this},E,x,O;[].keys&&(O=[].keys(),"next"in O?(x=a(a(O)),x!==Object.prototype&&(E=x)):b=!0),E==null&&(E={}),!g&&!u(E,h)&&s(E,h,S),n.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:b}},b041:function(n,c,t){var a=t("00ee"),s=t("f5df");n.exports=a?{}.toString:function(){return"[object "+s(this)+"]"}},b0c0:function(n,c,t){var a=t("83ab"),s=t("9bf2").f,u=Function.prototype,m=u.toString,g=/^\s*function ([^ (]*)/,h="name";a&&!(h in u)&&s(u,h,{configurable:!0,get:function(){try{return m.call(this).match(g)[1]}catch{return""}}})},b622:function(n,c,t){var a=t("da84"),s=t("5692"),u=t("5135"),m=t("90e3"),g=t("4930"),h=t("fdbf"),b=s("wks"),S=a.Symbol,E=h?S:S&&S.withoutSetter||m;n.exports=function(x){return u(b,x)||(g&&u(S,x)?b[x]=S[x]:b[x]=E("Symbol."+x)),b[x]}},b64b:function(n,c,t){var a=t("23e7"),s=t("7b0b"),u=t("df75"),m=t("d039"),g=m(function(){u(1)});a({target:"Object",stat:!0,forced:g},{keys:function(b){return u(s(b))}})},b727:function(n,c,t){var a=t("0366"),s=t("44ad"),u=t("7b0b"),m=t("50c4"),g=t("65f0"),h=[].push,b=function(S){var E=S==1,x=S==2,O=S==3,A=S==4,V=S==6,P=S==5||V;return function(B,K,z,q){for(var k=u(B),Y=s(k),Z=a(K,z,3),re=m(Y.length),L=0,T=q||g,ue=E?T(B,re):x?T(B,0):void 0,H,ne;re>L;L++)if((P||L in Y)&&(H=Y[L],ne=Z(H,L,k),S)){if(E)ue[L]=ne;else if(ne)switch(S){case 3:return!0;case 5:return H;case 6:return L;case 2:h.call(ue,H)}else if(A)return!1}return V?-1:O||A?A:ue}};n.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6)}},c04e:function(n,c,t){var a=t("861d");n.exports=function(s,u){if(!a(s))return s;var m,g;if(u&&typeof(m=s.toString)=="function"&&!a(g=m.call(s))||typeof(m=s.valueOf)=="function"&&!a(g=m.call(s))||!u&&typeof(m=s.toString)=="function"&&!a(g=m.call(s)))return g;throw TypeError("Can't convert object to primitive value")}},c430:function(n,c){n.exports=!1},c6b6:function(n,c){var t={}.toString;n.exports=function(a){return t.call(a).slice(8,-1)}},c6cd:function(n,c,t){var a=t("da84"),s=t("ce4e"),u="__core-js_shared__",m=a[u]||s(u,{});n.exports=m},c740:function(n,c,t){var a=t("23e7"),s=t("b727").findIndex,u=t("44d2"),m=t("ae40"),g="findIndex",h=!0,b=m(g);g in[]&&Array(1)[g](function(){h=!1}),a({target:"Array",proto:!0,forced:h||!b},{findIndex:function(E){return s(this,E,arguments.length>1?arguments[1]:void 0)}}),u(g)},c8ba:function(n,c){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{typeof window=="object"&&(t=window)}n.exports=t},c975:function(n,c,t){var a=t("23e7"),s=t("4d64").indexOf,u=t("a640"),m=t("ae40"),g=[].indexOf,h=!!g&&1/[1].indexOf(1,-0)<0,b=u("indexOf"),S=m("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:h||!b||!S},{indexOf:function(x){return h?g.apply(this,arguments)||0:s(this,x,arguments.length>1?arguments[1]:void 0)}})},ca84:function(n,c,t){var a=t("5135"),s=t("fc6a"),u=t("4d64").indexOf,m=t("d012");n.exports=function(g,h){var b=s(g),S=0,E=[],x;for(x in b)!a(m,x)&&a(b,x)&&E.push(x);for(;h.length>S;)a(b,x=h[S++])&&(~u(E,x)||E.push(x));return E}},caad:function(n,c,t){var a=t("23e7"),s=t("4d64").includes,u=t("44d2"),m=t("ae40"),g=m("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!g},{includes:function(b){return s(this,b,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(n,c,t){var a=t("da84"),s=t("861d"),u=a.document,m=s(u)&&s(u.createElement);n.exports=function(g){return m?u.createElement(g):{}}},ce4e:function(n,c,t){var a=t("da84"),s=t("9112");n.exports=function(u,m){try{s(a,u,m)}catch{a[u]=m}return m}},d012:function(n,c){n.exports={}},d039:function(n,c){n.exports=function(t){try{return!!t()}catch{return!0}}},d066:function(n,c,t){var a=t("428f"),s=t("da84"),u=function(m){return typeof m=="function"?m:void 0};n.exports=function(m,g){return arguments.length<2?u(a[m])||u(s[m]):a[m]&&a[m][g]||s[m]&&s[m][g]}},d1e7:function(n,c,t){var a={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,u=s&&!a.call({1:2},1);c.f=u?function(g){var h=s(this,g);return!!h&&h.enumerable}:a},d28b:function(n,c,t){var a=t("746f");a("iterator")},d2bb:function(n,c,t){var a=t("825a"),s=t("3bbe");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,m={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(m,[]),u=m instanceof Array}catch{}return function(b,S){return a(b),s(S),u?g.call(b,S):b.__proto__=S,b}}():void 0)},d3b7:function(n,c,t){var a=t("00ee"),s=t("6eeb"),u=t("b041");a||s(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(n,c,t){var a=t("9bf2").f,s=t("5135"),u=t("b622"),m=u("toStringTag");n.exports=function(g,h,b){g&&!s(g=b?g:g.prototype,m)&&a(g,m,{configurable:!0,value:h})}},d58f:function(n,c,t){var a=t("1c0b"),s=t("7b0b"),u=t("44ad"),m=t("50c4"),g=function(h){return function(b,S,E,x){a(S);var O=s(b),A=u(O),V=m(O.length),P=h?V-1:0,B=h?-1:1;if(E<2)for(;;){if(P in A){x=A[P],P+=B;break}if(P+=B,h?P<0:V<=P)throw TypeError("Reduce of empty array with no initial value")}for(;h?P>=0:V>P;P+=B)P in A&&(x=S(x,A[P],P,O));return x}};n.exports={left:g(!1),right:g(!0)}},d784:function(n,c,t){t("ac1f");var a=t("6eeb"),s=t("d039"),u=t("b622"),m=t("9263"),g=t("9112"),h=u("species"),b=!s(function(){var A=/./;return A.exec=function(){var V=[];return V.groups={a:"7"},V},"".replace(A,"$<a>")!=="7"}),S=function(){return"a".replace(/./,"$0")==="$0"}(),E=u("replace"),x=function(){return/./[E]?/./[E]("a","$0")==="":!1}(),O=!s(function(){var A=/(?:)/,V=A.exec;A.exec=function(){return V.apply(this,arguments)};var P="ab".split(A);return P.length!==2||P[0]!=="a"||P[1]!=="b"});n.exports=function(A,V,P,B){var K=u(A),z=!s(function(){var L={};return L[K]=function(){return 7},""[A](L)!=7}),q=z&&!s(function(){var L=!1,T=/a/;return A==="split"&&(T={},T.constructor={},T.constructor[h]=function(){return T},T.flags="",T[K]=/./[K]),T.exec=function(){return L=!0,null},T[K](""),!L});if(!z||!q||A==="replace"&&!(b&&S&&!x)||A==="split"&&!O){var k=/./[K],Y=P(K,""[A],function(L,T,ue,H,ne){return T.exec===m?z&&!ne?{done:!0,value:k.call(T,ue,H)}:{done:!0,value:L.call(ue,T,H)}:{done:!1}},{REPLACE_KEEPS_$0:S,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:x}),Z=Y[0],re=Y[1];a(String.prototype,A,Z),a(RegExp.prototype,K,V==2?function(L,T){return re.call(L,this,T)}:function(L){return re.call(L,this)})}B&&g(RegExp.prototype[K],"sham",!0)}},d81d:function(n,c,t){var a=t("23e7"),s=t("b727").map,u=t("1dde"),m=t("ae40"),g=u("map"),h=m("map");a({target:"Array",proto:!0,forced:!g||!h},{map:function(S){return s(this,S,arguments.length>1?arguments[1]:void 0)}})},da84:function(n,c,t){(function(a){var s=function(u){return u&&u.Math==Math&&u};n.exports=s(typeof globalThis=="object"&&globalThis)||s(typeof window=="object"&&window)||s(typeof self=="object"&&self)||s(typeof a=="object"&&a)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(n,c,t){var a=t("23e7"),s=t("83ab"),u=t("56ef"),m=t("fc6a"),g=t("06cf"),h=t("8418");a({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(S){for(var E=m(S),x=g.f,O=u(E),A={},V=0,P,B;O.length>V;)B=x(E,P=O[V++]),B!==void 0&&h(A,P,B);return A}})},dbf1:function(n,c,t){(function(a){t.d(c,"a",function(){return u});function s(){return typeof window<"u"?window.console:a.console}var u=s()}).call(this,t("c8ba"))},ddb0:function(n,c,t){var a=t("da84"),s=t("fdbc"),u=t("e260"),m=t("9112"),g=t("b622"),h=g("iterator"),b=g("toStringTag"),S=u.values;for(var E in s){var x=a[E],O=x&&x.prototype;if(O){if(O[h]!==S)try{m(O,h,S)}catch{O[h]=S}if(O[b]||m(O,b,E),s[E]){for(var A in u)if(O[A]!==u[A])try{m(O,A,u[A])}catch{O[A]=u[A]}}}}},df75:function(n,c,t){var a=t("ca84"),s=t("7839");n.exports=Object.keys||function(m){return a(m,s)}},e01a:function(n,c,t){var a=t("23e7"),s=t("83ab"),u=t("da84"),m=t("5135"),g=t("861d"),h=t("9bf2").f,b=t("e893"),S=u.Symbol;if(s&&typeof S=="function"&&(!("description"in S.prototype)||S().description!==void 0)){var E={},x=function(){var K=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),z=this instanceof x?new S(K):K===void 0?S():S(K);return K===""&&(E[z]=!0),z};b(x,S);var O=x.prototype=S.prototype;O.constructor=x;var A=O.toString,V=String(S("test"))=="Symbol(test)",P=/^Symbol\((.*)\)[^)]+$/;h(O,"description",{configurable:!0,get:function(){var K=g(this)?this.valueOf():this,z=A.call(K);if(m(E,K))return"";var q=V?z.slice(7,-1):z.replace(P,"$1");return q===""?void 0:q}}),a({global:!0,forced:!0},{Symbol:x})}},e163:function(n,c,t){var a=t("5135"),s=t("7b0b"),u=t("f772"),m=t("e177"),g=u("IE_PROTO"),h=Object.prototype;n.exports=m?Object.getPrototypeOf:function(b){return b=s(b),a(b,g)?b[g]:typeof b.constructor=="function"&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?h:null}},e177:function(n,c,t){var a=t("d039");n.exports=!a(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})},e260:function(n,c,t){var a=t("fc6a"),s=t("44d2"),u=t("3f8c"),m=t("69f3"),g=t("7dd0"),h="Array Iterator",b=m.set,S=m.getterFor(h);n.exports=g(Array,"Array",function(E,x){b(this,{type:h,target:a(E),index:0,kind:x})},function(){var E=S(this),x=E.target,O=E.kind,A=E.index++;return!x||A>=x.length?(E.target=void 0,{value:void 0,done:!0}):O=="keys"?{value:A,done:!1}:O=="values"?{value:x[A],done:!1}:{value:[A,x[A]],done:!1}},"values"),u.Arguments=u.Array,s("keys"),s("values"),s("entries")},e439:function(n,c,t){var a=t("23e7"),s=t("d039"),u=t("fc6a"),m=t("06cf").f,g=t("83ab"),h=s(function(){m(1)}),b=!g||h;a({target:"Object",stat:!0,forced:b,sham:!g},{getOwnPropertyDescriptor:function(E,x){return m(u(E),x)}})},e538:function(n,c,t){var a=t("b622");c.f=a},e893:function(n,c,t){var a=t("5135"),s=t("56ef"),u=t("06cf"),m=t("9bf2");n.exports=function(g,h){for(var b=s(h),S=m.f,E=u.f,x=0;x<b.length;x++){var O=b[x];a(g,O)||S(g,O,E(h,O))}}},e8b5:function(n,c,t){var a=t("c6b6");n.exports=Array.isArray||function(u){return a(u)=="Array"}},e95a:function(n,c,t){var a=t("b622"),s=t("3f8c"),u=a("iterator"),m=Array.prototype;n.exports=function(g){return g!==void 0&&(s.Array===g||m[u]===g)}},f5df:function(n,c,t){var a=t("00ee"),s=t("c6b6"),u=t("b622"),m=u("toStringTag"),g=s(function(){return arguments}())=="Arguments",h=function(b,S){try{return b[S]}catch{}};n.exports=a?s:function(b){var S,E,x;return b===void 0?"Undefined":b===null?"Null":typeof(E=h(S=Object(b),m))=="string"?E:g?s(S):(x=s(S))=="Object"&&typeof S.callee=="function"?"Arguments":x}},f772:function(n,c,t){var a=t("5692"),s=t("90e3"),u=a("keys");n.exports=function(m){return u[m]||(u[m]=s(m))}},fb15:function(n,c,t){if(t.r(c),typeof window<"u"){var a=window.document.currentScript;{var s=t("8875");a=s(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:s})}var u=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(t.p=u[1])}t("99af"),t("4de4"),t("4160"),t("c975"),t("d81d"),t("a434"),t("159b"),t("a4d3"),t("e439"),t("dbb4"),t("b64b");function m(w,C,D){return C in w?Object.defineProperty(w,C,{value:D,enumerable:!0,configurable:!0,writable:!0}):w[C]=D,w}function g(w,C){var D=Object.keys(w);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(w);C&&(N=N.filter(function(ee){return Object.getOwnPropertyDescriptor(w,ee).enumerable})),D.push.apply(D,N)}return D}function h(w){for(var C=1;C<arguments.length;C++){var D=arguments[C]!=null?arguments[C]:{};C%2?g(Object(D),!0).forEach(function(N){m(w,N,D[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(D)):g(Object(D)).forEach(function(N){Object.defineProperty(w,N,Object.getOwnPropertyDescriptor(D,N))})}return w}function b(w){if(Array.isArray(w))return w}t("e01a"),t("d28b"),t("e260"),t("d3b7"),t("3ca3"),t("ddb0");function S(w,C){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(w)))){var D=[],N=!0,ee=!1,le=void 0;try{for(var fe=w[Symbol.iterator](),xe;!(N=(xe=fe.next()).done)&&(D.push(xe.value),!(C&&D.length===C));N=!0);}catch(Le){ee=!0,le=Le}finally{try{!N&&fe.return!=null&&fe.return()}finally{if(ee)throw le}}return D}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function E(w,C){(C==null||C>w.length)&&(C=w.length);for(var D=0,N=new Array(C);D<C;D++)N[D]=w[D];return N}function x(w,C){if(w){if(typeof w=="string")return E(w,C);var D=Object.prototype.toString.call(w).slice(8,-1);if(D==="Object"&&w.constructor&&(D=w.constructor.name),D==="Map"||D==="Set")return Array.from(w);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return E(w,C)}}function O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  9. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(w,C){return b(w)||S(w,C)||x(w,C)||O()}function V(w){if(Array.isArray(w))return E(w)}function P(w){if(typeof Symbol<"u"&&Symbol.iterator in Object(w))return Array.from(w)}function B(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  10. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K(w){return V(w)||P(w)||x(w)||B()}var z=t("a352"),q=t.n(z);function k(w){w.parentElement!==null&&w.parentElement.removeChild(w)}function Y(w,C,D){var N=D===0?w.children[0]:w.children[D-1].nextSibling;w.insertBefore(C,N)}var Z=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function re(w){var C=Object.create(null);return function(N){var ee=C[N];return ee||(C[N]=w(N))}}var L=/-(\w)/g,T=re(function(w){return w.replace(L,function(C,D){return D.toUpperCase()})});t("5db7"),t("73d9");var ue=["Start","Add","Remove","Update","End"],H=["Choose","Unchoose","Sort","Filter","Clone"],ne=["Move"],Ee=[ne,ue,H].flatMap(function(w){return w}).map(function(w){return"on".concat(w)}),Te={manage:ne,manageAndEmit:ue,emit:H};function Ye(w){return Ee.indexOf(w)!==-1}t("caad"),t("2ca0");var Ke=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Me(w){return Ke.includes(w)}function we(w){return["transition-group","TransitionGroup"].includes(w)}function Xe(w){return["id","class","role","style"].includes(w)||w.startsWith("data-")||w.startsWith("aria-")||w.startsWith("on")}function De(w){return w.reduce(function(C,D){var N=A(D,2),ee=N[0],le=N[1];return C[ee]=le,C},{})}function Ae(w){var C=w.$attrs,D=w.componentData,N=D===void 0?{}:D,ee=De(Object.entries(C).filter(function(le){var fe=A(le,2),xe=fe[0];return fe[1],Xe(xe)}));return h(h({},ee),N)}function Re(w){var C=w.$attrs,D=w.callBackBuilder,N=De(st(C));Object.entries(D).forEach(function(le){var fe=A(le,2),xe=fe[0],Le=fe[1];Te[xe].forEach(function(se){N["on".concat(se)]=Le(se)})});var ee="[data-draggable]".concat(N.draggable||"");return h(h({},N),{},{draggable:ee})}function st(w){return Object.entries(w).filter(function(C){var D=A(C,2),N=D[0];return D[1],!Xe(N)}).map(function(C){var D=A(C,2),N=D[0],ee=D[1];return[T(N),ee]}).filter(function(C){var D=A(C,2),N=D[0];return D[1],!Ye(N)})}t("c740");function ot(w,C){if(!(w instanceof C))throw new TypeError("Cannot call a class as a function")}function dt(w,C){for(var D=0;D<C.length;D++){var N=C[D];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(w,N.key,N)}}function ut(w,C,D){return C&&dt(w.prototype,C),w}var Mt=function(C){var D=C.el;return D},qe=function(C,D){return C.__draggable_context=D},_e=function(C){return C.__draggable_context},Ft=function(){function w(C){var D=C.nodes,N=D.header,ee=D.default,le=D.footer,fe=C.root,xe=C.realList;ot(this,w),this.defaultNodes=ee,this.children=[].concat(K(N),K(ee),K(le)),this.externalComponent=fe.externalComponent,this.rootTransition=fe.transition,this.tag=fe.tag,this.realList=xe}return ut(w,[{key:"render",value:function(D,N){var ee=this.tag,le=this.children,fe=this._isRootComponent,xe=fe?{default:function(){return le}}:le;return D(ee,N,xe)}},{key:"updated",value:function(){var D=this.defaultNodes,N=this.realList;D.forEach(function(ee,le){qe(Mt(ee),{element:N[le],index:le})})}},{key:"getUnderlyingVm",value:function(D){return _e(D)}},{key:"getVmIndexFromDomIndex",value:function(D,N){var ee=this.defaultNodes,le=ee.length,fe=N.children,xe=fe.item(D);if(xe===null)return le;var Le=_e(xe);if(Le)return Le.index;if(le===0)return 0;var se=Mt(ee[0]),J=K(fe).findIndex(function(ae){return ae===se});return D<J?0:le}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),w}(),wt=t("8bbf");function Ot(w,C){var D=w[C];return D?D():[]}function Sn(w){var C=w.$slots,D=w.realList,N=w.getKey,ee=D||[],le=["header","footer"].map(function(ae){return Ot(C,ae)}),fe=A(le,2),xe=fe[0],Le=fe[1],se=C.item;if(!se)throw new Error("draggable element must have an item slot");var J=ee.flatMap(function(ae,he){return se({element:ae,index:he}).map(function(Se){return Se.key=N(ae),Se.props=h(h({},Se.props||{}),{},{"data-draggable":!0}),Se})});if(J.length!==ee.length)throw new Error("Item slot must have only one child");return{header:xe,footer:Le,default:J}}function Fn(w){var C=we(w),D=!Me(w)&&!C;return{transition:C,externalComponent:D,tag:D?Object(wt.resolveComponent)(w):C?wt.TransitionGroup:w}}function Et(w){var C=w.$slots,D=w.tag,N=w.realList,ee=w.getKey,le=Sn({$slots:C,realList:N,getKey:ee}),fe=Fn(D);return new Ft({nodes:le,root:fe,realList:N})}function Bt(w,C){var D=this;Object(wt.nextTick)(function(){return D.$emit(w.toLowerCase(),C)})}function Jt(w){var C=this;return function(D,N){if(C.realList!==null)return C["onDrag".concat(w)](D,N)}}function rn(w){var C=this,D=Jt.call(this,w);return function(N,ee){D.call(C,N,ee),Bt.call(C,w,N)}}var ln=null,sn={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(C){return C}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},dn=["update:modelValue","change"].concat(K([].concat(K(Te.manageAndEmit),K(Te.emit)).map(function(w){return w.toLowerCase()}))),un=Object(wt.defineComponent)({name:"draggable",inheritAttrs:!1,props:sn,emits:dn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var C=this.$slots,D=this.$attrs,N=this.tag,ee=this.componentData,le=this.realList,fe=this.getKey,xe=Et({$slots:C,tag:N,realList:le,getKey:fe});this.componentStructure=xe;var Le=Ae({$attrs:D,componentData:ee});return xe.render(wt.h,Le)}catch(se){return this.error=!0,Object(wt.h)("pre",{style:{color:"red"}},se.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&Z.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var C=this;if(!this.error){var D=this.$attrs,N=this.$el,ee=this.componentStructure;ee.updated();var le=Re({$attrs:D,callBackBuilder:{manageAndEmit:function(Le){return rn.call(C,Le)},emit:function(Le){return Bt.bind(C,Le)},manage:function(Le){return Jt.call(C,Le)}}}),fe=N.nodeType===1?N:N.parentElement;this._sortable=new q.a(fe,le),this.targetDomElement=fe,fe.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var C=this.list;return C||this.modelValue},getKey:function(){var C=this.itemKey;return typeof C=="function"?C:function(D){return D[C]}}},watch:{$attrs:{handler:function(C){var D=this._sortable;D&&st(C).forEach(function(N){var ee=A(N,2),le=ee[0],fe=ee[1];D.option(le,fe)})},deep:!0}},methods:{getUnderlyingVm:function(C){return this.componentStructure.getUnderlyingVm(C)||null},getUnderlyingPotencialDraggableComponent:function(C){return C.__draggable_component__},emitChanges:function(C){var D=this;Object(wt.nextTick)(function(){return D.$emit("change",C)})},alterList:function(C){if(this.list){C(this.list);return}var D=K(this.modelValue);C(D),this.$emit("update:modelValue",D)},spliceList:function(){var C=arguments,D=function(ee){return ee.splice.apply(ee,K(C))};this.alterList(D)},updatePosition:function(C,D){var N=function(le){return le.splice(D,0,le.splice(C,1)[0])};this.alterList(N)},getRelatedContextFromMoveEvent:function(C){var D=C.to,N=C.related,ee=this.getUnderlyingPotencialDraggableComponent(D);if(!ee)return{component:ee};var le=ee.realList,fe={list:le,component:ee};if(D!==N&&le){var xe=ee.getUnderlyingVm(N)||{};return h(h({},xe),fe)}return fe},getVmIndexFromDomIndex:function(C){return this.componentStructure.getVmIndexFromDomIndex(C,this.targetDomElement)},onDragStart:function(C){this.context=this.getUnderlyingVm(C.item),C.item._underlying_vm_=this.clone(this.context.element),ln=C.item},onDragAdd:function(C){var D=C.item._underlying_vm_;if(D!==void 0){k(C.item);var N=this.getVmIndexFromDomIndex(C.newIndex);this.spliceList(N,0,D);var ee={element:D,newIndex:N};this.emitChanges({added:ee})}},onDragRemove:function(C){if(Y(this.$el,C.item,C.oldIndex),C.pullMode==="clone"){k(C.clone);return}var D=this.context,N=D.index,ee=D.element;this.spliceList(N,1);var le={element:ee,oldIndex:N};this.emitChanges({removed:le})},onDragUpdate:function(C){k(C.item),Y(C.from,C.item,C.oldIndex);var D=this.context.index,N=this.getVmIndexFromDomIndex(C.newIndex);this.updatePosition(D,N);var ee={element:this.context.element,oldIndex:D,newIndex:N};this.emitChanges({moved:ee})},computeFutureIndex:function(C,D){if(!C.element)return 0;var N=K(D.to.children).filter(function(xe){return xe.style.display!=="none"}),ee=N.indexOf(D.related),le=C.component.getVmIndexFromDomIndex(ee),fe=N.indexOf(ln)!==-1;return fe||!D.willInsertAfter?le:le+1},onDragMove:function(C,D){var N=this.move,ee=this.realList;if(!N||!ee)return!0;var le=this.getRelatedContextFromMoveEvent(C),fe=this.computeFutureIndex(le,C),xe=h(h({},this.context),{},{futureIndex:fe}),Le=h(h({},C),{},{relatedContext:le,draggedContext:xe});return N(Le,D)},onDragEnd:function(){ln=null}}}),Wt=un;c.default=Wt},fb6a:function(n,c,t){var a=t("23e7"),s=t("861d"),u=t("e8b5"),m=t("23cb"),g=t("50c4"),h=t("fc6a"),b=t("8418"),S=t("b622"),E=t("1dde"),x=t("ae40"),O=E("slice"),A=x("slice",{ACCESSORS:!0,0:0,1:2}),V=S("species"),P=[].slice,B=Math.max;a({target:"Array",proto:!0,forced:!O||!A},{slice:function(z,q){var k=h(this),Y=g(k.length),Z=m(z,Y),re=m(q===void 0?Y:q,Y),L,T,ue;if(u(k)&&(L=k.constructor,typeof L=="function"&&(L===Array||u(L.prototype))?L=void 0:s(L)&&(L=L[V],L===null&&(L=void 0)),L===Array||L===void 0))return P.call(k,Z,re);for(T=new(L===void 0?Array:L)(B(re-Z,0)),ue=0;Z<re;Z++,ue++)Z in k&&b(T,ue,k[Z]);return T.length=ue,T}})},fc6a:function(n,c,t){var a=t("44ad"),s=t("1d80");n.exports=function(u){return a(s(u))}},fdbc:function(n,c){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(n,c,t){var a=t("4930");n.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(ba);var Ts=ba.exports;const ha=Al(Ts);function ya(r,i){["name","gender","phone","id_card","ethnicity","height","weight","current_address","household_location","marital_status","expected_salary"].forEach(n=>{i[n]&&(r[n].visible=i[n].visible,r[n].required=i[n].required)}),["family_member","education","work_experience"].forEach(n=>{i[n]&&(r[n].visible=i[n].visible,Object.keys(i[n].fields).forEach(c=>{r[n].fields[c]&&(r[n].fields[c].visible=i[n].fields[c].visible,r[n].fields[c].required=i[n].fields[c].required)}))})}const Ds={class:"position-detail-container"},Vs={class:"header-container"},Ps={class:"header-actions"},Rs={class:"detail-content"},Us={class:"detail-item"},Ks={key:0,class:"detail-value"},Ms={key:1,class:"title-edit-container"},Bs={class:"title-edit-actions"},ks={class:"detail-item"},js={key:0,class:"detail-value"},Ns={key:1,class:"title-edit-container"},Fs={class:"title-edit-actions"},Ls={class:"detail-item"},Qs={key:0,class:"detail-value"},zs={key:1,class:"title-edit-container"},Gs={class:"title-edit-actions"},$s={class:"detail-item"},Js={key:0,class:"detail-value"},Ws={key:1,class:"title-edit-container"},Hs={class:"title-edit-actions"},Ys={class:"detail-item"},Xs={key:0,class:"detail-value"},Zs={key:1,class:"title-edit-container"},qs={class:"title-edit-actions"},_s={class:"detail-item"},ed={key:0,class:"detail-value"},td={key:1,class:"title-edit-container"},nd={class:"title-edit-actions"},od={class:"detail-item"},id={class:"detail-value"},ad={class:"detail-item"},rd={key:0,class:"detail-value"},ld={key:1,class:"title-edit-container"},sd={class:"title-edit-actions"},dd={class:"detail-item"},ud=["innerHTML"],cd={key:2,class:"title-edit-container"},fd={class:"title-edit-actions"},vd={class:"detail-item"},pd=["innerHTML"],md={key:2,class:"title-edit-container"},gd={class:"title-edit-actions"},hd={class:"detail-item"},yd={key:0,class:"detail-value"},bd={key:1,class:"title-edit-container"},Sd={class:"title-edit-actions"},Ed={class:"status-cards"},xd={class:"status-switch"},Id={class:"status-text"},Cd={class:"section-title"},Ad={class:"usage-content"},wd={key:0,class:"usage-value"},Od={key:1,class:"title-edit-container"},Td={class:"title-edit-actions"},Dd={class:"section-title"},Vd={class:"process-steps"},Pd={class:"step-number"},Rd={class:"step-content"},Ud={class:"step-title"},Kd={class:"section-title"},Md={class:"process-dialog-content"},Bd={key:0,class:"add-process-btn-top"},kd={class:"process-number"},jd={class:"process-edit-content"},Nd={class:"process-edit-desc"},Fd={class:"process-edit-btn"},Ld=["onClick"],Qd={class:"dialog-footer"},zd={class:"ai-video-steps"},Gd={key:0,class:"ai-video-content","element-loading-text":"正在生成能力标签..."},$d={class:"ai-video-options"},Jd={class:"recommended-dimensions"},Wd={class:"dimension-grid"},Hd={class:"ability-label"},Yd={class:"optional-dimensions"},Xd={class:"header-row"},Zd={class:"right_btn"},qd={class:"dimension-grid"},_d={class:"ability-label"},eu={class:"custom-dimensions"},tu={class:"dimension-form"},nu={class:"dimension-row"},ou={class:"dimension-input"},iu={class:"dimension-input"},au={class:"dimension-actions"},ru={key:1,class:"ai-video-content"},lu={class:"interview-settings"},su={class:"interview-header"},du={class:"interview-actions"},uu={class:"question-switches"},cu={class:"switch-item"},fu={class:"switch-item"},vu={class:"interview-duration"},pu={class:"duration-value"},mu={class:"interview-content"},gu={class:"interview-questions-container","element-loading-text":"AI正在生成题目..."},hu={key:0,class:"no-questions"},yu={key:1,class:"question-list"},bu={class:"question-card"},Su={class:"question-header"},Eu={class:"question-title"},xu={class:"title-content"},Iu={class:"question-content"},Cu={class:"question-number"},Au={style:{color:"#0017ab"}},wu={class:"question-tags"},Ou={key:0,class:"more-tags-indicator"},Tu={class:"question-actions",style:{"margin-top":"0px"}},Du={class:"question-info"},Vu={class:"info-item"},Pu={key:0,class:"question-actions"},Ru={class:"answer-limit"},Uu={class:"answer-limit"},Ku={key:1,class:"question-actions"},Mu={class:"answer-limit"},Bu={class:"multi-dimension-questions"},ku={class:"dimension-list"},ju={class:"dimension-header"},Nu={class:"dimension-info"},Fu={class:"ability-name"},Lu=["onClick"],Qu={key:2,class:"ai-video-content"},zu={class:"system-settings"},Gu={class:"setting-section"},$u={style:{display:"flex","align-items":"flex-start"}},Ju={style:{width:"100px",height:"170px","background-color":"#f2f2f2","margin-right":"30px","border-radius":"10px",overflow:"hidden"}},Wu=["src"],Hu={class:"interviewer-avatars"},Yu=["onClick"],Xu={class:"avatar-wrapper"},Zu=["src","alt"],qu=["title"],_u={class:"setting-item",style:{border:"none"}},ec={class:"setting-options"},tc={class:"interview-settings"},nc={class:"setting-item"},oc={class:"setting-item"},ic={class:"setting-options"},ac={class:"setting-item"},rc={class:"drawer-footer"},lc={class:"video-lecture-form"},sc={class:"form-item"},dc={class:"upload-area"},uc={class:"form-item"},cc={class:"dialog-footer"},fc={class:"ai-chat-content"},vc={class:"chat-settings"},pc={class:"chat-actions"},mc={class:"chat-questions"},gc={key:0,class:"empty-questions"},hc={key:1,class:"question-list"},yc={class:"question-card"},bc={class:"question-header"},Sc={class:"question-title"},Ec={class:"question-number"},xc={class:"question-actions"},Ic={class:"weight-control"},Cc={class:"answer-limit"},Ac={class:"question-info"},wc={class:"info-item"},Oc={class:"info-item"},Tc={class:"info-item"},Dc={class:"drawer-footer"},Vc={class:"question-form"},Pc={class:"form-item"},Rc={class:"form-item"},Uc={class:"form-item"},Kc={class:"competency-config"},Mc={class:"tag-name"},Bc={class:"form-tip"},kc={class:"form-item"},jc={class:"form-item"},Nc={key:0,class:"form-item"},Fc=["onClick"],Lc={style:{display:"flex","justify-content":"space-between","margin-top":"10px"}},Qc={class:"form-item"},zc={class:"form-item"},Gc={class:"form-item"},$c={class:"form-item"},Jc={class:"dialog-footer"},Wc={class:"question-select-content"},Hc={class:"search-bar"},Yc={class:"search-inputs"},Xc={class:"question-lists"},Zc={class:"pagination-container"},qc={class:"dialog-footer"},_c={class:"data-collection-form"},ef={class:"field-config-panel"},tf={class:"field-config-list"},nf={class:"field-config-item"},of={class:"field-label"},af={class:"field-config-item"},rf={class:"field-label"},lf={class:"field-config-item sub-field"},sf={class:"field-label"},df={class:"field-config-item"},uf={class:"field-label"},cf={class:"field-config-item sub-field"},ff={class:"field-label"},vf={class:"field-config-item"},pf={class:"field-label"},mf={class:"field-config-item"},gf={class:"field-label"},hf={class:"field-config-item sub-field"},yf={class:"field-label"},bf={class:"dialog-footer"},Sf={class:"resume-collection-form"},Ef={class:"form-item"},xf={class:"dialog-footer"},If={class:"code-test-form"},Cf={class:"form-item"},Af={class:"form-item"},wf={class:"switch-label"},Of={class:"form-item"},Tf={class:"test-paper-selector"},Df={key:0,class:"empty-paper"},Vf={key:1,class:"selected-paper"},Pf={class:"paper-info"},Rf={class:"paper-title"},Uf={class:"paper-meta"},Kf={class:"paper-actions"},Mf={class:"dialog-footer"},Bf={class:"typing-test-form"},kf={class:"form-item"},jf={class:"article-selection"},Nf={class:"form-item"},Ff={class:"form-item"},Lf={class:"time-input-container"},Qf={class:"form-item"},zf={class:"upload-area"},Gf={class:"form-item"},$f={class:"form-item"},Jf={class:"form-item"},Wf={class:"form-item"},Hf={class:"criteria-options"},Yf={class:"dialog-footer"},Xf={class:"interview-settings-content"},Zf={class:"settings-section"},qf={class:"setting-item"},_f={class:"setting-item"},ev={class:"setting-item"},tv={class:"setting-item"},nv={class:"setting-item"},ov={class:"settings-section"},iv={class:"setting-item"},av={class:"setting-info"},rv={class:"setting-desc-container"},lv={class:"setting-item"},sv={class:"setting-info"},dv={key:0,class:"setting-desc-container"},uv={class:"setting-desc"},cv={key:1,class:"desc-edit-container"},fv={class:"desc-edit-actions"},vv={class:"setting-item"},pv={class:"setting-info"},mv={key:0,class:"setting-desc-container"},gv={class:"setting-desc"},hv={key:1,class:"desc-edit-container"},yv={class:"desc-edit-actions"},bv={class:"setting-item"},Sv={class:"setting-info"},Ev={key:0,class:"setting-desc-container"},xv={class:"setting-desc"},Iv={key:1,class:"desc-edit-container"},Cv={class:"desc-edit-actions"},Av={class:"dialog-footer"},wv={class:"question-select-content"},Ov={class:"search-bar"},Tv={class:"search-inputs"},Dv={class:"question-lists"},Vv={class:"pagination-container"},Pv={class:"dialog-footer"},Rv={class:"candidate-questions-form"},Uv={class:"form-item"},Kv={class:"form-item"},Mv={class:"form-item"},Bv={class:"dialog-footer"},kv={class:"dialog-footer"},jv=vl({__name:"index",setup(r){const i=pl(),o=ml(),d=$(o.query.id),n=$(!1),c=$(!1),t=et({title:"",job_category:"",job_type_display:"",city:"",location:[],location_str:"",address_detail:"",benefits:[],requirements:"",job_type:0,salary_range:"",department:"",end_date:"",description:"",work_experience_required:"",education_required:"",competency_tags:[],options:[],status:0}),a=et([{id:6,name:"简历收集",description:"简历收集",active:!0,type:"resume_collection",visible:!0},{id:5,name:"资料收集",description:"资料收集",active:!0,type:"data_collection",visible:!0},{id:2,name:"AI考察",description:"AI考察",active:!0,type:"ai_video",visible:!0},{id:8,name:"综合素质考察",description:"综合素质考察",active:!0,type:"common_sense",visible:!0},{id:9,name:"心理问题",description:"心理问题",active:!0,type:"psychological_problem",visible:!0},{id:7,name:"候选人提问",description:"时长5分钟,最多3个问题",active:!0,type:"candidate_questions",visible:!0,config:{title:"候选人提问",duration:5,maxQuestions:3,description:"候选人可以向面试官提问关于公司、职位或团队的问题",isRequired:!0,allowSkip:!1,guidelines:["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]}},{id:3,name:"已通过",description:"已通过",active:!0,type:"passed",visible:!0},{id:4,name:"已淘汰",description:"已淘汰",active:!1,type:"rejected",visible:!0}]),s=$(!1),u=[{label:"AI考察",value:"ai_video"},{label:"视频宣讲",value:"video_presentation"},{label:"肢体检测",value:"body_detection"},{label:"资料收集",value:"data_collection"},{label:"简历收集",value:"resume_collection"},{label:"候选人提问",value:"candidate_questions"},{label:"心理问题",value:"psychological_problem"},{label:"综合素质考察",value:"common_sense"}],m=$(!1),g=p=>{gt.pageSize=p,uo({page:gt.page,limit:gt.pageSize,question_form:Je.question_form}).then(e=>{e.data&&(gt.value=e.data.items,Xt.page=e.data.page,Xt.pageSize=e.data.limit,oo.value=e.data.total)})},h=p=>{gt.page=p,uo({page:gt.page,limit:gt.pageSize,question_form:Je.question_form}).then(e=>{e.data&&(gt.value=e.data.items,Xt.page=e.data.page,Xt.pageSize=e.data.limit,oo.value=e.data.total)})},b=async()=>{const p=Yt.value.map(e=>e.id);if(console.log("selectedQuestionIds",p),p.length===0){R.warning("请至少选择一个问题");return}try{await oa({position_id:o.query.id,question_id:p,duration:60,tenant_id:"1"});const e=gt.value.filter(F=>F.selected);Yt.value.push(...e),R.success("问题添加成功"),m.value=!1}catch(e){console.error("添加问题失败:",e),R.error("添加问题失败,请重试")}},S=()=>{Dn.value=!0,aa({position_id:o.query.id}).then(p=>{p.data.forEach(e=>{e.selected=!1}),Pt.value=p.data,console.log("res",p),Dn.value=!1}).catch(p=>{console.log("err",p),Dn.value=!1})},E=Vl(),x=p=>{if(console.log("地址选择变化:",p),p&&Array.isArray(p)&&p.length>0){const[e,F,I]=p,M=E.find(me=>me.code===e);let Q;M&&M.children&&(Q=M.children.find(me=>me.code===F),Q&&Q.children&&Q.children.find(me=>me.code===I))}},O=(p,e)=>{},A=$(-1),V=$(!1),P=et({top:"0px",left:"0px"}),B=$(!1),K=et({qualityControl:!1,teamwork:!1,problemSolving:!1,dataAnalysis:!1,positionMatch:!1,proactiveness:!1,basicAbility:!1,communication:!1,serviceAwareness:!1,xxxx:!1}),z=$(1),q=$([{label:"沟通能力",value:"communication",level:"CC",description:"能够清晰、准确地表达想法,善于倾听和理解他人的观点,具备良好的书面和口头表达能力。",expanded:!1,isNew:!0},{label:"团队协作",value:"teamwork",level:"CC",description:"能够与团队成员有效合作,共同完成目标,具备良好的团队精神和协作意识。",expanded:!1,isNew:!1}]);et({min:0,max:100,minScore:0,maxScore:0});const k=p=>{console.log(p)};$("standard"),$(!1);const Y=$(!1),Z=et({title:"",videoFile:null,description:"",broadcastType:"required"}),re=$(!1);$(15),$(5);const L=$(!1),T=et({id:"",content:"",competency_tags:[],weight:100,level:1,type:"open",question_form:0,options:[],position:[],category:"",tags:[],suggestedDuration:60,scoring_reference:""}),ue=p=>p.map(e=>e.id),H=$([]),ne=$([{label:"后端开发",value:"backend"},{label:"前端开发",value:"frontend"},{label:"产品经理",value:"product_manager"},{label:"项目经理",value:"project_manager"},{label:"测试工程师",value:"test_engineer"}]),Ee=$([{label:"技术能力",value:"tech"},{label:"管理能力",value:"management"},{label:"沟通能力",value:"communication"},{label:"专业知识",value:"professional"},{label:"个人素质",value:"personal"}]),Te=$([{label:"时间管理",value:"time_management"},{label:"压力处理",value:"pressure_handling"},{label:"团队合作",value:"team_cooperation"},{label:"问题分析",value:"problem_analysis"},{label:"创新思维",value:"innovative_thinking"}]),Ye=()=>{Object.assign(T,{id:"",content:"",competency_tags:[],weight:100,level:1,type:"open",question_form:0,options:[],position:[],category:"",tags:[],suggestedDuration:60,scoring_reference:""})},Ke=()=>{L.value=!1,Ye()},Me=async()=>{if(!T.content){R.error("请输入题目内容");return}if(qr())try{const p={id:T.id,content:T.content,competency_tags:T.competency_tags,options:T.options,weight:T.weight,level:T.level,question_form:T.question_form,position:T.position,category:T.category,suggestedDuration:T.suggestedDuration,scoring_reference:T.scoring_reference};console.log(p),L.value=!1,Ye()}catch(p){console.error("添加问题失败:",p),R.error("添加问题失败,请重试")}},we=$(!1),Xe=et({isRequired:!1,questions:[]});$([{label:"Q1",value:"q1",isVisible:!0,enableScoring:!1,isRequired:!1},{label:"请问你的毕业院校是哪里?",value:"school",isVisible:!0,enableScoring:!1,isRequired:!0}]);const De=$(!1),Ae=et({title:"简历收集",isRequired:!0,steps:4}),Re=()=>{De.value=!0},st=()=>{De.value=!1,Object.assign(Ae,{title:"简历收集",isRequired:!0,steps:4})},ot=()=>{const p={id:Date.now(),name:Ae.title,description:"简历收集",active:!0,type:"resume_collection",config:{...Ae}};a.splice(A.value,0,p),De.value=!1,R.success("简历收集步骤已添加"),st()},dt=$(!1),ut=et({enableScoreQuestions:!1,enableColorBlindQuestions:!1,enableOpenQuestions:!1}),Mt=async()=>{try{const p=o.query.id;if(!p){R.error("职位ID不存在");return}const e=Array.isArray(p)?p[0]:p,F=p,I=await xl(p);if(I&&I.data){Object.assign(t,I.data),H.value=I.data.competency_tags;const M=await Un(p);M&&M.data&&(Be.value=M.data.id,M.data.enable_psychological_test!==void 0&&(ut.enableScoreQuestions=M.data.enable_psychological_test),M.data.enable_color_blind_test!==void 0&&(ut.enableColorBlindQuestions=M.data.enable_color_blind_test)),n.value=t.status===1}}catch(p){console.error("获取职位详情失败:",p),R.error("获取职位详情失败")}},qe=()=>{i.push("/position/list")},_e=()=>{i.push("/position/list")},Ft=()=>{R.success("分享链接已复制到剪贴板")},wt=async p=>{const e=o.query.id;try{const F=p?1:0;if(p){const I=await Il({position_id:e,tenant_id:1});if(I.code===2e3){const{is_all_completed:M,total_questions:Q}=I.data;if(!M||Q<=0){R.warning(`无法开启职位,原因:${Q<=0?"当前职位没有设置面试题目":"面试题目视频未全部生成完成"}`),n.value=!p;return}}else{R.error("检查视频状态失败,请稍后重试"),n.value=!p;return}}await It({id:e,status:F}),t.status=F,R.success(`职位已${p?"开启":"关闭"}`)}catch(F){console.error("修改状态失败:",F),R.error("修改状态失败"),n.value=!p}},Ot=()=>{s.value=!0},Sn=()=>{s.value=!1,R.success("招聘流程已更新")},Fn=()=>{s.value=!1},Et=(p,e)=>{p.type=="ai_video"&&(B.value=!1),p.type=="ai_chat"&&(re.value=!1),p.type=="ai_video"&&kt({id:Be.value,enable_open_questions:!1}).then(F=>{F.code==2e3?R.success("删除成功"):R.error("删除失败")}),p.type=="psychological_problem"&&kt({id:Be.value,enable_scoring_questions:!1}).then(F=>{F.code==2e3?R.success("删除成功"):R.error("删除失败")}),p.type=="common_sense"&&kt({id:Be.value,enable_single_choice:!1,enable_multiple_choice:!1,enable_image_choice:!1,enable_fill_blank:!1}).then(F=>{F.code==2e3?R.success("删除成功"):R.error("删除失败")}),a.splice(e,1)},Bt=p=>({0:"未发布",1:"已发布",2:"已结束"})[p]||"未知状态",Jt=p=>({0:"info",1:"success",2:"danger"})[p]||"info",rn=p=>({0:"全职",1:"兼职",2:"实习",3:"其他"})[p]||"未知",ln=(p,e)=>{A.value=p,V.value=!0;const F=e.currentTarget,I=F.closest(".process-dialog-content");if(I){const M=F.getBoundingClientRect(),Q=I.getBoundingClientRect(),me=M.bottom-Q.top+5,_=M.left-Q.left;P.top=`${me}px`,P.left=`${_}px`}e.stopPropagation()},sn=async(p,e)=>{if(p==="ai_video"&&kt({id:Be.value,enable_open_questions:!0}).then(M=>{M.code==2e3?(a[2].visible=!0,V.value=!1):R.error("更新配置失败")}),p==="common_sense"&&kt({id:Be.value,enable_single_choice:!0,enable_multiple_choice:!0,enable_image_choice:!0,enable_fill_blank:!0}).then(M=>{M.code==2e3?(a[3].visible=!0,console.log("recruitmentProcess",a),V.value=!1):R.error("更新配置失败")}),p==="psychological_problem"&&kt({id:Be.value,enable_scoring_questions:!0}).then(M=>{M.code==2e3?(a[4].visible=!0,V.value=!1):R.error("更新配置失败")}),p==="post_render_questions"){al.value=!0,V.value=!1;return}if(a.find(M=>!!(M.type&&M.type===p||M.name===e))){R.warning(`"${e}"步骤已存在,不能重复添加`),V.value=!1;return}if(p==="ai_chat"){re.value=!0,V.value=!1;return}if(p==="video_presentation"){D(),V.value=!1;return}if(p==="data_collection"){const M=await Un(o.query.id);M&&M.data?(Be.value=M.data.id,ya(G,M.data.profile_fields_config),we.value=!0,V.value=!1):(we.value=!0,V.value=!1);return}if(p==="resume_collection"){Re(),V.value=!1;return}if(p==="code_test"){Ua(),V.value=!1;return}if(p==="typing_test"){zn.value=!0,V.value=!1;return}if(p==="candidate_questions"){Vn.value=!0,V.value=!1;return}const I={id:Date.now(),name:e,description:e,active:!0,type:p,visible:!0};console.log("newStep",I),a.splice(A.value,0,I),V.value=!1},dn=async()=>{if(z.value<3){if(z.value===1){const p=Pt.value.filter(e=>e.selected);if(p.length===0){R.warning("请至少选择一个胜任力考核维度");return}try{q.value=p.map(e=>({label:e.name,value:e.name.toLowerCase().replace(/\s+/g,"_"),id:e.id,description:e.description||"",level:"CC",expanded:!1,isNew:!0}))}catch(e){console.error("处理胜任力标签失败:",e),R.error("处理胜任力标签失败");return}}if(z.value===2){if(J.value.length===0){R.warning("请至少添加一个面试题目");return}try{await Ir()}catch(p){console.error("保存题目失败:",p),R.error("保存题目失败");return}}if(z.value===3){const p=Cr();if(!p.isValid){p.messages.forEach(F=>{R.warning(F)});return}const e=Or();console.log("完整的面试配置:",e)}z.value++}else Wt()},un=()=>{z.value>1&&z.value--},Wt=async()=>{var M;if(!vt.value||!vt.value.id){R.warning("请选择面试官形象");return}const p={id:vt.value.id,name:vt.value.name,avatar_url:vt.value.avatar_url||vt.value.image},e=ii(),F={enableScoreQuestions:ut.enableScoreQuestions,enableColorBlindQuestions:ut.enableColorBlindQuestions};try{if(await It({id:o.query.id,status:0}),t.status=0,n.value=!1,Be.value==0){const Q=await ui({position_id:o.query.id,digital_human_id:vt.value.id});if(Q.code==2e3){R.success("配置保存成功");try{const me={config_id:((M=Q.data)==null?void 0:M.id)||Q.data};e.beforeStartText&&e.beforeStartText.trim()!==""?(await ci(me),console.log("开场白生成成功"),B.value=!1,z.value=1,await new Promise(ve=>setTimeout(ve,4e3))):console.log("无开场白配置,跳过开场白生成"),await ia(me),R.success("视频开始生成")}catch(me){console.error("获取开场白和视频失败:",me),R.warning("视频生成中,请稍后")}}else R.error("配置保存失败")}else if((await kt({id:Be.value,digital_human_id:vt.value.id})).code==2e3){R.success("配置保存成功");try{const me={config_id:Be.value};console.log("开始生成开场白..."),await ci(me),console.log("开场白生成成功"),B.value=!1,z.value=1,console.log("等待4秒后开始生成视频..."),await Vr(4e3),console.log("开始生成视频..."),await ia(me),console.log("视频生成请求已发送"),R.success("视频开始生成")}catch(me){console.error("获取开场白和视频失败:",me),R.warning("视频生成中,请稍后")}}else R.error("配置保存失败")}catch(Q){console.error("更新职位状态失败:",Q),R.error("更新职位状态失败");return}console.log("保存时选中的面试官:",p),console.log("保存时的面试设置:",e),console.log("保存时的题目设置:",F);const I={id:Date.now(),name:"AI考察",description:`已选择${q.value.length}项能力测评`,active:!0,type:"ai_video",abilities:q.value.map(Q=>Q.value),interviewer:p,settings:e};a.splice(A.value,0,I),B.value=!1,z.value=1,R.success("AI考察步骤已添加")},w=()=>{B.value=!1,z.value=1},C=p=>{},D=()=>{Y.value=!0},N=()=>{Y.value=!1,Object.assign(Z,{title:"",videoFile:null,description:"",broadcastType:"required"})},ee=()=>{const p={id:Date.now(),name:Z.title||"视频宣讲",description:Z.description||"视频宣讲",active:!0,type:"video_presentation",config:{...Z}};a.splice(A.value,0,p),Y.value=!1,R.success("视频宣讲步骤已添加"),N()},le=()=>{const p={id:Date.now(),name:"AI实时对话",description:"AI实时对话",active:!0,type:"ai_chat"};a.splice(A.value,0,p),re.value=!1,R.success("AI实时对话步骤已添加")},fe=()=>{re.value=!1},xe=()=>{if(!Ve.title.trim()){R.warning("请输入环节名称");return}if(Ve.duration<=0){R.warning("提问时长必须大于0分钟");return}if(Ve.maxQuestions<=0){R.warning("最多提问数量必须大于0");return}if(lo.value>=0){const p=a[lo.value];p.name=Ve.title,p.description=`时长${Ve.duration}分钟,最多${Ve.maxQuestions}个问题`,p.config={...Ve},R.success("候选人提问环节已更新")}else{const p={id:Date.now(),name:Ve.title,description:`时长${Ve.duration}分钟,最多${Ve.maxQuestions}个问题`,active:!0,type:"candidate_questions",config:{...Ve}};a.splice(A.value,0,p),R.success("候选人提问环节已添加")}Vn.value=!1,se()},Le=()=>{Vn.value=!1,se()},se=()=>{lo.value=-1,Object.assign(Ve,{title:"候选人提问",duration:5,maxQuestions:3,description:"候选人可以向面试官提问关于公司、职位或团队的问题",isRequired:!0,allowSkip:!1,guidelines:["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]})},J=$([]),ae=si(()=>J.value.reduce((p,e)=>{switch(e.question_form){case 0:return p+60;case 1:return p+30;case 2:return p+30;default:return p+30}},0)),he=si(()=>{const p=ae.value;if(p<60)return`${p}秒`;const e=Math.floor(p/60),F=p%60;return F>0?`${e}分${F}秒`:`${e}分钟`}),Se=()=>{L.value=!0},it=()=>{Bo.value={question:"",question_form:null,competency_tags:[],position_types:[],category_id:null,tags:[],recommended_duration:60,status:1,is_required_correct:!1,is_system:!1,sort:1,options:[],scoring_reference:"",blank_answer_template:[]},ji.value=!1,no.value=!0},Ln=async p=>{try{const e=await Rl({...p,tenant_id:1});if(e&&e.code===2e3){if(R.success("题目创建成功"),console.log(e),e.data){const F={id:e.data.id||e.data,title:p.question,question_form:p.question_form,question_form_name:En(p.question_form),scoring_reference:p.scoring_reference||"",competency_tags:p.competency_tags||[],options:p.options||[],enable_follow_up:!1,maxAnswers:1,weight:100,source:"custom_selected"};J.value.push(F)}no.value=!1}else R.error("题目创建失败,请重试")}catch(e){console.error("创建题目失败:",e),R.error("题目创建失败,请重试")}},Ao=()=>{no.value=!1,Bo.value={}},En=p=>({0:"开放问题",1:"单选题",2:"多选题",3:"色盲题",4:"得分题",5:"判断题",6:"填空题"})[p]||"未知类型",Pi=p=>{const e=J.value[p];console.log(e),Object.assign(T,e),L.value=!0,ol()},Ri=p=>{ea.confirm("确认删除该问题?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{J.value.splice(p,1),R.success("删除成功")})},Pa=()=>{we.value=!1,Object.assign(Xe,{isRequired:!1,questions:[]})};gl(()=>{Mt(),Mi(),Tr(),Ra()}),hl(()=>{ki()});const Ra=async()=>{try{const p=o.query.id;if(p){const e=await Un(p);e&&e.data&&(e.data.enable_psychological_test!==void 0&&(ut.enableScoreQuestions=e.data.enable_psychological_test),e.data.enable_color_blind_test!==void 0&&(ut.enableColorBlindQuestions=e.data.enable_color_blind_test),a[2].visible=e.data.question_form_switches.enable_open_questions,a[3].visible=e.data.question_form_switches.enable_single_choice||e.data.question_form_switches.enable_multiple_choice||e.data.question_form_switches.enable_image_choice||e.data.question_form_switches.enable_fill_blank,a[4].visible=e.data.question_form_switches.enable_scoring_questions)}}catch(p){console.error("初始化配置状态失败:",p)}},Qn=$(!1),at=et({title:"代码笔试",autoJudge:!0,selectedPaper:null}),Ua=()=>{Qn.value=!0},Ui=()=>{Qn.value=!1,Object.assign(at,{title:"代码笔试",autoJudge:!0,selectedPaper:null})},Ka=()=>{if(!at.selectedPaper){R.warning("请添加考试试卷");return}const p={id:Date.now(),name:at.title,description:`${at.selectedPaper.title}`,active:!0,type:"code_test",config:{...at}};a.splice(A.value,0,p),Qn.value=!1,R.success("代码笔试步骤已添加"),Ui()},Ma=()=>{at.selectedPaper={id:1,title:"前端开发工程师笔试",questionCount:4,duration:60,difficulty:"中等难度"}},Ba=()=>{R.info("查看试卷功能开发中")},ka=()=>{R.info("更换试卷功能开发中")},ja=()=>{at.selectedPaper=null},zn=$(!1),nt=et({title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]}),Ki=()=>{zn.value=!1,Object.assign(nt,{title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]})},Na=()=>{const p={id:Date.now(),name:nt.title,description:`打字测试 ${nt.duration}分钟`,active:!0,type:"typing_test",config:{...nt}};a.splice(A.value,0,p),zn.value=!1,R.success("打字测试步骤已添加"),Ki()},wo=$(!1),xn=$(""),Fa=()=>{xn.value=t.title,wo.value=!0},La=()=>{wo.value=!1},Qa=async()=>{if(!xn.value.trim()){R.warning("职位名称不能为空");return}try{const p=o.query.id;await It({id:p,title:xn.value.trim()}),t.title=xn.value.trim(),wo.value=!1,R.success("职位名称已更新")}catch(p){console.error("更新职位名称失败:",p),R.error("更新职位名称失败")}},Oo=$(!1),Lt=$(""),za=()=>{if(!t.location)Lt.value="";else if(Array.isArray(t.location))Lt.value=t.location;else if(typeof t.location=="string")try{const e=t.location.replace(/[\[\]']/g,"").split(",").map(Q=>Q.trim()),F=E.find(Q=>Q.name===e[0]);let I,M;F&&F.children&&(I=F.children.find(Q=>Q.name===e[1]),I&&I.children&&(M=I.children.find(Q=>Q.name===e[2]))),Lt.value=[F==null?void 0:F.code,I==null?void 0:I.code,M==null?void 0:M.code].filter(Boolean)}catch(p){console.error("解析地址失败:",p),Lt.value=""}Oo.value=!0},Ga=()=>{Oo.value=!1},$a=async()=>{try{const p=o.query.id,e=[];if(Lt.value&&Array.isArray(Lt.value)){const[F,I,M]=Lt.value,Q=E.find(ve=>ve.code===F);let me,_;Q&&(e.push(Q.name),Q.children&&(me=Q.children.find(ve=>ve.code===I),me&&(e.push(me.name),me.children&&(_=me.children.find(ve=>ve.code===M),_&&e.push(_.name)))))}await It({id:p,location:e}),t.location=e,Oo.value=!1,R.success("工作地点已更新")}catch(p){console.error("更新工作地点失败:",p),R.error("更新工作地点失败")}},To=$(!1),Gn=$(""),Ja=()=>{Gn.value=t.salary_range||"",To.value=!0},Wa=()=>{To.value=!1},Ha=async()=>{try{const p=o.query.id;await It({id:p,salary_range:Gn.value.trim()}),t.salary_range=Gn.value.trim(),To.value=!1,R.success("职位薪资已更新")}catch(p){console.error("更新职位薪资失败:",p),R.error("更新职位薪资失败")}},Do=$(!1),$n=$(""),Ya=()=>{$n.value=t.work_experience_required||"",Do.value=!0},Xa=()=>{Do.value=!1},Za=async()=>{try{const p=o.query.id;await It({id:p,work_experience_required:$n.value}),t.work_experience_required=$n.value,Do.value=!1,R.success("工作经验已更新")}catch(p){console.error("更新工作经验失败:",p),R.error("更新工作经验失败")}},Vo=$(!1),Jn=$(""),qa=()=>{Jn.value=t.education_required||"",Vo.value=!0},_a=()=>{Vo.value=!1},er=async()=>{try{const p=o.query.id;await It({id:p,education_required:Jn.value}),t.education_required=Jn.value,Vo.value=!1,R.success("学历要求已更新")}catch(p){console.error("更新学历要求失败:",p),R.error("更新学历要求失败")}},Po=$(!1),Wn=$(""),tr=()=>{Wn.value=t.department||"",Po.value=!0},nr=()=>{Po.value=!1},or=async()=>{try{const p=o.query.id;await It({id:p,department:Wn.value.trim()}),t.department=Wn.value.trim(),Po.value=!1,R.success("所属部门已更新")}catch(p){console.error("更新所属部门失败:",p),R.error("更新所属部门失败")}},Ro=$(!1),Hn=$(""),ir=()=>{Hn.value=t.end_date||"",Ro.value=!0},ar=()=>{Ro.value=!1},rr=async()=>{try{const p=o.query.id;await It({id:p,end_date:Hn.value}),t.end_date=Hn.value,Ro.value=!1,R.success("截止日期已更新")}catch(p){console.error("更新截止日期失败:",p),R.error("更新截止日期失败")}},Yn=$(!1),Xn=$(""),lr=()=>{Xn.value=t.requirements||"",Yn.value=!0},sr=()=>{Yn.value=!1},dr=async()=>{try{const p=o.query.id;await It({id:p,requirements:Xn.value}),t.requirements=Xn.value,Yn.value=!1,R.success("职位要求已更新")}catch(p){console.error("更新职位要求失败:",p),R.error("更新职位要求失败")}},Zn=$(!1),qn=$(""),ur=()=>{qn.value=t.description||"",Zn.value=!0},cr=()=>{Zn.value=!1},fr=async()=>{try{const p=o.query.id;await It({id:p,description:qn.value}),t.description=qn.value,Zn.value=!1,R.success("职位描述已更新")}catch(p){console.error("更新职位描述失败:",p),R.error("更新职位描述失败")}},In=$(!1),_n=$(0),vr=()=>{_n.value=t.job_type||0,In.value=!0},pr=()=>{In.value=!1},mr=async()=>{try{const p=o.query.id;await It({id:p,job_type:_n.value}),t.job_type=_n.value,In.value=!1,R.success("职位性质已更新")}catch(p){console.error("更新职位性质失败:",p),R.error("更新职位性质失败")}},Pt=$([]),Uo=$(!1),Cn=$([]),Mi=async()=>{try{const p=await Ml({page:1,pageSize:1e3});p&&p.data}catch(p){console.error("获取能力标签列表失败:",p),R.error("获取能力标签列表失败")}},gr=async()=>{var p;await Mi(),Cn.value=((p=t.competency_tags)==null?void 0:p.map(e=>e.id))||[],H.value.forEach(e=>{e.selected=Cn.value.includes(e.id)}),Uo.value=!0},hr=()=>{Uo.value=!1},yr=async()=>{try{const p=o.query.id;await It({id:p,competency_tags:Cn.value}),t.competency_tags=H.value.filter(e=>Cn.value.includes(e.id)).map(e=>({id:e.id,name:e.name})),Uo.value=!1,R.success("能力标签已更新")}catch(p){console.error("更新能力标签失败:",p),R.error("更新能力标签失败")}},br=$(null),Be=$(0),Ko=async p=>{if(p.name==="资料收集"){const e=await Un(o.query.id);e&&e.data?(Be.value=e.data.id,ya(G,e.data.profile_fields_config),we.value=!0,V.value=!1):(we.value=!0,V.value=!1);return}if(p.name==="AI考察"){if(p.action==="delete"){await il();return}const e=await Un(o.query.id);Dn.value=!0,br.value=p,B.value=!0,z.value=1;try{const F=await na({position_id:o.query.id,page:1,limit:20});F&&F.data&&F.data.dataList&&(J.value=F.data.dataList.map(M=>(M.content=M.question,M.title=M.question,M.competency_tags=M.competency_tag_info,M.source="ai_generated",M)));const I=await Ll({position_id:o.query.id,page:1,limit:50});if(console.log("existingTags",I),I&&I.data&&I.data.items.length>0)I.data.items.forEach(M=>{M.importance=1,M.selected=!1,t.latest_competency_snapshot&&Array.isArray(t.latest_competency_snapshot)&&(M.selected=t.latest_competency_snapshot.some(Q=>Q.id===M.id))}),Pt.value=I.data.items;else{const M=await aa({position_id:o.query.id});if(M&&M.data){M.data.forEach(Q=>{Q.selected=!1}),Pt.value=M.data;try{await Fl({position_id:o.query.id,tags:Pt.value}),R.success("胜任力标签保存成功")}catch(Q){console.error("保存胜任力标签失败:",Q),R.error("胜任力标签保存失败")}}}e&&e.data&&(Be.value=e.data.id)}catch(F){console.error("获取或生成能力标签失败:",F),R.error("获取或生成能力标签失败")}finally{Dn.value=!1}Object.keys(K).forEach(F=>{K[F]=!1})}p.name==="综合素质考察"&&uo({page:1,limit:20}).then(e=>{e.data&&(gt.value=e.data.items,Xt.page=e.data.page,Xt.pageSize=e.data.limit,oo.value=e.data.total,m.value=!0)}),p.name==="心理问题"&&uo({page:1,limit:30,question_form:4}).then(e=>{e.data&&(Je.question_form=4,gt.value=e.data.items,Xt.page=e.data.page,Xt.pageSize=e.data.limit,oo.value=e.data.total,m.value=!0)})},Ht=$(""),An=$(""),Sr=$(!1),Er=async()=>{if(!Ht.value.trim()){R.warning("请输入维度名称");return}if(Pt.value.find(e=>e.name===Ht.value.trim())){R.warning("该维度名称已存在,请重新输入");return}try{const e=await zl({name:Ht.value.trim(),description:An.value.trim(),importance:1,weight:0});if(!e.data)throw new Error("创建标签失败");const F=e.data.id;await Gl({tag_ids:[F],position_ids:[d.value]});const I={id:F,name:Ht.value.trim(),description:An.value.trim(),selected:!1,importance:1,weight:0,isCustom:!0};Pt.value.push(I),Sr.value,Ht.value="",An.value="",console.log("添加新维度成功:",I),console.log("当前备选维度列表:",Pt.value)}catch(e){console.error("添加自定义维度失败:",e),R.error("添加自定义维度失败,请重试")}},rt=et({keepVideo:!1,interruptionMode:"",smartFollowUp:!1,followUpStyle:""}),ni=$([{id:1,name:"Jessica",image:"/avatars/jessica.png"},{id:2,name:"Mike",image:"/avatars/mike.png"},{id:3,name:"Sarah",image:"/avatars/sarah.png"}]),vt=$(ni.value[0]),oi=$(""),xr=p=>{vt.value=p,console.log("选中的面试官信息:",{id:p.id,name:p.name,avatar_url:p.avatar_url||p.image}),oi.value=p.avatar_url,R.success(`已选择面试官:${p.name}`)},Ir=async()=>{const p=J.value.filter(F=>F.source==="ai_generated"),e=J.value.filter(F=>F.source==="custom_selected");if(console.log("AI生成的题目:",p),console.log("自定义选择的题目:",e),p.length>0&&(await kl({draft_ids:p.map(F=>F.id)}),console.log("AI生成的题目已保存到草稿")),e.length>0){const F={position_id:o.query.id,question_id:{question_id:e},duration:60,tenant_id:1};console.log("自定义选择的题目需要调用专门的接口处理");const I=await oa(F);I&&I.code===2e3?R.success("自定义选择的题目已保存"):R.error("自定义选择的题目保存失败")}},ii=()=>{const p={keepVideo:rt.keepVideo,interruptionMode:rt.interruptionMode,followUpStyle:rt.followUpStyle,smartFollowUp:rt.smartFollowUp};return console.log("当前面试设置:",p),p},eo=(p,e)=>{switch(console.log(`面试设置 ${p} 已更改为:`,e),p){case"keepVideo":console.log("回答视频保留设置:",e?"开启":"关闭");break;case"interruptionMode":console.log("中断后作答限制模式:",e==="previous"?"从上一问重新作答":"从当前问题作答");break;case"followUpStyle":console.log("追问风格:",e);break;case"smartFollowUp":console.log("智慧追问设置:",e?"开启":"关闭");break}},Cr=()=>{const p=ii(),e={isValid:!0,messages:[]};return p.interruptionMode===""&&(e.isValid=!1,e.messages.push("请选择中断后作答限制模式")),e},Ar=p=>{c.value=!0,console.log("开始拖拽题目:",p)},wr=p=>{c.value=!1,console.log("拖拽结束:",p),console.log("当前题目顺序:",J.value),R.success("题目顺序已更新")},Or=()=>({interviewer:{id:vt.value.id,name:vt.value.name,avatar_url:vt.value.avatar_url||vt.value.image},settings:ii(),questionSettings:{enableScoreQuestions:ut.enableScoreQuestions,enableColorBlindQuestions:ut.enableColorBlindQuestions},abilities:q.value,questions:J.value,currentStep:z.value}),Tr=async()=>{const p=await jl({page:1,pageSize:1e3});p&&p.data&&(ni.value=p.data)},Bi=(p,e)=>{e?to.value.push({name:p.name,description:p.description||"暂无描述"}):to.value=to.value.filter(F=>F.name!==p.name)},Dr=p=>{ea.confirm("确认删除这个胜任力标签吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const e=q.value[p];q.value.splice(p,1),to.value=to.value.filter(I=>I.name!==e.label);const F=Pt.value.find(I=>I.name===e.label);F&&(F.selected=!1),R.success("胜任力标签已删除")}).catch(()=>{})},to=$([]),Vr=p=>new Promise(e=>setTimeout(e,p));let Qt=null;const Pr=async(p,e=300,F=2e3)=>{let I=0;Qt={cancelled:!1};const M=Qt;return new Promise((Q,me)=>{const _=async()=>{try{if(M.cancelled){console.log("轮询已被取消"),Q(null);return}I++,console.log(`第${I}次轮询获取草稿列表...`);const ve=await na(p);if(M.cancelled){console.log("轮询已被取消"),Q(null);return}if(ve&&ve.data&&ve.data.dataList&&ve.data.dataList.length>0){console.log("轮询成功,获取到草稿列表数据"),Qt=null,Q(ve);return}if(I>=e){console.log("轮询达到最大次数,停止轮询"),Qt=null,Q(ve);return}setTimeout(_,F)}catch(ve){if(console.error(`第${I}次轮询失败:`,ve),M.cancelled){console.log("轮询已被取消"),Q(null);return}I<e?setTimeout(_,F):(Qt=null,me(ve))}};_()})},ki=()=>{Qt&&(Qt.cancelled=!0,Qt=null,console.log("轮询已被手动取消"))},Rr=()=>{ki(),dt.value=!1,R.info("已取消AI自动组题")},Mo=$(!1),cn=$(""),gt=$([]),Yt=$([]),no=$(!1),Bo=$({}),ji=$(!1),Ni=$(0),oo=$(0),Je=et({page:1,pageSize:10,keyword:"",question_form:null}),Xt=et({page:1,limit:20,keyword:"",question_form:null}),ai=async()=>{try{const p={...Je,keyword:cn.value,...Je.question_form!==null&&{question_form:Je.question_form}},e=await uo(p);e&&e.data&&(gt.value=e.data.items,Ni.value=e.data.total)}catch(p){console.error("获取题目列表失败:",p),R.error("获取题目列表失败")}},Zt=()=>{Je.page=1,ai()},Ur=p=>{Je.pageSize=p,ai()},Kr=p=>{Je.page=p,ai()},Fi=p=>{Yt.value=p},Li=()=>{Mo.value=!1,Yt.value=[],cn.value=""},Mr=()=>{if(Yt.value.length===0){R.warning("请至少选择一个题目");return}console.log(Yt.value);const p=Yt.value.map(e=>({id:e.id||Date.now(),title:e.question||e.title,ability:e.ability||"未设置",content:e.content||e.question,target:e.target||"未设置",competency_tags:e.competency_tags||[],question_form_name:e.question_form_name,scoring_reference:e.scoring_reference,question_form:e.question_form,is_required_correct:e.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:e.options||[],source:"custom_selected"}));J.value.push(...p),Mo.value=!1,Yt.value=[],cn.value=""},G=et({name:{visible:!0,label:"姓名",required:!0},gender:{visible:!0,label:"性别",required:!0},three_period:{visible:!0,label:"是否为三期",required:!0},phone:{visible:!0,label:"手机号",required:!0},id_card:{visible:!0,label:"身份证号",required:!0},ethnicity:{visible:!0,label:"民族",required:!0},height:{visible:!0,label:"身高(cm)",required:!1},weight:{visible:!0,label:"体重(kg)",required:!1},current_address:{visible:!0,label:"现居住地址",required:!0},household_location:{visible:!0,label:"户口所在地",required:!1},marital_status:{visible:!0,label:"婚育状况",required:!1},expected_salary:{visible:!0,label:"期望薪资(元/月)",required:!1},family_member:{visible:!0,label:"家庭成员",fields:{relation:{visible:!0,label:"称谓",required:!0},name:{visible:!0,label:"姓名",required:!0},workplace_address:{visible:!0,label:"工作单位/家庭地址",required:!1},position:{visible:!0,label:"职务",required:!1},phone:{visible:!0,label:"联系电话",required:!0},is_emergency_contact:{visible:!0,label:"是否为紧急联系人",required:!1}}},education:{visible:!0,label:"教育经历",fields:{start_time:{visible:!0,label:"开始时间",required:!0},end_time:{visible:!0,label:"结束时间",required:!0},school_name:{visible:!0,label:"学校名称",required:!0},major:{visible:!0,label:"专业",required:!0},degree:{visible:!0,label:"学历",required:!0}}},require_professional_skills:{visible:!0,label:"专业技能",required:!0},training_fields_config:{visible:!0,label:"受过的培训",required:!0},work_experience:{visible:!0,label:"工作经历",fields:{start_time:{visible:!0,label:"开始时间",required:!0},end_time:{visible:!0,label:"结束时间",required:!0},company_name:{visible:!0,label:"单位名称",required:!0},employee_count:{visible:!0,label:"单位人数",required:!0},department:{visible:!0,label:"任职部门",required:!0},position:{visible:!0,label:"担任职务",required:!0},monthly_salary:{visible:!0,label:"月总收入",required:!0},supervisor:{visible:!0,label:"直接领导",required:!0},supervisor_phone:{visible:!0,label:"领导电话",required:!0}}},question_form_switches:{enable_open_questions:!0,enable_single_choice:!0,enable_multiple_choice:!0,enable_image_choice:!0,enable_scoring_questions:!0,enable_follow_up_questions:!0,enable_fill_blank:!0}}),Br=async()=>{try{const p={position_id:o.query.id,require_resume_upload:!0,resume_file_types:["pdf","docx","doc"],max_resume_size_mb:10,digital_human_opening_speech:"你好,我是本次面试的面试官,欢迎参加本公司的线上面试!面试预计需要15分钟,请你提前安排在网络良好、光线亮度合适、且相对安静的环境参加这次面试以免影响本次面试的结果。如果你在面试过程中遇到问题,请与我们的招聘人员联系。",require_basic_info:!0,profile_fields_config:{name:{required:G.name.required,visible:G.name.visible},phone:{required:G.phone.required,visible:G.phone.visible},id_card:{required:G.id_card.required,visible:G.id_card.visible},gender:{required:G.gender.required,visible:G.gender.visible},birth_date:{required:!1,visible:!0},political_status:{required:!1,visible:!0},ethnicity:{required:G.ethnicity.required,visible:G.ethnicity.visible},height:{required:G.height.required,visible:G.height.visible},weight:{required:G.weight.required,visible:G.weight.visible},marital_status:{required:G.marital_status.required,visible:G.marital_status.visible}},require_education_info:G.education.visible,education_fields_config:{school_name:{required:G.education.fields.school_name.required,visible:G.education.fields.school_name.visible},major:{required:G.education.fields.major.required,visible:G.education.fields.major.visible},degree:{required:G.education.fields.degree.required,visible:G.education.fields.degree.visible},start_date:{required:G.education.fields.start_time.required,visible:G.education.fields.start_time.visible},end_date:{required:G.education.fields.end_time.required,visible:G.education.fields.end_time.visible}},require_work_experience:G.work_experience.visible,work_experience_fields_config:{company_name:{required:G.work_experience.fields.company_name.required,visible:G.work_experience.fields.company_name.visible},position:{required:G.work_experience.fields.position.required,visible:G.work_experience.fields.position.visible},department:{required:G.work_experience.fields.department.required,visible:G.work_experience.fields.department.visible},start_date:{required:G.work_experience.fields.start_time.required,visible:G.work_experience.fields.start_time.visible},end_date:{required:G.work_experience.fields.end_time.required,visible:G.work_experience.fields.end_time.visible},job_description:{required:!0,visible:!0},achievements:{required:!1,visible:!0},resignation_reason:{required:!1,visible:!0}},require_family_info:G.family_member.visible,family_fields_config:{relation:{required:G.family_member.fields.relation.required,visible:G.family_member.fields.relation.visible},name:{required:G.family_member.fields.name.required,visible:G.family_member.fields.name.visible},workplace:{required:G.family_member.fields.workplace_address.required,visible:G.family_member.fields.workplace_address.visible},position:{required:G.family_member.fields.position.required,visible:G.family_member.fields.position.visible},phone:{required:G.family_member.fields.phone.required,visible:G.family_member.fields.phone.visible}},require_training_info:G.training_fields_config.visible,require_professional_skills:G.require_professional_skills.visible,enable_posture_check:!0,posture_check_config:{required_photos:["front","side","back"],instructions:"请按照提示上传您的全身照片,确保光线充足,背景简洁"},interview_duration_minutes:45,enable_video_recording:!0,enable_face_recognition:!0,scoring_method:"hybrid",auto_analysis_enabled:!0,custom_welcome_message:"欢迎参加咖啡师岗位的面试,请放松心情,准备好开始面试吧!",custom_instructions:"本次面试共有10个问题,每个问题有60秒的回答时间,请简洁明了地表达您的观点。",notification_config:{send_email:!0,send_sms:!1,notify_hr:!0,completion_message:"感谢您完成面试,我们将在3个工作日内给您回复。"},is_active:!0,is_template:!1};Be.value==0||(p.id=Be.value),Be.value==0?(await ui(p)).code==2e3?(R.success("配置保存成功"),we.value=!1,V.value=!1):R.error("配置保存失败"):(await kt(p)).code==2e3?(R.success("配置保存成功"),we.value=!1,V.value=!1):R.error("配置保存失败")}catch(p){console.error("保存配置失败:",p),R.error("配置保存失败")}},kr=()=>({name:G.name,gender:G.gender,three_period:G.three_period,phone:G.phone,id_card:G.id_card,ethnicity:G.ethnicity,height:G.height,weight:G.weight,current_address:G.current_address,household_location:G.household_location,marital_status:G.marital_status,expected_salary:G.expected_salary}),jr=()=>({skills:G.require_professional_skills,training:G.training_fields_config}),io=$(!1),ke=et({faceConsistency:!0,preventScreenshot:!0,screenSwitchAlert:!0,positionDetection:!0,eyeMovementDetection:!0,reviewInterview:!1,beforeStart:!0,beforeStartText:"你好,我是本次面试的面试官,欢迎参加本公司的线上面试!面试预计需要15分钟,请你提前安排在网络良好、光线亮度合适、且相对安静的环境参加这次面试以免影响本次面试的结果。如果你在面试过程中遇到问题,请与我们的招聘人员联系。",afterStartReminder:!1,afterStartText:"本次面试如有15分钟,高效调前后流程,安静好心理",disclaimer:!1,disclaimerText:"本次面试已全部结束,感谢您的参与,请等待后续通知。"}),wn=$(!1),ao=$(!1),ro=$(!1),qt=$(""),On=$(""),Tn=$(""),Nr=()=>{io.value=!1,wn.value=!1,ao.value=!1,ro.value=!1,Object.assign(ke,{faceConsistency:!0,preventScreenshot:!0,screenSwitchAlert:!0,positionDetection:!0,eyeMovementDetection:!0,reviewInterview:!1,beforeStart:!0,beforeStartText:"你好,我想咨询其间的面试,欢迎来到大面试",afterStartReminder:!1,afterStartText:"本次面试如有15分钟,高效调前后流程,安静好心理",disclaimer:!1,disclaimerText:"本次面试已全部流程拍摄,面试者同意可为今后资讯调研"})},Fr=()=>{console.log("保存面试设置:",ke),R.success("面试设置已保存"),io.value=!1},Lr=()=>{Un(o.query.id).then(p=>{io.value=!0,Be.value=p.data.id,ke.beforeStartText=p.data.digital_human_opening_speech})},Qr=()=>{qt.value=ke.beforeStartText,wn.value=!0},zr=()=>{wn.value=!1,qt.value=""},Gr=async()=>{var p;if(!qt.value.trim()){R.warning("开始前提示内容不能为空");return}ke.beforeStartText=qt.value.trim();try{let e;if(console.log(Be.value),Be.value==0)e=await ui({position_id:o.query.id,digital_human_opening_speech:qt.value.trim()}),e.code===2e3?(Be.value=((p=e.data)==null?void 0:p.id)||e.data,R.success("开始前提示内容已创建"),wn.value=!1):R.error("开始前提示内容创建失败");else if(e=await kt({id:Be.value,digital_human_opening_speech:qt.value.trim()}),e.code===2e3){R.success("开始前提示内容已更新"),wn.value=!1;try{const F={config_id:Be.value};await ci(F),console.log("开场白生成成功")}catch(F){console.error("获取开场白失败:",F),R.warning("开场白生成中,请稍后")}}else R.error("开始前提示内容更新失败")}catch(e){console.error("保存开始前提示内容失败:",e),R.error("保存失败,请重试")}},$r=()=>{On.value=ke.afterStartText,ao.value=!0},Jr=()=>{ao.value=!1,On.value=""},Wr=()=>{if(!On.value.trim()){R.warning("开始后提醒内容不能为空");return}ke.afterStartText=On.value.trim(),ao.value=!1,R.success("开始后提醒内容已更新")},Hr=()=>{Tn.value=ke.disclaimerText,ro.value=!0},Yr=()=>{ro.value=!1,Tn.value=""},Xr=()=>{if(!Tn.value.trim()){R.warning("免责声明内容不能为空");return}ke.disclaimerText=Tn.value.trim(),ro.value=!1,R.success("免责声明内容已更新")},fn=et({openQuestionsCount:5,choiceQuestionsCount:10}),Qi=()=>{console.log("题目数量已更新:",fn)},zi=async()=>{try{dt.value=!0;const p=q.value.map(I=>I.id);if(p.length===0){R.warning("请先选择能力标签");return}const e={position_id:o.query.id,competency_tag_ids:p,open_questions_count:fn.openQuestionsCount,choice_questions_count:fn.choiceQuestionsCount,auto_save:!0,tenant_id:1},F=await Bl(e);if(F&&F.data){const I=await Pr({tenant_id:1,page:1,limit:30,position_id:o.query.id});if(console.log(I),I===null){console.log("轮询被取消,停止处理");return}if(I&&I.data&&I.data.dataList){const M=I.data.dataList.map(Q=>({id:Q.id||Date.now(),title:Q.question||Q.title,ability:Q.ability||"未设置",content:Q.content||Q.question,target:Q.target||"未设置",competency_tags:Q.competency_tag_info||[],question_form_name:Q.question_form_name,scoring_reference:Q.scoring_reference,question_form:Q.question_form,is_required_correct:Q.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:Q.options||[],source:"ai_generated"}));J.value=M,R.success(`已成功生成${M.length}个面试题目`)}else R.warning("AI生成题目中,请稍后再试")}}catch(p){console.error("AI自动组题失败:",p),R.error("AI自动组题失败,请重试")}finally{dt.value=!1}},Zr=p=>{if(T.competency_tags=[],p.length>0){const e=Math.floor(100/p.length),F=100%p.length;T.competency_tags=p.map((I,M)=>{const Q=H.value.find(me=>me.id===I);return{id:I,name:Q?Q.name:`标签${I}`,weight:e+(M<F?1:0)}})}},qr=()=>T.competency_tags.length===0?(R.warning("请至少选择一个胜任力标签"),!1):T.weight<=0||T.weight>100?(R.warning("权重必须在1-100之间"),!1):!0,_r=p=>{switch(T.type=p,p){case"open":T.suggestedDuration=120;break;case"single":case"multiple":T.suggestedDuration=60;break;case"fill":T.suggestedDuration=30;break;case"self":T.suggestedDuration=180;break;default:T.suggestedDuration=60}},Dn=$(!1),Vn=$(!1),lo=$(-1),Ve=et({title:"候选人提问",duration:5,maxQuestions:3,description:"候选人可以向面试官提问关于公司、职位或团队的问题",isRequired:!0,allowSkip:!1,guidelines:["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]}),el=(p,e)=>{lo.value=e,p.config?Object.assign(Ve,p.config):(Ve.title=p.name,Ve.description=p.description||"候选人可以向面试官提问关于公司、职位或团队的问题",Ve.duration=5,Ve.maxQuestions=3,Ve.isRequired=p.active,Ve.allowSkip=!1,Ve.guidelines=["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]),Vn.value=!0},tl=(p,e)=>{switch(p.type){case"ai_video":Ko(p);break;case"candidate_questions":el(p,e);break;case"data_collection":Ko(p);break;case"resume_collection":Ko(p);break;default:Ko(p);break}},nl=(p,e)=>{(e===null||e<0)&&(e=0),e>100&&(e=100);const F=T.competency_tags;F[p].weight;const I=Math.round(e);if(F[p].weight=I,F.length===1){F[0].weight=100;return}const M=F.filter((me,_)=>_!==p),Q=M.reduce((me,_)=>me+_.weight,0);if(Q===0){const me=100-I,_=Math.floor(me/M.length),ve=me%M.length;M.forEach((ht,vn)=>{const yt=F.findIndex(je=>je.id===ht.id);F[yt].weight=_+(vn<ve?1:0)})}else{const me=100-I;if(me>0){M.forEach(ve=>{const ht=F.findIndex(yt=>yt.id===ve.id),vn=ve.weight/Q;F[ht].weight=Math.round(me*vn)});const _=ri();if(_!==100){const ve=100-_,ht=M.reduce((yt,je)=>je.weight>yt.weight?je:yt),vn=F.findIndex(yt=>yt.id===ht.id);F[vn].weight+=ve}}else M.forEach(_=>{const ve=F.findIndex(ht=>ht.id===_.id);F[ve].weight=0})}},ri=()=>T.competency_tags.reduce((e,F)=>e+(F.weight||0),0),ol=()=>{const p=T.competency_tags;if(p.length===0)return;const e=Math.floor(100/p.length),F=100%p.length;p.forEach((I,M)=>{I.weight=e+(M<F?1:0)})},Gi=si({get:()=>ue(T.competency_tags),set:p=>{T.competency_tags=p,Zr(p)}}),il=async()=>{try{const p=await Ql({position_id:o.query.id,tenant_id:1,is_ai_generated:!0});p&&p.data&&p.data.length>0&&(await Nl({position_id:o.query.id,question_id:p.data.map(e=>e.id),tenant_id:1}),Be.value>0&&await kt({id:Be.value,enable_ai_questions:!1}),R.success("AI考察问题已删除"))}catch(p){console.error("删除AI考察问题失败:",p),R.error("删除AI考察问题失败")}};yl(()=>G.question_form_switches.enable_open_questions,p=>{p?a.forEach(e=>{e.type==="ai_interview"&&(e.visible=!0)}):a.forEach(e=>{e.type==="ai_interview"&&(e.visible=!1)})},{immediate:!0}),$(!1),$(!1);const al=$(!1),ko=$(!1),_t=$({duration:5,detectionItems:["face","pose"],promptText:"请按照提示完成相应的动作,系统将自动进行检测。"}),rl=()=>{ko.value=!1},ll=async()=>{try{await saveProcessConfig({position_id:o.params.id,process_type:"body_detection",config:_t.value}),R.success("配置保存成功"),ko.value=!1}catch(p){console.error("保存肢体检测配置失败:",p),R.error("配置保存失败")}};return(p,e)=>{const F=Oe("page-header"),I=Oe("el-button"),M=Oe("el-icon"),Q=Oe("el-input"),me=Oe("el-cascader"),_=Oe("el-option"),ve=Oe("el-select"),ht=Oe("el-tag"),vn=Oe("el-date-picker"),yt=Oe("el-card"),je=Oe("el-switch"),Tt=Oe("el-dialog"),zt=Oe("el-checkbox"),sl=Oe("Refresh"),pn=Oe("el-input-number"),so=Oe("el-radio"),$i=Oe("el-upload"),Pn=Oe("el-tooltip"),Rn=Oe("el-table-column"),Ji=Oe("el-table"),Wi=Oe("el-pagination"),en=Oe("el-col"),tn=Oe("el-row"),dl=Oe("el-radio-group"),li=Oe("el-form-item"),ul=Oe("el-checkbox-group"),cl=Oe("el-form"),Hi=bl("loading");return j(),X("div",Ds,[l("div",Vs,[f(F,{title:"测试",onBack:qe}),l("div",Ps,[f(I,{type:"primary",onClick:_e},{default:y(()=>e[96]||(e[96]=[U("保存")])),_:1}),f(I,{onClick:Ft},{default:y(()=>e[97]||(e[97]=[U("分享职位")])),_:1})])]),l("div",Rs,[f(yt,{class:"detail-card"},{default:y(()=>[e[129]||(e[129]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"职位详情")],-1)),l("div",Us,[e[100]||(e[100]=l("div",{class:"detail-label"},"职位名称",-1)),wo.value?(j(),X("div",Ms,[f(Q,{modelValue:xn.value,"onUpdate:modelValue":e[0]||(e[0]=v=>xn.value=v),placeholder:"请输入职位名称",maxlength:"20","show-word-limit":""},null,8,["modelValue"]),l("div",Bs,[f(I,{size:"small",onClick:La},{default:y(()=>e[98]||(e[98]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:Qa},{default:y(()=>e[99]||(e[99]=[U("保存")])),_:1})])])):(j(),X("div",Ks,[U(ie(t.title)+" ",1),f(I,{type:"text",class:"edit-title-btn",onClick:Fa},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1})]))]),l("div",ks,[e[103]||(e[103]=l("div",{class:"detail-label"},"工作地点",-1)),Oo.value?(j(),X("div",Ns,[f(me,{modelValue:Lt.value,"onUpdate:modelValue":e[1]||(e[1]=v=>Lt.value=v),options:ye(E),props:{expandTrigger:"hover",checkStrictly:!1,value:"code",label:"name"},style:{width:"100%"},placeholder:"请选择工作地点",clearable:"",onChange:x},null,8,["modelValue","options"]),l("div",Fs,[f(I,{size:"small",onClick:Ga},{default:y(()=>e[101]||(e[101]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:$a},{default:y(()=>e[102]||(e[102]=[U("保存")])),_:1})])])):(j(),X("div",js,[U(ie((()=>{if(!t.location)return"暂无";if(Array.isArray(t.location))return t.location.join(",");if(typeof t.location=="string")try{return t.location.replace(/[\[\]']/g,"").split(",").map(oe=>oe.trim()).join(",")}catch{return t.location}return t.location})())+" ",1),f(I,{type:"text",class:"edit-title-btn",onClick:za},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1})]))]),l("div",Ls,[e[106]||(e[106]=l("div",{class:"detail-label"},"职位薪资",-1)),To.value?(j(),X("div",zs,[f(Q,{modelValue:Gn.value,"onUpdate:modelValue":e[2]||(e[2]=v=>Gn.value=v),placeholder:"请输入职位薪资",maxlength:"30","show-word-limit":""},null,8,["modelValue"]),l("div",Gs,[f(I,{size:"small",onClick:Wa},{default:y(()=>e[104]||(e[104]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:Ha},{default:y(()=>e[105]||(e[105]=[U("保存")])),_:1})])])):(j(),X("div",Qs,[U(ie(t.salary_range||"暂无")+" ",1),f(I,{type:"text",class:"edit-title-btn",onClick:Ja},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1})]))]),l("div",$s,[e[109]||(e[109]=l("div",{class:"detail-label"},"工作经验",-1)),Do.value?(j(),X("div",Ws,[f(ve,{modelValue:$n.value,"onUpdate:modelValue":e[3]||(e[3]=v=>$n.value=v),placeholder:"请选择工作经验",style:{width:"100%"}},{default:y(()=>[f(_,{label:"不限",value:"不限"}),f(_,{label:"应届毕业生",value:"应届毕业生"}),f(_,{label:"1年以下",value:"1年以下"}),f(_,{label:"1-3年",value:"1-3年"}),f(_,{label:"3-5年",value:"3-5年"}),f(_,{label:"5-10年",value:"5-10年"}),f(_,{label:"10年以上",value:"10年以上"})]),_:1},8,["modelValue"]),l("div",Hs,[f(I,{size:"small",onClick:Xa},{default:y(()=>e[107]||(e[107]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:Za},{default:y(()=>e[108]||(e[108]=[U("保存")])),_:1})])])):(j(),X("div",Js,[U(ie(t.work_experience_required||"暂无")+" ",1),f(I,{type:"text",class:"edit-title-btn",onClick:Ya},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1})]))]),l("div",Ys,[e[112]||(e[112]=l("div",{class:"detail-label"},"学历要求",-1)),Vo.value?(j(),X("div",Zs,[f(ve,{modelValue:Jn.value,"onUpdate:modelValue":e[4]||(e[4]=v=>Jn.value=v),placeholder:"请选择学历要求",style:{width:"100%"}},{default:y(()=>[f(_,{label:"不限",value:"不限"}),f(_,{label:"高中",value:"高中"}),f(_,{label:"大专",value:"大专"}),f(_,{label:"本科",value:"本科"}),f(_,{label:"硕士",value:"硕士"}),f(_,{label:"博士",value:"博士"})]),_:1},8,["modelValue"]),l("div",qs,[f(I,{size:"small",onClick:_a},{default:y(()=>e[110]||(e[110]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:er},{default:y(()=>e[111]||(e[111]=[U("保存")])),_:1})])])):(j(),X("div",Xs,[U(ie(t.education_required||"暂无")+" ",1),f(I,{type:"text",class:"edit-title-btn",onClick:qa},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1})]))]),l("div",_s,[e[115]||(e[115]=l("div",{class:"detail-label"},"所属部门",-1)),Po.value?(j(),X("div",td,[f(Q,{modelValue:Wn.value,"onUpdate:modelValue":e[5]||(e[5]=v=>Wn.value=v),placeholder:"请输入所属部门",maxlength:"30","show-word-limit":""},null,8,["modelValue"]),l("div",nd,[f(I,{size:"small",onClick:nr},{default:y(()=>e[113]||(e[113]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:or},{default:y(()=>e[114]||(e[114]=[U("保存")])),_:1})])])):(j(),X("div",ed,[U(ie(t.department||"暂无")+" ",1),f(I,{type:"text",class:"edit-title-btn",onClick:tr},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1})]))]),l("div",od,[e[116]||(e[116]=l("div",{class:"detail-label"},"职位状态",-1)),l("div",id,[f(ht,{type:Jt(t.status)},{default:y(()=>[U(ie(Bt(t.status)),1)]),_:1},8,["type"])])]),l("div",ad,[e[119]||(e[119]=l("div",{class:"detail-label"},"截止日期",-1)),Ro.value?(j(),X("div",ld,[f(vn,{modelValue:Hn.value,"onUpdate:modelValue":e[6]||(e[6]=v=>Hn.value=v),type:"date",placeholder:"请选择截止日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"]),l("div",sd,[f(I,{size:"small",onClick:ar},{default:y(()=>e[117]||(e[117]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:rr},{default:y(()=>e[118]||(e[118]=[U("保存")])),_:1})])])):(j(),X("div",rd,[U(ie(t.end_date||"暂无")+" ",1),f(I,{type:"text",class:"edit-title-btn",onClick:ir},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1})]))]),l("div",dd,[e[122]||(e[122]=l("div",{class:"detail-label"},"职位要求",-1)),Yn.value?Ue("",!0):(j(),X("div",{key:0,class:"detail-value html-content",innerHTML:t.requirements},null,8,ud)),Yn.value?(j(),X("div",cd,[f(Q,{modelValue:Xn.value,"onUpdate:modelValue":e[7]||(e[7]=v=>Xn.value=v),type:"textarea",rows:"6",placeholder:"请输入职位要求",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),l("div",fd,[f(I,{size:"small",onClick:sr},{default:y(()=>e[120]||(e[120]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:dr},{default:y(()=>e[121]||(e[121]=[U("保存")])),_:1})])])):(j(),Ce(I,{key:1,type:"text",class:"edit-title-btn",onClick:lr},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1}))]),e[130]||(e[130]=l("div",{style:{width:"100%","border-bottom":"1px solid #e5e5e5"}},null,-1)),l("div",vd,[e[125]||(e[125]=l("div",{class:"detail-label"},"职位描述",-1)),Zn.value?Ue("",!0):(j(),X("div",{key:0,class:"detail-value html-content",innerHTML:t.description},null,8,pd)),Zn.value?(j(),X("div",md,[f(Q,{modelValue:qn.value,"onUpdate:modelValue":e[8]||(e[8]=v=>qn.value=v),type:"textarea",rows:"6",placeholder:"请输入职位描述",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),l("div",gd,[f(I,{size:"small",onClick:cr},{default:y(()=>e[123]||(e[123]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:fr},{default:y(()=>e[124]||(e[124]=[U("保存")])),_:1})])])):(j(),Ce(I,{key:1,type:"text",class:"edit-title-btn",onClick:ur},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1}))]),l("div",hd,[e[128]||(e[128]=l("div",{class:"detail-label"},"能力标签",-1)),Uo.value?(j(),X("div",bd,[f(ve,{modelValue:Cn.value,"onUpdate:modelValue":e[9]||(e[9]=v=>Cn.value=v),multiple:"",filterable:"",placeholder:"请选择能力标签",style:{width:"100%"}},{default:y(()=>[(j(!0),X(We,null,He(H.value,v=>(j(),Ce(_,{key:v.id,label:v.name,value:v.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",Sd,[f(I,{size:"small",onClick:hr},{default:y(()=>e[126]||(e[126]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:yr},{default:y(()=>e[127]||(e[127]=[U("保存")])),_:1})])])):(j(),X("div",yd,[(j(!0),X(We,null,He(t.competency_tags,v=>(j(),Ce(ht,{key:v.id,effect:"plain",class:"competency-tag"},{default:y(()=>[U(ie(v.name),1)]),_:2},1024))),128)),f(I,{type:"text",class:"edit-title-btn",onClick:gr},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1})]))])]),_:1}),l("div",Ed,[f(yt,{class:"status-card"},{default:y(()=>[e[131]||(e[131]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"职位状态")],-1)),l("div",xd,[f(je,{modelValue:n.value,"onUpdate:modelValue":e[10]||(e[10]=v=>n.value=v),"inactive-text":"",onChange:wt},null,8,["modelValue"]),l("span",Id,ie(n.value?"已启用":"待启用"),1)])]),_:1}),f(yt,{class:"status-card"},{default:y(()=>[l("div",Cd,[e[133]||(e[133]=l("div",{class:"section-line"},null,-1)),e[134]||(e[134]=l("span",null,"职位性质",-1)),In.value?Ue("",!0):(j(),Ce(I,{key:0,type:"text",class:"edit-btn",onClick:vr},{default:y(()=>e[132]||(e[132]=[U("编辑")])),_:1}))]),l("div",Ad,[In.value?Ue("",!0):(j(),X("div",wd,ie(rn(t.job_type)),1)),In.value?(j(),X("div",Od,[f(ve,{modelValue:_n.value,"onUpdate:modelValue":e[11]||(e[11]=v=>_n.value=v),placeholder:"请选择职位性质",style:{width:"100%"}},{default:y(()=>[f(_,{label:"全职",value:0}),f(_,{label:"兼职",value:1}),f(_,{label:"实习",value:2}),f(_,{label:"其他",value:3})]),_:1},8,["modelValue"]),l("div",Td,[f(I,{size:"small",onClick:pr},{default:y(()=>e[135]||(e[135]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:mr},{default:y(()=>e[136]||(e[136]=[U("保存")])),_:1})])])):Ue("",!0)])]),_:1}),f(yt,{class:"status-card"},{default:y(()=>[l("div",Dd,[e[138]||(e[138]=l("div",{class:"section-line"},null,-1)),e[139]||(e[139]=l("span",null,"招聘流程",-1)),f(I,{type:"text",class:"edit-btn",onClick:Ot},{default:y(()=>e[137]||(e[137]=[U("设置流程")])),_:1})]),l("div",Vd,[(j(!0),X(We,null,He(a,(v,oe)=>jo((j(),X("div",{key:v.id,class:xt(["process-step",{disabled:!v.active}])},[l("div",Pd,ie(oe+1),1),l("div",Rd,[l("div",Ud,ie(v.name),1)])],2)),[[Yi,v.visible]])),128))])]),_:1}),f(yt,{class:"status-card"},{default:y(()=>[l("div",Kd,[e[141]||(e[141]=l("div",{class:"section-line"},null,-1)),e[142]||(e[142]=l("span",null,"面试设置",-1)),f(I,{type:"text",class:"edit-btn",onClick:Lr},{default:y(()=>e[140]||(e[140]=[U("编辑")])),_:1})])]),_:1})])]),f(Tt,{title:"设置招聘流程",modelValue:s.value,"onUpdate:modelValue":e[14]||(e[14]=v=>s.value=v),width:"500px","close-on-click-modal":!1},{footer:y(()=>[l("span",Qd,[f(I,{onClick:Fn},{default:y(()=>e[146]||(e[146]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:Sn},{default:y(()=>e[147]||(e[147]=[U("确定")])),_:1})])]),default:y(()=>[l("div",Md,[(j(!0),X(We,null,He(a,(v,oe)=>jo((j(),X("div",{key:v.id},[oe<a.length-1?(j(),X("div",Bd,[f(I,{type:"text",onClick:Ie=>ln(oe,Ie)},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(mn))]),_:1})]),_:2},1032,["onClick"])])):Ue("",!0),l("div",{class:xt(["process-edit-item",{highlight:v.active}])},[l("div",kd,ie(oe+1),1),l("div",jd,[l("div",null,ie(v.name),1),l("div",Nd,ie(v.description),1)]),l("div",Fd,[f(I,{type:"info",size:"small",plain:"",onClick:Ie=>tl(v,oe)},{default:y(()=>e[143]||(e[143]=[U(" 修改 ")])),_:2},1032,["onClick"]),f(I,{type:"danger",size:"small",plain:"",style:{"margin-top":"10px","margin-left":"0px"},onClick:Ie=>Et(v,oe)},{default:y(()=>e[144]||(e[144]=[U(" 删除 ")])),_:2},1032,["onClick"])])],2)])),[[Yi,v.visible]])),128)),e[145]||(e[145]=l("div",{class:"add-process-btn"},null,-1))]),V.value?(j(),X("div",{key:0,class:"process-options-menu",style:El({top:P.top,left:P.left}),onClick:e[13]||(e[13]=Sl(()=>{},["stop"]))},[l("div",{class:"close-btn",onClick:e[12]||(e[12]=v=>V.value=!1)},[f(M,null,{default:y(()=>[f(ye(Tl))]),_:1})]),(j(),X(We,null,He(u,v=>l("div",{key:v.value,class:"process-option-item",onClick:oe=>sn(v.value,v.label)},ie(v.label),9,Ld)),64))],4)):Ue("",!0)]),_:1},8,["modelValue"]),f(ye(di),{title:"AI考察",modelValue:B.value,"onUpdate:modelValue":e[33]||(e[33]=v=>B.value=v),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-video-drawer","destroy-on-close":!1},{footer:y(()=>[l("div",rc,[z.value>1?(j(),Ce(I,{key:0,size:"small",onClick:un},{default:y(()=>e[188]||(e[188]=[U("上一步")])),_:1})):Ue("",!0),f(I,{onClick:w,size:"small"},{default:y(()=>e[189]||(e[189]=[U("取消")])),_:1}),z.value<3?(j(),Ce(I,{key:1,type:"primary",size:"small",onClick:dn,style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:y(()=>e[190]||(e[190]=[U("下一步")])),_:1})):(j(),Ce(I,{key:2,type:"success",onClick:Wt,size:"small",style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:y(()=>e[191]||(e[191]=[U("新增")])),_:1}))])]),default:y(()=>[l("div",zd,[l("div",{class:xt(["step-item",{active:z.value===1}]),onClick:e[15]||(e[15]=v=>C(1))},[e[148]||(e[148]=l("div",{class:"step-number"},"1",-1)),l("div",{class:xt(["step-title",{"active-title":z.value===1}])},"考察能力",2)],2),l("div",{class:xt(["step-line",{"active-line":z.value>=2}])},null,2),l("div",{class:xt(["step-item",{active:z.value===2}]),onClick:e[16]||(e[16]=v=>C(2))},[e[149]||(e[149]=l("div",{class:"step-number"},"2",-1)),l("div",{class:xt(["step-title",{"active-title":z.value===2}])},"面试题目",2)],2),l("div",{class:xt(["step-line",{"active-line":z.value>=3}])},null,2),l("div",{class:xt(["step-item",{active:z.value===3}]),onClick:e[17]||(e[17]=v=>C(3))},[e[150]||(e[150]=l("div",{class:"step-number"},"3",-1)),l("div",{class:xt(["step-title",{"active-title":z.value===3}])},"系统设置",2)],2)]),z.value===1?jo((j(),X("div",Gd,[l("div",$d,[e[157]||(e[157]=l("div",{class:"ai-video-options-header"},[l("div",{class:"ai-video-options-header-title"},[l("span",null,"AI根据岗位信息生成的能力,创建完步骤后,会自动将选择的新智能能力加入到该职位的考察能力列表中。")])],-1)),l("div",Jd,[l("div",Wd,[(j(!0),X(We,null,He(Pt.value.slice(0,10),v=>(j(),Ce(zt,{key:v.id,modelValue:v.selected,"onUpdate:modelValue":oe=>v.selected=oe,onChange:oe=>Bi(v,oe),class:"custom-checkbox"},{default:y(()=>[l("div",Hd,[l("span",null,ie(v.name),1),e[151]||(e[151]=l("img",{src:ta,alt:"",class:"sheng"},null,-1))])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),l("div",Yd,[l("div",Xd,[e[153]||(e[153]=l("h3",{style:{color:"#808080"}},"备选考核维度",-1)),l("div",Zd,[f(I,{type:"primary",class:"custom-btn",plain:"",size:"small",onClick:S},{default:y(()=>e[152]||(e[152]=[U("重新生成")])),_:1})])]),l("div",qd,[(j(!0),X(We,null,He(Pt.value.slice(10,50),v=>(j(),Ce(zt,{key:v.id,modelValue:v.selected,"onUpdate:modelValue":oe=>v.selected=oe,onChange:oe=>Bi(v,oe),class:"custom-checkbox"},{default:y(()=>[l("div",_d,[l("span",null,ie(v.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),l("div",eu,[e[156]||(e[156]=l("h3",{style:{color:"#808080"}},"自定义维度",-1)),l("div",tu,[l("div",nu,[l("div",ou,[f(Q,{style:{width:"150px"},modelValue:Ht.value,"onUpdate:modelValue":e[18]||(e[18]=v=>Ht.value=v),placeholder:"请输入维度名称"},null,8,["modelValue"])]),l("div",iu,[e[154]||(e[154]=l("div",{class:"input-label"},"特征描述:",-1)),f(Q,{modelValue:An.value,"onUpdate:modelValue":e[19]||(e[19]=v=>An.value=v),style:{width:"500px"},type:"textarea",placeholder:"请输入特征描述"},null,8,["modelValue"])])]),l("div",au,[f(I,{type:"primary",onClick:Er},{default:y(()=>e[155]||(e[155]=[U("添加")])),_:1})])])])])])),[[Hi,Dn.value]]):Ue("",!0),z.value===2?(j(),X("div",ru,[l("div",lu,[l("div",su,[l("div",du,[f(I,{plain:"",class:"custom-btn",onClick:it},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(mn))]),_:1}),e[158]||(e[158]=U(" 自定义题目 "))]),_:1}),f(I,{plain:"",class:"custom-btn"},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(Zi))]),_:1}),e[159]||(e[159]=U(" 导入题目 "))]),_:1}),J.value.length>0?(j(),Ce(I,{key:0,type:"primary",plain:"",class:"custom-btn",loading:dt.value,onClick:zi},{default:y(()=>[f(M,null,{default:y(()=>[f(sl)]),_:1}),e[160]||(e[160]=U(" 重新生成 "))]),_:1},8,["loading"])):Ue("",!0),l("div",uu,[l("div",cu,[e[161]||(e[161]=l("span",{class:"switch-label"},"开放题数量",-1)),f(pn,{modelValue:fn.openQuestionsCount,"onUpdate:modelValue":e[20]||(e[20]=v=>fn.openQuestionsCount=v),min:1,max:10,size:"small",onChange:Qi},null,8,["modelValue"])]),l("div",fu,[e[162]||(e[162]=l("span",{class:"switch-label"},"选择题数量",-1)),f(pn,{modelValue:fn.choiceQuestionsCount,"onUpdate:modelValue":e[21]||(e[21]=v=>fn.choiceQuestionsCount=v),min:1,max:20,size:"small",onChange:Qi},null,8,["modelValue"])])])]),l("div",vu,[e[163]||(e[163]=l("span",null,"预计面试时长: ",-1)),l("span",pu,ie(he.value),1),e[164]||(e[164]=l("span",{class:"duration-tip"},"拖动试题卡片可改变试题顺序",-1))])]),l("div",mu,[jo((j(),X("div",gu,[J.value.length===0?(j(),X("div",hu,[e[167]||(e[167]=l("p",null,"暂无题目",-1)),e[168]||(e[168]=l("p",{class:"ai-tip"},'点击"AI自动组题"按钮',-1)),e[169]||(e[169]=l("p",{class:"ai-tip"},"可根据您选择的能力类型一键组题",-1)),f(I,{type:"success",class:"auto-generate-btn",loading:dt.value,onClick:zi},{default:y(()=>e[165]||(e[165]=[U(" AI自动组题 ")])),_:1},8,["loading"]),dt.value&&ye(Qt)?(j(),Ce(I,{key:0,type:"warning",plain:"",size:"small",onClick:Rr,style:{"margin-left":"10px"}},{default:y(()=>e[166]||(e[166]=[U(" 取消生成 ")])),_:1})):Ue("",!0)])):(j(),X("div",yu,[f(ye(ha),{modelValue:J.value,"onUpdate:modelValue":e[22]||(e[22]=v=>J.value=v),"item-key":"id",handle:".drag-handle",onStart:Ar,onEnd:wr,animation:"200","ghost-class":"sortable-ghost","chosen-class":"sortable-chosen","drag-class":"sortable-drag"},{item:y(({element:v})=>[l("div",bu,[e[173]||(e[173]=l("div",{class:"drag-handle"},[l("img",{src:Kl,alt:"",class:"dorp"})],-1)),l("div",Su,[l("div",Eu,[l("div",xu,[l("div",Iu,[l("span",Cu,"题目"+ie(J.value.indexOf(v)+1),1),l("span",null,[l("span",Au,ie("「"+v.question_form_name+"」"),1),U(ie(v.title),1)])]),l("div",wu,[(j(!0),X(We,null,He((v.competency_tag_info||v.competency_tags||[]).slice(0,2),(oe,Ie)=>(j(),Ce(ht,{key:oe.id,effect:"plain",class:"competency-tag",size:"small"},{default:y(()=>[U(ie(oe.name),1)]),_:2},1024))),128)),(v.competency_tag_info||v.competency_tags||[]).length>2?(j(),X("span",Ou," +"+ie((v.competency_tag_info||v.competency_tags||[]).length-2),1)):Ue("",!0)])])]),l("div",Tu,[f(I,{type:"text",onClick:oe=>Pi(J.value.indexOf(v))},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:2},1032,["onClick"]),f(I,{type:"text",onClick:oe=>Ri(J.value.indexOf(v))},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(qi))]),_:1})]),_:2},1032,["onClick"])])]),l("div",Du,[l("div",Vu,[l("span",null,ie(v.scoring_reference),1)])]),v.question_form==0?(j(),X("div",Pu,[l("div",Ru,[f(je,{style:{"margin-top":"0px"},modelValue:v.enable_follow_up,"onUpdate:modelValue":oe=>v.enable_follow_up=oe,onChange:k},null,8,["modelValue","onUpdate:modelValue"]),e[170]||(e[170]=l("span",{class:"answer-label"},"回答不充分追问",-1))]),l("div",Uu,[e[171]||(e[171]=l("span",{class:"answer-label"},"追问轮数",-1)),f(ve,{modelValue:v.maxAnswers,"onUpdate:modelValue":oe=>v.maxAnswers=oe,size:"small",placeholder:"请选择"},{default:y(()=>[f(_,{label:"1次",value:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])])):Ue("",!0),v.question_form==1?(j(),X("div",Ku,[l("div",Mu,[e[172]||(e[172]=l("span",{class:"answer-label"},"是否为红线题:",-1)),f(ve,{modelValue:v.is_required_correct,"onUpdate:modelValue":oe=>v.is_required_correct=oe,onChange:oe=>O(v.id,v.is_required_correct),size:"small",placeholder:"请选择"},{default:y(()=>[f(_,{label:"是",value:!0}),f(_,{label:"否",value:!1})]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])])):Ue("",!0)])]),_:1},8,["modelValue"])]))])),[[Hi,dt.value]]),l("div",Bu,[e[176]||(e[176]=l("div",{class:"dimension-title"},"已选胜任力考核维度",-1)),l("div",ku,[(j(!0),X(We,null,He(q.value,(v,oe)=>(j(),X("div",{key:v.value,class:"dimension-item"},[l("div",ju,[l("div",Nu,[l("span",Fu,ie(v.label),1),e[174]||(e[174]=l("img",{src:ta,alt:"",class:"sheng"},null,-1))])]),l("div",{class:"dimension-content",onClick:Ie=>Dr(oe),title:"点击删除此胜任力标签"},e[175]||(e[175]=[l("div",{class:"ability-description"},ie("—"),-1)]),8,Lu)]))),128))])])])])])):Ue("",!0),z.value===3?(j(),X("div",Qu,[l("div",zu,[l("div",Gu,[e[187]||(e[187]=l("div",{class:"section-header"},"请选择面试官形象",-1)),l("div",$u,[l("div",Ju,[oi.value?(j(),X("img",{key:0,src:oi.value,alt:"",style:{width:"100%",height:"100%","object-fit":"cover",transform:"translateZ(0)","backface-visibility":"hidden"}},null,8,Wu)):Ue("",!0)]),l("div",null,[l("div",Hu,[(j(!0),X(We,null,He(ni.value,v=>(j(),X("div",{key:v.id,class:xt(["avatar-item",{active:vt.value.id===v.id}]),onClick:oe=>xr(v)},[l("div",Xu,[l("div",{class:xt(["avatar-circle",{selected:vt.value.id===v.id}])},[l("img",{src:v.avatar_url||v.image,alt:v.name},null,8,Zu)],2),l("div",{class:"avatar-name",title:v.name},ie(v.name),9,qu)])],10,Yu))),128))]),l("div",_u,[e[177]||(e[177]=l("div",{class:"setting-label"},"「追问风格」",-1)),l("div",ec,[f(ve,{modelValue:rt.followUpStyle,"onUpdate:modelValue":e[23]||(e[23]=v=>rt.followUpStyle=v),placeholder:"请选择",onChange:e[24]||(e[24]=v=>eo("followUpStyle",rt.followUpStyle))},{default:y(()=>[f(_,{label:"温和",value:"1"}),f(_,{label:"严厉",value:"2"}),f(_,{label:"严谨",value:"3"})]),_:1},8,["modelValue"])]),e[178]||(e[178]=l("div",{class:"setting-desc"},null,-1))])])]),l("div",tc,[l("div",nc,[e[179]||(e[179]=l("div",{class:"setting-label"},[l("p",null,"「回答视频保留」")],-1)),e[180]||(e[180]=l("div",{class:"setting-desc"},[l("p",null,"选取后,将在报告中展示候选人的回答视频")],-1)),f(je,{modelValue:rt.keepVideo,"onUpdate:modelValue":e[25]||(e[25]=v=>rt.keepVideo=v),onChange:e[26]||(e[26]=v=>eo("keepVideo",v))},null,8,["modelValue"])]),l("div",oc,[e[183]||(e[183]=l("div",{class:"setting-label"},[l("p",null,"「中断后作答限制」")],-1)),l("div",ic,[f(so,{modelValue:rt.interruptionMode,"onUpdate:modelValue":e[27]||(e[27]=v=>rt.interruptionMode=v),label:"current",onChange:e[28]||(e[28]=v=>eo("interruptionMode",rt.interruptionMode))},{default:y(()=>e[181]||(e[181]=[U(" 从当前问题重新作答 ")])),_:1},8,["modelValue"]),f(so,{modelValue:rt.interruptionMode,"onUpdate:modelValue":e[29]||(e[29]=v=>rt.interruptionMode=v),label:"previous",onChange:e[30]||(e[30]=v=>eo("interruptionMode",rt.interruptionMode))},{default:y(()=>e[182]||(e[182]=[U(" 从头作答 ")])),_:1},8,["modelValue"])]),e[184]||(e[184]=l("div",{class:"setting-desc",style:{width:"40px"}},null,-1))]),l("div",ac,[e[185]||(e[185]=l("div",{class:"setting-label"},[l("p",null,"「智慧追问」")],-1)),e[186]||(e[186]=l("div",{class:"setting-desc"},[l("p",null,"追问将结合候选人资料情况,综合分析发问")],-1)),f(je,{modelValue:rt.smartFollowUp,"onUpdate:modelValue":e[31]||(e[31]=v=>rt.smartFollowUp=v),onChange:e[32]||(e[32]=v=>eo("smartFollowUp",v))},null,8,["modelValue"])])])])])])):Ue("",!0)]),_:1},8,["modelValue"]),f(Tt,{title:"新增视频宣讲",modelValue:Y.value,"onUpdate:modelValue":e[35]||(e[35]=v=>Y.value=v),width:"35%","close-on-click-modal":!1,class:"video-lecture-dialog"},{footer:y(()=>[l("span",cc,[f(I,{onClick:N},{default:y(()=>e[195]||(e[195]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:ee},{default:y(()=>e[196]||(e[196]=[U("确认")])),_:1})])]),default:y(()=>[l("div",lc,[l("div",sc,[e[193]||(e[193]=l("div",{class:"form-label"},"上传视频",-1)),f($i,{class:"video-uploader",action:"#","auto-upload":!1,"show-file-list":!1,accept:"video/*"},{default:y(()=>[l("div",dc,[f(M,null,{default:y(()=>[f(ye(mn))]),_:1}),e[192]||(e[192]=l("div",{class:"upload-text"},"上传文件大小不超过500M",-1))])]),_:1})]),l("div",uc,[e[194]||(e[194]=l("div",{class:"form-label"},"视频简介",-1)),f(Q,{modelValue:Z.description,"onUpdate:modelValue":e[34]||(e[34]=v=>Z.description=v),type:"textarea",rows:"4",placeholder:"视频简介会显示在视频下方的标题下方",maxlength:"200","show-word-limit":""},null,8,["modelValue"])])])]),_:1},8,["modelValue"]),f(ye(di),{title:"AI实时对话",modelValue:re.value,"onUpdate:modelValue":e[37]||(e[37]=v=>re.value=v),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-chat-drawer","destroy-on-close":!1},{footer:y(()=>[l("div",Dc,[f(I,{onClick:fe},{default:y(()=>e[207]||(e[207]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:le},{default:y(()=>e[208]||(e[208]=[U("确认")])),_:1})])]),default:y(()=>[l("div",fc,[l("div",vc,[e[206]||(e[206]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"对话设置")],-1)),l("div",pc,[f(I,{type:"primary",plain:"",onClick:Se},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(mn))]),_:1}),e[197]||(e[197]=U(" 添加问题 "))]),_:1}),f(I,{type:"success",plain:"",onClick:it},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(Zi))]),_:1}),e[198]||(e[198]=U(" 导入问题 "))]),_:1})]),l("div",mc,[J.value.length===0?(j(),X("div",gc,e[199]||(e[199]=[l("p",null,"暂无问题",-1),l("p",{class:"tip-text"},'点击"添加问题"或"导入问题"添加面试问题',-1)]))):(j(),X("div",hc,[f(ye(ha),{modelValue:J.value,"onUpdate:modelValue":e[36]||(e[36]=v=>J.value=v),"item-key":"id",handle:".drag-handle"},{item:y(({element:v,index:oe})=>[U(ie(v)+" ",1),l("div",yc,[l("div",bc,[l("div",Sc,[l("span",Ec,"题目"+ie(oe+1),1),l("span",null,ie(v.question),1)]),l("div",xc,[l("div",Ic,[e[201]||(e[201]=l("span",{class:"weight-label"},"权重占比:",-1)),f(pn,{modelValue:v.weight,"onUpdate:modelValue":Ie=>v.weight=Ie,min:0,max:100,step:1,size:"small","controls-position":"right"},{suffix:y(()=>e[200]||(e[200]=[U("%")])),_:2},1032,["modelValue","onUpdate:modelValue"])]),l("div",Cc,[e[202]||(e[202]=l("span",{class:"answer-label"},"最多回答次数",-1)),f(ve,{modelValue:v.maxAnswers,"onUpdate:modelValue":Ie=>v.maxAnswers=Ie,size:"small",placeholder:"请选择"},{default:y(()=>[f(_,{label:"1次",value:1}),f(_,{label:"2次",value:2}),f(_,{label:"3次",value:3})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),f(I,{type:"text",onClick:Ie=>Pi(oe)},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:2},1032,["onClick"]),f(I,{type:"text",onClick:Ie=>Ri(oe)},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(qi))]),_:1})]),_:2},1032,["onClick"])])]),l("div",Ac,[l("div",wc,[e[203]||(e[203]=l("span",{class:"info-label"},"考察能力:",-1)),l("span",null,ie(v.ability),1)]),l("div",Oc,[e[204]||(e[204]=l("span",{class:"info-label"},"面试内容:",-1)),l("span",null,ie(v.content),1)]),l("div",Tc,[e[205]||(e[205]=l("span",{class:"info-label"},"对话目标:",-1)),l("span",null,ie(v.target),1)])])])]),_:1},8,["modelValue"])]))])])])]),_:1},8,["modelValue"]),f(Tt,{title:"编辑问题",modelValue:L.value,"onUpdate:modelValue":e[48]||(e[48]=v=>L.value=v),width:"500px","close-on-click-modal":!1,class:"question-dialog"},{footer:y(()=>[l("span",Jc,[f(I,{onClick:Ke},{default:y(()=>e[235]||(e[235]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:Me},{default:y(()=>e[236]||(e[236]=[U("确认")])),_:1})])]),default:y(()=>[l("div",Vc,[l("div",Pc,[e[209]||(e[209]=l("div",{class:"form-label"},[U(" 题目内容"),l("span",{class:"required"},"*")],-1)),f(Q,{modelValue:T.content,"onUpdate:modelValue":e[38]||(e[38]=v=>T.content=v),type:"textarea",rows:"4",placeholder:"请描述一次你如何在紧迫的时间内完成一个复杂的后端开发任务的经历",maxlength:"300","show-word-limit":""},null,8,["modelValue"])]),l("div",Rc,[e[210]||(e[210]=l("div",{class:"form-label"},"胜任力标签",-1)),f(ve,{modelValue:Gi.value,"onUpdate:modelValue":e[39]||(e[39]=v=>Gi.value=v),placeholder:"请选择胜任力标签",class:"full-width",multiple:""},{default:y(()=>[(j(!0),X(We,null,He(H.value,v=>(j(),Ce(_,{key:v.id,label:v.name,value:v.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[211]||(e[211]=l("div",{class:"form-tip"},"选择胜任力标签和胜任力标签,可多选",-1))]),l("div",Uc,[e[217]||(e[217]=l("div",{class:"form-label"}," 胜任力配置 ",-1)),l("div",Kc,[e[213]||(e[213]=l("div",{class:"config-row"},[l("span",{class:"config-label"},"标签"),l("span",{class:"config-label"},"权重")],-1)),(j(!0),X(We,null,He(T.competency_tags,(v,oe)=>(j(),X("div",{class:"config-row",key:v.id},[l("span",Mc,ie(v.name),1),f(pn,{modelValue:v.weight,"onUpdate:modelValue":Ie=>v.weight=Ie,min:0,max:100,step:1,"controls-position":"right",onChange:Ie=>nl(oe,Ie)},null,8,["modelValue","onUpdate:modelValue","onChange"]),e[212]||(e[212]=U(" % "))]))),128))]),l("div",Bc,[e[214]||(e[214]=U(" 配置各个胜任力标签的权重,总和需要100% ")),l("span",{class:xt(["weight-sum",{"weight-error":ri()!==100}])}," (当前总计: "+ie(ri())+"%) ",3),e[215]||(e[215]=l("br",null,null,-1)),f(M,{style:{color:"#409eff","margin-right":"4px","margin-top":"4px"}},{default:y(()=>[f(ye(Dl))]),_:1}),e[216]||(e[216]=l("span",{style:{color:"#909399","font-size":"11px"}},' 修改任意权重时,其他权重会自动按比例调整以保持总和为100%。点击"平均分配"可快速平均分配所有权重。 ',-1))])]),l("div",kc,[e[218]||(e[218]=l("div",{class:"form-label"},"题目形式",-1)),f(ve,{modelValue:T.type,"onUpdate:modelValue":e[40]||(e[40]=v=>T.type=v),placeholder:"开放问题",class:"full-width",onChange:_r},{default:y(()=>[f(_,{label:"开放问题",value:"open"}),f(_,{label:"单选题",value:"single"}),f(_,{label:"多选题",value:"multiple"}),f(_,{label:"填空题",value:"fill"}),f(_,{label:"自言语",value:"self"})]),_:1},8,["modelValue"]),e[219]||(e[219]=l("div",{class:"form-tip"},"选择题目的形式:开放问题、单选题、多选题、填空题、自言语",-1))]),l("div",jc,[e[220]||(e[220]=l("div",{class:"form-label"},"适用职位",-1)),f(ve,{modelValue:T.position,"onUpdate:modelValue":e[41]||(e[41]=v=>T.position=v),placeholder:"请选择适用职位类型",class:"full-width",multiple:""},{default:y(()=>[(j(!0),X(We,null,He(ne.value,v=>(j(),Ce(_,{key:v.value,label:v.label,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[221]||(e[221]=l("div",{class:"form-tip"},"选择题目适用的职位类型,可多选",-1))]),T.question_form===1||T.question_form===2?(j(),X("div",Nc,[e[225]||(e[225]=l("div",{class:"form-label"},"选项",-1)),l("div",null,[e[224]||(e[224]=l("div",{class:"option-header",style:{display:"flex","margin-bottom":"10px","font-weight":"bold"}},[l("span",{style:{flex:"1"}},"选项内容"),l("span",{style:{width:"80px","text-align":"center"}},"是否正确")],-1)),(j(!0),X(We,null,He(T.options,(v,oe)=>(j(),X("div",{key:oe,class:"option-item",style:{display:"flex","align-items":"center","margin-bottom":"10px"}},[f(Q,{modelValue:v.text,"onUpdate:modelValue":Ie=>v.text=Ie,placeholder:"请输入选项内容",style:{flex:"1","margin-right":"10px"}},null,8,["modelValue","onUpdate:modelValue"]),f(Pn,{content:"设置为正确答案",placement:"top",effect:"light"},{default:y(()=>[l("div",{onClick:()=>{T.question_form===1?T.options.forEach((Ie,fl)=>{Ie.is_correct=fl===oe}):v.is_correct=!v.is_correct},style:{cursor:"pointer",width:"80px","text-align":"center"}},[T.question_form===1?(j(),Ce(so,{key:0,modelValue:v.is_correct,"onUpdate:modelValue":Ie=>v.is_correct=Ie,label:!0},null,8,["modelValue","onUpdate:modelValue"])):(j(),Ce(zt,{key:1,modelValue:v.is_correct,"onUpdate:modelValue":Ie=>v.is_correct=Ie},null,8,["modelValue","onUpdate:modelValue"]))],8,Fc)]),_:2},1024)]))),128)),l("div",Lc,[f(I,{type:"primary",onClick:e[42]||(e[42]=()=>{T.options||(T.options=[]);const v=T.options.length>0?Math.max(...T.options.map(oe=>oe.sort||0))+1:1;T.options.push({option_text:"",is_correct:!1,sort:v})})},{default:y(()=>e[222]||(e[222]=[U(" 添加选项 ")])),_:1}),T.options&&T.options.length>2?(j(),Ce(I,{key:0,type:"danger",onClick:e[43]||(e[43]=()=>{T.options.pop()})},{default:y(()=>e[223]||(e[223]=[U(" 删除最后一项 ")])),_:1})):Ue("",!0)])]),e[226]||(e[226]=l("div",{class:"form-tip"},"添加选项并设置正确答案,单选题只能有一个正确答案,多选题可以有多个正确答案",-1))])):Ue("",!0),l("div",Qc,[e[227]||(e[227]=l("div",{class:"form-label"},"分类",-1)),f(ve,{modelValue:T.category,"onUpdate:modelValue":e[44]||(e[44]=v=>T.category=v),placeholder:"请选择题目分类",class:"full-width"},{default:y(()=>[(j(!0),X(We,null,He(Ee.value,v=>(j(),Ce(_,{key:v.value,label:v.label,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[228]||(e[228]=l("div",{class:"form-tip"},"选择题目所属分类",-1))]),l("div",zc,[e[229]||(e[229]=l("div",{class:"form-label"},"标签",-1)),f(ve,{modelValue:T.tags,"onUpdate:modelValue":e[45]||(e[45]=v=>T.tags=v),placeholder:"请选择标签",class:"full-width",multiple:""},{default:y(()=>[(j(!0),X(We,null,He(Te.value,v=>(j(),Ce(_,{key:v.value,label:v.label,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[230]||(e[230]=l("div",{class:"form-tip"},"选择题目相关标签,可多选",-1))]),l("div",Gc,[e[231]||(e[231]=l("div",{class:"form-label"},"建议时长(秒)",-1)),f(pn,{modelValue:T.suggestedDuration,"onUpdate:modelValue":e[46]||(e[46]=v=>T.suggestedDuration=v),min:0,step:1,"controls-position":"right",placeholder:"请输入建议回答时长",class:"full-width"},null,8,["modelValue"]),e[232]||(e[232]=l("div",{class:"form-tip"},"建议回答题目的时长,单位为秒",-1))]),l("div",$c,[e[233]||(e[233]=l("div",{class:"form-label"},"评价标准",-1)),f(Q,{modelValue:T.scoring_reference,"onUpdate:modelValue":e[47]||(e[47]=v=>T.scoring_reference=v),type:"textarea",rows:"4",placeholder:"评分标准说明,例如:【团队协作能力】1.优秀:xxxxxx。2.xxxx。3.一般:xxxxx。",class:"full-width"},null,8,["modelValue"]),e[234]||(e[234]=l("div",{class:"form-tip"},"评分标准说明,例如:【团队协作能力】1.优秀:xxxxxx。2.xxxx。3.一般:xxxxx。",-1))])])]),_:1},8,["modelValue"]),f(Tt,{title:"选择题目",modelValue:Mo.value,"onUpdate:modelValue":e[53]||(e[53]=v=>Mo.value=v),width:"70%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:y(()=>[l("span",qc,[f(I,{onClick:Li},{default:y(()=>e[237]||(e[237]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:Mr,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:y(()=>e[238]||(e[238]=[U("确定")])),_:1})])]),default:y(()=>[l("div",Wc,[l("div",Hc,[l("div",Yc,[f(Q,{modelValue:cn.value,"onUpdate:modelValue":e[49]||(e[49]=v=>cn.value=v),placeholder:"请输入关键词搜索题目",clearable:"",onClear:Zt,onKeyup:Xi(Zt,["enter"]),style:{width:"300px","margin-right":"10px"}},{append:y(()=>[f(I,{onClick:Zt},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(_i))]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(ve,{modelValue:Je.question_form,"onUpdate:modelValue":e[50]||(e[50]=v=>Je.question_form=v),placeholder:"题目类型",clearable:"",onChange:Zt,style:{width:"120px"}},{default:y(()=>[f(_,{label:"开放问题",value:0}),f(_,{label:"单选题",value:1})]),_:1},8,["modelValue"])])]),l("div",Xc,[f(Ji,{data:gt.value,style:{width:"100%"},onSelectionChange:Fi},{default:y(()=>[f(Rn,{type:"selection",width:"55"}),f(Rn,{prop:"question",label:"题目标题"}),f(Rn,{prop:"question_form_name",label:"题目类型",width:"100"})]),_:1},8,["data"]),l("div",Zc,[f(Wi,{"current-page":Je.page,"onUpdate:currentPage":e[51]||(e[51]=v=>Je.page=v),"page-size":Je.pageSize,"onUpdate:pageSize":e[52]||(e[52]=v=>Je.pageSize=v),total:Ni.value,"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",onSizeChange:Ur,onCurrentChange:Kr},null,8,["current-page","page-size","total"])])])])]),_:1},8,["modelValue"]),f(Tt,{title:"创建自定义题目",modelValue:no.value,"onUpdate:modelValue":e[55]||(e[55]=v=>no.value=v),width:"40%","close-on-click-modal":!1,class:"question-bank-form-dialog","before-close":Ao},{default:y(()=>[f(Pl,{modelValue:Bo.value,"onUpdate:modelValue":e[54]||(e[54]=v=>Bo.value=v),"is-edit":ji.value,onSubmit:Ln,onCancel:Ao},null,8,["modelValue","is-edit"])]),_:1},8,["modelValue"]),f(Tt,{title:"资料收集",modelValue:we.value,"onUpdate:modelValue":e[59]||(e[59]=v=>we.value=v),width:"900px","close-on-click-modal":!1,class:"data-collection-dialog"},{footer:y(()=>[l("span",bf,[f(I,{onClick:Pa},{default:y(()=>e[248]||(e[248]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:Br},{default:y(()=>e[249]||(e[249]=[U("确认")])),_:1})])]),default:y(()=>[l("div",_c,[l("div",ef,[e[247]||(e[247]=l("div",{class:"panel-header"},[l("h3",null,"字段显示配置")],-1)),l("div",tf,[e[242]||(e[242]=l("div",{class:"section-title"},"基本信息",-1)),f(tn,{gutter:20},{default:y(()=>[(j(!0),X(We,null,He(kr(),(v,oe)=>(j(),Ce(en,{span:8,key:oe},{default:y(()=>[l("div",nf,[l("span",of,ie(v.label),1),f(Pn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[f(je,{modelValue:v.visible,"onUpdate:modelValue":Ie=>v.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),e[243]||(e[243]=l("div",{class:"section-title"},"家庭成员信息",-1)),f(tn,{gutter:20},{default:y(()=>[f(en,{span:24},{default:y(()=>[l("div",af,[l("span",rf,[U(ie(G.family_member.label)+" ",1),G.family_member.visible?(j(),Ce(ht,{key:0,size:"small",type:"success"},{default:y(()=>e[239]||(e[239]=[U("已启用")])),_:1})):Ue("",!0)]),f(je,{modelValue:G.family_member.visible,"onUpdate:modelValue":e[56]||(e[56]=v=>G.family_member.visible=v),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),G.family_member.visible?(j(),Ce(tn,{key:0,gutter:20},{default:y(()=>[(j(!0),X(We,null,He(G.family_member.fields,(v,oe)=>(j(),Ce(en,{span:8,key:oe},{default:y(()=>[l("div",lf,[l("span",sf,ie(v.label),1),f(Pn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[f(je,{modelValue:v.visible,"onUpdate:modelValue":Ie=>v.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):Ue("",!0),e[244]||(e[244]=l("div",{class:"section-title"},"教育经历",-1)),f(tn,{gutter:20},{default:y(()=>[f(en,{span:24},{default:y(()=>[l("div",df,[l("span",uf,[U(ie(G.education.label)+" ",1),G.education.visible?(j(),Ce(ht,{key:0,size:"small",type:"success"},{default:y(()=>e[240]||(e[240]=[U("已启用")])),_:1})):Ue("",!0)]),f(je,{modelValue:G.education.visible,"onUpdate:modelValue":e[57]||(e[57]=v=>G.education.visible=v),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),G.education.visible?(j(),Ce(tn,{key:1,gutter:20},{default:y(()=>[(j(!0),X(We,null,He(G.education.fields,(v,oe)=>(j(),Ce(en,{span:8,key:oe},{default:y(()=>[l("div",cf,[l("span",ff,ie(v.label),1),f(Pn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[f(je,{modelValue:v.visible,"onUpdate:modelValue":Ie=>v.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):Ue("",!0),e[245]||(e[245]=l("div",{class:"section-title"},"专业技能",-1)),f(tn,{gutter:20},{default:y(()=>[(j(!0),X(We,null,He(jr(),(v,oe)=>(j(),Ce(en,{span:8,key:oe},{default:y(()=>[l("div",vf,[l("span",pf,ie(v.label),1),f(Pn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[f(je,{modelValue:v.visible,"onUpdate:modelValue":Ie=>v.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),e[246]||(e[246]=l("div",{class:"section-title"},"工作经历",-1)),f(tn,{gutter:20},{default:y(()=>[f(en,{span:24},{default:y(()=>[l("div",mf,[l("span",gf,[U(ie(G.work_experience.label)+" ",1),G.work_experience.visible?(j(),Ce(ht,{key:0,size:"small",type:"success"},{default:y(()=>e[241]||(e[241]=[U("已启用")])),_:1})):Ue("",!0)]),f(je,{modelValue:G.work_experience.visible,"onUpdate:modelValue":e[58]||(e[58]=v=>G.work_experience.visible=v),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),G.work_experience.visible?(j(),Ce(tn,{key:2,gutter:20},{default:y(()=>[(j(!0),X(We,null,He(G.work_experience.fields,(v,oe)=>(j(),Ce(en,{span:8,key:oe},{default:y(()=>[l("div",hf,[l("span",yf,ie(v.label),1),f(Pn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[f(je,{modelValue:v.visible,"onUpdate:modelValue":Ie=>v.visible=Ie,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):Ue("",!0)])])])]),_:1},8,["modelValue"]),f(Tt,{title:"简历收集",modelValue:De.value,"onUpdate:modelValue":e[61]||(e[61]=v=>De.value=v),width:"500px","close-on-click-modal":!1,class:"resume-collection-dialog"},{footer:y(()=>[l("span",xf,[f(I,{onClick:st},{default:y(()=>e[251]||(e[251]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:ot},{default:y(()=>e[252]||(e[252]=[U("确认")])),_:1})])]),default:y(()=>[l("div",Sf,[l("div",Ef,[e[250]||(e[250]=l("div",{class:"form-label"},"步骤名称",-1)),f(Q,{modelValue:Ae.title,"onUpdate:modelValue":e[60]||(e[60]=v=>Ae.title=v),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])])]),_:1},8,["modelValue"]),f(Tt,{title:"添加代码笔试步骤",modelValue:Qn.value,"onUpdate:modelValue":e[64]||(e[64]=v=>Qn.value=v),width:"500px","close-on-click-modal":!1,class:"code-test-dialog"},{footer:y(()=>[l("span",Mf,[f(I,{onClick:Ui},{default:y(()=>e[261]||(e[261]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:Ka},{default:y(()=>e[262]||(e[262]=[U("确认")])),_:1})])]),default:y(()=>[l("div",If,[l("div",Cf,[e[253]||(e[253]=l("div",{class:"form-label"},"步骤名称",-1)),f(Q,{modelValue:at.title,"onUpdate:modelValue":e[62]||(e[62]=v=>at.title=v),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])]),l("div",Af,[e[254]||(e[254]=l("div",{class:"form-label"},"自动评判试卷",-1)),f(je,{modelValue:at.autoJudge,"onUpdate:modelValue":e[63]||(e[63]=v=>at.autoJudge=v)},null,8,["modelValue"]),l("span",wf,ie(at.autoJudge?"开启":"关闭"),1)]),l("div",Of,[e[260]||(e[260]=l("div",{class:"form-label"},"添加考试试卷",-1)),l("div",Tf,[at.selectedPaper?(j(),X("div",Vf,[l("div",Pf,[l("div",Rf,ie(at.selectedPaper.title),1),l("div",Uf,[l("span",null,ie(at.selectedPaper.questionCount)+"道题",1),l("span",null,ie(at.selectedPaper.duration)+"分钟",1),l("span",null,ie(at.selectedPaper.difficulty),1)])]),l("div",Kf,[f(I,{type:"text",onClick:Ba},{default:y(()=>e[257]||(e[257]=[U("查看")])),_:1}),f(I,{type:"text",onClick:ka},{default:y(()=>e[258]||(e[258]=[U("更换")])),_:1}),f(I,{type:"text",onClick:ja},{default:y(()=>e[259]||(e[259]=[U("删除")])),_:1})])])):(j(),X("div",Df,[f(I,{type:"primary",plain:"",onClick:Ma},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(mn))]),_:1}),e[255]||(e[255]=U(" 添加考卷 "))]),_:1}),e[256]||(e[256]=l("p",{class:"tip-text"},"多选时,考生会随机分配到一套试卷",-1))]))])])])]),_:1},8,["modelValue"]),f(ye(di),{title:"添加打字测试步骤",modelValue:zn.value,"onUpdate:modelValue":e[72]||(e[72]=v=>zn.value=v),size:"60%","close-on-click-modal":!1,class:"typing-test-dialog","destroy-on-close":!1},{footer:y(()=>[l("span",Yf,[f(I,{onClick:Ki},{default:y(()=>e[279]||(e[279]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:Na},{default:y(()=>e[280]||(e[280]=[U("保存")])),_:1})])]),default:y(()=>[l("div",Bf,[l("div",kf,[e[264]||(e[264]=l("div",{class:"form-label"},"选择文章",-1)),l("div",jf,[f(I,{type:"primary",size:"small",class:"add-article-btn"},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(mn))]),_:1}),e[263]||(e[263]=U(" 添加文章 "))]),_:1})])]),l("div",Nf,[e[267]||(e[267]=l("div",{class:"form-label"},"候选人选择文章方式",-1)),f(dl,{modelValue:nt.selectionMode,"onUpdate:modelValue":e[65]||(e[65]=v=>nt.selectionMode=v)},{default:y(()=>[f(so,{label:"random"},{default:y(()=>e[265]||(e[265]=[U("随机抽取")])),_:1}),f(so,{label:"self"},{default:y(()=>e[266]||(e[266]=[U("候选人自主选择")])),_:1})]),_:1},8,["modelValue"])]),l("div",Ff,[e[269]||(e[269]=l("div",{class:"form-label"},"测试时间",-1)),l("div",Lf,[f(Q,{modelValue:nt.duration,"onUpdate:modelValue":e[66]||(e[66]=v=>nt.duration=v),class:"time-input"},null,8,["modelValue"]),e[268]||(e[268]=l("span",{class:"time-unit"},"分钟",-1))])]),l("div",Qf,[e[271]||(e[271]=l("div",{class:"form-label"},"登录界面预览图(建议尺寸1024*768像素,最大不要超过5M)",-1)),f($i,{class:"preview-uploader",action:"#","auto-upload":!1,"show-file-list":!1,accept:"image/*"},{default:y(()=>[l("div",zf,[f(M,null,{default:y(()=>[f(ye(mn))]),_:1}),e[270]||(e[270]=l("div",{class:"upload-text"},"添加图片",-1))])]),_:1})]),l("div",Gf,[e[272]||(e[272]=l("div",{class:"form-label"},"注意事项内容(在登录界面显示)",-1)),f(Q,{modelValue:nt.notes,"onUpdate:modelValue":e[67]||(e[67]=v=>nt.notes=v),type:"textarea",rows:"4",placeholder:"请输入注意事项内容",maxlength:"300","show-word-limit":""},null,8,["modelValue"])]),l("div",$f,[e[273]||(e[273]=l("div",{class:"form-label"},"测试页面标题",-1)),f(Q,{modelValue:nt.pageTitle,"onUpdate:modelValue":e[68]||(e[68]=v=>nt.pageTitle=v),placeholder:"测试页面标题"},null,8,["modelValue"])]),l("div",Jf,[e[275]||(e[275]=l("div",{class:"form-label"},"视频监控",-1)),f(zt,{modelValue:nt.videoMonitoring,"onUpdate:modelValue":e[69]||(e[69]=v=>nt.videoMonitoring=v)},{default:y(()=>e[274]||(e[274]=[U("视频监控")])),_:1},8,["modelValue"])]),l("div",Wf,[e[278]||(e[278]=l("div",{class:"form-label"},"通过标准",-1)),l("div",Hf,[f(zt,{modelValue:nt.passCriteria.speed,"onUpdate:modelValue":e[70]||(e[70]=v=>nt.passCriteria.speed=v)},{default:y(()=>e[276]||(e[276]=[U("速度")])),_:1},8,["modelValue"]),f(zt,{modelValue:nt.passCriteria.accuracy,"onUpdate:modelValue":e[71]||(e[71]=v=>nt.passCriteria.accuracy=v)},{default:y(()=>e[277]||(e[277]=[U("正确率")])),_:1},8,["modelValue"])])])])]),_:1},8,["modelValue"]),f(Tt,{title:"面试设置",modelValue:io.value,"onUpdate:modelValue":e[82]||(e[82]=v=>io.value=v),width:"60%","close-on-click-modal":!1,class:"interview-settings-dialog"},{footer:y(()=>[l("span",Av,[f(I,{onClick:Nr},{default:y(()=>e[300]||(e[300]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:Fr},{default:y(()=>e[301]||(e[301]=[U("完成")])),_:1})])]),default:y(()=>[l("div",Xf,[l("div",Zf,[e[287]||(e[287]=l("div",{class:"section-header"},[l("span",{class:"section-title"},"防作弊设置")],-1)),l("div",qf,[e[281]||(e[281]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「人脸一致性检测」"),l("p",{class:"setting-desc"},"该强调,非本人操作人脸可视化提醒和警示,默认开启")],-1)),f(je,{modelValue:ke.faceConsistency,"onUpdate:modelValue":e[73]||(e[73]=v=>ke.faceConsistency=v),disabled:!0},null,8,["modelValue"])]),l("div",_f,[e[282]||(e[282]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 防截屏 / 录屏 」"),l("p",{class:"setting-desc"},"该强调,非本人前来体验截屏录屏以上行为,为防止提醒")],-1)),f(je,{modelValue:ke.preventScreenshot,"onUpdate:modelValue":e[74]||(e[74]=v=>ke.preventScreenshot=v),disabled:!0},null,8,["modelValue"])]),l("div",ev,[e[284]||(e[284]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 切 屏 预 制 」"),l("p",{class:"setting-desc"},"该强调,非本人前使用切屏处理用页面,为防作弊警示")],-1)),f(je,{modelValue:ke.screenSwitchAlert,"onUpdate:modelValue":e[75]||(e[75]=v=>ke.screenSwitchAlert=v),disabled:!0},{default:y(()=>e[283]||(e[283]=[l("span",{class:"switch-desc"},"切屏超过 2 次关闭,作答本关面试",-1)])),_:1},8,["modelValue"])]),l("div",tv,[e[285]||(e[285]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 情 绪 识 别」"),l("p",{class:"setting-desc"},"该现已,条件较差以及入侵过程中的作弊,条件等好等")],-1)),f(je,{modelValue:ke.positionDetection,"onUpdate:modelValue":e[76]||(e[76]=v=>ke.positionDetection=v)},null,8,["modelValue"])]),l("div",nv,[e[286]||(e[286]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 眼 动 检 测 」"),l("p",{class:"setting-desc"},"视实检测候选人的眼动频率进行分析,页面等较等")],-1)),f(je,{modelValue:ke.eyeMovementDetection,"onUpdate:modelValue":e[77]||(e[77]=v=>ke.eyeMovementDetection=v)},null,8,["modelValue"])])]),l("div",ov,[e[299]||(e[299]=l("div",{class:"section-header"},[l("span",{class:"section-title"},"其他设置")],-1)),l("div",iv,[l("div",av,[e[289]||(e[289]=l("span",{class:"setting-name"},"重复面试",-1)),l("div",rv,[e[288]||(e[288]=l("p",{class:"setting-desc",style:{}},"选取后,将允许面试者进行重复面试",-1)),f(je,{modelValue:ke.reviewInterview,"onUpdate:modelValue":e[78]||(e[78]=v=>ke.reviewInterview=v)},null,8,["modelValue"])])])]),l("div",lv,[l("div",sv,[e[292]||(e[292]=l("span",{class:"setting-name"},"开场词",-1)),wn.value?(j(),X("div",cv,[f(Q,{modelValue:qt.value,"onUpdate:modelValue":e[79]||(e[79]=v=>qt.value=v),type:"textarea",rows:"2",placeholder:"请输入开始前提示内容","show-word-limit":""},null,8,["modelValue"]),l("div",fv,[f(I,{size:"small",onClick:zr},{default:y(()=>e[290]||(e[290]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:Gr},{default:y(()=>e[291]||(e[291]=[U("保存")])),_:1})])])):(j(),X("div",dv,[l("p",uv,ie(ke.beforeStartText),1),f(I,{type:"text",class:"edit-desc-btn",onClick:Qr},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1})]))])]),l("div",vv,[l("div",pv,[e[295]||(e[295]=l("span",{class:"setting-name"},"开始后提醒",-1)),ao.value?(j(),X("div",hv,[f(Q,{modelValue:On.value,"onUpdate:modelValue":e[80]||(e[80]=v=>On.value=v),type:"textarea",rows:"2",placeholder:"请输入开始后提醒内容",maxlength:"100","show-word-limit":""},null,8,["modelValue"]),l("div",yv,[f(I,{size:"small",onClick:Jr},{default:y(()=>e[293]||(e[293]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:Wr},{default:y(()=>e[294]||(e[294]=[U("保存")])),_:1})])])):(j(),X("div",mv,[l("p",gv,ie(ke.afterStartText),1),f(I,{type:"text",class:"edit-desc-btn",onClick:$r},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1})]))])]),l("div",bv,[l("div",Sv,[e[298]||(e[298]=l("span",{class:"setting-name"},"结束语",-1)),ro.value?(j(),X("div",Iv,[f(Q,{modelValue:Tn.value,"onUpdate:modelValue":e[81]||(e[81]=v=>Tn.value=v),type:"textarea",rows:"2",placeholder:"请输入免责声明内容",maxlength:"200","show-word-limit":""},null,8,["modelValue"]),l("div",Cv,[f(I,{size:"small",onClick:Yr},{default:y(()=>e[296]||(e[296]=[U("取消")])),_:1}),f(I,{size:"small",type:"primary",onClick:Xr},{default:y(()=>e[297]||(e[297]=[U("保存")])),_:1})])])):(j(),X("div",Ev,[l("p",xv,ie(ke.disclaimerText),1),f(I,{type:"text",class:"edit-desc-btn",onClick:Hr},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(pt))]),_:1})]),_:1})]))])])])])]),_:1},8,["modelValue"]),f(Tt,{title:"选择题目",modelValue:m.value,"onUpdate:modelValue":e[87]||(e[87]=v=>m.value=v),width:"70%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:y(()=>[l("span",Pv,[f(I,{onClick:Li},{default:y(()=>e[302]||(e[302]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:b,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:y(()=>e[303]||(e[303]=[U("确定")])),_:1})])]),default:y(()=>[l("div",wv,[l("div",Ov,[l("div",Tv,[f(Q,{modelValue:cn.value,"onUpdate:modelValue":e[83]||(e[83]=v=>cn.value=v),placeholder:"请输入关键词搜索题目",clearable:"",onClear:Zt,onKeyup:Xi(Zt,["enter"]),style:{width:"300px","margin-right":"10px"}},{append:y(()=>[f(I,{onClick:Zt},{default:y(()=>[f(M,null,{default:y(()=>[f(ye(_i))]),_:1})]),_:1})]),_:1},8,["modelValue"]),f(ve,{modelValue:Je.question_form,"onUpdate:modelValue":e[84]||(e[84]=v=>Je.question_form=v),placeholder:"题目类型",clearable:"",onChange:Zt,style:{width:"120px"}},{default:y(()=>[f(_,{label:"开放问题",value:0}),f(_,{label:"单选题",value:1}),f(_,{label:"多选题",value:2}),f(_,{label:"看图选答案",value:3}),f(_,{label:"得分题",value:4}),f(_,{label:"追加型开放问题",value:5}),f(_,{label:"填空题",value:6})]),_:1},8,["modelValue"])])]),l("div",Dv,[f(Ji,{data:gt.value,style:{width:"100%"},onSelectionChange:Fi},{default:y(()=>[f(Rn,{type:"selection",width:"55"}),f(Rn,{prop:"question",label:"题目标题"}),f(Rn,{prop:"question_form_name",label:"题目类型",width:"100"})]),_:1},8,["data"]),l("div",Vv,[f(Wi,{"current-page":Je.page,"onUpdate:currentPage":e[85]||(e[85]=v=>Je.page=v),"page-size":Je.pageSize,"onUpdate:pageSize":e[86]||(e[86]=v=>Je.pageSize=v),total:oo.value,"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",onSizeChange:g,onCurrentChange:h},null,8,["current-page","page-size","total"])])])])]),_:1},8,["modelValue"]),f(Tt,{title:lo.value>=0?"编辑候选人提问环节":"配置候选人提问环节",modelValue:Vn.value,"onUpdate:modelValue":e[91]||(e[91]=v=>Vn.value=v),width:"600px","close-on-click-modal":!1,class:"candidate-questions-dialog"},{footer:y(()=>[l("span",Bv,[f(I,{onClick:Le},{default:y(()=>e[310]||(e[310]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:xe},{default:y(()=>e[311]||(e[311]=[U("确认")])),_:1})])]),default:y(()=>[l("div",Rv,[l("div",Uv,[e[304]||(e[304]=l("div",{class:"form-label"},[U(" 环节名称"),l("span",{class:"required"},"*")],-1)),f(Q,{modelValue:Ve.title,"onUpdate:modelValue":e[88]||(e[88]=v=>Ve.title=v),placeholder:"请输入环节名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])]),l("div",Kv,[e[305]||(e[305]=l("div",{class:"form-label"},[U(" 提问时长"),l("span",{class:"required"},"*")],-1)),f(pn,{modelValue:Ve.duration,"onUpdate:modelValue":e[89]||(e[89]=v=>Ve.duration=v),min:1,max:30,step:1,"controls-position":"right",style:{width:"200px"}},null,8,["modelValue"]),e[306]||(e[306]=l("span",{class:"form-unit"},"分钟",-1)),e[307]||(e[307]=l("div",{class:"form-tip"},"候选人可用于提问的总时长",-1))]),l("div",Mv,[e[308]||(e[308]=l("div",{class:"form-label"},"环节描述",-1)),f(Q,{modelValue:Ve.description,"onUpdate:modelValue":e[90]||(e[90]=v=>Ve.description=v),type:"textarea",rows:"3",placeholder:"请输入环节描述",maxlength:"200","show-word-limit":""},null,8,["modelValue"]),e[309]||(e[309]=l("div",{class:"form-tip"},"向候选人说明此环节的目的和意义",-1))])])]),_:1},8,["title","modelValue"]),f(Tt,{modelValue:ko.value,"onUpdate:modelValue":e[95]||(e[95]=v=>ko.value=v),title:"肢体检测配置",width:"600px","close-on-click-modal":!1},{footer:y(()=>[l("span",kv,[f(I,{onClick:rl,size:"small"},{default:y(()=>e[316]||(e[316]=[U("取消")])),_:1}),f(I,{type:"primary",onClick:ll,size:"small"},{default:y(()=>e[317]||(e[317]=[U("确定")])),_:1})])]),default:y(()=>[f(cl,{model:_t.value,"label-width":"120px"},{default:y(()=>[f(li,{label:"检测时长"},{default:y(()=>[f(pn,{modelValue:_t.value.duration,"onUpdate:modelValue":e[92]||(e[92]=v=>_t.value.duration=v),min:1,max:30,step:1,"controls-position":"right"},null,8,["modelValue"]),e[312]||(e[312]=U(" 分钟 "))]),_:1}),f(li,{label:"检测项目"},{default:y(()=>[f(ul,{modelValue:_t.value.detectionItems,"onUpdate:modelValue":e[93]||(e[93]=v=>_t.value.detectionItems=v)},{default:y(()=>[f(zt,{label:"face"},{default:y(()=>e[313]||(e[313]=[U("面部表情")])),_:1}),f(zt,{label:"pose"},{default:y(()=>e[314]||(e[314]=[U("肢体姿态")])),_:1}),f(zt,{label:"gesture"},{default:y(()=>e[315]||(e[315]=[U("手势动作")])),_:1})]),_:1},8,["modelValue"])]),_:1}),f(li,{label:"提示文本"},{default:y(()=>[f(Q,{modelValue:_t.value.promptText,"onUpdate:modelValue":e[94]||(e[94]=v=>_t.value.promptText=v),type:"textarea",rows:3,placeholder:"请输入提示文本"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),Hv=Ul(jv,[["__scopeId","data-v-acd44695"]]);export{Hv as default};