12345678910 |
- import{a as Pl,aH as Vl,aB as Rl,r as Q,_ as et,f as ui,q as Ul,W as kl,w as Kl,aj as Te,at as Ml,c as X,o as M,b as l,S as v,K as y,P as U,Q as de,u as Ee,M as we,J as Ae,R as Je,a9 as We,L as jo,G as At,T as _i,Y as Bl,F as Nl,a7 as Fl}from"./vue.D1BjjNmv.js";import{b as jl,c as Ll,C as Ql,U as wt}from"./api.D49oa8gM.js";import{ab as Gl,g as zl,ac as $l,c as Jl,E as P,$ as gt,Y as yn,ad as Wl,ae as ea,a0 as ta,af as ci,ag as Hl,B as Yl,S as Xt,a1 as na}from"./index.Dm_HGhtW.js";import{G as Kn,a as Xl,b as Zl,Q as ql,c as Zt,A as fi,d as oa,e as ia,U as bt,C as vi,f as pi,g as aa,h as _l,i as es,B as ts,S as ns,j as os,k as ra,l as is,m as as,n as rs,o as ls}from"./QuestionBankForm.BP-yflJF.js";import{g as ss}from"./pcaData.5HEg6BqW.js";import ds from"./BlankAnswerEditor.C84NgMQM.js";import{A as us}from"./api.DkgJlFwg.js";import cs from"./treeList.BuhFG7f0.js";import{G as la,a as sa,b as da}from"./api.Cu9a4RHc.js";import{_ as fs}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./QuestionOptionsEditor.e0gHieJV.js";const ua="/assets/sheng.BKW1Im68.png",vs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkoAAAImCAQAAAAGHG0zAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFyGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyNS0wNi0xM1QxNzowMToyMCswODowMCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNDE0NGJjZC05NWJlLTMxNGMtODlmZC01MTk0MTdmODc5OWEiIHhtcE1NOkRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDplYzMyM2E1Zi04ZWZiLTgxNGUtYWMzOS05Nzc3ODNiNDUzYjQiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo2NzhkMmE4Ni05MTcxLWJiNDAtYWMzOS01ODg2NzcyNzM4ZDEiIHN0RXZ0OndoZW49IjIwMjUtMDYtMTNUMTc6MDE6MjArMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChXaW5kb3dzKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MzQxNDRiY2QtOTViZS0zMTRjLTg5ZmQtNTE5NDE3Zjg3OTlhIiBzdEV2dDp3aGVuPSIyMDI1LTA2LTEzVDE3OjAxOjIwKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+JOr+gQAABzlJREFUeJzt1rENwzAQBEHTUOHsnEoVKhDwG8xUcNHi1vkBdPynBwA8iRKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHJND3hrn+kFULXX9IIveUpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEp60wvAHjwlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSDlmh7w1j7TC6Bqr+kFX/KUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUkQJSBElIEWUgBRRAlJECUgRJSBFlIAUUQJSRAlIESUgRZSAFFECUtaZXgDw4CkBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkCJKQIooASmiBKSIEpAiSkCKKAEpogSkiBKQIkpAiigBKaIEpIgSkHIDp74LS5/6zzUAAAAASUVORK5CYII=";var Ca={exports:{}};/**!
- * Sortable 1.14.0
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */function ca(d,i){var o=Object.keys(d);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(d);i&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(d,n).enumerable})),o.push.apply(o,s)}return o}function $t(d){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?ca(Object(o),!0).forEach(function(s){ps(d,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(o)):ca(Object(o)).forEach(function(s){Object.defineProperty(d,s,Object.getOwnPropertyDescriptor(o,s))})}return d}function Wo(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wo=function(i){return typeof i}:Wo=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Wo(d)}function ps(d,i,o){return i in d?Object.defineProperty(d,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):d[i]=o,d}function Ut(){return Ut=Object.assign||function(d){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(d[s]=o[s])}return d},Ut.apply(this,arguments)}function ms(d,i){if(d==null)return{};var o={},s=Object.keys(d),n,c;for(c=0;c<s.length;c++)n=s[c],!(i.indexOf(n)>=0)&&(o[n]=d[n]);return o}function gs(d,i){if(d==null)return{};var o=ms(d,i),s,n;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(d);for(n=0;n<c.length;n++)s=c[n],!(i.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(d,s)&&(o[s]=d[s])}return o}function hs(d){return ys(d)||bs(d)||Ss(d)||Es()}function ys(d){if(Array.isArray(d))return Ai(d)}function bs(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function Ss(d,i){if(d){if(typeof d=="string")return Ai(d,i);var o=Object.prototype.toString.call(d).slice(8,-1);if(o==="Object"&&d.constructor&&(o=d.constructor.name),o==="Map"||o==="Set")return Array.from(d);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Ai(d,i)}}function Ai(d,i){(i==null||i>d.length)&&(i=d.length);for(var o=0,s=new Array(i);o<i;o++)s[o]=d[o];return s}function Es(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var xs="1.14.0";function qt(d){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(d)}var _t=qt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Co=qt(/Edge/i),fa=qt(/firefox/i),bo=qt(/safari/i)&&!qt(/chrome/i)&&!qt(/android/i),Aa=qt(/iP(ad|od|hone)/i),Is=qt(/chrome/i)&&qt(/android/i),wa={capture:!1,passive:!1};function xe(d,i,o){d.addEventListener(i,o,!_t&&wa)}function Se(d,i,o){d.removeEventListener(i,o,!_t&&wa)}function qo(d,i){if(i){if(i[0]===">"&&(i=i.substring(1)),d)try{if(d.matches)return d.matches(i);if(d.msMatchesSelector)return d.msMatchesSelector(i);if(d.webkitMatchesSelector)return d.webkitMatchesSelector(i)}catch{return!1}return!1}}function Cs(d){return d.host&&d!==document&&d.host.nodeType?d.host:d.parentNode}function Mt(d,i,o,s){if(d){o=o||document;do{if(i!=null&&(i[0]===">"?d.parentNode===o&&qo(d,i):qo(d,i))||s&&d===o)return d;if(d===o)break}while(d=Cs(d))}return null}var va=/\s+/g;function Ne(d,i,o){if(d&&i)if(d.classList)d.classList[o?"add":"remove"](i);else{var s=(" "+d.className+" ").replace(va," ").replace(" "+i+" "," ");d.className=(s+(o?" "+i:"")).replace(va," ")}}function ie(d,i,o){var s=d&&d.style;if(s){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(d,""):d.currentStyle&&(o=d.currentStyle),i===void 0?o:o[i];!(i in s)&&i.indexOf("webkit")===-1&&(i="-webkit-"+i),s[i]=o+(typeof o=="string"?"":"px")}}function xn(d,i){var o="";if(typeof d=="string")o=d;else do{var s=ie(d,"transform");s&&s!=="none"&&(o=s+" "+o)}while(!i&&(d=d.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function Oa(d,i,o){if(d){var s=d.getElementsByTagName(i),n=0,c=s.length;if(o)for(;n<c;n++)o(s[n],n);return s}return[]}function zt(){var d=document.scrollingElement;return d||document.documentElement}function Me(d,i,o,s,n){if(!(!d.getBoundingClientRect&&d!==window)){var c,t,a,r,u,g,m;if(d!==window&&d.parentNode&&d!==zt()?(c=d.getBoundingClientRect(),t=c.top,a=c.left,r=c.bottom,u=c.right,g=c.height,m=c.width):(t=0,a=0,r=window.innerHeight,u=window.innerWidth,g=window.innerHeight,m=window.innerWidth),(i||o)&&d!==window&&(n=n||d.parentNode,!_t))do if(n&&n.getBoundingClientRect&&(ie(n,"transform")!=="none"||o&&ie(n,"position")!=="static")){var h=n.getBoundingClientRect();t-=h.top+parseInt(ie(n,"border-top-width")),a-=h.left+parseInt(ie(n,"border-left-width")),r=t+c.height,u=a+c.width;break}while(n=n.parentNode);if(s&&d!==window){var b=xn(n||d),S=b&&b.a,E=b&&b.d;b&&(t/=E,a/=S,m/=S,g/=E,r=t+g,u=a+m)}return{top:t,left:a,bottom:r,right:u,width:m,height:g}}}function pa(d,i,o){for(var s=sn(d,!0),n=Me(d)[i];s;){var c=Me(s)[o],t=void 0;if(t=n>=c,!t)return s;if(s===zt())break;s=sn(s,!1)}return!1}function Ln(d,i,o,s){for(var n=0,c=0,t=d.children;c<t.length;){if(t[c].style.display!=="none"&&t[c]!==ve.ghost&&(s||t[c]!==ve.dragged)&&Mt(t[c],o.draggable,d,!1)){if(n===i)return t[c];n++}c++}return null}function Pi(d,i){for(var o=d.lastElementChild;o&&(o===ve.ghost||ie(o,"display")==="none"||i&&!qo(o,i));)o=o.previousElementSibling;return o||null}function ze(d,i){var o=0;if(!d||!d.parentNode)return-1;for(;d=d.previousElementSibling;)d.nodeName.toUpperCase()!=="TEMPLATE"&&d!==ve.clone&&(!i||qo(d,i))&&o++;return o}function ma(d){var i=0,o=0,s=zt();if(d)do{var n=xn(d),c=n.a,t=n.d;i+=d.scrollLeft*c,o+=d.scrollTop*t}while(d!==s&&(d=d.parentNode));return[i,o]}function As(d,i){for(var o in d)if(d.hasOwnProperty(o)){for(var s in i)if(i.hasOwnProperty(s)&&i[s]===d[o][s])return Number(o)}return-1}function sn(d,i){if(!d||!d.getBoundingClientRect)return zt();var o=d,s=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=ie(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 zt();if(s||i)return o;s=!0}}while(o=o.parentNode);return zt()}function ws(d,i){if(d&&i)for(var o in i)i.hasOwnProperty(o)&&(d[o]=i[o]);return d}function mi(d,i){return Math.round(d.top)===Math.round(i.top)&&Math.round(d.left)===Math.round(i.left)&&Math.round(d.height)===Math.round(i.height)&&Math.round(d.width)===Math.round(i.width)}var So;function Ta(d,i){return function(){if(!So){var o=arguments,s=this;o.length===1?d.call(s,o[0]):d.apply(s,o),So=setTimeout(function(){So=void 0},i)}}}function Os(){clearTimeout(So),So=void 0}function Da(d,i,o){d.scrollLeft+=i,d.scrollTop+=o}function Vi(d){var i=window.Polymer,o=window.jQuery||window.Zepto;return i&&i.dom?i.dom(d).cloneNode(!0):o?o(d).clone(!0)[0]:d.cloneNode(!0)}function ga(d,i){ie(d,"position","absolute"),ie(d,"top",i.top),ie(d,"left",i.left),ie(d,"width",i.width),ie(d,"height",i.height)}function gi(d){ie(d,"position",""),ie(d,"top",""),ie(d,"left",""),ie(d,"width",""),ie(d,"height","")}var vt="Sortable"+new Date().getTime();function Ts(){var d=[],i;return{captureAnimationState:function(){if(d=[],!!this.options.animation){var s=[].slice.call(this.el.children);s.forEach(function(n){if(!(ie(n,"display")==="none"||n===ve.ghost)){d.push({target:n,rect:Me(n)});var c=$t({},d[d.length-1].rect);if(n.thisAnimationDuration){var t=xn(n,!0);t&&(c.top-=t.f,c.left-=t.e)}n.fromRect=c}})}},addAnimationState:function(s){d.push(s)},removeAnimationState:function(s){d.splice(As(d,{target:s}),1)},animateAll:function(s){var n=this;if(!this.options.animation){clearTimeout(i),typeof s=="function"&&s();return}var c=!1,t=0;d.forEach(function(a){var r=0,u=a.target,g=u.fromRect,m=Me(u),h=u.prevFromRect,b=u.prevToRect,S=a.rect,E=xn(u,!0);E&&(m.top-=E.f,m.left-=E.e),u.toRect=m,u.thisAnimationDuration&&mi(h,m)&&!mi(g,m)&&(S.top-m.top)/(S.left-m.left)===(g.top-m.top)/(g.left-m.left)&&(r=Ps(S,h,b,n.options)),mi(m,g)||(u.prevFromRect=g,u.prevToRect=m,r||(r=n.options.animation),n.animate(u,S,m,r)),r&&(c=!0,t=Math.max(t,r),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},r),u.thisAnimationDuration=r)}),clearTimeout(i),c?i=setTimeout(function(){typeof s=="function"&&s()},t):typeof s=="function"&&s(),d=[]},animate:function(s,n,c,t){if(t){ie(s,"transition",""),ie(s,"transform","");var a=xn(this.el),r=a&&a.a,u=a&&a.d,g=(n.left-c.left)/(r||1),m=(n.top-c.top)/(u||1);s.animatingX=!!g,s.animatingY=!!m,ie(s,"transform","translate3d("+g+"px,"+m+"px,0)"),this.forRepaintDummy=Ds(s),ie(s,"transition","transform "+t+"ms"+(this.options.easing?" "+this.options.easing:"")),ie(s,"transform","translate3d(0,0,0)"),typeof s.animated=="number"&&clearTimeout(s.animated),s.animated=setTimeout(function(){ie(s,"transition",""),ie(s,"transform",""),s.animated=!1,s.animatingX=!1,s.animatingY=!1},t)}}}}function Ds(d){return d.offsetWidth}function Ps(d,i,o,s){return Math.sqrt(Math.pow(i.top-d.top,2)+Math.pow(i.left-d.left,2))/Math.sqrt(Math.pow(i.top-o.top,2)+Math.pow(i.left-o.left,2))*s.animation}var Mn=[],hi={initializeByDefault:!0},Ao={mount:function(i){for(var o in hi)hi.hasOwnProperty(o)&&!(o in i)&&(i[o]=hi[o]);Mn.forEach(function(s){if(s.pluginName===i.pluginName)throw"Sortable: Cannot mount plugin ".concat(i.pluginName," more than once")}),Mn.push(i)},pluginEvent:function(i,o,s){var n=this;this.eventCanceled=!1,s.cancel=function(){n.eventCanceled=!0};var c=i+"Global";Mn.forEach(function(t){o[t.pluginName]&&(o[t.pluginName][c]&&o[t.pluginName][c]($t({sortable:o},s)),o.options[t.pluginName]&&o[t.pluginName][i]&&o[t.pluginName][i]($t({sortable:o},s)))})},initializePlugins:function(i,o,s,n){Mn.forEach(function(a){var r=a.pluginName;if(!(!i.options[r]&&!a.initializeByDefault)){var u=new a(i,o,i.options);u.sortable=i,u.options=i.options,i[r]=u,Ut(s,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 s={};return Mn.forEach(function(n){typeof n.eventProperties=="function"&&Ut(s,n.eventProperties.call(o[n.pluginName],i))}),s},modifyOption:function(i,o,s){var n;return Mn.forEach(function(c){i[c.pluginName]&&c.optionListeners&&typeof c.optionListeners[o]=="function"&&(n=c.optionListeners[o].call(i[c.pluginName],s))}),n}};function mo(d){var i=d.sortable,o=d.rootEl,s=d.name,n=d.targetEl,c=d.cloneEl,t=d.toEl,a=d.fromEl,r=d.oldIndex,u=d.newIndex,g=d.oldDraggableIndex,m=d.newDraggableIndex,h=d.originalEvent,b=d.putSortable,S=d.extraEventProperties;if(i=i||o&&o[vt],!!i){var E,I=i.options,w="on"+s.charAt(0).toUpperCase()+s.substr(1);window.CustomEvent&&!_t&&!Co?E=new CustomEvent(s,{bubbles:!0,cancelable:!0}):(E=document.createEvent("Event"),E.initEvent(s,!0,!0)),E.to=t||o,E.from=a||o,E.item=n||o,E.clone=c,E.oldIndex=r,E.newIndex=u,E.oldDraggableIndex=g,E.newDraggableIndex=m,E.originalEvent=h,E.pullMode=b?b.lastPutMode:void 0;var O=$t($t({},S),Ao.getEventProperties(s,i));for(var B in O)E[B]=O[B];o&&o.dispatchEvent(E),I[w]&&I[w].call(i,E)}}var Vs=["evt"],St=function(i,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=s.evt,c=gs(s,Vs);Ao.pluginEvent.bind(ve)(i,o,$t({dragEl:J,parentEl:Qe,ghostEl:he,rootEl:Ke,nextEl:En,lastDownEl:Ho,cloneEl:Ge,cloneHidden:ln,dragStarted:go,putSortable:dt,activeSortable:ve.active,originalEvent:n,oldIndex:jn,oldDraggableIndex:Eo,newIndex:Tt,newDraggableIndex:rn,hideGhostForTarget:Ua,unhideGhostForTarget:ka,cloneNowHidden:function(){ln=!0},cloneNowShown:function(){ln=!1},dispatchSortableEvent:function(a){ht({sortable:o,name:a,originalEvent:n})}},c))};function ht(d){mo($t({putSortable:dt,cloneEl:Ge,targetEl:J,rootEl:Ke,oldIndex:jn,oldDraggableIndex:Eo,newIndex:Tt,newDraggableIndex:rn},d))}var J,Qe,he,Ke,En,Ho,Ge,ln,jn,Tt,Eo,rn,Lo,dt,Fn=!1,_o=!1,ei=[],bn,kt,yi,bi,ha,ya,go,Bn,xo,Io=!1,Qo=!1,Yo,ft,Si=[],wi=!1,ti=[],oi=typeof document<"u",Go=Aa,ba=Co||_t?"cssFloat":"float",Rs=oi&&!Is&&!Aa&&"draggable"in document.createElement("div"),Pa=function(){if(oi){if(_t)return!1;var d=document.createElement("x");return d.style.cssText="pointer-events:auto",d.style.pointerEvents==="auto"}}(),Va=function(i,o){var s=ie(i),n=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),c=Ln(i,0,o),t=Ln(i,1,o),a=c&&ie(c),r=t&&ie(t),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Me(c).width,g=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Me(t).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(c&&a.float&&a.float!=="none"){var m=a.float==="left"?"left":"right";return t&&(r.clear==="both"||r.clear===m)?"vertical":"horizontal"}return c&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=n&&s[ba]==="none"||t&&s[ba]==="none"&&u+g>n)?"vertical":"horizontal"},Us=function(i,o,s){var n=s?i.left:i.top,c=s?i.right:i.bottom,t=s?i.width:i.height,a=s?o.left:o.top,r=s?o.right:o.bottom,u=s?o.width:o.height;return n===a||c===r||n+t/2===a+u/2},ks=function(i,o){var s;return ei.some(function(n){var c=n[vt].options.emptyInsertThreshold;if(!(!c||Pi(n))){var t=Me(n),a=i>=t.left-c&&i<=t.right+c,r=o>=t.top-c&&o<=t.bottom+c;if(a&&r)return s=n}}),s},Ra=function(i){function o(c,t){return function(a,r,u,g){var m=a.options.group.name&&r.options.group.name&&a.options.group.name===r.options.group.name;if(c==null&&(t||m))return!0;if(c==null||c===!1)return!1;if(t&&c==="clone")return c;if(typeof c=="function")return o(c(a,r,u,g),t)(a,r,u,g);var h=(t?a:r).options.group.name;return c===!0||typeof c=="string"&&c===h||c.join&&c.indexOf(h)>-1}}var s={},n=i.group;(!n||Wo(n)!="object")&&(n={name:n}),s.name=n.name,s.checkPull=o(n.pull,!0),s.checkPut=o(n.put),s.revertClone=n.revertClone,i.group=s},Ua=function(){!Pa&&he&&ie(he,"display","none")},ka=function(){!Pa&&he&&ie(he,"display","")};oi&&document.addEventListener("click",function(d){if(_o)return d.preventDefault(),d.stopPropagation&&d.stopPropagation(),d.stopImmediatePropagation&&d.stopImmediatePropagation(),_o=!1,!1},!0);var Sn=function(i){if(J){i=i.touches?i.touches[0]:i;var o=ks(i.clientX,i.clientY);if(o){var s={};for(var n in i)i.hasOwnProperty(n)&&(s[n]=i[n]);s.target=s.rootEl=o,s.preventDefault=void 0,s.stopPropagation=void 0,o[vt]._onDragOver(s)}}},Ks=function(i){J&&J.parentNode[vt]._isOutsideThisEl(i.target)};function ve(d,i){if(!(d&&d.nodeType&&d.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(d));this.el=d,this.options=i=Ut({},i),d[vt]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(d.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Va(d,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:ve.supportPointer!==!1&&"PointerEvent"in window&&!bo,emptyInsertThreshold:5};Ao.initializePlugins(this,d,o);for(var s in o)!(s in i)&&(i[s]=o[s]);Ra(i);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=i.forceFallback?!1:Rs,this.nativeDraggable&&(this.options.touchStartThreshold=1),i.supportPointer?xe(d,"pointerdown",this._onTapStart):(xe(d,"mousedown",this._onTapStart),xe(d,"touchstart",this._onTapStart)),this.nativeDraggable&&(xe(d,"dragover",this),xe(d,"dragenter",this)),ei.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),Ut(this,Ts())}ve.prototype={constructor:ve,_isOutsideThisEl:function(i){!this.el.contains(i)&&i!==this.el&&(Bn=null)},_getDirection:function(i,o){return typeof this.options.direction=="function"?this.options.direction.call(this,i,o,J):this.options.direction},_onTapStart:function(i){if(i.cancelable){var o=this,s=this.el,n=this.options,c=n.preventOnFilter,t=i.type,a=i.touches&&i.touches[0]||i.pointerType&&i.pointerType==="touch"&&i,r=(a||i).target,u=i.target.shadowRoot&&(i.path&&i.path[0]||i.composedPath&&i.composedPath()[0])||r,g=n.filter;if(Gs(s),!J&&!(/mousedown|pointerdown/.test(t)&&i.button!==0||n.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&bo&&r&&r.tagName.toUpperCase()==="SELECT")&&(r=Mt(r,n.draggable,s,!1),!(r&&r.animated)&&Ho!==r)){if(jn=ze(r),Eo=ze(r,n.draggable),typeof g=="function"){if(g.call(this,i,r,this)){ht({sortable:o,rootEl:u,name:"filter",targetEl:r,toEl:s,fromEl:s}),St("filter",o,{evt:i}),c&&i.cancelable&&i.preventDefault();return}}else if(g&&(g=g.split(",").some(function(m){if(m=Mt(u,m.trim(),s,!1),m)return ht({sortable:o,rootEl:m,name:"filter",targetEl:r,fromEl:s,toEl:s}),St("filter",o,{evt:i}),!0}),g)){c&&i.cancelable&&i.preventDefault();return}n.handle&&!Mt(u,n.handle,s,!1)||this._prepareDragStart(i,a,r)}}},_prepareDragStart:function(i,o,s){var n=this,c=n.el,t=n.options,a=c.ownerDocument,r;if(s&&!J&&s.parentNode===c){var u=Me(s);if(Ke=c,J=s,Qe=J.parentNode,En=J.nextSibling,Ho=s,Lo=t.group,ve.dragged=J,bn={target:J,clientX:(o||i).clientX,clientY:(o||i).clientY},ha=bn.clientX-u.left,ya=bn.clientY-u.top,this._lastX=(o||i).clientX,this._lastY=(o||i).clientY,J.style["will-change"]="all",r=function(){if(St("delayEnded",n,{evt:i}),ve.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!fa&&n.nativeDraggable&&(J.draggable=!0),n._triggerDragStart(i,o),ht({sortable:n,name:"choose",originalEvent:i}),Ne(J,t.chosenClass,!0)},t.ignore.split(",").forEach(function(g){Oa(J,g.trim(),Ei)}),xe(a,"dragover",Sn),xe(a,"mousemove",Sn),xe(a,"touchmove",Sn),xe(a,"mouseup",n._onDrop),xe(a,"touchend",n._onDrop),xe(a,"touchcancel",n._onDrop),fa&&this.nativeDraggable&&(this.options.touchStartThreshold=4,J.draggable=!0),St("delayStart",this,{evt:i}),t.delay&&(!t.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Co||_t))){if(ve.eventCanceled){this._onDrop();return}xe(a,"mouseup",n._disableDelayedDrag),xe(a,"touchend",n._disableDelayedDrag),xe(a,"touchcancel",n._disableDelayedDrag),xe(a,"mousemove",n._delayedDragTouchMoveHandler),xe(a,"touchmove",n._delayedDragTouchMoveHandler),t.supportPointer&&xe(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(r,t.delay)}else r()}},_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(){J&&Ei(J),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var i=this.el.ownerDocument;Se(i,"mouseup",this._disableDelayedDrag),Se(i,"touchend",this._disableDelayedDrag),Se(i,"touchcancel",this._disableDelayedDrag),Se(i,"mousemove",this._delayedDragTouchMoveHandler),Se(i,"touchmove",this._delayedDragTouchMoveHandler),Se(i,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(i,o){o=o||i.pointerType=="touch"&&i,!this.nativeDraggable||o?this.options.supportPointer?xe(document,"pointermove",this._onTouchMove):o?xe(document,"touchmove",this._onTouchMove):xe(document,"mousemove",this._onTouchMove):(xe(J,"dragend",this),xe(Ke,"dragstart",this._onDragStart));try{document.selection?Xo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(i,o){if(Fn=!1,Ke&&J){St("dragStarted",this,{evt:o}),this.nativeDraggable&&xe(document,"dragover",Ks);var s=this.options;!i&&Ne(J,s.dragClass,!1),Ne(J,s.ghostClass,!0),ve.active=this,i&&this._appendGhost(),ht({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(kt){this._lastX=kt.clientX,this._lastY=kt.clientY,Ua();for(var i=document.elementFromPoint(kt.clientX,kt.clientY),o=i;i&&i.shadowRoot&&(i=i.shadowRoot.elementFromPoint(kt.clientX,kt.clientY),i!==o);)o=i;if(J.parentNode[vt]._isOutsideThisEl(i),o)do{if(o[vt]){var s=void 0;if(s=o[vt]._onDragOver({clientX:kt.clientX,clientY:kt.clientY,target:i,rootEl:o}),s&&!this.options.dragoverBubble)break}i=o}while(o=o.parentNode);ka()}},_onTouchMove:function(i){if(bn){var o=this.options,s=o.fallbackTolerance,n=o.fallbackOffset,c=i.touches?i.touches[0]:i,t=he&&xn(he,!0),a=he&&t&&t.a,r=he&&t&&t.d,u=Go&&ft&&ma(ft),g=(c.clientX-bn.clientX+n.x)/(a||1)+(u?u[0]-Si[0]:0)/(a||1),m=(c.clientY-bn.clientY+n.y)/(r||1)+(u?u[1]-Si[1]:0)/(r||1);if(!ve.active&&!Fn){if(s&&Math.max(Math.abs(c.clientX-this._lastX),Math.abs(c.clientY-this._lastY))<s)return;this._onDragStart(i,!0)}if(he){t?(t.e+=g-(yi||0),t.f+=m-(bi||0)):t={a:1,b:0,c:0,d:1,e:g,f:m};var h="matrix(".concat(t.a,",").concat(t.b,",").concat(t.c,",").concat(t.d,",").concat(t.e,",").concat(t.f,")");ie(he,"webkitTransform",h),ie(he,"mozTransform",h),ie(he,"msTransform",h),ie(he,"transform",h),yi=g,bi=m,kt=c}i.cancelable&&i.preventDefault()}},_appendGhost:function(){if(!he){var i=this.options.fallbackOnBody?document.body:Ke,o=Me(J,!0,Go,!0,i),s=this.options;if(Go){for(ft=i;ie(ft,"position")==="static"&&ie(ft,"transform")==="none"&&ft!==document;)ft=ft.parentNode;ft!==document.body&&ft!==document.documentElement?(ft===document&&(ft=zt()),o.top+=ft.scrollTop,o.left+=ft.scrollLeft):ft=zt(),Si=ma(ft)}he=J.cloneNode(!0),Ne(he,s.ghostClass,!1),Ne(he,s.fallbackClass,!0),Ne(he,s.dragClass,!0),ie(he,"transition",""),ie(he,"transform",""),ie(he,"box-sizing","border-box"),ie(he,"margin",0),ie(he,"top",o.top),ie(he,"left",o.left),ie(he,"width",o.width),ie(he,"height",o.height),ie(he,"opacity","0.8"),ie(he,"position",Go?"absolute":"fixed"),ie(he,"zIndex","100000"),ie(he,"pointerEvents","none"),ve.ghost=he,i.appendChild(he),ie(he,"transform-origin",ha/parseInt(he.style.width)*100+"% "+ya/parseInt(he.style.height)*100+"%")}},_onDragStart:function(i,o){var s=this,n=i.dataTransfer,c=s.options;if(St("dragStart",this,{evt:i}),ve.eventCanceled){this._onDrop();return}St("setupClone",this),ve.eventCanceled||(Ge=Vi(J),Ge.draggable=!1,Ge.style["will-change"]="",this._hideClone(),Ne(Ge,this.options.chosenClass,!1),ve.clone=Ge),s.cloneId=Xo(function(){St("clone",s),!ve.eventCanceled&&(s.options.removeCloneOnHide||Ke.insertBefore(Ge,J),s._hideClone(),ht({sortable:s,name:"clone"}))}),!o&&Ne(J,c.dragClass,!0),o?(_o=!0,s._loopId=setInterval(s._emulateDragOver,50)):(Se(document,"mouseup",s._onDrop),Se(document,"touchend",s._onDrop),Se(document,"touchcancel",s._onDrop),n&&(n.effectAllowed="move",c.setData&&c.setData.call(s,n,J)),xe(document,"drop",s),ie(J,"transform","translateZ(0)")),Fn=!0,s._dragStartId=Xo(s._dragStarted.bind(s,o,i)),xe(document,"selectstart",s),go=!0,bo&&ie(document.body,"user-select","none")},_onDragOver:function(i){var o=this.el,s=i.target,n,c,t,a=this.options,r=a.group,u=ve.active,g=Lo===r,m=a.sort,h=dt||u,b,S=this,E=!1;if(wi)return;function I(ye,_){St(ye,S,$t({evt:i,isOwner:g,axis:b?"vertical":"horizontal",revert:t,dragRect:n,targetRect:c,canSort:m,fromSortable:h,target:s,completed:O,onMove:function(Oe,Ue){return zo(Ke,o,J,n,Oe,Me(Oe),i,Ue)},changed:B},_))}function w(){I("dragOverAnimationCapture"),S.captureAnimationState(),S!==h&&h.captureAnimationState()}function O(ye){return I("dragOverCompleted",{insertion:ye}),ye&&(g?u._hideClone():u._showClone(S),S!==h&&(Ne(J,dt?dt.options.ghostClass:u.options.ghostClass,!1),Ne(J,a.ghostClass,!0)),dt!==S&&S!==ve.active?dt=S:S===ve.active&&dt&&(dt=null),h===S&&(S._ignoreWhileAnimating=s),S.animateAll(function(){I("dragOverAnimationComplete"),S._ignoreWhileAnimating=null}),S!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===J&&!J.animated||s===o&&!s.animated)&&(Bn=null),!a.dragoverBubble&&!i.rootEl&&s!==document&&(J.parentNode[vt]._isOutsideThisEl(i.target),!ye&&Sn(i)),!a.dragoverBubble&&i.stopPropagation&&i.stopPropagation(),E=!0}function B(){Tt=ze(J),rn=ze(J,a.draggable),ht({sortable:S,name:"change",toEl:o,newIndex:Tt,newDraggableIndex:rn,originalEvent:i})}if(i.preventDefault!==void 0&&i.cancelable&&i.preventDefault(),s=Mt(s,a.draggable,o,!0),I("dragOver"),ve.eventCanceled)return E;if(J.contains(i.target)||s.animated&&s.animatingX&&s.animatingY||S._ignoreWhileAnimating===s)return O(!1);if(_o=!1,u&&!a.disabled&&(g?m||(t=Qe!==Ke):dt===this||(this.lastPutMode=Lo.checkPull(this,u,J,i))&&r.checkPut(this,u,J,i))){if(b=this._getDirection(i,s)==="vertical",n=Me(J),I("dragOverValid"),ve.eventCanceled)return E;if(t)return Qe=Ke,w(),this._hideClone(),I("revert"),ve.eventCanceled||(En?Ke.insertBefore(J,En):Ke.appendChild(J)),O(!0);var R=Pi(o,a.draggable);if(!R||Fs(i,b,this)&&!R.animated){if(R===J)return O(!1);if(R&&o===i.target&&(s=R),s&&(c=Me(s)),zo(Ke,o,J,n,s,c,i,!!s)!==!1)return w(),o.appendChild(J),Qe=o,B(),O(!0)}else if(R&&Ns(i,b,this)){var F=Ln(o,0,a,!0);if(F===J)return O(!1);if(s=F,c=Me(s),zo(Ke,o,J,n,s,c,i,!1)!==!1)return w(),o.insertBefore(J,F),Qe=o,B(),O(!0)}else if(s.parentNode===o){c=Me(s);var K=0,Z,$=J.parentNode!==o,k=!Us(J.animated&&J.toRect||n,s.animated&&s.toRect||c,b),W=b?"top":"left",ee=pa(s,"top","top")||pa(J,"top","top"),q=ee?ee.scrollTop:void 0;Bn!==s&&(Z=c[W],Io=!1,Qo=!k&&a.invertSwap||$),K=js(i,s,c,b,k?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Qo,Bn===s);var L;if(K!==0){var H=ze(J);do H-=K,L=Qe.children[H];while(L&&(ie(L,"display")==="none"||L===he))}if(K===0||L===s)return O(!1);Bn=s,xo=K;var fe=s.nextElementSibling,Y=!1;Y=K===1;var ae=zo(Ke,o,J,n,s,c,i,Y);if(ae!==!1)return(ae===1||ae===-1)&&(Y=ae===1),wi=!0,setTimeout(Bs,30),w(),Y&&!fe?o.appendChild(J):s.parentNode.insertBefore(J,Y?fe:s),ee&&Da(ee,0,q-ee.scrollTop),Qe=J.parentNode,Z!==void 0&&!Qo&&(Yo=Math.abs(Z-Me(s)[W])),B(),O(!0)}if(o.contains(J))return O(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Se(document,"mousemove",this._onTouchMove),Se(document,"touchmove",this._onTouchMove),Se(document,"pointermove",this._onTouchMove),Se(document,"dragover",Sn),Se(document,"mousemove",Sn),Se(document,"touchmove",Sn)},_offUpEvents:function(){var i=this.el.ownerDocument;Se(i,"mouseup",this._onDrop),Se(i,"touchend",this._onDrop),Se(i,"pointerup",this._onDrop),Se(i,"touchcancel",this._onDrop),Se(document,"selectstart",this)},_onDrop:function(i){var o=this.el,s=this.options;if(Tt=ze(J),rn=ze(J,s.draggable),St("drop",this,{evt:i}),Qe=J&&J.parentNode,Tt=ze(J),rn=ze(J,s.draggable),ve.eventCanceled){this._nulling();return}Fn=!1,Qo=!1,Io=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Oi(this.cloneId),Oi(this._dragStartId),this.nativeDraggable&&(Se(document,"drop",this),Se(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),bo&&ie(document.body,"user-select",""),ie(J,"transform",""),i&&(go&&(i.cancelable&&i.preventDefault(),!s.dropBubble&&i.stopPropagation()),he&&he.parentNode&&he.parentNode.removeChild(he),(Ke===Qe||dt&&dt.lastPutMode!=="clone")&&Ge&&Ge.parentNode&&Ge.parentNode.removeChild(Ge),J&&(this.nativeDraggable&&Se(J,"dragend",this),Ei(J),J.style["will-change"]="",go&&!Fn&&Ne(J,dt?dt.options.ghostClass:this.options.ghostClass,!1),Ne(J,this.options.chosenClass,!1),ht({sortable:this,name:"unchoose",toEl:Qe,newIndex:null,newDraggableIndex:null,originalEvent:i}),Ke!==Qe?(Tt>=0&&(ht({rootEl:Qe,name:"add",toEl:Qe,fromEl:Ke,originalEvent:i}),ht({sortable:this,name:"remove",toEl:Qe,originalEvent:i}),ht({rootEl:Qe,name:"sort",toEl:Qe,fromEl:Ke,originalEvent:i}),ht({sortable:this,name:"sort",toEl:Qe,originalEvent:i})),dt&&dt.save()):Tt!==jn&&Tt>=0&&(ht({sortable:this,name:"update",toEl:Qe,originalEvent:i}),ht({sortable:this,name:"sort",toEl:Qe,originalEvent:i})),ve.active&&((Tt==null||Tt===-1)&&(Tt=jn,rn=Eo),ht({sortable:this,name:"end",toEl:Qe,originalEvent:i}),this.save()))),this._nulling()},_nulling:function(){St("nulling",this),Ke=J=Qe=he=En=Ge=Ho=ln=bn=kt=go=Tt=rn=jn=Eo=Bn=xo=dt=Lo=ve.dragged=ve.ghost=ve.clone=ve.active=null,ti.forEach(function(i){i.checked=!0}),ti.length=yi=bi=0},handleEvent:function(i){switch(i.type){case"drop":case"dragend":this._onDrop(i);break;case"dragenter":case"dragover":J&&(this._onDragOver(i),Ms(i));break;case"selectstart":i.preventDefault();break}},toArray:function(){for(var i=[],o,s=this.el.children,n=0,c=s.length,t=this.options;n<c;n++)o=s[n],Mt(o,t.draggable,this.el,!1)&&i.push(o.getAttribute(t.dataIdAttr)||Qs(o));return i},sort:function(i,o){var s={},n=this.el;this.toArray().forEach(function(c,t){var a=n.children[t];Mt(a,this.options.draggable,n,!1)&&(s[c]=a)},this),o&&this.captureAnimationState(),i.forEach(function(c){s[c]&&(n.removeChild(s[c]),n.appendChild(s[c]))}),o&&this.animateAll()},save:function(){var i=this.options.store;i&&i.set&&i.set(this)},closest:function(i,o){return Mt(i,o||this.options.draggable,this.el,!1)},option:function(i,o){var s=this.options;if(o===void 0)return s[i];var n=Ao.modifyOption(this,i,o);typeof n<"u"?s[i]=n:s[i]=o,i==="group"&&Ra(s)},destroy:function(){St("destroy",this);var i=this.el;i[vt]=null,Se(i,"mousedown",this._onTapStart),Se(i,"touchstart",this._onTapStart),Se(i,"pointerdown",this._onTapStart),this.nativeDraggable&&(Se(i,"dragover",this),Se(i,"dragenter",this)),Array.prototype.forEach.call(i.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ei.splice(ei.indexOf(this.el),1),this.el=i=null},_hideClone:function(){if(!ln){if(St("hideClone",this),ve.eventCanceled)return;ie(Ge,"display","none"),this.options.removeCloneOnHide&&Ge.parentNode&&Ge.parentNode.removeChild(Ge),ln=!0}},_showClone:function(i){if(i.lastPutMode!=="clone"){this._hideClone();return}if(ln){if(St("showClone",this),ve.eventCanceled)return;J.parentNode==Ke&&!this.options.group.revertClone?Ke.insertBefore(Ge,J):En?Ke.insertBefore(Ge,En):Ke.appendChild(Ge),this.options.group.revertClone&&this.animate(J,Ge),ie(Ge,"display",""),ln=!1}}};function Ms(d){d.dataTransfer&&(d.dataTransfer.dropEffect="move"),d.cancelable&&d.preventDefault()}function zo(d,i,o,s,n,c,t,a){var r,u=d[vt],g=u.options.onMove,m;return window.CustomEvent&&!_t&&!Co?r=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(r=document.createEvent("Event"),r.initEvent("move",!0,!0)),r.to=i,r.from=d,r.dragged=o,r.draggedRect=s,r.related=n||i,r.relatedRect=c||Me(i),r.willInsertAfter=a,r.originalEvent=t,d.dispatchEvent(r),g&&(m=g.call(u,r,t)),m}function Ei(d){d.draggable=!1}function Bs(){wi=!1}function Ns(d,i,o){var s=Me(Ln(o.el,0,o.options,!0)),n=10;return i?d.clientX<s.left-n||d.clientY<s.top&&d.clientX<s.right:d.clientY<s.top-n||d.clientY<s.bottom&&d.clientX<s.left}function Fs(d,i,o){var s=Me(Pi(o.el,o.options.draggable)),n=10;return i?d.clientX>s.right+n||d.clientX<=s.right&&d.clientY>s.bottom&&d.clientX>=s.left:d.clientX>s.right&&d.clientY>s.top||d.clientX<=s.right&&d.clientY>s.bottom+n}function js(d,i,o,s,n,c,t,a){var r=s?d.clientY:d.clientX,u=s?o.height:o.width,g=s?o.top:o.left,m=s?o.bottom:o.right,h=!1;if(!t){if(a&&Yo<u*n){if(!Io&&(xo===1?r>g+u*c/2:r<m-u*c/2)&&(Io=!0),Io)h=!0;else if(xo===1?r<g+Yo:r>m-Yo)return-xo}else if(r>g+u*(1-n)/2&&r<m-u*(1-n)/2)return Ls(i)}return h=h||t,h&&(r<g+u*c/2||r>m-u*c/2)?r>g+u/2?1:-1:0}function Ls(d){return ze(J)<ze(d)?1:-1}function Qs(d){for(var i=d.tagName+d.className+d.src+d.href+d.textContent,o=i.length,s=0;o--;)s+=i.charCodeAt(o);return s.toString(36)}function Gs(d){ti.length=0;for(var i=d.getElementsByTagName("input"),o=i.length;o--;){var s=i[o];s.checked&&ti.push(s)}}function Xo(d){return setTimeout(d,0)}function Oi(d){return clearTimeout(d)}oi&&xe(document,"touchmove",function(d){(ve.active||Fn)&&d.cancelable&&d.preventDefault()});ve.utils={on:xe,off:Se,css:ie,find:Oa,is:function(i,o){return!!Mt(i,o,i,!1)},extend:ws,throttle:Ta,closest:Mt,toggleClass:Ne,clone:Vi,index:ze,nextTick:Xo,cancelNextTick:Oi,detectDirection:Va,getChild:Ln};ve.get=function(d){return d[vt]};ve.mount=function(){for(var d=arguments.length,i=new Array(d),o=0;o<d;o++)i[o]=arguments[o];i[0].constructor===Array&&(i=i[0]),i.forEach(function(s){if(!s.prototype||!s.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(s));s.utils&&(ve.utils=$t($t({},ve.utils),s.utils)),Ao.mount(s)})};ve.create=function(d,i){return new ve(d,i)};ve.version=xs;var Ze=[],ho,Ti,Di=!1,xi,Ii,ni,yo;function zs(){function d(){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 d.prototype={dragStarted:function(o){var s=o.originalEvent;this.sortable.nativeDraggable?xe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?xe(document,"pointermove",this._handleFallbackAutoScroll):s.touches?xe(document,"touchmove",this._handleFallbackAutoScroll):xe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var s=o.originalEvent;!this.options.dragOverBubble&&!s.rootEl&&this._handleAutoScroll(s)},drop:function(){this.sortable.nativeDraggable?Se(document,"dragover",this._handleAutoScroll):(Se(document,"pointermove",this._handleFallbackAutoScroll),Se(document,"touchmove",this._handleFallbackAutoScroll),Se(document,"mousemove",this._handleFallbackAutoScroll)),Sa(),Zo(),Os()},nulling:function(){ni=Ti=ho=Di=yo=xi=Ii=null,Ze.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,s){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(ni=o,s||this.options.forceAutoScrollFallback||Co||_t||bo){Ci(o,this.options,a,s);var r=sn(a,!0);Di&&(!yo||c!==xi||t!==Ii)&&(yo&&Sa(),yo=setInterval(function(){var u=sn(document.elementFromPoint(c,t),!0);u!==r&&(r=u,Zo()),Ci(o,n.options,u,s)},10),xi=c,Ii=t)}else{if(!this.options.bubbleScroll||sn(a,!0)===zt()){Zo();return}Ci(o,this.options,sn(a,!1),!1)}}},Ut(d,{pluginName:"scroll",initializeByDefault:!0})}function Zo(){Ze.forEach(function(d){clearInterval(d.pid)}),Ze=[]}function Sa(){clearInterval(yo)}var Ci=Ta(function(d,i,o,s){if(i.scroll){var n=(d.touches?d.touches[0]:d).clientX,c=(d.touches?d.touches[0]:d).clientY,t=i.scrollSensitivity,a=i.scrollSpeed,r=zt(),u=!1,g;Ti!==o&&(Ti=o,Zo(),ho=i.scroll,g=i.scrollFn,ho===!0&&(ho=sn(o,!0)));var m=0,h=ho;do{var b=h,S=Me(b),E=S.top,I=S.bottom,w=S.left,O=S.right,B=S.width,R=S.height,F=void 0,K=void 0,Z=b.scrollWidth,$=b.scrollHeight,k=ie(b),W=b.scrollLeft,ee=b.scrollTop;b===r?(F=B<Z&&(k.overflowX==="auto"||k.overflowX==="scroll"||k.overflowX==="visible"),K=R<$&&(k.overflowY==="auto"||k.overflowY==="scroll"||k.overflowY==="visible")):(F=B<Z&&(k.overflowX==="auto"||k.overflowX==="scroll"),K=R<$&&(k.overflowY==="auto"||k.overflowY==="scroll"));var q=F&&(Math.abs(O-n)<=t&&W+B<Z)-(Math.abs(w-n)<=t&&!!W),L=K&&(Math.abs(I-c)<=t&&ee+R<$)-(Math.abs(E-c)<=t&&!!ee);if(!Ze[m])for(var H=0;H<=m;H++)Ze[H]||(Ze[H]={});(Ze[m].vx!=q||Ze[m].vy!=L||Ze[m].el!==b)&&(Ze[m].el=b,Ze[m].vx=q,Ze[m].vy=L,clearInterval(Ze[m].pid),(q!=0||L!=0)&&(u=!0,Ze[m].pid=setInterval((function(){s&&this.layer===0&&ve.active._onTouchMove(ni);var fe=Ze[this.layer].vy?Ze[this.layer].vy*a:0,Y=Ze[this.layer].vx?Ze[this.layer].vx*a:0;typeof g=="function"&&g.call(ve.dragged.parentNode[vt],Y,fe,d,ni,Ze[this.layer].el)!=="continue"||Da(Ze[this.layer].el,Y,fe)}).bind({layer:m}),24))),m++}while(i.bubbleScroll&&h!==r&&(h=sn(h,!1)));Di=u}},30),Ka=function(i){var o=i.originalEvent,s=i.putSortable,n=i.dragEl,c=i.activeSortable,t=i.dispatchSortableEvent,a=i.hideGhostForTarget,r=i.unhideGhostForTarget;if(o){var u=s||c;a();var g=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,m=document.elementFromPoint(g.clientX,g.clientY);r(),u&&!u.el.contains(m)&&(t("spill"),this.onSpill({dragEl:n,putSortable:s}))}};function Ri(){}Ri.prototype={startIndex:null,dragStart:function(i){var o=i.oldDraggableIndex;this.startIndex=o},onSpill:function(i){var o=i.dragEl,s=i.putSortable;this.sortable.captureAnimationState(),s&&s.captureAnimationState();var n=Ln(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(o,n):this.sortable.el.appendChild(o),this.sortable.animateAll(),s&&s.animateAll()},drop:Ka};Ut(Ri,{pluginName:"revertOnSpill"});function Ui(){}Ui.prototype={onSpill:function(i){var o=i.dragEl,s=i.putSortable,n=s||this.sortable;n.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),n.animateAll()},drop:Ka};Ut(Ui,{pluginName:"removeOnSpill"});var Rt;function $s(){function d(){this.defaults={swapClass:"sortable-swap-highlight"}}return d.prototype={dragStart:function(o){var s=o.dragEl;Rt=s},dragOverValid:function(o){var s=o.completed,n=o.target,c=o.onMove,t=o.activeSortable,a=o.changed,r=o.cancel;if(t.options.swap){var u=this.sortable.el,g=this.options;if(n&&n!==u){var m=Rt;c(n)!==!1?(Ne(n,g.swapClass,!0),Rt=n):Rt=null,m&&m!==Rt&&Ne(m,g.swapClass,!1)}a(),s(!0),r()}},drop:function(o){var s=o.activeSortable,n=o.putSortable,c=o.dragEl,t=n||this.sortable,a=this.options;Rt&&Ne(Rt,a.swapClass,!1),Rt&&(a.swap||n&&n.options.swap)&&c!==Rt&&(t.captureAnimationState(),t!==s&&s.captureAnimationState(),Js(c,Rt),t.animateAll(),t!==s&&s.animateAll())},nulling:function(){Rt=null}},Ut(d,{pluginName:"swap",eventProperties:function(){return{swapItem:Rt}}})}function Js(d,i){var o=d.parentNode,s=i.parentNode,n,c;!o||!s||o.isEqualNode(i)||s.isEqualNode(d)||(n=ze(d),c=ze(i),o.isEqualNode(s)&&n<c&&c++,o.insertBefore(i,o.children[n]),s.insertBefore(d,s.children[c]))}var ge=[],Ot=[],fo,Kt,vo=!1,Et=!1,Nn=!1,Re,po,$o;function Ws(){function d(i){for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));i.options.supportPointer?xe(document,"pointerup",this._deselectMultiDrag):(xe(document,"mouseup",this._deselectMultiDrag),xe(document,"touchend",this._deselectMultiDrag)),xe(document,"keydown",this._checkKeyDown),xe(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(n,c){var t="";ge.length&&Kt===i?ge.forEach(function(a,r){t+=(r?", ":"")+a.textContent}):t=c.textContent,n.setData("Text",t)}}}return d.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(o){var s=o.dragEl;Re=s},delayEnded:function(){this.isMultiDrag=~ge.indexOf(Re)},setupClone:function(o){var s=o.sortable,n=o.cancel;if(this.isMultiDrag){for(var c=0;c<ge.length;c++)Ot.push(Vi(ge[c])),Ot[c].sortableIndex=ge[c].sortableIndex,Ot[c].draggable=!1,Ot[c].style["will-change"]="",Ne(Ot[c],this.options.selectedClass,!1),ge[c]===Re&&Ne(Ot[c],this.options.chosenClass,!1);s._hideClone(),n()}},clone:function(o){var s=o.sortable,n=o.rootEl,c=o.dispatchSortableEvent,t=o.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ge.length&&Kt===s&&(Ea(!0,n),c("clone"),t()))},showClone:function(o){var s=o.cloneNowShown,n=o.rootEl,c=o.cancel;this.isMultiDrag&&(Ea(!1,n),Ot.forEach(function(t){ie(t,"display","")}),s(),$o=!1,c())},hideClone:function(o){var s=this;o.sortable;var n=o.cloneNowHidden,c=o.cancel;this.isMultiDrag&&(Ot.forEach(function(t){ie(t,"display","none"),s.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),$o=!0,c())},dragStartGlobal:function(o){o.sortable,!this.isMultiDrag&&Kt&&Kt.multiDrag._deselectMultiDrag(),ge.forEach(function(s){s.sortableIndex=ze(s)}),ge=ge.sort(function(s,n){return s.sortableIndex-n.sortableIndex}),Nn=!0},dragStarted:function(o){var s=this,n=o.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){ge.forEach(function(t){t!==Re&&ie(t,"position","absolute")});var c=Me(Re,!1,!0,!0);ge.forEach(function(t){t!==Re&&ga(t,c)}),Et=!0,vo=!0}n.animateAll(function(){Et=!1,vo=!1,s.options.animation&&ge.forEach(function(t){gi(t)}),s.options.sort&&Jo()})}},dragOver:function(o){var s=o.target,n=o.completed,c=o.cancel;Et&&~ge.indexOf(s)&&(n(!1),c())},revert:function(o){var s=o.fromSortable,n=o.rootEl,c=o.sortable,t=o.dragRect;ge.length>1&&(ge.forEach(function(a){c.addAnimationState({target:a,rect:Et?Me(a):t}),gi(a),a.fromRect=t,s.removeAnimationState(a)}),Et=!1,Hs(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(o){var s=o.sortable,n=o.isOwner,c=o.insertion,t=o.activeSortable,a=o.parentEl,r=o.putSortable,u=this.options;if(c){if(n&&t._hideClone(),vo=!1,u.animation&&ge.length>1&&(Et||!n&&!t.options.sort&&!r)){var g=Me(Re,!1,!0,!0);ge.forEach(function(h){h!==Re&&(ga(h,g),a.appendChild(h))}),Et=!0}if(!n)if(Et||Jo(),ge.length>1){var m=$o;t._showClone(s),t.options.animation&&!$o&&m&&Ot.forEach(function(h){t.addAnimationState({target:h,rect:po}),h.fromRect=po,h.thisAnimationDuration=null})}else t._showClone(s)}},dragOverAnimationCapture:function(o){var s=o.dragRect,n=o.isOwner,c=o.activeSortable;if(ge.forEach(function(a){a.thisAnimationDuration=null}),c.options.animation&&!n&&c.multiDrag.isMultiDrag){po=Ut({},s);var t=xn(Re,!0);po.top-=t.f,po.left-=t.e}},dragOverAnimationComplete:function(){Et&&(Et=!1,Jo())},drop:function(o){var s=o.originalEvent,n=o.rootEl,c=o.parentEl,t=o.sortable,a=o.dispatchSortableEvent,r=o.oldIndex,u=o.putSortable,g=u||this.sortable;if(s){var m=this.options,h=c.children;if(!Nn)if(m.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ne(Re,m.selectedClass,!~ge.indexOf(Re)),~ge.indexOf(Re))ge.splice(ge.indexOf(Re),1),fo=null,mo({sortable:t,rootEl:n,name:"deselect",targetEl:Re});else{if(ge.push(Re),mo({sortable:t,rootEl:n,name:"select",targetEl:Re}),s.shiftKey&&fo&&t.el.contains(fo)){var b=ze(fo),S=ze(Re);if(~b&&~S&&b!==S){var E,I;for(S>b?(I=b,E=S):(I=S,E=b+1);I<E;I++)~ge.indexOf(h[I])||(Ne(h[I],m.selectedClass,!0),ge.push(h[I]),mo({sortable:t,rootEl:n,name:"select",targetEl:h[I]}))}}else fo=Re;Kt=g}if(Nn&&this.isMultiDrag){if(Et=!1,(c[vt].options.sort||c!==n)&&ge.length>1){var w=Me(Re),O=ze(Re,":not(."+this.options.selectedClass+")");if(!vo&&m.animation&&(Re.thisAnimationDuration=null),g.captureAnimationState(),!vo&&(m.animation&&(Re.fromRect=w,ge.forEach(function(R){if(R.thisAnimationDuration=null,R!==Re){var F=Et?Me(R):w;R.fromRect=F,g.addAnimationState({target:R,rect:F})}})),Jo(),ge.forEach(function(R){h[O]?c.insertBefore(R,h[O]):c.appendChild(R),O++}),r===ze(Re))){var B=!1;ge.forEach(function(R){if(R.sortableIndex!==ze(R)){B=!0;return}}),B&&a("update")}ge.forEach(function(R){gi(R)}),g.animateAll()}Kt=g}(n===c||u&&u.lastPutMode!=="clone")&&Ot.forEach(function(R){R.parentNode&&R.parentNode.removeChild(R)})}},nullingGlobal:function(){this.isMultiDrag=Nn=!1,Ot.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Se(document,"pointerup",this._deselectMultiDrag),Se(document,"mouseup",this._deselectMultiDrag),Se(document,"touchend",this._deselectMultiDrag),Se(document,"keydown",this._checkKeyDown),Se(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(o){if(!(typeof Nn<"u"&&Nn)&&Kt===this.sortable&&!(o&&Mt(o.target,this.options.draggable,this.sortable.el,!1))&&!(o&&o.button!==0))for(;ge.length;){var s=ge[0];Ne(s,this.options.selectedClass,!1),ge.shift(),mo({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:s})}},_checkKeyDown:function(o){o.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(o){o.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ut(d,{pluginName:"multiDrag",utils:{select:function(o){var s=o.parentNode[vt];!s||!s.options.multiDrag||~ge.indexOf(o)||(Kt&&Kt!==s&&(Kt.multiDrag._deselectMultiDrag(),Kt=s),Ne(o,s.options.selectedClass,!0),ge.push(o))},deselect:function(o){var s=o.parentNode[vt],n=ge.indexOf(o);!s||!s.options.multiDrag||!~n||(Ne(o,s.options.selectedClass,!1),ge.splice(n,1))}},eventProperties:function(){var o=this,s=[],n=[];return ge.forEach(function(c){s.push({multiDragElement:c,index:c.sortableIndex});var t;Et&&c!==Re?t=-1:Et?t=ze(c,":not(."+o.options.selectedClass+")"):t=ze(c),n.push({multiDragElement:c,index:t})}),{items:hs(ge),clones:[].concat(Ot),oldIndicies:s,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 Hs(d,i){ge.forEach(function(o,s){var n=i.children[o.sortableIndex+(d?Number(s):0)];n?i.insertBefore(o,n):i.appendChild(o)})}function Ea(d,i){Ot.forEach(function(o,s){var n=i.children[o.sortableIndex+(d?Number(s):0)];n?i.insertBefore(o,n):i.appendChild(o)})}function Jo(){ge.forEach(function(d){d!==Re&&d.parentNode&&d.parentNode.removeChild(d)})}ve.mount(new zs);ve.mount(Ui,Ri);const Ys=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Ws,Sortable:ve,Swap:$s,default:ve},Symbol.toStringTag,{value:"Module"})),Xs=Gl(Ys);(function(d,i){(function(s,n){d.exports=n($l,Xs)})(typeof self<"u"?self:Jl,function(o,s){return function(n){var c={};function t(a){if(c[a])return c[a].exports;var r=c[a]={i:a,l:!1,exports:{}};return n[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=n,t.c=c,t.d=function(a,r,u){t.o(a,r)||Object.defineProperty(a,r,{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,r){if(r&1&&(a=t(a)),r&8||r&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}),r&2&&typeof a!="string")for(var g in a)t.d(u,g,(function(m){return a[m]}).bind(null,g));return u},t.n=function(a){var r=a&&a.__esModule?function(){return a.default}:function(){return a};return t.d(r,"a",r),r},t.o=function(a,r){return Object.prototype.hasOwnProperty.call(a,r)},t.p="",t(t.s="fb15")}({"00ee":function(n,c,t){var a=t("b622"),r=a("toStringTag"),u={};u[r]="z",n.exports=String(u)==="[object z]"},"0366":function(n,c,t){var a=t("1c0b");n.exports=function(r,u,g){if(a(r),u===void 0)return r;switch(g){case 0:return function(){return r.call(u)};case 1:return function(m){return r.call(u,m)};case 2:return function(m,h){return r.call(u,m,h)};case 3:return function(m,h,b){return r.call(u,m,h,b)}}return function(){return r.apply(u,arguments)}}},"057f":function(n,c,t){var a=t("fc6a"),r=t("241c").f,u={}.toString,g=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(h){try{return r(h)}catch{return g.slice()}};n.exports.f=function(b){return g&&u.call(b)=="[object Window]"?m(b):r(a(b))}},"06cf":function(n,c,t){var a=t("83ab"),r=t("d1e7"),u=t("5c6c"),g=t("fc6a"),m=t("c04e"),h=t("5135"),b=t("0cfb"),S=Object.getOwnPropertyDescriptor;c.f=a?S:function(I,w){if(I=g(I),w=m(w,!0),b)try{return S(I,w)}catch{}if(h(I,w))return u(!r.f.call(I,w),I[w])}},"0cfb":function(n,c,t){var a=t("83ab"),r=t("d039"),u=t("cc12");n.exports=!a&&!r(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(n,c,t){var a=t("23e7"),r=t("d58f").left,u=t("a640"),g=t("ae40"),m=u("reduce"),h=g("reduce",{1:0});a({target:"Array",proto:!0,forced:!m||!h},{reduce:function(S){return r(this,S,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(n,c,t){var a=t("c6b6"),r=t("9263");n.exports=function(u,g){var m=u.exec;if(typeof m=="function"){var h=m.call(u,g);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 r.call(u,g)}},"159b":function(n,c,t){var a=t("da84"),r=t("fdbc"),u=t("17c2"),g=t("9112");for(var m in r){var h=a[m],b=h&&h.prototype;if(b&&b.forEach!==u)try{g(b,"forEach",u)}catch{b.forEach=u}}},"17c2":function(n,c,t){var a=t("b727").forEach,r=t("a640"),u=t("ae40"),g=r("forEach"),m=u("forEach");n.exports=!g||!m?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"),r=a("iterator"),u=!1;try{var g=0,m={next:function(){return{done:!!g++}},return:function(){u=!0}};m[r]=function(){return this},Array.from(m,function(){throw 2})}catch{}n.exports=function(h,b){if(!b&&!u)return!1;var S=!1;try{var E={};E[r]=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"),r=t("b622"),u=t("2d00"),g=r("species");n.exports=function(m){return u>=51||!a(function(){var h=[],b=h.constructor={};return b[g]=function(){return{foo:1}},h[m](Boolean).foo!==1})}},"23cb":function(n,c,t){var a=t("a691"),r=Math.max,u=Math.min;n.exports=function(g,m){var h=a(g);return h<0?r(h+m,0):u(h,m)}},"23e7":function(n,c,t){var a=t("da84"),r=t("06cf").f,u=t("9112"),g=t("6eeb"),m=t("ce4e"),h=t("e893"),b=t("94ca");n.exports=function(S,E){var I=S.target,w=S.global,O=S.stat,B,R,F,K,Z,$;if(w?R=a:O?R=a[I]||m(I,{}):R=(a[I]||{}).prototype,R)for(F in E){if(Z=E[F],S.noTargetGet?($=r(R,F),K=$&&$.value):K=R[F],B=b(w?F:I+(O?".":"#")+F,S.forced),!B&&K!==void 0){if(typeof Z==typeof K)continue;h(Z,K)}(S.sham||K&&K.sham)&&u(Z,"sham",!0),g(R,F,Z,S)}}},"241c":function(n,c,t){var a=t("ca84"),r=t("7839"),u=r.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(m){return a(m,u)}},"25f0":function(n,c,t){var a=t("6eeb"),r=t("825a"),u=t("d039"),g=t("ad6d"),m="toString",h=RegExp.prototype,b=h[m],S=u(function(){return b.call({source:"a",flags:"b"})!="/a/b"}),E=b.name!=m;(S||E)&&a(RegExp.prototype,m,function(){var w=r(this),O=String(w.source),B=w.flags,R=String(B===void 0&&w instanceof RegExp&&!("flags"in h)?g.call(w):B);return"/"+O+"/"+R},{unsafe:!0})},"2ca0":function(n,c,t){var a=t("23e7"),r=t("06cf").f,u=t("50c4"),g=t("5a34"),m=t("1d80"),h=t("ab13"),b=t("c430"),S="".startsWith,E=Math.min,I=h("startsWith"),w=!b&&!I&&!!function(){var O=r(String.prototype,"startsWith");return O&&!O.writable}();a({target:"String",proto:!0,forced:!w&&!I},{startsWith:function(B){var R=String(m(this));g(B);var F=u(E(arguments.length>1?arguments[1]:void 0,R.length)),K=String(B);return S?S.call(R,K,F):R.slice(F,F+K.length)===K}})},"2d00":function(n,c,t){var a=t("da84"),r=t("342f"),u=a.process,g=u&&u.versions,m=g&&g.v8,h,b;m?(h=m.split("."),b=h[0]+h[1]):r&&(h=r.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=r.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"),r=t("3f8c"),u=t("b622"),g=u("iterator");n.exports=function(m){if(m!=null)return m[g]||m["@@iterator"]||r[a(m)]}},"37e8":function(n,c,t){var a=t("83ab"),r=t("9bf2"),u=t("825a"),g=t("df75");n.exports=a?Object.defineProperties:function(h,b){u(h);for(var S=g(b),E=S.length,I=0,w;E>I;)r.f(h,w=S[I++],b[w]);return h}},"3bbe":function(n,c,t){var a=t("861d");n.exports=function(r){if(!a(r)&&r!==null)throw TypeError("Can't set "+String(r)+" as a prototype");return r}},"3ca3":function(n,c,t){var a=t("6547").charAt,r=t("69f3"),u=t("7dd0"),g="String Iterator",m=r.set,h=r.getterFor(g);u(String,"String",function(b){m(this,{type:g,string:String(b),index:0})},function(){var S=h(this),E=S.string,I=S.index,w;return I>=E.length?{value:void 0,done:!0}:(w=a(E,I),S.index+=w.length,{value:w,done:!1})})},"3f8c":function(n,c){n.exports={}},4160:function(n,c,t){var a=t("23e7"),r=t("17c2");a({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},"428f":function(n,c,t){var a=t("da84");n.exports=a},"44ad":function(n,c,t){var a=t("d039"),r=t("c6b6"),u="".split;n.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(g){return r(g)=="String"?u.call(g,""):Object(g)}:Object},"44d2":function(n,c,t){var a=t("b622"),r=t("7c73"),u=t("9bf2"),g=a("unscopables"),m=Array.prototype;m[g]==null&&u.f(m,g,{configurable:!0,value:r(null)}),n.exports=function(h){m[g][h]=!0}},"44e7":function(n,c,t){var a=t("861d"),r=t("c6b6"),u=t("b622"),g=u("match");n.exports=function(m){var h;return a(m)&&((h=m[g])!==void 0?!!h:r(m)=="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"),r=t("50c4"),u=t("23cb"),g=function(m){return function(h,b,S){var E=a(h),I=r(E.length),w=u(S,I),O;if(m&&b!=b){for(;I>w;)if(O=E[w++],O!=O)return!0}else for(;I>w;w++)if((m||w in E)&&E[w]===b)return m||w||0;return!m&&-1}};n.exports={includes:g(!0),indexOf:g(!1)}},"4de4":function(n,c,t){var a=t("23e7"),r=t("b727").filter,u=t("1dde"),g=t("ae40"),m=u("filter"),h=g("filter");a({target:"Array",proto:!0,forced:!m||!h},{filter:function(S){return r(this,S,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,c,t){var a=t("0366"),r=t("7b0b"),u=t("9bdd"),g=t("e95a"),m=t("50c4"),h=t("8418"),b=t("35a1");n.exports=function(E){var I=r(E),w=typeof this=="function"?this:Array,O=arguments.length,B=O>1?arguments[1]:void 0,R=B!==void 0,F=b(I),K=0,Z,$,k,W,ee,q;if(R&&(B=a(B,O>2?arguments[2]:void 0,2)),F!=null&&!(w==Array&&g(F)))for(W=F.call(I),ee=W.next,$=new w;!(k=ee.call(W)).done;K++)q=R?u(W,B,[k.value,K],!0):k.value,h($,K,q);else for(Z=m(I.length),$=new w(Z);Z>K;K++)q=R?B(I[K],K):I[K],h($,K,q);return $.length=K,$}},"4fad":function(n,c,t){var a=t("23e7"),r=t("6f53").entries;a({target:"Object",stat:!0},{entries:function(g){return r(g)}})},"50c4":function(n,c,t){var a=t("a691"),r=Math.min;n.exports=function(u){return u>0?r(a(u),9007199254740991):0}},5135:function(n,c){var t={}.hasOwnProperty;n.exports=function(a,r){return t.call(a,r)}},5319:function(n,c,t){var a=t("d784"),r=t("825a"),u=t("7b0b"),g=t("50c4"),m=t("a691"),h=t("1d80"),b=t("8aa5"),S=t("14c3"),E=Math.max,I=Math.min,w=Math.floor,O=/\$([$&'`]|\d\d?|<[^>]*>)/g,B=/\$([$&'`]|\d\d?)/g,R=function(F){return F===void 0?F:String(F)};a("replace",2,function(F,K,Z,$){var k=$.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,W=$.REPLACE_KEEPS_$0,ee=k?"$":"$0";return[function(H,fe){var Y=h(this),ae=H==null?void 0:H[F];return ae!==void 0?ae.call(H,Y,fe):K.call(String(Y),H,fe)},function(L,H){if(!k&&W||typeof H=="string"&&H.indexOf(ee)===-1){var fe=Z(K,L,this,H);if(fe.done)return fe.value}var Y=r(L),ae=String(this),ye=typeof H=="function";ye||(H=String(H));var _=Y.global;if(_){var qe=Y.unicode;Y.lastIndex=0}for(var Oe=[];;){var Ue=S(Y,ae);if(Ue===null||(Oe.push(Ue),!_))break;var $e=String(Ue[0]);$e===""&&(Y.lastIndex=b(ae,g(Y.lastIndex),qe))}for(var He="",Fe=0,Pe=0;Pe<Oe.length;Pe++){Ue=Oe[Pe];for(var ke=String(Ue[0]),je=E(I(m(Ue.index),ae.length),0),ot=[],yt=1;yt<Ue.length;yt++)ot.push(R(Ue[yt]));var xt=Ue.groups;if(ye){var Bt=[ke].concat(ot,je,ae);xt!==void 0&&Bt.push(xt);var Ye=String(H.apply(void 0,Bt))}else Ye=q(ke,ae,je,ot,xt,H);je>=Fe&&(He+=ae.slice(Fe,je)+Ye,Fe=je+ke.length)}return He+ae.slice(Fe)}];function q(L,H,fe,Y,ae,ye){var _=fe+L.length,qe=Y.length,Oe=B;return ae!==void 0&&(ae=u(ae),Oe=O),K.call(ye,Oe,function(Ue,$e){var He;switch($e.charAt(0)){case"$":return"$";case"&":return L;case"`":return H.slice(0,fe);case"'":return H.slice(_);case"<":He=ae[$e.slice(1,-1)];break;default:var Fe=+$e;if(Fe===0)return Ue;if(Fe>qe){var Pe=w(Fe/10);return Pe===0?Ue:Pe<=qe?Y[Pe-1]===void 0?$e.charAt(1):Y[Pe-1]+$e.charAt(1):Ue}He=Y[Fe-1]}return He===void 0?"":He})}})},5692:function(n,c,t){var a=t("c430"),r=t("c6cd");(n.exports=function(u,g){return r[u]||(r[u]=g!==void 0?g:{})})("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"),r=t("241c"),u=t("7418"),g=t("825a");n.exports=a("Reflect","ownKeys")||function(h){var b=r.f(g(h)),S=u.f;return S?b.concat(S(h)):b}},"5a34":function(n,c,t){var a=t("44e7");n.exports=function(r){if(a(r))throw TypeError("The method doesn't accept regular expressions");return r}},"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"),r=t("a2bf"),u=t("7b0b"),g=t("50c4"),m=t("1c0b"),h=t("65f0");a({target:"Array",proto:!0},{flatMap:function(S){var E=u(this),I=g(E.length),w;return m(S),w=h(E,0),w.length=r(w,E,E,I,0,1,S,arguments.length>1?arguments[1]:void 0),w}})},6547:function(n,c,t){var a=t("a691"),r=t("1d80"),u=function(g){return function(m,h){var b=String(r(m)),S=a(h),E=b.length,I,w;return S<0||S>=E?g?"":void 0:(I=b.charCodeAt(S),I<55296||I>56319||S+1===E||(w=b.charCodeAt(S+1))<56320||w>57343?g?b.charAt(S):I:g?b.slice(S,S+2):(I-55296<<10)+(w-56320)+65536)}};n.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(n,c,t){var a=t("861d"),r=t("e8b5"),u=t("b622"),g=u("species");n.exports=function(m,h){var b;return r(m)&&(b=m.constructor,typeof b=="function"&&(b===Array||r(b.prototype))?b=void 0:a(b)&&(b=b[g],b===null&&(b=void 0))),new(b===void 0?Array:b)(h===0?0:h)}},"69f3":function(n,c,t){var a=t("7f9a"),r=t("da84"),u=t("861d"),g=t("9112"),m=t("5135"),h=t("f772"),b=t("d012"),S=r.WeakMap,E,I,w,O=function(k){return w(k)?I(k):E(k,{})},B=function(k){return function(W){var ee;if(!u(W)||(ee=I(W)).type!==k)throw TypeError("Incompatible receiver, "+k+" required");return ee}};if(a){var R=new S,F=R.get,K=R.has,Z=R.set;E=function(k,W){return Z.call(R,k,W),W},I=function(k){return F.call(R,k)||{}},w=function(k){return K.call(R,k)}}else{var $=h("state");b[$]=!0,E=function(k,W){return g(k,$,W),W},I=function(k){return m(k,$)?k[$]:{}},w=function(k){return m(k,$)}}n.exports={set:E,get:I,has:w,enforce:O,getterFor:B}},"6eeb":function(n,c,t){var a=t("da84"),r=t("9112"),u=t("5135"),g=t("ce4e"),m=t("8925"),h=t("69f3"),b=h.get,S=h.enforce,E=String(String).split("String");(n.exports=function(I,w,O,B){var R=B?!!B.unsafe:!1,F=B?!!B.enumerable:!1,K=B?!!B.noTargetGet:!1;if(typeof O=="function"&&(typeof w=="string"&&!u(O,"name")&&r(O,"name",w),S(O).source=E.join(typeof w=="string"?w:"")),I===a){F?I[w]=O:g(w,O);return}else R?!K&&I[w]&&(F=!0):delete I[w];F?I[w]=O:r(I,w,O)})(Function.prototype,"toString",function(){return typeof this=="function"&&b(this).source||m(this)})},"6f53":function(n,c,t){var a=t("83ab"),r=t("df75"),u=t("fc6a"),g=t("d1e7").f,m=function(h){return function(b){for(var S=u(b),E=r(S),I=E.length,w=0,O=[],B;I>w;)B=E[w++],(!a||g.call(S,B))&&O.push(h?[B,S[B]]:S[B]);return O}};n.exports={entries:m(!0),values:m(!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"),r=t("5135"),u=t("e538"),g=t("9bf2").f;n.exports=function(m){var h=a.Symbol||(a.Symbol={});r(h,m)||g(h,m,{value:u.f(m)})}},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(r){return Object(a(r))}},"7c73":function(n,c,t){var a=t("825a"),r=t("37e8"),u=t("7839"),g=t("d012"),m=t("1be4"),h=t("cc12"),b=t("f772"),S=">",E="<",I="prototype",w="script",O=b("IE_PROTO"),B=function(){},R=function(k){return E+w+S+k+E+"/"+w+S},F=function(k){k.write(R("")),k.close();var W=k.parentWindow.Object;return k=null,W},K=function(){var k=h("iframe"),W="java"+w+":",ee;return k.style.display="none",m.appendChild(k),k.src=String(W),ee=k.contentWindow.document,ee.open(),ee.write(R("document.F=Object")),ee.close(),ee.F},Z,$=function(){try{Z=document.domain&&new ActiveXObject("htmlfile")}catch{}$=Z?F(Z):K();for(var k=u.length;k--;)delete $[I][u[k]];return $()};g[O]=!0,n.exports=Object.create||function(W,ee){var q;return W!==null?(B[I]=a(W),q=new B,B[I]=null,q[O]=W):q=$(),ee===void 0?q:r(q,ee)}},"7dd0":function(n,c,t){var a=t("23e7"),r=t("9ed3"),u=t("e163"),g=t("d2bb"),m=t("d44e"),h=t("9112"),b=t("6eeb"),S=t("b622"),E=t("c430"),I=t("3f8c"),w=t("ae93"),O=w.IteratorPrototype,B=w.BUGGY_SAFARI_ITERATORS,R=S("iterator"),F="keys",K="values",Z="entries",$=function(){return this};n.exports=function(k,W,ee,q,L,H,fe){r(ee,W,q);var Y=function(Pe){if(Pe===L&&Oe)return Oe;if(!B&&Pe in _)return _[Pe];switch(Pe){case F:return function(){return new ee(this,Pe)};case K:return function(){return new ee(this,Pe)};case Z:return function(){return new ee(this,Pe)}}return function(){return new ee(this)}},ae=W+" Iterator",ye=!1,_=k.prototype,qe=_[R]||_["@@iterator"]||L&&_[L],Oe=!B&&qe||Y(L),Ue=W=="Array"&&_.entries||qe,$e,He,Fe;if(Ue&&($e=u(Ue.call(new k)),O!==Object.prototype&&$e.next&&(!E&&u($e)!==O&&(g?g($e,O):typeof $e[R]!="function"&&h($e,R,$)),m($e,ae,!0,!0),E&&(I[ae]=$))),L==K&&qe&&qe.name!==K&&(ye=!0,Oe=function(){return qe.call(this)}),(!E||fe)&&_[R]!==Oe&&h(_,R,Oe),I[W]=Oe,L)if(He={values:Y(K),keys:H?Oe:Y(F),entries:Y(Z)},fe)for(Fe in He)(B||ye||!(Fe in _))&&b(_,Fe,He[Fe]);else a({target:W,proto:!0,forced:B||ye},He);return He}},"7f9a":function(n,c,t){var a=t("da84"),r=t("8925"),u=a.WeakMap;n.exports=typeof u=="function"&&/native code/.test(r(u))},"825a":function(n,c,t){var a=t("861d");n.exports=function(r){if(!a(r))throw TypeError(String(r)+" is not an object");return r}},"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"),r=t("9bf2"),u=t("5c6c");n.exports=function(g,m,h){var b=a(m);b in g?r.f(g,b,u(0,h)):g[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,r,u;(function(g,m){r=[],a=m,u=typeof a=="function"?a.apply(c,r):a,u!==void 0&&(n.exports=u)})(typeof self<"u"?self:this,function(){function g(){var m=Object.getOwnPropertyDescriptor(document,"currentScript");if(!m&&"currentScript"in document&&document.currentScript||m&&m.get!==g&&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,I=S&&S[2]||!1,w=document.location.href.replace(document.location.hash,""),O,B,R,F=document.getElementsByTagName("script");E===w&&(O=document.documentElement.outerHTML,B=new RegExp("(?:[^\\n]+?\\n){0,"+(I-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),R=O.replace(B,"$1").trim());for(var K=0;K<F.length;K++)if(F[K].readyState==="interactive"||F[K].src===E||E===w&&F[K].innerHTML&&F[K].innerHTML.trim()===R)return F[K];return null}}return g})},8925:function(n,c,t){var a=t("c6cd"),r=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return r.call(u)}),n.exports=a.inspectSource},"8aa5":function(n,c,t){var a=t("6547").charAt;n.exports=function(r,u,g){return u+(g?a(r,u).length:1)}},"8bbf":function(n,c){n.exports=o},"90e3":function(n,c){var t=0,a=Math.random();n.exports=function(r){return"Symbol("+String(r===void 0?"":r)+")_"+(++t+a).toString(36)}},9112:function(n,c,t){var a=t("83ab"),r=t("9bf2"),u=t("5c6c");n.exports=a?function(g,m,h){return r.f(g,m,u(1,h))}:function(g,m,h){return g[m]=h,g}},9263:function(n,c,t){var a=t("ad6d"),r=t("9f7f"),u=RegExp.prototype.exec,g=String.prototype.replace,m=u,h=function(){var I=/a/,w=/b*/g;return u.call(I,"a"),u.call(w,"a"),I.lastIndex!==0||w.lastIndex!==0}(),b=r.UNSUPPORTED_Y||r.BROKEN_CARET,S=/()??/.exec("")[1]!==void 0,E=h||S||b;E&&(m=function(w){var O=this,B,R,F,K,Z=b&&O.sticky,$=a.call(O),k=O.source,W=0,ee=w;return Z&&($=$.replace("y",""),$.indexOf("g")===-1&&($+="g"),ee=String(w).slice(O.lastIndex),O.lastIndex>0&&(!O.multiline||O.multiline&&w[O.lastIndex-1]!==`
- `)&&(k="(?: "+k+")",ee=" "+ee,W++),R=new RegExp("^(?:"+k+")",$)),S&&(R=new RegExp("^"+k+"$(?!\\s)",$)),h&&(B=O.lastIndex),F=u.call(Z?R:O,ee),Z?F?(F.input=F.input.slice(W),F[0]=F[0].slice(W),F.index=O.lastIndex,O.lastIndex+=F[0].length):O.lastIndex=0:h&&F&&(O.lastIndex=O.global?F.index+F[0].length:B),S&&F&&F.length>1&&g.call(F[0],R,function(){for(K=1;K<arguments.length-2;K++)arguments[K]===void 0&&(F[K]=void 0)}),F}),n.exports=m},"94ca":function(n,c,t){var a=t("d039"),r=/#|\.prototype\./,u=function(S,E){var I=m[g(S)];return I==b?!0:I==h?!1:typeof E=="function"?a(E):!!E},g=u.normalize=function(S){return String(S).replace(r,".").toLowerCase()},m=u.data={},h=u.NATIVE="N",b=u.POLYFILL="P";n.exports=u},"99af":function(n,c,t){var a=t("23e7"),r=t("d039"),u=t("e8b5"),g=t("861d"),m=t("7b0b"),h=t("50c4"),b=t("8418"),S=t("65f0"),E=t("1dde"),I=t("b622"),w=t("2d00"),O=I("isConcatSpreadable"),B=9007199254740991,R="Maximum allowed index exceeded",F=w>=51||!r(function(){var k=[];return k[O]=!1,k.concat()[0]!==k}),K=E("concat"),Z=function(k){if(!g(k))return!1;var W=k[O];return W!==void 0?!!W:u(k)},$=!F||!K;a({target:"Array",proto:!0,forced:$},{concat:function(W){var ee=m(this),q=S(ee,0),L=0,H,fe,Y,ae,ye;for(H=-1,Y=arguments.length;H<Y;H++)if(ye=H===-1?ee:arguments[H],Z(ye)){if(ae=h(ye.length),L+ae>B)throw TypeError(R);for(fe=0;fe<ae;fe++,L++)fe in ye&&b(q,L,ye[fe])}else{if(L>=B)throw TypeError(R);b(q,L++,ye)}return q.length=L,q}})},"9bdd":function(n,c,t){var a=t("825a");n.exports=function(r,u,g,m){try{return m?u(a(g)[0],g[1]):u(g)}catch(b){var h=r.return;throw h!==void 0&&a(h.call(r)),b}}},"9bf2":function(n,c,t){var a=t("83ab"),r=t("0cfb"),u=t("825a"),g=t("c04e"),m=Object.defineProperty;c.f=a?m:function(b,S,E){if(u(b),S=g(S,!0),u(E),r)try{return m(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,r=t("7c73"),u=t("5c6c"),g=t("d44e"),m=t("3f8c"),h=function(){return this};n.exports=function(b,S,E){var I=S+" Iterator";return b.prototype=r(a,{next:u(1,E)}),g(b,I,!1,!0),m[I]=h,b}},"9f7f":function(n,c,t){var a=t("d039");function r(u,g){return RegExp(u,g)}c.UNSUPPORTED_Y=a(function(){var u=r("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),c.BROKEN_CARET=a(function(){var u=r("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(n,c,t){var a=t("e8b5"),r=t("50c4"),u=t("0366"),g=function(m,h,b,S,E,I,w,O){for(var B=E,R=0,F=w?u(w,O,3):!1,K;R<S;){if(R in b){if(K=F?F(b[R],R,h):b[R],I>0&&a(K))B=g(m,h,K,r(K.length),B,I-1)-1;else{if(B>=9007199254740991)throw TypeError("Exceed the acceptable array length");m[B]=K}B++}R++}return B};n.exports=g},a352:function(n,c){n.exports=s},a434:function(n,c,t){var a=t("23e7"),r=t("23cb"),u=t("a691"),g=t("50c4"),m=t("7b0b"),h=t("65f0"),b=t("8418"),S=t("1dde"),E=t("ae40"),I=S("splice"),w=E("splice",{ACCESSORS:!0,0:0,1:2}),O=Math.max,B=Math.min,R=9007199254740991,F="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!I||!w},{splice:function(Z,$){var k=m(this),W=g(k.length),ee=r(Z,W),q=arguments.length,L,H,fe,Y,ae,ye;if(q===0?L=H=0:q===1?(L=0,H=W-ee):(L=q-2,H=B(O(u($),0),W-ee)),W+L-H>R)throw TypeError(F);for(fe=h(k,H),Y=0;Y<H;Y++)ae=ee+Y,ae in k&&b(fe,Y,k[ae]);if(fe.length=H,L<H){for(Y=ee;Y<W-H;Y++)ae=Y+H,ye=Y+L,ae in k?k[ye]=k[ae]:delete k[ye];for(Y=W;Y>W-H+L;Y--)delete k[Y-1]}else if(L>H)for(Y=W-H;Y>ee;Y--)ae=Y+H-1,ye=Y+L-1,ae in k?k[ye]=k[ae]:delete k[ye];for(Y=0;Y<L;Y++)k[Y+ee]=arguments[Y+2];return k.length=W-H+L,fe}})},a4d3:function(n,c,t){var a=t("23e7"),r=t("da84"),u=t("d066"),g=t("c430"),m=t("83ab"),h=t("4930"),b=t("fdbf"),S=t("d039"),E=t("5135"),I=t("e8b5"),w=t("861d"),O=t("825a"),B=t("7b0b"),R=t("fc6a"),F=t("c04e"),K=t("5c6c"),Z=t("7c73"),$=t("df75"),k=t("241c"),W=t("057f"),ee=t("7418"),q=t("06cf"),L=t("9bf2"),H=t("d1e7"),fe=t("9112"),Y=t("6eeb"),ae=t("5692"),ye=t("f772"),_=t("d012"),qe=t("90e3"),Oe=t("b622"),Ue=t("e538"),$e=t("746f"),He=t("d44e"),Fe=t("69f3"),Pe=t("b727").forEach,ke=ye("hidden"),je="Symbol",ot="prototype",yt=Oe("toPrimitive"),xt=Fe.set,Bt=Fe.getterFor(je),Ye=Object[ot],Xe=r.Symbol,pt=u("JSON","stringify"),_e=q.f,Dt=L.f,In=W.f,Qn=H.f,It=ae("symbols"),Nt=ae("op-symbols"),en=ae("string-to-symbol-registry"),dn=ae("symbol-to-string-registry"),un=ae("wks"),cn=r.QObject,fn=!cn||!cn[ot]||!cn[ot].findChild,vn=m&&S(function(){return Z(Dt({},"a",{get:function(){return Dt(this,"a",{value:7}).a}})).a!=7})?function(pe,oe,ue){var be=_e(Ye,oe);be&&delete Ye[oe],Dt(pe,oe,ue),be&&pe!==Ye&&Dt(Ye,oe,be)}:Dt,pn=function(pe,oe){var ue=It[pe]=Z(Xe[ot]);return xt(ue,{type:je,tag:pe,description:oe}),m||(ue.description=oe),ue},A=b?function(pe){return typeof pe=="symbol"}:function(pe){return Object(pe)instanceof Xe},C=function(oe,ue,be){oe===Ye&&C(Nt,ue,be),O(oe);var ne=F(ue,!0);return O(be),E(It,ne)?(be.enumerable?(E(oe,ke)&&oe[ke][ne]&&(oe[ke][ne]=!1),be=Z(be,{enumerable:K(0,!1)})):(E(oe,ke)||Dt(oe,ke,K(1,{})),oe[ke][ne]=!0),vn(oe,ne,be)):Dt(oe,ne,be)},D=function(oe,ue){O(oe);var be=R(ue),ne=$(be).concat(Ie(be));return Pe(ne,function(ut){(!m||te.call(be,ut))&&C(oe,ut,be[ut])}),oe},j=function(oe,ue){return ue===void 0?Z(oe):D(Z(oe),ue)},te=function(oe){var ue=F(oe,!0),be=Qn.call(this,ue);return this===Ye&&E(It,ue)&&!E(Nt,ue)?!1:be||!E(this,ue)||!E(It,ue)||E(this,ke)&&this[ke][ue]?be:!0},ce=function(oe,ue){var be=R(oe),ne=F(ue,!0);if(!(be===Ye&&E(It,ne)&&!E(Nt,ne))){var ut=_e(be,ne);return ut&&E(It,ne)&&!(E(be,ke)&&be[ke][ne])&&(ut.enumerable=!0),ut}},me=function(oe){var ue=In(R(oe)),be=[];return Pe(ue,function(ne){!E(It,ne)&&!E(_,ne)&&be.push(ne)}),be},Ie=function(oe){var ue=oe===Ye,be=In(ue?Nt:R(oe)),ne=[];return Pe(be,function(ut){E(It,ut)&&(!ue||E(Ye,ut))&&ne.push(It[ut])}),ne};if(h||(Xe=function(){if(this instanceof Xe)throw TypeError("Symbol is not a constructor");var oe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ue=qe(oe),be=function(ne){this===Ye&&be.call(Nt,ne),E(this,ke)&&E(this[ke],ue)&&(this[ke][ue]=!1),vn(this,ue,K(1,ne))};return m&&fn&&vn(Ye,ue,{configurable:!0,set:be}),pn(ue,oe)},Y(Xe[ot],"toString",function(){return Bt(this).tag}),Y(Xe,"withoutSetter",function(pe){return pn(qe(pe),pe)}),H.f=te,L.f=C,q.f=ce,k.f=W.f=me,ee.f=Ie,Ue.f=function(pe){return pn(Oe(pe),pe)},m&&(Dt(Xe[ot],"description",{configurable:!0,get:function(){return Bt(this).description}}),g||Y(Ye,"propertyIsEnumerable",te,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Xe}),Pe($(un),function(pe){$e(pe)}),a({target:je,stat:!0,forced:!h},{for:function(pe){var oe=String(pe);if(E(en,oe))return en[oe];var ue=Xe(oe);return en[oe]=ue,dn[ue]=oe,ue},keyFor:function(oe){if(!A(oe))throw TypeError(oe+" is not a symbol");if(E(dn,oe))return dn[oe]},useSetter:function(){fn=!0},useSimple:function(){fn=!1}}),a({target:"Object",stat:!0,forced:!h,sham:!m},{create:j,defineProperty:C,defineProperties:D,getOwnPropertyDescriptor:ce}),a({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:me,getOwnPropertySymbols:Ie}),a({target:"Object",stat:!0,forced:S(function(){ee.f(1)})},{getOwnPropertySymbols:function(oe){return ee.f(B(oe))}}),pt){var Be=!h||S(function(){var pe=Xe();return pt([pe])!="[null]"||pt({a:pe})!="{}"||pt(Object(pe))!="{}"});a({target:"JSON",stat:!0,forced:Be},{stringify:function(oe,ue,be){for(var ne=[oe],ut=1,Gn;arguments.length>ut;)ne.push(arguments[ut++]);if(Gn=ue,!(!w(ue)&&oe===void 0||A(oe)))return I(ue)||(ue=function(ii,mn){if(typeof Gn=="function"&&(mn=Gn.call(this,ii,mn)),!A(mn))return mn}),ne[1]=ue,pt.apply(null,ne)}})}Xe[ot][yt]||fe(Xe[ot],yt,Xe[ot].valueOf),He(Xe,je),_[ke]=!0},a630:function(n,c,t){var a=t("23e7"),r=t("4df4"),u=t("1c7e"),g=!u(function(m){Array.from(m)});a({target:"Array",stat:!0,forced:g},{from:r})},a640:function(n,c,t){var a=t("d039");n.exports=function(r,u){var g=[][r];return!!g&&a(function(){g.call(null,u||function(){throw 1},1)})}},a691:function(n,c){var t=Math.ceil,a=Math.floor;n.exports=function(r){return isNaN(r=+r)?0:(r>0?a:t)(r)}},ab13:function(n,c,t){var a=t("b622"),r=a("match");n.exports=function(u){var g=/./;try{"/./"[u](g)}catch{try{return g[r]=!1,"/./"[u](g)}catch{}}return!1}},ac1f:function(n,c,t){var a=t("23e7"),r=t("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(n,c,t){var a=t("825a");n.exports=function(){var r=a(this),u="";return r.global&&(u+="g"),r.ignoreCase&&(u+="i"),r.multiline&&(u+="m"),r.dotAll&&(u+="s"),r.unicode&&(u+="u"),r.sticky&&(u+="y"),u}},ae40:function(n,c,t){var a=t("83ab"),r=t("d039"),u=t("5135"),g=Object.defineProperty,m={},h=function(b){throw b};n.exports=function(b,S){if(u(m,b))return m[b];S||(S={});var E=[][b],I=u(S,"ACCESSORS")?S.ACCESSORS:!1,w=u(S,0)?S[0]:h,O=u(S,1)?S[1]:void 0;return m[b]=!!E&&!r(function(){if(I&&!a)return!0;var B={length:-1};I?g(B,1,{enumerable:!0,get:h}):B[1]=1,E.call(B,w,O)})}},ae93:function(n,c,t){var a=t("e163"),r=t("9112"),u=t("5135"),g=t("b622"),m=t("c430"),h=g("iterator"),b=!1,S=function(){return this},E,I,w;[].keys&&(w=[].keys(),"next"in w?(I=a(a(w)),I!==Object.prototype&&(E=I)):b=!0),E==null&&(E={}),!m&&!u(E,h)&&r(E,h,S),n.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:b}},b041:function(n,c,t){var a=t("00ee"),r=t("f5df");n.exports=a?{}.toString:function(){return"[object "+r(this)+"]"}},b0c0:function(n,c,t){var a=t("83ab"),r=t("9bf2").f,u=Function.prototype,g=u.toString,m=/^\s*function ([^ (]*)/,h="name";a&&!(h in u)&&r(u,h,{configurable:!0,get:function(){try{return g.call(this).match(m)[1]}catch{return""}}})},b622:function(n,c,t){var a=t("da84"),r=t("5692"),u=t("5135"),g=t("90e3"),m=t("4930"),h=t("fdbf"),b=r("wks"),S=a.Symbol,E=h?S:S&&S.withoutSetter||g;n.exports=function(I){return u(b,I)||(m&&u(S,I)?b[I]=S[I]:b[I]=E("Symbol."+I)),b[I]}},b64b:function(n,c,t){var a=t("23e7"),r=t("7b0b"),u=t("df75"),g=t("d039"),m=g(function(){u(1)});a({target:"Object",stat:!0,forced:m},{keys:function(b){return u(r(b))}})},b727:function(n,c,t){var a=t("0366"),r=t("44ad"),u=t("7b0b"),g=t("50c4"),m=t("65f0"),h=[].push,b=function(S){var E=S==1,I=S==2,w=S==3,O=S==4,B=S==6,R=S==5||B;return function(F,K,Z,$){for(var k=u(F),W=r(k),ee=a(K,Z,3),q=g(W.length),L=0,H=$||m,fe=E?H(F,q):I?H(F,0):void 0,Y,ae;q>L;L++)if((R||L in W)&&(Y=W[L],ae=ee(Y,L,k),S)){if(E)fe[L]=ae;else if(ae)switch(S){case 3:return!0;case 5:return Y;case 6:return L;case 2:h.call(fe,Y)}else if(O)return!1}return B?-1:w||O?O:fe}};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(r,u){if(!a(r))return r;var g,m;if(u&&typeof(g=r.toString)=="function"&&!a(m=g.call(r))||typeof(g=r.valueOf)=="function"&&!a(m=g.call(r))||!u&&typeof(g=r.toString)=="function"&&!a(m=g.call(r)))return m;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"),r=t("ce4e"),u="__core-js_shared__",g=a[u]||r(u,{});n.exports=g},c740:function(n,c,t){var a=t("23e7"),r=t("b727").findIndex,u=t("44d2"),g=t("ae40"),m="findIndex",h=!0,b=g(m);m in[]&&Array(1)[m](function(){h=!1}),a({target:"Array",proto:!0,forced:h||!b},{findIndex:function(E){return r(this,E,arguments.length>1?arguments[1]:void 0)}}),u(m)},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"),r=t("4d64").indexOf,u=t("a640"),g=t("ae40"),m=[].indexOf,h=!!m&&1/[1].indexOf(1,-0)<0,b=u("indexOf"),S=g("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:h||!b||!S},{indexOf:function(I){return h?m.apply(this,arguments)||0:r(this,I,arguments.length>1?arguments[1]:void 0)}})},ca84:function(n,c,t){var a=t("5135"),r=t("fc6a"),u=t("4d64").indexOf,g=t("d012");n.exports=function(m,h){var b=r(m),S=0,E=[],I;for(I in b)!a(g,I)&&a(b,I)&&E.push(I);for(;h.length>S;)a(b,I=h[S++])&&(~u(E,I)||E.push(I));return E}},caad:function(n,c,t){var a=t("23e7"),r=t("4d64").includes,u=t("44d2"),g=t("ae40"),m=g("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!m},{includes:function(b){return r(this,b,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(n,c,t){var a=t("da84"),r=t("861d"),u=a.document,g=r(u)&&r(u.createElement);n.exports=function(m){return g?u.createElement(m):{}}},ce4e:function(n,c,t){var a=t("da84"),r=t("9112");n.exports=function(u,g){try{r(a,u,g)}catch{a[u]=g}return g}},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"),r=t("da84"),u=function(g){return typeof g=="function"?g:void 0};n.exports=function(g,m){return arguments.length<2?u(a[g])||u(r[g]):a[g]&&a[g][m]||r[g]&&r[g][m]}},d1e7:function(n,c,t){var a={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,u=r&&!a.call({1:2},1);c.f=u?function(m){var h=r(this,m);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"),r=t("3bbe");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,g={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(g,[]),u=g instanceof Array}catch{}return function(b,S){return a(b),r(S),u?m.call(b,S):b.__proto__=S,b}}():void 0)},d3b7:function(n,c,t){var a=t("00ee"),r=t("6eeb"),u=t("b041");a||r(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(n,c,t){var a=t("9bf2").f,r=t("5135"),u=t("b622"),g=u("toStringTag");n.exports=function(m,h,b){m&&!r(m=b?m:m.prototype,g)&&a(m,g,{configurable:!0,value:h})}},d58f:function(n,c,t){var a=t("1c0b"),r=t("7b0b"),u=t("44ad"),g=t("50c4"),m=function(h){return function(b,S,E,I){a(S);var w=r(b),O=u(w),B=g(w.length),R=h?B-1:0,F=h?-1:1;if(E<2)for(;;){if(R in O){I=O[R],R+=F;break}if(R+=F,h?R<0:B<=R)throw TypeError("Reduce of empty array with no initial value")}for(;h?R>=0:B>R;R+=F)R in O&&(I=S(I,O[R],R,w));return I}};n.exports={left:m(!1),right:m(!0)}},d784:function(n,c,t){t("ac1f");var a=t("6eeb"),r=t("d039"),u=t("b622"),g=t("9263"),m=t("9112"),h=u("species"),b=!r(function(){var O=/./;return O.exec=function(){var B=[];return B.groups={a:"7"},B},"".replace(O,"$<a>")!=="7"}),S=function(){return"a".replace(/./,"$0")==="$0"}(),E=u("replace"),I=function(){return/./[E]?/./[E]("a","$0")==="":!1}(),w=!r(function(){var O=/(?:)/,B=O.exec;O.exec=function(){return B.apply(this,arguments)};var R="ab".split(O);return R.length!==2||R[0]!=="a"||R[1]!=="b"});n.exports=function(O,B,R,F){var K=u(O),Z=!r(function(){var L={};return L[K]=function(){return 7},""[O](L)!=7}),$=Z&&!r(function(){var L=!1,H=/a/;return O==="split"&&(H={},H.constructor={},H.constructor[h]=function(){return H},H.flags="",H[K]=/./[K]),H.exec=function(){return L=!0,null},H[K](""),!L});if(!Z||!$||O==="replace"&&!(b&&S&&!I)||O==="split"&&!w){var k=/./[K],W=R(K,""[O],function(L,H,fe,Y,ae){return H.exec===g?Z&&!ae?{done:!0,value:k.call(H,fe,Y)}:{done:!0,value:L.call(fe,H,Y)}:{done:!1}},{REPLACE_KEEPS_$0:S,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:I}),ee=W[0],q=W[1];a(String.prototype,O,ee),a(RegExp.prototype,K,B==2?function(L,H){return q.call(L,this,H)}:function(L){return q.call(L,this)})}F&&m(RegExp.prototype[K],"sham",!0)}},d81d:function(n,c,t){var a=t("23e7"),r=t("b727").map,u=t("1dde"),g=t("ae40"),m=u("map"),h=g("map");a({target:"Array",proto:!0,forced:!m||!h},{map:function(S){return r(this,S,arguments.length>1?arguments[1]:void 0)}})},da84:function(n,c,t){(function(a){var r=function(u){return u&&u.Math==Math&&u};n.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof a=="object"&&a)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(n,c,t){var a=t("23e7"),r=t("83ab"),u=t("56ef"),g=t("fc6a"),m=t("06cf"),h=t("8418");a({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(S){for(var E=g(S),I=m.f,w=u(E),O={},B=0,R,F;w.length>B;)F=I(E,R=w[B++]),F!==void 0&&h(O,R,F);return O}})},dbf1:function(n,c,t){(function(a){t.d(c,"a",function(){return u});function r(){return typeof window<"u"?window.console:a.console}var u=r()}).call(this,t("c8ba"))},ddb0:function(n,c,t){var a=t("da84"),r=t("fdbc"),u=t("e260"),g=t("9112"),m=t("b622"),h=m("iterator"),b=m("toStringTag"),S=u.values;for(var E in r){var I=a[E],w=I&&I.prototype;if(w){if(w[h]!==S)try{g(w,h,S)}catch{w[h]=S}if(w[b]||g(w,b,E),r[E]){for(var O in u)if(w[O]!==u[O])try{g(w,O,u[O])}catch{w[O]=u[O]}}}}},df75:function(n,c,t){var a=t("ca84"),r=t("7839");n.exports=Object.keys||function(g){return a(g,r)}},e01a:function(n,c,t){var a=t("23e7"),r=t("83ab"),u=t("da84"),g=t("5135"),m=t("861d"),h=t("9bf2").f,b=t("e893"),S=u.Symbol;if(r&&typeof S=="function"&&(!("description"in S.prototype)||S().description!==void 0)){var E={},I=function(){var K=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Z=this instanceof I?new S(K):K===void 0?S():S(K);return K===""&&(E[Z]=!0),Z};b(I,S);var w=I.prototype=S.prototype;w.constructor=I;var O=w.toString,B=String(S("test"))=="Symbol(test)",R=/^Symbol\((.*)\)[^)]+$/;h(w,"description",{configurable:!0,get:function(){var K=m(this)?this.valueOf():this,Z=O.call(K);if(g(E,K))return"";var $=B?Z.slice(7,-1):Z.replace(R,"$1");return $===""?void 0:$}}),a({global:!0,forced:!0},{Symbol:I})}},e163:function(n,c,t){var a=t("5135"),r=t("7b0b"),u=t("f772"),g=t("e177"),m=u("IE_PROTO"),h=Object.prototype;n.exports=g?Object.getPrototypeOf:function(b){return b=r(b),a(b,m)?b[m]: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 r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},e260:function(n,c,t){var a=t("fc6a"),r=t("44d2"),u=t("3f8c"),g=t("69f3"),m=t("7dd0"),h="Array Iterator",b=g.set,S=g.getterFor(h);n.exports=m(Array,"Array",function(E,I){b(this,{type:h,target:a(E),index:0,kind:I})},function(){var E=S(this),I=E.target,w=E.kind,O=E.index++;return!I||O>=I.length?(E.target=void 0,{value:void 0,done:!0}):w=="keys"?{value:O,done:!1}:w=="values"?{value:I[O],done:!1}:{value:[O,I[O]],done:!1}},"values"),u.Arguments=u.Array,r("keys"),r("values"),r("entries")},e439:function(n,c,t){var a=t("23e7"),r=t("d039"),u=t("fc6a"),g=t("06cf").f,m=t("83ab"),h=r(function(){g(1)}),b=!m||h;a({target:"Object",stat:!0,forced:b,sham:!m},{getOwnPropertyDescriptor:function(E,I){return g(u(E),I)}})},e538:function(n,c,t){var a=t("b622");c.f=a},e893:function(n,c,t){var a=t("5135"),r=t("56ef"),u=t("06cf"),g=t("9bf2");n.exports=function(m,h){for(var b=r(h),S=g.f,E=u.f,I=0;I<b.length;I++){var w=b[I];a(m,w)||S(m,w,E(h,w))}}},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"),r=t("3f8c"),u=a("iterator"),g=Array.prototype;n.exports=function(m){return m!==void 0&&(r.Array===m||g[u]===m)}},f5df:function(n,c,t){var a=t("00ee"),r=t("c6b6"),u=t("b622"),g=u("toStringTag"),m=r(function(){return arguments}())=="Arguments",h=function(b,S){try{return b[S]}catch{}};n.exports=a?r:function(b){var S,E,I;return b===void 0?"Undefined":b===null?"Null":typeof(E=h(S=Object(b),g))=="string"?E:m?r(S):(I=r(S))=="Object"&&typeof S.callee=="function"?"Arguments":I}},f772:function(n,c,t){var a=t("5692"),r=t("90e3"),u=a("keys");n.exports=function(g){return u[g]||(u[g]=r(g))}},fb15:function(n,c,t){if(t.r(c),typeof window<"u"){var a=window.document.currentScript;{var r=t("8875");a=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r})}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 g(A,C,D){return C in A?Object.defineProperty(A,C,{value:D,enumerable:!0,configurable:!0,writable:!0}):A[C]=D,A}function m(A,C){var D=Object.keys(A);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(A);C&&(j=j.filter(function(te){return Object.getOwnPropertyDescriptor(A,te).enumerable})),D.push.apply(D,j)}return D}function h(A){for(var C=1;C<arguments.length;C++){var D=arguments[C]!=null?arguments[C]:{};C%2?m(Object(D),!0).forEach(function(j){g(A,j,D[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(D)):m(Object(D)).forEach(function(j){Object.defineProperty(A,j,Object.getOwnPropertyDescriptor(D,j))})}return A}function b(A){if(Array.isArray(A))return A}t("e01a"),t("d28b"),t("e260"),t("d3b7"),t("3ca3"),t("ddb0");function S(A,C){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(A)))){var D=[],j=!0,te=!1,ce=void 0;try{for(var me=A[Symbol.iterator](),Ie;!(j=(Ie=me.next()).done)&&(D.push(Ie.value),!(C&&D.length===C));j=!0);}catch(Be){te=!0,ce=Be}finally{try{!j&&me.return!=null&&me.return()}finally{if(te)throw ce}}return D}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function E(A,C){(C==null||C>A.length)&&(C=A.length);for(var D=0,j=new Array(C);D<C;D++)j[D]=A[D];return j}function I(A,C){if(A){if(typeof A=="string")return E(A,C);var D=Object.prototype.toString.call(A).slice(8,-1);if(D==="Object"&&A.constructor&&(D=A.constructor.name),D==="Map"||D==="Set")return Array.from(A);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return E(A,C)}}function w(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(A,C){return b(A)||S(A,C)||I(A,C)||w()}function B(A){if(Array.isArray(A))return E(A)}function R(A){if(typeof Symbol<"u"&&Symbol.iterator in Object(A))return Array.from(A)}function F(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K(A){return B(A)||R(A)||I(A)||F()}var Z=t("a352"),$=t.n(Z);function k(A){A.parentElement!==null&&A.parentElement.removeChild(A)}function W(A,C,D){var j=D===0?A.children[0]:A.children[D-1].nextSibling;A.insertBefore(C,j)}var ee=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function q(A){var C=Object.create(null);return function(j){var te=C[j];return te||(C[j]=A(j))}}var L=/-(\w)/g,H=q(function(A){return A.replace(L,function(C,D){return D.toUpperCase()})});t("5db7"),t("73d9");var fe=["Start","Add","Remove","Update","End"],Y=["Choose","Unchoose","Sort","Filter","Clone"],ae=["Move"],ye=[ae,fe,Y].flatMap(function(A){return A}).map(function(A){return"on".concat(A)}),_={manage:ae,manageAndEmit:fe,emit:Y};function qe(A){return ye.indexOf(A)!==-1}t("caad"),t("2ca0");var Oe=["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 Ue(A){return Oe.includes(A)}function $e(A){return["transition-group","TransitionGroup"].includes(A)}function He(A){return["id","class","role","style"].includes(A)||A.startsWith("data-")||A.startsWith("aria-")||A.startsWith("on")}function Fe(A){return A.reduce(function(C,D){var j=O(D,2),te=j[0],ce=j[1];return C[te]=ce,C},{})}function Pe(A){var C=A.$attrs,D=A.componentData,j=D===void 0?{}:D,te=Fe(Object.entries(C).filter(function(ce){var me=O(ce,2),Ie=me[0];return me[1],He(Ie)}));return h(h({},te),j)}function ke(A){var C=A.$attrs,D=A.callBackBuilder,j=Fe(je(C));Object.entries(D).forEach(function(ce){var me=O(ce,2),Ie=me[0],Be=me[1];_[Ie].forEach(function(pe){j["on".concat(pe)]=Be(pe)})});var te="[data-draggable]".concat(j.draggable||"");return h(h({},j),{},{draggable:te})}function je(A){return Object.entries(A).filter(function(C){var D=O(C,2),j=D[0];return D[1],!He(j)}).map(function(C){var D=O(C,2),j=D[0],te=D[1];return[H(j),te]}).filter(function(C){var D=O(C,2),j=D[0];return D[1],!qe(j)})}t("c740");function ot(A,C){if(!(A instanceof C))throw new TypeError("Cannot call a class as a function")}function yt(A,C){for(var D=0;D<C.length;D++){var j=C[D];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(A,j.key,j)}}function xt(A,C,D){return C&&yt(A.prototype,C),A}var Bt=function(C){var D=C.el;return D},Ye=function(C,D){return C.__draggable_context=D},Xe=function(C){return C.__draggable_context},pt=function(){function A(C){var D=C.nodes,j=D.header,te=D.default,ce=D.footer,me=C.root,Ie=C.realList;ot(this,A),this.defaultNodes=te,this.children=[].concat(K(j),K(te),K(ce)),this.externalComponent=me.externalComponent,this.rootTransition=me.transition,this.tag=me.tag,this.realList=Ie}return xt(A,[{key:"render",value:function(D,j){var te=this.tag,ce=this.children,me=this._isRootComponent,Ie=me?{default:function(){return ce}}:ce;return D(te,j,Ie)}},{key:"updated",value:function(){var D=this.defaultNodes,j=this.realList;D.forEach(function(te,ce){Ye(Bt(te),{element:j[ce],index:ce})})}},{key:"getUnderlyingVm",value:function(D){return Xe(D)}},{key:"getVmIndexFromDomIndex",value:function(D,j){var te=this.defaultNodes,ce=te.length,me=j.children,Ie=me.item(D);if(Ie===null)return ce;var Be=Xe(Ie);if(Be)return Be.index;if(ce===0)return 0;var pe=Bt(te[0]),oe=K(me).findIndex(function(ue){return ue===pe});return D<oe?0:ce}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),A}(),_e=t("8bbf");function Dt(A,C){var D=A[C];return D?D():[]}function In(A){var C=A.$slots,D=A.realList,j=A.getKey,te=D||[],ce=["header","footer"].map(function(ue){return Dt(C,ue)}),me=O(ce,2),Ie=me[0],Be=me[1],pe=C.item;if(!pe)throw new Error("draggable element must have an item slot");var oe=te.flatMap(function(ue,be){return pe({element:ue,index:be}).map(function(ne){return ne.key=j(ue),ne.props=h(h({},ne.props||{}),{},{"data-draggable":!0}),ne})});if(oe.length!==te.length)throw new Error("Item slot must have only one child");return{header:Ie,footer:Be,default:oe}}function Qn(A){var C=$e(A),D=!Ue(A)&&!C;return{transition:C,externalComponent:D,tag:D?Object(_e.resolveComponent)(A):C?_e.TransitionGroup:A}}function It(A){var C=A.$slots,D=A.tag,j=A.realList,te=A.getKey,ce=In({$slots:C,realList:j,getKey:te}),me=Qn(D);return new pt({nodes:ce,root:me,realList:j})}function Nt(A,C){var D=this;Object(_e.nextTick)(function(){return D.$emit(A.toLowerCase(),C)})}function en(A){var C=this;return function(D,j){if(C.realList!==null)return C["onDrag".concat(A)](D,j)}}function dn(A){var C=this,D=en.call(this,A);return function(j,te){D.call(C,j,te),Nt.call(C,A,j)}}var un=null,cn={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}},fn=["update:modelValue","change"].concat(K([].concat(K(_.manageAndEmit),K(_.emit)).map(function(A){return A.toLowerCase()}))),vn=Object(_e.defineComponent)({name:"draggable",inheritAttrs:!1,props:cn,emits:fn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var C=this.$slots,D=this.$attrs,j=this.tag,te=this.componentData,ce=this.realList,me=this.getKey,Ie=It({$slots:C,tag:j,realList:ce,getKey:me});this.componentStructure=Ie;var Be=Pe({$attrs:D,componentData:te});return Ie.render(_e.h,Be)}catch(pe){return this.error=!0,Object(_e.h)("pre",{style:{color:"red"}},pe.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&ee.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,j=this.$el,te=this.componentStructure;te.updated();var ce=ke({$attrs:D,callBackBuilder:{manageAndEmit:function(Be){return dn.call(C,Be)},emit:function(Be){return Nt.bind(C,Be)},manage:function(Be){return en.call(C,Be)}}}),me=j.nodeType===1?j:j.parentElement;this._sortable=new $.a(me,ce),this.targetDomElement=me,me.__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&&je(C).forEach(function(j){var te=O(j,2),ce=te[0],me=te[1];D.option(ce,me)})},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(_e.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(te){return te.splice.apply(te,K(C))};this.alterList(D)},updatePosition:function(C,D){var j=function(ce){return ce.splice(D,0,ce.splice(C,1)[0])};this.alterList(j)},getRelatedContextFromMoveEvent:function(C){var D=C.to,j=C.related,te=this.getUnderlyingPotencialDraggableComponent(D);if(!te)return{component:te};var ce=te.realList,me={list:ce,component:te};if(D!==j&&ce){var Ie=te.getUnderlyingVm(j)||{};return h(h({},Ie),me)}return me},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),un=C.item},onDragAdd:function(C){var D=C.item._underlying_vm_;if(D!==void 0){k(C.item);var j=this.getVmIndexFromDomIndex(C.newIndex);this.spliceList(j,0,D);var te={element:D,newIndex:j};this.emitChanges({added:te})}},onDragRemove:function(C){if(W(this.$el,C.item,C.oldIndex),C.pullMode==="clone"){k(C.clone);return}var D=this.context,j=D.index,te=D.element;this.spliceList(j,1);var ce={element:te,oldIndex:j};this.emitChanges({removed:ce})},onDragUpdate:function(C){k(C.item),W(C.from,C.item,C.oldIndex);var D=this.context.index,j=this.getVmIndexFromDomIndex(C.newIndex);this.updatePosition(D,j);var te={element:this.context.element,oldIndex:D,newIndex:j};this.emitChanges({moved:te})},computeFutureIndex:function(C,D){if(!C.element)return 0;var j=K(D.to.children).filter(function(Ie){return Ie.style.display!=="none"}),te=j.indexOf(D.related),ce=C.component.getVmIndexFromDomIndex(te),me=j.indexOf(un)!==-1;return me||!D.willInsertAfter?ce:ce+1},onDragMove:function(C,D){var j=this.move,te=this.realList;if(!j||!te)return!0;var ce=this.getRelatedContextFromMoveEvent(C),me=this.computeFutureIndex(ce,C),Ie=h(h({},this.context),{},{futureIndex:me}),Be=h(h({},C),{},{relatedContext:ce,draggedContext:Ie});return j(Be,D)},onDragEnd:function(){un=null}}}),pn=vn;c.default=pn},fb6a:function(n,c,t){var a=t("23e7"),r=t("861d"),u=t("e8b5"),g=t("23cb"),m=t("50c4"),h=t("fc6a"),b=t("8418"),S=t("b622"),E=t("1dde"),I=t("ae40"),w=E("slice"),O=I("slice",{ACCESSORS:!0,0:0,1:2}),B=S("species"),R=[].slice,F=Math.max;a({target:"Array",proto:!0,forced:!w||!O},{slice:function(Z,$){var k=h(this),W=m(k.length),ee=g(Z,W),q=g($===void 0?W:$,W),L,H,fe;if(u(k)&&(L=k.constructor,typeof L=="function"&&(L===Array||u(L.prototype))?L=void 0:r(L)&&(L=L[B],L===null&&(L=void 0)),L===Array||L===void 0))return R.call(k,ee,q);for(H=new(L===void 0?Array:L)(F(q-ee,0)),fe=0;ee<q;ee++,fe++)ee in k&&b(H,fe,k[ee]);return H.length=fe,H}})},fc6a:function(n,c,t){var a=t("44ad"),r=t("1d80");n.exports=function(u){return a(r(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})})(Ca);var Zs=Ca.exports;const xa=zl(Zs);function Ia(d,i){["name","gender","phone","id_card","ethnicity","height","weight","current_address","household_location","marital_status","expected_salary"].forEach(n=>{i[n]&&(d[n].visible=i[n].visible,d[n].required=i[n].required)}),["family_member","education","work_experience"].forEach(n=>{i[n]&&(d[n].visible=i[n].visible,Object.keys(i[n].fields).forEach(c=>{d[n].fields[c]&&(d[n].fields[c].visible=i[n].fields[c].visible,d[n].fields[c].required=i[n].fields[c].required)}))})}const qs={class:"position-detail-container"},_s={class:"header-container"},ed={class:"header-actions"},td={class:"detail-content"},nd={class:"detail-item"},od={key:0,class:"detail-value"},id={key:1,class:"title-edit-container"},ad={class:"title-edit-actions"},rd={class:"detail-item"},ld={key:0,class:"detail-value"},sd={key:1,class:"title-edit-container"},dd={class:"title-edit-actions"},ud={class:"detail-item"},cd={key:0,class:"detail-value"},fd={key:1,class:"title-edit-container"},vd={class:"salary-range-container"},pd={class:"title-edit-actions"},md={class:"detail-item"},gd={key:0,class:"detail-value"},hd={key:1,class:"title-edit-container"},yd={class:"title-edit-actions"},bd={class:"detail-item"},Sd={key:0,class:"detail-value"},Ed={key:1,class:"title-edit-container"},xd={class:"title-edit-actions"},Id={class:"detail-item"},Cd={key:0,class:"detail-value"},Ad={key:1,class:"title-edit-container"},wd={class:"title-edit-actions"},Od={class:"detail-item"},Td={class:"detail-value"},Dd={class:"detail-item"},Pd={key:0,class:"detail-value"},Vd={key:1,class:"title-edit-container"},Rd={class:"title-edit-actions"},Ud={class:"detail-item"},kd=["innerHTML"],Kd={key:2,class:"title-edit-container"},Md={class:"title-edit-actions"},Bd={class:"detail-item"},Nd=["innerHTML"],Fd={key:2,class:"title-edit-container"},jd={class:"title-edit-actions"},Ld={class:"detail-item"},Qd={key:0,class:"detail-value"},Gd={key:1,class:"title-edit-container"},zd={class:"title-edit-actions"},$d={class:"status-cards"},Jd={class:"status-switch"},Wd={class:"status-text"},Hd={class:"section-title"},Yd={class:"usage-content"},Xd={key:0,class:"usage-value"},Zd={key:1,class:"title-edit-container"},qd={class:"title-edit-actions"},_d={class:"section-title"},eu={class:"process-steps"},tu={key:0,class:"step-number"},nu={class:"step-content"},ou={class:"step-title"},iu={class:"section-title"},au={class:"process-dialog-content"},ru={key:0,class:"add-process-btn-top"},lu={key:0,class:"process-number"},su={class:"process-edit-content"},du={key:1,class:"process-edit-btn"},uu=["onClick"],cu={class:"dialog-footer"},fu={class:"ai-video-steps"},vu={key:0,class:"ai-video-content","element-loading-text":"正在生成能力标签..."},pu={class:"ai-video-options"},mu={class:"recommended-dimensions"},gu={class:"dimension-grid"},hu={class:"ability-label"},yu={class:"optional-dimensions"},bu={class:"header-row"},Su={class:"right_btn"},Eu={class:"dimension-grid"},xu={class:"ability-label"},Iu={class:"custom-dimensions"},Cu={class:"dimension-form"},Au={class:"dimension-row"},wu={class:"dimension-input"},Ou={class:"dimension-input"},Tu={class:"dimension-actions"},Du={key:1,class:"ai-video-content"},Pu={class:"interview-settings"},Vu={class:"interview-header"},Ru={class:"interview-actions"},Uu={class:"question-switches"},ku={class:"switch-item"},Ku={class:"switch-item"},Mu={class:"interview-duration"},Bu={class:"duration-value"},Nu={class:"interview-content"},Fu={class:"interview-questions-container","element-loading-text":"AI正在生成题目..."},ju={key:0,class:"no-questions"},Lu={key:1,class:"question-list"},Qu={class:"question-card"},Gu={class:"question-header"},zu={class:"question-title"},$u={class:"title-content"},Ju={class:"question-content"},Wu={class:"question-number"},Hu={style:{color:"#0017ab"}},Yu={class:"question-tags"},Xu={key:0,class:"more-tags-indicator"},Zu={class:"question-actions",style:{"margin-top":"0px"}},qu={class:"question-info"},_u={class:"info-item"},ec={key:0,class:"question-actions"},tc={class:"answer-limit"},nc={class:"answer-limit"},oc={key:1,class:"question-actions"},ic={class:"answer-limit"},ac={class:"multi-dimension-questions"},rc={class:"dimension-list"},lc={class:"dimension-header"},sc={class:"dimension-info"},dc={class:"ability-name"},uc=["onClick"],cc={key:2,class:"ai-video-content"},fc={class:"system-settings"},vc={class:"setting-section"},pc={style:{display:"flex","align-items":"flex-start"}},mc={style:{width:"100px",height:"170px","background-color":"#f2f2f2","margin-right":"30px","border-radius":"10px",overflow:"hidden"}},gc=["src"],hc={class:"interviewer-avatars"},yc=["onClick"],bc={class:"avatar-wrapper"},Sc=["src","alt"],Ec=["title"],xc={class:"setting-item",style:{border:"none"}},Ic={class:"setting-options"},Cc={class:"interview-settings"},Ac={class:"setting-item"},wc={class:"setting-item"},Oc={class:"setting-options"},Tc={class:"setting-item"},Dc={class:"drawer-footer"},Pc={class:"video-lecture-form"},Vc={class:"form-item"},Rc={class:"upload-area"},Uc={class:"form-item"},kc={class:"dialog-footer"},Kc={class:"ai-chat-content"},Mc={class:"chat-settings"},Bc={class:"chat-actions"},Nc={class:"chat-questions"},Fc={key:0,class:"empty-questions"},jc={key:1,class:"question-list"},Lc={class:"question-card"},Qc={class:"question-header"},Gc={class:"question-title"},zc={class:"question-number"},$c={class:"question-actions"},Jc={class:"weight-control"},Wc={class:"answer-limit"},Hc={class:"question-info"},Yc={class:"info-item"},Xc={class:"info-item"},Zc={class:"info-item"},qc={class:"drawer-footer"},_c={class:"question-form"},ef={class:"form-item"},tf={class:"form-item"},nf={class:"form-item"},of={class:"competency-config"},af={class:"tag-name"},rf={class:"form-tip"},lf={class:"form-item"},sf={class:"form-item"},df={key:0,class:"form-item"},uf=["onClick"],cf={key:1,class:"form-item"},ff={key:2},vf=["src"],pf={class:"form-item"},mf={class:"form-item"},gf={class:"form-item"},hf={class:"form-item"},yf={class:"dialog-footer"},bf={class:"question-select-content"},Sf={class:"custom-tree-node"},Ef={class:"node-label",style:{display:"flex","align-items":"center"}},xf={class:"ml-2"},If={class:"dialog-footer"},Cf={class:"data-collection-form"},Af={class:"field-config-panel"},wf={class:"field-config-list"},Of={class:"field-config-item"},Tf={class:"field-label"},Df={class:"field-config-item"},Pf={class:"field-label"},Vf={class:"field-config-item sub-field"},Rf={class:"field-label"},Uf={class:"field-config-item"},kf={class:"field-label"},Kf={class:"field-config-item sub-field"},Mf={class:"field-label"},Bf={class:"field-config-item"},Nf={class:"field-label"},Ff={class:"field-config-item"},jf={class:"field-label"},Lf={class:"field-config-item sub-field"},Qf={class:"field-label"},Gf={class:"dialog-footer"},zf={class:"resume-collection-form"},$f={class:"form-item"},Jf={class:"dialog-footer"},Wf={class:"code-test-form"},Hf={class:"form-item"},Yf={class:"form-item"},Xf={class:"switch-label"},Zf={class:"form-item"},qf={class:"test-paper-selector"},_f={key:0,class:"empty-paper"},ev={key:1,class:"selected-paper"},tv={class:"paper-info"},nv={class:"paper-title"},ov={class:"paper-meta"},iv={class:"paper-actions"},av={class:"dialog-footer"},rv={class:"typing-test-form"},lv={class:"form-item"},sv={class:"article-selection"},dv={class:"form-item"},uv={class:"form-item"},cv={class:"time-input-container"},fv={class:"form-item"},vv={class:"upload-area"},pv={class:"form-item"},mv={class:"form-item"},gv={class:"form-item"},hv={class:"form-item"},yv={class:"criteria-options"},bv={class:"dialog-footer"},Sv={class:"interview-settings-content"},Ev={class:"settings-section"},xv={class:"setting-item"},Iv={class:"setting-item"},Cv={class:"setting-item"},Av={class:"setting-item"},wv={class:"settings-section"},Ov={class:"setting-item"},Tv={class:"setting-info"},Dv={class:"setting-desc-container"},Pv={class:"setting-item"},Vv={class:"setting-info"},Rv={key:0,class:"setting-desc-container"},Uv={class:"setting-desc"},kv={key:1,class:"desc-edit-container"},Kv={class:"desc-edit-actions"},Mv={class:"setting-item"},Bv={class:"setting-info"},Nv={key:0,class:"setting-desc-container"},Fv={class:"setting-desc"},jv={key:1,class:"desc-edit-container"},Lv={class:"desc-edit-actions"},Qv={class:"setting-item"},Gv={class:"setting-info"},zv={key:0,class:"setting-desc-container"},$v={class:"setting-desc"},Jv={key:1,class:"desc-edit-container"},Wv={class:"desc-edit-actions"},Hv={class:"dialog-footer"},Yv={class:"question-select-content"},Xv={class:"document-box document-left-box"},Zv={class:"search-bar"},qv={class:"search-inputs"},_v={class:"question-lists"},ep={class:"pagination-container"},tp={class:"dialog-footer"},np={class:"candidate-questions-form"},op={class:"form-item"},ip={class:"form-item"},ap={class:"form-item"},rp={class:"dialog-footer"},lp={class:"dialog-footer"},sp={class:"selected-applications-preview"},dp={class:"preview-title"},up={class:"preview-footer"},cp=Pl({__name:"index",setup(d){const i=Vl(),o=Rl(),s=Q(o.query.id),n=Q(!1),c=Q(!1),t=f=>r.slice(0,f+1).filter(e=>e.visible).length,a=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}),r=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:10,name:"肢体检测",description:"肢体检测",active:!0,type:"posture_check",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}]),u=Q(!1),g=[{label:"视频宣讲",value:"video_presentation"},{label:"简历收集",value:"resume_collection"},{label:"资料收集",value:"data_collection"},{label:"AI考察",value:"ai_video"},{label:"综合素质考察",value:"common_sense"},{label:"心理测试",value:"psychological_problem"},{label:"候选人提问",value:"candidate_questions"},{label:"肢体检测",value:"posture_check"}],m=f=>(Pt.value.forEach(e=>{f.id==e.id&&(f.name=e.name)}),f.name),h=Q(!1),b=f=>{rt.pageSize=f,Zt({page:rt.page,limit:rt.pageSize,question_form:lt.question_form}).then(e=>{e.data&&(rt.value=e.data.items,ct.page=e.data.page,ct.pageSize=e.data.limit,jt.value=e.data.total)})},S=f=>{rt.page=f,Zt({page:rt.page,limit:rt.pageSize,question_form:lt.question_form}).then(e=>{e.data&&(rt.value=e.data.items,ct.page=e.data.page,ct.pageSize=e.data.limit,jt.value=e.data.total)})},E=async()=>{const f=Ft.value.map(e=>e.id);if(console.log("selectedQuestionIds",f),f.length===0){P.warning("请至少选择一个问题");return}try{await fi({position_id:o.query.id,question_id:f,duration:60,tenant_id:Xt.get("tenant_id")});const e=rt.value.filter(T=>T.selected);Ft.value.push(...e),P.success("问题添加成功"),h.value=!1}catch(e){console.error("添加问题失败:",e),e.code===4e3?P.warning("该题目已绑定,请选择其他题目"):P.error("添加问题失败,请重试")}},I=()=>{Rn.value=!0,oa({position_id:o.query.id}).then(f=>{f.data.forEach(e=>{e.selected=!1}),Pt.value=f.data,console.log("res",f),Rn.value=!1}).catch(f=>{console.log("err",f),Rn.value=!1})},w=ss(),O=f=>{if(console.log("地址选择变化:",f),f&&Array.isArray(f)&&f.length>0){const[e,T,x]=f,V=w.find(le=>le.code===e);let N;V&&V.children&&(N=V.children.find(le=>le.code===T),N&&N.children&&N.children.find(le=>le.code===x))}},B=Q(!1),R=Q([]),F=async()=>{B.value=!0;try{const f=await ia({page:1,limit:100,job_id:o.query.id});f.data&&f.data.items&&(R.value=f.data.items)}catch(f){console.error("获取职位申请数据失败:",f),P.error("获取职位申请数据失败")}},K=(f,e)=>{},Z=Q(-1),$=Q(!1),k=et({top:"0px",left:"0px"}),W=Q(!1),ee=et({qualityControl:!1,teamwork:!1,problemSolving:!1,dataAnalysis:!1,positionMatch:!1,proactiveness:!1,basicAbility:!1,communication:!1,serviceAwareness:!1,xxxx:!1}),q=Q(1),L=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 H=f=>{console.log(f)};Q("standard"),Q(!1);const fe=Q(!1),Y=et({title:"",videoFile:null,description:"",broadcastType:"required"}),ae=Q(!1);Q(15),Q(5);const ye=Q(!1),_=et({id:"",content:"",competency_tags:[],weight:100,level:1,type:"open",question_form:0,options:[],position:[],category:"",tags:[],suggestedDuration:60,scoring_reference:"",question_image_url:"",blank_answer_template:[]}),qe=f=>f.map(e=>e.id),Oe=Q([]),Ue=Q([]),$e=Q([{label:"技术能力",value:"tech"},{label:"管理能力",value:"management"},{label:"沟通能力",value:"communication"},{label:"专业知识",value:"professional"},{label:"个人素质",value:"personal"}]),He=Q([{label:"时间管理",value:"time_management"},{label:"压力处理",value:"pressure_handling"},{label:"团队合作",value:"team_cooperation"},{label:"问题分析",value:"problem_analysis"},{label:"创新思维",value:"innovative_thinking"}]),Fe=()=>{Object.assign(_,{id:"",content:"",competency_tags:[],weight:100,level:1,type:"open",question_form:0,options:[],position:[],category:"",tags:[],suggestedDuration:60,scoring_reference:"",question_image_url:"",blank_answer_template:[]})},Pe=async()=>{const f=await jl({page:1,page_size:50});console.log(f),Ue.value=f.data.map(e=>({label:e.title,value:String(e.id)}))},ke=()=>{ye.value=!1,Fe()},je=Q(!1),ot=et({isRequired:!1,questions:[]});Q([{label:"Q1",value:"q1",isVisible:!0,enableScoring:!1,isRequired:!1},{label:"请问你的毕业院校是哪里?",value:"school",isVisible:!0,enableScoring:!1,isRequired:!0}]);const yt=Q(!1),xt=et({title:"简历收集",isRequired:!0,steps:4}),Bt=()=>{yt.value=!0},Ye=()=>{yt.value=!1,Object.assign(xt,{title:"简历收集",isRequired:!0,steps:4})},Xe=()=>{const f={id:Date.now(),name:xt.title,description:"简历收集",active:!0,type:"resume_collection",config:{...xt},visible:!0};r.splice(Z.value,0,f),bt({id:De.value,require_resume_upload:!0}).then(e=>{e.code==2e3?r[0].visible=!0:P.error("删除失败")}),yt.value=!1,P.success("简历收集步骤已添加"),Ye()},pt=Q(!1),_e=et({enableScoreQuestions:!1,enableColorBlindQuestions:!1,enableOpenQuestions:!1}),Dt=async()=>{try{const f=o.query.id;if(!f){P.error("职位ID不存在");return}const e=Array.isArray(f)?f[0]:f,T=f,x=await Ll(f);if(x&&x.data){Object.assign(a,x.data),Oe.value=x.data.competency_tags;const V=await Kn(f);V&&V.data&&(De.value=V.data.id,V.data.enable_psychological_test!==void 0&&(_e.enableScoreQuestions=V.data.enable_psychological_test),V.data.enable_color_blind_test!==void 0&&(_e.enableColorBlindQuestions=V.data.enable_color_blind_test)),n.value=a.status===1}}catch(f){console.error("获取职位详情失败:",f),P.error("获取职位详情失败")}},In=()=>{i.push("/position/list")},Qn=()=>{i.push("/position/list")},It=async f=>{const e=o.query.id;try{const T=f?1:0;if(f){const x=await Ql({position_id:e,tenant_id:Xt.get("tenant_id")});if(x.code===2e3){const{is_all_completed:V,total_questions:N}=x.data;if(!V||N<=0){P.warning(`无法开启职位,原因:${N<=0?"当前职位没有设置面试题目":"面试题目视频未全部生成完成"}`),n.value=!f;return}}else{P.error("检查视频状态失败,请稍后重试"),n.value=!f;return}}await wt({id:e,status:T}),a.status=T,P.success(`职位已${f?"开启":"关闭"}`)}catch(T){console.error("修改状态失败:",T),P.error("修改状态失败"),n.value=!f}},Nt=()=>{u.value=!0},en=()=>{u.value=!1,P.success("招聘流程已更新")},dn=()=>{u.value=!1},un=(f,e)=>{f.type=="ai_video"&&(W.value=!1),f.type=="ai_chat"&&(ae.value=!1),f.type=="ai_video"&&bt({id:De.value,enable_open_questions:!1}).then(T=>{T.code==2e3?P.success("删除成功"):P.error("删除失败")}),f.type=="psychological_problem"&&bt({id:De.value,enable_scoring_questions:!1}).then(T=>{T.code==2e3?P.success("删除成功"):P.error("删除失败")}),f.type=="common_sense"&&bt({id:De.value,enable_single_choice:!1,enable_multiple_choice:!1,enable_image_choice:!1,enable_fill_blank:!1}).then(T=>{T.code==2e3?P.success("删除成功"):P.error("删除失败")}),f.type=="resume_collection"&&bt({id:De.value,require_resume_upload:!1}).then(T=>{T.code==2e3?P.success("删除成功"):P.error("删除失败")}),f.type=="posture_check"&&bt({id:De.value,enable_posture_check:!1}).then(T=>{if(T.code==2e3){P.success("删除成功");return}else P.error("删除失败")}),r.splice(e,1),console.log("recruitmentProcess",r)},cn=f=>({0:"未发布",1:"已发布",2:"已结束"})[f]||"未知状态",fn=f=>({0:"info",1:"success",2:"danger"})[f]||"info",vn=f=>({0:"全职",1:"兼职",2:"实习",3:"其他"})[f]||"未知",pn=(f,e)=>{Z.value=f,$.value=!0,console.log(f,e);const T=e.currentTarget,x=T.closest(".process-dialog-content");if(x){const V=T.getBoundingClientRect(),N=x.getBoundingClientRect(),le=V.bottom-N.top+5,z=V.left-N.left;k.top=`${le}px`,k.left=`${z}px`}e.stopPropagation()},A=async(f,e)=>{if(f==="ai_video"&&bt({id:De.value,enable_open_questions:!0}).then(V=>{V.code==2e3?(r[2].visible=!0,$.value=!1):P.error("更新配置失败")}),f==="common_sense"&&bt({id:De.value,enable_single_choice:!0,enable_multiple_choice:!0,enable_image_choice:!0,enable_fill_blank:!0}).then(V=>{V.code==2e3?(r[3].visible=!0,console.log("recruitmentProcess",r),$.value=!1):P.error("更新配置失败")}),f==="psychological_problem"&&bt({id:De.value,enable_scoring_questions:!0}).then(V=>{V.code==2e3?(r[4].visible=!0,$.value=!1):P.error("更新配置失败")}),f==="post_render_questions"){cl.value=!0,$.value=!1;return}if(f==="posture_check"&&bt({id:De.value,enable_posture_check:!0}).then(V=>{V.code==2e3?(console.log("recruitmentProcess",r),r[5].visible=!0):P.error("删除失败")}),r.find(V=>!!(V.type&&V.type===f||V.name===e))){$.value=!1;return}if(f==="ai_chat"){ae.value=!0,$.value=!1;return}if(f==="video_presentation"){Xe(),$.value=!1;return}if(f==="data_collection"){const V=await Kn(o.query.id);V&&V.data?(De.value=V.data.id,Ia(G,V.data.profile_fields_config),je.value=!0,$.value=!1):(je.value=!0,$.value=!1);return}if(f==="resume_collection"){Bt(),$.value=!1;return}if(f==="posture_check"&&($.value=!1),f==="code_test"){Fa(),$.value=!1;return}if(f==="typing_test"){$n.value=!0,$.value=!1;return}if(f==="candidate_questions"){Un.value=!0,$.value=!1;return}const x={id:Date.now(),name:e,description:e,active:!0,type:f,visible:!0};console.log("newStep",x),r.splice(Z.value,0,x),$.value=!1},C=async()=>{if(q.value<3){if(q.value===1){const f=Pt.value.filter(e=>e.selected);if(f.length===0){P.warning("请至少选择一个胜任力考核维度");return}try{L.value=f.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),P.error("处理胜任力标签失败");return}}if(q.value===2){if(ne.value.length===0){P.warning("请至少添加一个面试题目");return}try{await Dr()}catch(f){console.error("保存题目失败:",f),P.error("保存题目失败");return}}if(q.value===3){const f=Pr();if(!f.isValid){f.messages.forEach(T=>{P.warning(T)});return}const e=Ur();console.log("完整的面试配置:",e)}q.value++}else j()},D=()=>{q.value>1&&q.value--},j=async()=>{var V;if(!mt.value||!mt.value.id){P.warning("请选择面试官形象");return}if(!Ko.value){P.warning("请选择面试官");return}const f={id:mt.value.id,name:mt.value.name,avatar_url:mt.value.avatar_url||mt.value.image},e=li(),T={enableScoreQuestions:_e.enableScoreQuestions,enableColorBlindQuestions:_e.enableColorBlindQuestions};try{if(await wt({id:o.query.id,status:0}),a.status=0,n.value=!1,De.value==0){const N=await vi({position_id:o.query.id,digital_human_id:mt.value.id});if(N.code==2e3){P.success("配置保存成功");try{const le={config_id:((V=N.data)==null?void 0:V.id)||N.data};e.beforeStartText&&e.beforeStartText.trim()!==""?(await pi(le),console.log("开场白生成成功"),W.value=!1,q.value=1,await new Promise(re=>setTimeout(re,4e3))):console.log("无开场白配置,跳过开场白生成"),await aa(le),P.success("视频开始生成")}catch(le){console.error("获取开场白和视频失败:",le),P.warning("视频生成中,请稍后")}}else P.error("配置保存失败")}else if((await bt({id:De.value,digital_human_id:mt.value.id})).code==2e3){P.success("配置保存成功");try{const le={config_id:De.value};console.log("开始生成开场白..."),await pi(le),console.log("开场白生成成功"),W.value=!1,q.value=1,console.log("等待4秒后开始生成视频..."),await Mr(4e3),console.log("开始生成视频..."),await aa(le),console.log("视频生成请求已发送"),P.success("视频开始生成")}catch(le){console.error("获取开场白和视频失败:",le),P.warning("视频生成中,请稍后")}}else P.error("配置保存失败")}catch(N){console.error("更新职位状态失败:",N),P.error("更新职位状态失败");return}console.log("保存时选中的面试官:",f),console.log("保存时的面试设置:",e),console.log("保存时的题目设置:",T);const x={id:Date.now(),name:"AI考察",description:`已选择${L.value.length}项能力测评`,active:!0,type:"ai_video",abilities:L.value.map(N=>N.value),interviewer:f,settings:e};r.splice(Z.value,0,x),W.value=!1,q.value=1,P.success("AI考察步骤已添加")},te=()=>{W.value=!1,q.value=1},ce=f=>{},me=()=>{fe.value=!1,Object.assign(Y,{title:"",videoFile:null,description:"",broadcastType:"required"})},Ie=()=>{const f={id:Date.now(),name:Y.title||"视频宣讲",description:Y.description||"视频宣讲",active:!0,type:"video_presentation",config:{...Y}};r.splice(Z.value,0,f),fe.value=!1,P.success("视频宣讲步骤已添加"),me()},Be=()=>{const f={id:Date.now(),name:"AI实时对话",description:"AI实时对话",active:!0,type:"ai_chat"};r.splice(Z.value,0,f),ae.value=!1,P.success("AI实时对话步骤已添加")},pe=()=>{ae.value=!1},oe=()=>{if(!Ve.title.trim()){P.warning("请输入环节名称");return}if(Ve.duration<=0){P.warning("提问时长必须大于0分钟");return}if(Ve.maxQuestions<=0){P.warning("最多提问数量必须大于0");return}if(uo.value>=0){const f=r[uo.value];f.name=Ve.title,f.description=`时长${Ve.duration}分钟,最多${Ve.maxQuestions}个问题`,f.config={...Ve},P.success("候选人提问环节已更新")}else{const f={id:Date.now(),name:Ve.title,description:`时长${Ve.duration}分钟,最多${Ve.maxQuestions}个问题`,active:!0,type:"candidate_questions",config:{...Ve},visible:!0};r.splice(Z.value,0,f),P.success("候选人提问环节已添加")}Un.value=!1,be()},ue=()=>{Un.value=!1,be()},be=()=>{uo.value=-1,Object.assign(Ve,{title:"候选人提问",duration:5,maxQuestions:3,description:"候选人可以向面试官提问关于公司、职位或团队的问题",isRequired:!0,allowSkip:!1,guidelines:["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]})},ne=Q([]),ut=ui(()=>ne.value.reduce((f,e)=>{switch(e.question_form){case 0:return f+60;case 1:return f+30;case 2:return f+30;default:return f+30}},0)),Gn=ui(()=>{const f=ut.value;if(f<60)return`${f}秒`;const e=Math.floor(f/60),T=f%60;return T>0?`${e}分${T}秒`:`${e}分钟`}),ii=()=>{ye.value=!0},mn=()=>{Mo.value={question:"",question_form:0,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:[]},Gi.value=!1,ao.value=!0},Ma=async f=>{try{const e=await us({...f,tenant_id:Xt.get("tenant_id")});if(console.log(f),e&&e.code===2e3){if(P.success("题目创建成功"),console.log(e),e.data){const T={id:e.data.id||e.data,title:f.question,content:f.question,question_form:f.question_form,question_form_name:Ki(f.question_form),scoring_reference:f.scoring_reference||"",competency_tag_info:f.competency_tags||[],competency_tags:f.competency_tags||[],options:f.options||[],enable_follow_up:!1,maxAnswers:1,weight:100,source:"custom_selected",question_image_url:f.question_image_url||""};ne.value.push(T)}ao.value=!1}else P.error("题目创建失败,请重试")}catch(e){console.error("创建题目失败:",e),P.error("题目创建失败,请重试")}},ki=()=>{ao.value=!1,Mo.value={}},Ki=f=>({0:"开放问题",1:"单选题",2:"多选题",3:"色盲题",4:"得分题",5:"判断题",6:"填空题"})[f]||"未知类型",Mi=f=>{if(ne.value[f].source!=="ai_generated")console.log(ne.value[f].id),_l(ne.value[f].id).then(e=>{var T;if(console.log(e),e.code===2e3){const x={id:e.data.id,content:e.data.question,question_form:e.data.question_form,question_form_name:Ki(e.data.question_form),scoring_reference:e.data.scoring_reference,competency_tag_info:e.data.competency_tag_info,competency_tags:e.data.competency_tags,options:(T=e.data.options)==null?void 0:T.map(V=>({text:V.option_text,is_correct:V.is_correct,sort:V.sort})),enable_follow_up:e.data.enable_follow_up,maxAnswers:e.data.maxAnswers,weight:e.data.weight,question_image_url:e.data.question_image_url,blank_answer_template:e.data.blank_answer_template||[]};Object.assign(_,x)}});else{const e=ne.value[f];console.log(e),Object.assign(_,e),console.log(ne)}ye.value=!0,dl()},Bi=f=>{na.confirm("确认删除该问题?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{ne.value.splice(f,1),P.success("删除成功")})},Ba=()=>{Object.assign(G,JSON.parse(JSON.stringify(zi))),je.value=!1,Object.assign(ot,{isRequired:!1,questions:[]})};Ul(()=>{Dt(),ji(),kr(),Pe(),Na()}),kl(()=>{Qi()});const Na=async()=>{try{const f=o.query.id;if(f){const e=await Kn(f);e&&e.data&&(e.data.enable_psychological_test!==void 0&&(_e.enableScoreQuestions=e.data.enable_psychological_test),e.data.enable_color_blind_test!==void 0&&(_e.enableColorBlindQuestions=e.data.enable_color_blind_test),r[2].visible=e.data.question_form_switches.enable_open_questions,r[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,r[4].visible=e.data.question_form_switches.enable_scoring_questions,r[5].visible=e.data.enable_posture_check,r[0].visible=e.data.require_resume_upload)}}catch(f){console.error("初始化配置状态失败:",f)}},zn=Q(!1),it=et({title:"代码笔试",autoJudge:!0,selectedPaper:null}),Fa=()=>{zn.value=!0},Ni=()=>{zn.value=!1,Object.assign(it,{title:"代码笔试",autoJudge:!0,selectedPaper:null})},ja=()=>{if(!it.selectedPaper){P.warning("请添加考试试卷");return}const f={id:Date.now(),name:it.title,description:`${it.selectedPaper.title}`,active:!0,type:"code_test",config:{...it}};r.splice(Z.value,0,f),zn.value=!1,P.success("代码笔试步骤已添加"),Ni()},La=()=>{it.selectedPaper={id:1,title:"前端开发工程师笔试",questionCount:4,duration:60,difficulty:"中等难度"}},Qa=()=>{P.info("查看试卷功能开发中")},Ga=()=>{P.info("更换试卷功能开发中")},za=()=>{it.selectedPaper=null},$n=Q(!1),tt=et({title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]}),Fi=()=>{$n.value=!1,Object.assign(tt,{title:"",duration:5,content:"",notes:"",videoMonitoring:!1,passCriteria:{speed:!1,accuracy:!0},selectionMode:"random",pageTitle:"",previewImage:null,articles:[]})},$a=()=>{const f={id:Date.now(),name:tt.title,description:`打字测试 ${tt.duration}分钟`,active:!0,type:"typing_test",config:{...tt}};r.splice(Z.value,0,f),$n.value=!1,P.success("打字测试步骤已添加"),Fi()},wo=Q(!1),Cn=Q(""),Ja=()=>{Cn.value=a.title,wo.value=!0},Wa=()=>{wo.value=!1},Ha=async()=>{if(!Cn.value.trim()){P.warning("职位名称不能为空");return}try{const f=o.query.id;await wt({id:f,title:Cn.value.trim()}),a.title=Cn.value.trim(),wo.value=!1,P.success("职位名称已更新")}catch(f){console.error("更新职位名称失败:",f),P.error("更新职位名称失败")}},Oo=Q(!1),Jt=Q(""),Ya=()=>{if(!a.location)Jt.value="";else if(Array.isArray(a.location))Jt.value=a.location;else if(typeof a.location=="string")try{const e=a.location.replace(/[\[\]']/g,"").split(",").map(N=>N.trim()),T=w.find(N=>N.name===e[0]);let x,V;T&&T.children&&(x=T.children.find(N=>N.name===e[1]),x&&x.children&&(V=x.children.find(N=>N.name===e[2]))),Jt.value=[T==null?void 0:T.code,x==null?void 0:x.code,V==null?void 0:V.code].filter(Boolean)}catch(f){console.error("解析地址失败:",f),Jt.value=""}Oo.value=!0},Xa=()=>{Oo.value=!1},Za=async()=>{try{const f=o.query.id,e=[];if(Jt.value&&Array.isArray(Jt.value)){const[T,x,V]=Jt.value,N=w.find(re=>re.code===T);let le,z;N&&(e.push(N.name),N.children&&(le=N.children.find(re=>re.code===x),le&&(e.push(le.name),le.children&&(z=le.children.find(re=>re.code===V),z&&e.push(z.name)))))}await wt({id:f,location:e}),a.location=e,Oo.value=!1,P.success("工作地点已更新")}catch(f){console.error("更新工作地点失败:",f),P.error("更新工作地点失败")}},To=Q(!1),Jn=Q("月薪"),gn=Q(0),tn=Q(0),qa=()=>{if(a.salary_range){const f=a.salary_range.split(" ");if(f.length>=2){Jn.value=f[0];const e=f[1].split("-");e.length===2&&(gn.value=parseInt(e[0])||0,tn.value=parseInt(e[1])||0)}}else Jn.value="月薪",gn.value=0,tn.value=0;To.value=!0},_a=()=>{To.value=!1},ai=()=>{gn.value>tn.value&&tn.value!==0&&(gn.value=tn.value)},er=async()=>{try{const f=o.query.id,e=`${Jn.value} ${gn.value}-${tn.value}`;await wt({id:f,salary_range:e}),a.salary_range=e,To.value=!1,P.success("职位薪资已更新")}catch(f){console.error("更新职位薪资失败:",f),P.error("更新职位薪资失败")}},Do=Q(!1),Wn=Q(""),tr=()=>{Wn.value=a.work_experience_required||"",Do.value=!0},nr=()=>{Do.value=!1},or=async()=>{try{const f=o.query.id;await wt({id:f,work_experience_required:Wn.value}),a.work_experience_required=Wn.value,Do.value=!1,P.success("工作经验已更新")}catch(f){console.error("更新工作经验失败:",f),P.error("更新工作经验失败")}},Po=Q(!1),Hn=Q(""),ir=()=>{Hn.value=a.education_required||"",Po.value=!0},ar=()=>{Po.value=!1},rr=async()=>{try{const f=o.query.id;await wt({id:f,education_required:Hn.value}),a.education_required=Hn.value,Po.value=!1,P.success("学历要求已更新")}catch(f){console.error("更新学历要求失败:",f),P.error("更新学历要求失败")}},Vo=Q(!1),Yn=Q(""),lr=()=>{Yn.value=a.department||"",Vo.value=!0},sr=()=>{Vo.value=!1},dr=async()=>{try{const f=o.query.id;await wt({id:f,department:Yn.value.trim()}),a.department=Yn.value.trim(),Vo.value=!1,P.success("所属部门已更新")}catch(f){console.error("更新所属部门失败:",f),P.error("更新所属部门失败")}},Ro=Q(!1),Xn=Q(""),ur=()=>{Xn.value=a.end_date||"",Ro.value=!0},cr=()=>{Ro.value=!1},fr=async()=>{try{const f=o.query.id;await wt({id:f,end_date:Xn.value}),a.end_date=Xn.value,Ro.value=!1,P.success("截止日期已更新")}catch(f){console.error("更新截止日期失败:",f),P.error("更新截止日期失败")}},Zn=Q(!1),qn=Q(""),vr=()=>{qn.value=a.requirements||"",Zn.value=!0},pr=()=>{Zn.value=!1},mr=async()=>{try{const f=o.query.id;await wt({id:f,requirements:qn.value}),a.requirements=qn.value,Zn.value=!1,P.success("职位要求已更新")}catch(f){console.error("更新职位要求失败:",f),P.error("更新职位要求失败")}},_n=Q(!1),eo=Q(""),gr=()=>{eo.value=a.description||"",_n.value=!0},hr=()=>{_n.value=!1},yr=async()=>{try{const f=o.query.id;await wt({id:f,description:eo.value}),a.description=eo.value,_n.value=!1,P.success("职位描述已更新")}catch(f){console.error("更新职位描述失败:",f),P.error("更新职位描述失败")}},An=Q(!1),to=Q(0),br=()=>{to.value=a.job_type||0,An.value=!0},Sr=()=>{An.value=!1},Er=async()=>{try{const f=o.query.id;await wt({id:f,job_type:to.value}),a.job_type=to.value,An.value=!1,P.success("职位性质已更新")}catch(f){console.error("更新职位性质失败:",f),P.error("更新职位性质失败")}},Pt=Q([]),Uo=Q(!1),wn=Q([]),ji=async()=>{try{const f=await Xl({page:1,pageSize:1e3});f&&f.data}catch(f){console.error("获取能力标签列表失败:",f),P.error("获取能力标签列表失败")}},xr=async()=>{var f;await ji(),wn.value=((f=a.competency_tags)==null?void 0:f.map(e=>e.id))||[],Oe.value.forEach(e=>{e.selected=wn.value.includes(e.id)}),Uo.value=!0},Ir=()=>{Uo.value=!1},Cr=async()=>{try{const f=o.query.id;await wt({id:f,competency_tags:wn.value}),a.competency_tags=Oe.value.filter(e=>wn.value.includes(e.id)).map(e=>({id:e.id,name:e.name})),Uo.value=!1,P.success("能力标签已更新")}catch(f){console.error("更新能力标签失败:",f),P.error("更新能力标签失败")}},Ar=Q(null),De=Q(0),ko=async f=>{if(f.name==="资料收集"){const e=await Kn(o.query.id);e&&e.data&&(De.value=e.data.id,Ia(G,e.data.profile_fields_config),je.value=!0,$.value=!1);return}if(f.name==="AI考察"){if(f.action==="delete"){await ul();return}const e=await Kn(o.query.id);Rn.value=!0,Ar.value=f,W.value=!0,q.value=1;try{const T=await ra({position_id:o.query.id,page:1,limit:20});T&&T.data&&T.data.dataList&&(ne.value=T.data.dataList.map(N=>(N.content=N.question,N.title=N.question,N.competency_tags=N.competency_tag_info,N.source="ai_generated",N)));const x=await ia({job_id:o.query.id,page:1,limit:50});if(x&&x.data){const N=x.data.items.filter(re=>re.question_form!==4&&re.question_form!==5).map(re=>(re.content=re.question,re.title=re.question,re.source="selected_application",re.id=re.question_id,re)),le=new Set(ne.value.map(re=>re.content)),z=N.filter(re=>!le.has(re.content));ne.value=[...ne.value,...z],console.log("chatQuestions",ne.value)}const V=await is({position_id:o.query.id,page:1,limit:50});if(console.log("existingTags",V),V&&V.data&&V.data.items.length>0)V.data.items.forEach(N=>{N.importance=1,N.selected=!1,a.latest_competency_snapshot&&Array.isArray(a.latest_competency_snapshot)&&(N.selected=a.latest_competency_snapshot.some(le=>le.id===N.id))}),Pt.value=V.data.items;else{const N=await oa({position_id:o.query.id});if(N&&N.data){N.data.forEach(le=>{le.selected=!1}),Pt.value=N.data;try{await as({position_id:o.query.id,tags:Pt.value}),P.success("胜任力标签保存成功")}catch(le){console.error("保存胜任力标签失败:",le),P.error("胜任力标签保存失败")}}}e&&e.data&&(De.value=e.data.id)}catch(T){console.error("获取或生成能力标签失败:",T),P.error("获取或生成能力标签失败")}finally{Rn.value=!1}Object.keys(ee).forEach(T=>{ee[T]=!1})}f.name==="综合素质考察"&&Zt({page:1,limit:20}).then(e=>{e.data&&(rt.value=e.data.items,ct.page=e.data.page,ct.pageSize=e.data.limit,jt.value=e.data.total,yl(),h.value=!0)}),f.name==="心理测试"&&Zt({page:1,limit:30,question_form:4}).then(e=>{e.data&&(lt.question_form=4,rt.value=e.data.items,ct.page=e.data.page,ct.pageSize=e.data.limit,jt.value=e.data.total,El(),Tn.value=!0)})},nn=Q(""),On=Q(""),wr=Q(!1),Or=async()=>{if(!nn.value.trim()){P.warning("请输入维度名称");return}if(Pt.value.find(e=>e.name===nn.value.trim())){P.warning("该维度名称已存在,请重新输入");return}try{const e=await es({name:nn.value.trim(),description:On.value.trim(),importance:1,weight:0});if(!e.data)throw new Error("创建标签失败");const T=e.data.id;await ts({tag_ids:[T],position_ids:[s.value]});const x={id:T,name:nn.value.trim(),description:On.value.trim(),selected:!1,importance:1,weight:0,isCustom:!0};Pt.value.push(x),wr.value,nn.value="",On.value="",console.log("添加新维度成功:",x),console.log("当前备选维度列表:",Pt.value)}catch(e){console.error("添加自定义维度失败:",e),P.error("添加自定义维度失败,请重试")}},at=et({keepVideo:!0,interruptionMode:"",smartFollowUp:!1,followUpStyle:""}),ri=Q([{id:1,name:"Jessica",image:"/avatars/jessica.png"},{id:2,name:"Mike",image:"/avatars/mike.png"},{id:3,name:"Sarah",image:"/avatars/sarah.png"}]),mt=Q(ri.value[0]),Ko=Q(""),Tr=f=>{mt.value=f,console.log("选中的面试官信息:",{id:f.id,name:f.name,avatar_url:f.avatar_url||f.image}),Ko.value=f.avatar_url,P.success(`已选择面试官:${f.name}`)},Dr=async()=>{const f=ne.value.filter(T=>T.source==="ai_generated"),e=ne.value.filter(T=>T.source==="custom_selected");if(console.log("AI生成的题目:",f),console.log("自定义选择的题目:",e),f.length>0&&(await ns({draft_ids:f.map(T=>T.id)}),console.log("AI生成的题目已保存到草稿")),e.length>0){const T={position_id:o.query.id,question_id:{question_id:e},duration:60,tenant_id:Xt.get("tenant_id")};console.log("自定义选择的题目需要调用专门的接口处理");const x=await fi(T);x&&x.code===2e3?P.success("自定义选择的题目已保存"):P.error("自定义选择的题目保存失败")}},li=()=>{const f={keepVideo:at.keepVideo,interruptionMode:at.interruptionMode,followUpStyle:at.followUpStyle,smartFollowUp:at.smartFollowUp};return console.log("当前面试设置:",f),f},no=(f,e)=>{switch(console.log(`面试设置 ${f} 已更改为:`,e),f){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}},Pr=()=>{const f=li(),e={isValid:!0,messages:[]};return f.interruptionMode===""&&(e.isValid=!1,e.messages.push("请选择中断后作答限制模式")),e},Vr=f=>{c.value=!0,console.log("开始拖拽题目:",f)},Rr=f=>{c.value=!1,console.log("拖拽结束:",f),console.log("当前题目顺序:",ne.value),P.success("题目顺序已更新")},Ur=()=>({interviewer:{id:mt.value.id,name:mt.value.name,avatar_url:mt.value.avatar_url||mt.value.image},settings:li(),questionSettings:{enableScoreQuestions:_e.enableScoreQuestions,enableColorBlindQuestions:_e.enableColorBlindQuestions},abilities:L.value,questions:ne.value,currentStep:q.value}),kr=async()=>{const f=await Zl({page:1,pageSize:1e3});f&&f.data&&(ri.value=f.data)},Li=(f,e)=>{e?oo.value.push({name:f.name,description:f.description||"暂无描述"}):oo.value=oo.value.filter(T=>T.name!==f.name)},Kr=f=>{na.confirm("确认删除这个胜任力标签吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const e=L.value[f];L.value.splice(f,1),oo.value=oo.value.filter(x=>x.name!==e.label);const T=Pt.value.find(x=>x.name===e.label);T&&(T.selected=!1),P.success("胜任力标签已删除")}).catch(()=>{})},oo=Q([]),Mr=f=>new Promise(e=>setTimeout(e,f));let Wt=null;const Br=async(f,e=300,T=2e3)=>{let x=0;Wt={cancelled:!1};const V=Wt;return new Promise((N,le)=>{const z=async()=>{try{if(V.cancelled){console.log("轮询已被取消"),N(null);return}x++,console.log(`第${x}次轮询获取草稿列表...`);const re=await ra(f);if(V.cancelled){console.log("轮询已被取消"),N(null);return}if(re&&re.data&&re.data.dataList&&re.data.dataList.length>0){console.log("轮询成功,获取到草稿列表数据"),Wt=null,N(re);return}if(x>=e){console.log("轮询达到最大次数,停止轮询"),Wt=null,N(re);return}setTimeout(z,T)}catch(re){if(console.error(`第${x}次轮询失败:`,re),V.cancelled){console.log("轮询已被取消"),N(null);return}x<e?setTimeout(z,T):(Wt=null,le(re))}};z()})},Qi=()=>{Wt&&(Wt.cancelled=!0,Wt=null,console.log("轮询已被手动取消"))},Nr=()=>{Qi(),pt.value=!1,P.info("已取消AI自动组题")},Tn=Q(!1),io=Q(""),rt=Q([]),Ft=Q([]),ao=Q(!1),Mo=Q({}),Gi=Q(!1);Q(0);const jt=Q(0),lt=et({page:1,pageSize:10,keyword:"",question_form:null}),ct=et({page:1,limit:20,keyword:"",question_form:null}),Fr=async()=>{try{const f={...lt,keyword:io.value,...lt.question_form!==null&&{question_form:lt.question_form}},e=await Zt(f);e&&e.data&&(console.log(e.data),rt.value=e.data.items,jt.value=e.data.total)}catch(f){console.error("获取题目列表失败:",f),P.error("获取题目列表失败")}},Bo=()=>{lt.page=1,Fr()},jr=f=>{Ft.value=f},Lr=()=>{Tn.value=!1,Ft.value=[],io.value=""},Qr=async()=>{if(Ft.value.length===0){P.warning("请至少选择一个题目");return}try{const f=Ft.value.map(T=>T.id);await fi({position_id:o.query.id,question_id:f,duration:60,tenant_id:Xt.get("tenant_id")});const e=Ft.value.map(T=>({id:T.id,title:T.question||T.title,ability:T.ability||"未设置",content:T.content||T.question,target:T.target||"未设置",competency_tags:T.competency_tags||[],question_form_name:T.question_form_name,scoring_reference:T.scoring_reference,question_form:T.question_form,is_required_correct:T.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:T.options||[],source:"custom_selected"}));ne.value.push(...e),Tn.value=!1,Ft.value=[],io.value="",P.success("题目添加成功")}catch(f){console.error("添加题目失败:",f),Tn.value=!1,f.code===4e3?P.warning("该题目已绑定,请选择其他题目"):P.error("添加题目失败,请重试")}},zi={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}},G=et(JSON.parse(JSON.stringify(zi))),Gr=async()=>{try{const f={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};De.value==0||(f.id=De.value),De.value==0?(await vi(f)).code==2e3?(P.success("配置保存成功"),je.value=!1,$.value=!1):P.error("配置保存失败"):(await bt(f)).code==2e3?(P.success("配置保存成功"),je.value=!1,$.value=!1):P.error("配置保存失败")}catch(f){console.error("保存配置失败:",f),P.error("配置保存失败")}},zr=()=>({name:G.name,id_card:G.id_card,phone:G.phone,gender:G.gender,three_period:G.three_period,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}),$r=()=>({skills:G.require_professional_skills,training:G.training_fields_config}),ro=Q(!1),Le=et({faceConsistency:!0,preventScreenshot:!0,screenSwitchAlert:!0,positionDetection:!0,eyeMovementDetection:!0,reviewInterview:!1,beforeStart:!0,beforeStartText:"你好,我是本次面试的面试官,欢迎参加本公司的线上面试!面试预计需要15分钟,请你提前安排在网络良好、光线亮度合适、且相对安静的环境参加这次面试以免影响本次面试的结果。如果你在面试过程中遇到问题,请与我们的招聘人员联系。",afterStartReminder:!1,afterStartText:"本次面试如有15分钟,高效调前后流程,安静好心理",disclaimer:!1,disclaimerText:"本次面试已全部结束,感谢您的参与,请等待后续通知。"}),Dn=Q(!1),lo=Q(!1),so=Q(!1),on=Q(""),Pn=Q(""),Vn=Q(""),Jr=()=>{ro.value=!1,Dn.value=!1,lo.value=!1,so.value=!1,Object.assign(Le,{faceConsistency:!0,preventScreenshot:!0,screenSwitchAlert:!0,positionDetection:!0,eyeMovementDetection:!0,reviewInterview:!1,beforeStart:!0,beforeStartText:"你好,我想咨询其间的面试,欢迎来到大面试",afterStartReminder:!1,afterStartText:"本次面试如有15分钟,高效调前后流程,安静好心理",disclaimer:!1,disclaimerText:"本次面试已全部流程拍摄,面试者同意可为今后资讯调研"})},Wr=()=>{console.log("保存面试设置:",Le),P.success("面试设置已保存"),ro.value=!1},Hr=()=>{Kn(o.query.id).then(f=>{ro.value=!0,De.value=f.data.id,Le.beforeStartText=f.data.digital_human_opening_speech})},Yr=()=>{on.value=Le.beforeStartText,Dn.value=!0},Xr=()=>{Dn.value=!1,on.value=""},Zr=async()=>{var f;if(!on.value.trim()){P.warning("开始前提示内容不能为空");return}Le.beforeStartText=on.value.trim();try{let e;if(console.log(De.value),De.value==0)e=await vi({position_id:o.query.id,digital_human_opening_speech:on.value.trim()}),e.code===2e3?(De.value=((f=e.data)==null?void 0:f.id)||e.data,P.success("开场词提示内容已创建"),Dn.value=!1):P.error("开场词提示内容创建失败");else if(e=await bt({id:De.value,digital_human_opening_speech:on.value.trim()}),e.code===2e3){P.success("开场词提示内容已更新"),Dn.value=!1;try{const T={config_id:De.value};await pi(T),console.log("开场词生成成功")}catch(T){console.error("获取开场词失败:",T),P.warning("开场词生成中,请稍后")}}else P.error("开场词提示内容更新失败")}catch(e){console.error("保存开场词提示内容失败:",e),P.error("保存失败,请重试")}},qr=()=>{Pn.value=Le.afterStartText,lo.value=!0},_r=()=>{lo.value=!1,Pn.value=""},el=()=>{if(!Pn.value.trim()){P.warning("开始后提醒内容不能为空");return}Le.afterStartText=Pn.value.trim(),lo.value=!1,P.success("开始后提醒内容已更新")},tl=()=>{Vn.value=Le.disclaimerText,so.value=!0},nl=()=>{so.value=!1,Vn.value=""},ol=()=>{if(!Vn.value.trim()){P.warning("内容不能为空");return}Le.disclaimerText=Vn.value.trim(),so.value=!1,P.success("内容已更新")},hn=et({openQuestionsCount:5,choiceQuestionsCount:10}),$i=()=>{console.log("题目数量已更新:",hn)},Ji=async()=>{try{pt.value=!0;const f=L.value.map(x=>x.id);if(f.length===0){P.warning("请先选择能力标签");return}const e={position_id:o.query.id,competency_tag_ids:f,open_questions_count:hn.openQuestionsCount,choice_questions_count:hn.choiceQuestionsCount,auto_save:!0,tenant_id:Xt.get("tenant_id")},T=await os(e);if(T&&T.data){const x=await Br({tenant_id:Xt.get("tenant_id"),page:1,limit:30,position_id:o.query.id});if(console.log(x),x===null){console.log("轮询被取消,停止处理");return}if(x&&x.data&&x.data.dataList){const V=x.data.dataList.map(N=>({id:N.id||Date.now(),title:N.question||N.title,ability:N.ability||"未设置",content:N.content||N.question,target:N.target||"未设置",competency_tags:N.competency_tag_info||[],question_form_name:N.question_form_name,scoring_reference:N.scoring_reference,question_form:N.question_form,is_required_correct:N.is_required_correct,weight:100,maxAnswers:1,enable_follow_up:!0,options:N.options||[],source:"ai_generated"}));ne.value=V,P.success(`已成功生成${V.length}个面试题目`)}else P.warning("AI生成题目中,请稍后再试")}}catch(f){console.error("AI自动组题失败:",f),P.error("AI自动组题失败,请重试")}finally{pt.value=!1}},il=f=>{if(_.competency_tags=[],f.length>0){const e=Math.floor(100/f.length),T=100%f.length;_.competency_tags=f.map((x,V)=>{const N=Oe.value.find(le=>le.id===x);return{id:x,name:N?N.name:`标签${x}`,weight:e+(V<T?1:0)}})}},al=f=>{switch(_.type=f,f){case"open":_.suggestedDuration=120;break;case"single":case"multiple":_.suggestedDuration=60;break;case"fill":_.suggestedDuration=30;break;case"self":_.suggestedDuration=180;break;default:_.suggestedDuration=60}},Rn=Q(!1),Un=Q(!1),uo=Q(-1),Ve=et({title:"候选人提问",duration:5,maxQuestions:3,description:"候选人可以向面试官提问关于公司、职位或团队的问题",isRequired:!0,allowSkip:!1,guidelines:["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]}),rl=(f,e)=>{uo.value=e,f.config?Object.assign(Ve,f.config):(Ve.title=f.name,Ve.description=f.description||"候选人可以向面试官提问关于公司、职位或团队的问题",Ve.duration=5,Ve.maxQuestions=3,Ve.isRequired=f.active,Ve.allowSkip=!1,Ve.guidelines=["请提出与职位、公司文化或团队相关的问题","避免询问已在职位描述中明确说明的信息","可以询问职业发展机会和团队工作方式"]),Un.value=!0},ll=(f,e)=>{switch(f.type){case"ai_video":ko(f);break;case"candidate_questions":rl(f,e);break;case"data_collection":ko(f);break;case"resume_collection":ko(f);break;default:ko(f);break}},sl=(f,e)=>{(e===null||e<0)&&(e=0),e>100&&(e=100);const T=_.competency_tags;T[f].weight;const x=Math.round(e);if(T[f].weight=x,T.length===1){T[0].weight=100;return}const V=T.filter((le,z)=>z!==f),N=V.reduce((le,z)=>le+z.weight,0);if(N===0){const le=100-x,z=Math.floor(le/V.length),re=le%V.length;V.forEach((st,Vt)=>{const Lt=T.findIndex(Qt=>Qt.id===st.id);T[Lt].weight=z+(Vt<re?1:0)})}else{const le=100-x;if(le>0){V.forEach(re=>{const st=T.findIndex(Lt=>Lt.id===re.id),Vt=re.weight/N;T[st].weight=Math.round(le*Vt)});const z=si();if(z!==100){const re=100-z,st=V.reduce((Lt,Qt)=>Qt.weight>Lt.weight?Qt:Lt),Vt=T.findIndex(Lt=>Lt.id===st.id);T[Vt].weight+=re}}else V.forEach(z=>{const re=T.findIndex(st=>st.id===z.id);T[re].weight=0})}},si=()=>_.competency_tags.reduce((e,T)=>e+(T.weight||0),0),dl=()=>{const f=_.competency_tags;if(f.length===0)return;const e=Math.floor(100/f.length),T=100%f.length;f.forEach((x,V)=>{x.weight=e+(V<T?1:0)})},Wi=ui({get:()=>qe(_.competency_tags),set:f=>{_.competency_tags=f,il(f)}}),ul=async()=>{try{const f=await rs({position_id:o.query.id,tenant_id:Xt.get("tenant_id"),is_ai_generated:!0});f&&f.data&&f.data.length>0&&(await ls({position_id:o.query.id,question_id:f.data.map(e=>e.id),tenant_id:Xt.get("tenant_id")}),De.value>0&&await bt({id:De.value,enable_ai_questions:!1}),P.success("AI考察问题已删除"))}catch(f){console.error("删除AI考察问题失败:",f),P.error("删除AI考察问题失败")}};Kl(()=>G.question_form_switches.enable_open_questions,f=>{f?r.forEach(e=>{e.type==="ai_interview"&&(e.visible=!0)}):r.forEach(e=>{e.type==="ai_interview"&&(e.visible=!1)})},{immediate:!0}),Q(!1),Q(!1);const cl=Q(!1),No=Q(!1),an=Q({duration:5,detectionItems:["face","pose"],promptText:"请按照提示完成相应的动作,系统将自动进行检测。"}),fl=()=>{No.value=!1},vl=async()=>{try{await saveProcessConfig({position_id:o.params.id,process_type:"posture_check",config:an.value}),P.success("配置保存成功"),No.value=!1}catch(f){console.error("保存肢体检测配置失败:",f),P.error("配置保存失败")}},Hi=Q([]),pl=Q(),ml=f=>{console.log(f);const{firstLevel:e,secondLevel:T,currentNode:x}=f;T?Zt({page:1,limit:20,question_tags:T.id.replace("tag_",""),question_form:lt.question_form}).then(V=>{V.data&&(rt.value=V.data.items,ct.page=V.data.page,ct.pageSize=V.data.limit,jt.value=V.data.total)}):e&&Zt({page:1,limit:20,question_category:e.id.replace("category_",""),question_form:lt.question_form}).then(V=>{V.data&&(rt.value=V.data.items,ct.page=V.data.page,ct.pageSize=V.data.limit,jt.value=V.data.total)})},gl=f=>{console.log(f)},hl=f=>{console.log(f)},yl=()=>{la({page:1,limit:100}).then(f=>{console.log("ret",f),f.data,sa({page:1,limit:100}).then(e=>{console.log("res",e);const T=e.data.items.filter(x=>!["技术能力","服务意识","职业素质","基本常识","色盲检测","内容铺垫","心理测试1","心理测试"].includes(x.name));da({}).then(x=>{console.log("res",x);const V=x.data.items,N=[...T.map(le=>({id:`category_${le.id}`,title:le.name,children:V.filter(z=>z.category_id===le.id).map(z=>({id:`tag_${z.id}`,title:z.name,chinese_explanation:z.chinese_explanation||""}))}))];Hi.value=N})})})},Yi=Q([]),bl={children:"children",label:"title"},Sl=async f=>{try{if(f.id.startsWith("category_")){const e=f.id.replace("category_",""),T=await Zt({page:1,limit:1e3,question_category:e,question_form:lt.question_form});if(T&&T.data){rt.value=T.data.items,ct.page=T.data.page,ct.pageSize=T.data.limit,jt.value=T.data.total;const x=document.querySelector(".el-table__header-wrapper");if(x){const V=x.querySelector(".el-checkbox");V&&V.__vueParentComponent.emit("change",!0)}Ft.value=T.data.items}}else if(f.id.startsWith("tag_")){const e=f.id.replace("tag_",""),T=await Zt({page:1,limit:1e3,question_tags:e,question_form:lt.question_form});if(T&&T.data){rt.value=T.data.items,ct.page=T.data.page,ct.pageSize=T.data.limit,jt.value=T.data.total;const x=document.querySelector(".el-table__header-wrapper");if(x){const V=x.querySelector(".el-checkbox");V&&V.__vueParentComponent.emit("change",!0)}Ft.value=T.data.items}}}catch(e){console.error("获取题目列表失败:",e),P.error("获取题目列表失败")}},El=()=>{la({page:1,limit:100}).then(f=>{console.log("ret",f),f.data,sa({page:1,limit:100}).then(e=>{console.log("res",e);const T=e.data.items.filter(x=>["心理测试"].includes(x.name));da({}).then(x=>{console.log("res",x);const V=x.data.items,N=[...T.map(le=>({id:`category_${le.id}`,title:le.name,children:V.filter(z=>z.category_id===le.id).map(z=>({id:`tag_${z.id}`,title:z.name,chinese_explanation:z.chinese_explanation||""}))}))];Yi.value=N})})})};return(f,e)=>{const T=Te("page-header"),x=Te("el-button"),V=Te("el-icon"),N=Te("el-input"),le=Te("el-cascader"),z=Te("el-option"),re=Te("el-select"),st=Te("el-input-number"),Vt=Te("el-tag"),Lt=Te("el-date-picker"),Qt=Te("el-card"),nt=Te("el-switch"),Ct=Te("el-dialog"),Ht=Te("el-checkbox"),xl=Te("Refresh"),co=Te("el-radio"),Xi=Te("el-upload"),kn=Te("el-tooltip"),Il=Te("Folder"),Cl=Te("el-tree"),Gt=Te("el-col"),Yt=Te("el-row"),Al=Te("el-radio-group"),Fo=Te("el-table-column"),Zi=Te("el-table"),wl=Te("el-pagination"),di=Te("el-form-item"),Ol=Te("el-checkbox-group"),Tl=Te("el-form"),qi=Ml("loading");return M(),X("div",qs,[l("div",_s,[v(T,{title:"测试",onBack:In}),l("div",ed,[v(x,{type:"primary",onClick:Qn},{default:y(()=>e[93]||(e[93]=[U("保存")])),_:1})])]),l("div",td,[v(Qt,{class:"detail-card"},{default:y(()=>[e[126]||(e[126]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"职位详情")],-1)),l("div",nd,[e[96]||(e[96]=l("div",{class:"detail-label"},"职位名称",-1)),wo.value?(M(),X("div",id,[v(N,{modelValue:Cn.value,"onUpdate:modelValue":e[0]||(e[0]=p=>Cn.value=p),placeholder:"请输入职位名称",maxlength:"20","show-word-limit":""},null,8,["modelValue"]),l("div",ad,[v(x,{size:"small",onClick:Wa},{default:y(()=>e[94]||(e[94]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Ha},{default:y(()=>e[95]||(e[95]=[U("保存")])),_:1})])])):(M(),X("div",od,[U(de(a.title)+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:Ja},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1})]))]),l("div",rd,[e[99]||(e[99]=l("div",{class:"detail-label"},"工作地点",-1)),Oo.value?(M(),X("div",sd,[v(le,{modelValue:Jt.value,"onUpdate:modelValue":e[1]||(e[1]=p=>Jt.value=p),options:Ee(w),props:{expandTrigger:"hover",checkStrictly:!1,value:"code",label:"name"},style:{width:"100%"},placeholder:"请选择工作地点",clearable:"",onChange:O},null,8,["modelValue","options"]),l("div",dd,[v(x,{size:"small",onClick:Xa},{default:y(()=>e[97]||(e[97]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Za},{default:y(()=>e[98]||(e[98]=[U("保存")])),_:1})])])):(M(),X("div",ld,[U(de((()=>{if(!a.location)return"暂无";if(Array.isArray(a.location))return a.location.join(",");if(typeof a.location=="string")try{return a.location.replace(/[\[\]']/g,"").split(",").map(se=>se.trim()).join(",")}catch{return a.location}return a.location})())+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:Ya},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1})]))]),l("div",ud,[e[103]||(e[103]=l("div",{class:"detail-label"},"职位薪资",-1)),To.value?(M(),X("div",fd,[l("div",vd,[v(re,{modelValue:Jn.value,"onUpdate:modelValue":e[2]||(e[2]=p=>Jn.value=p),placeholder:"薪资类型",class:"salary-type-select",onChange:ai},{default:y(()=>[v(z,{label:"月薪",value:"月薪"}),v(z,{label:"年薪",value:"年薪"}),v(z,{label:"日薪",value:"日薪"}),v(z,{label:"时薪",value:"时薪"})]),_:1},8,["modelValue"]),v(st,{modelValue:gn.value,"onUpdate:modelValue":e[3]||(e[3]=p=>gn.value=p),placeholder:"起始薪资",class:"salary-input",type:"number","controls-position":"right",min:"0",onInput:ai},null,8,["modelValue"]),e[100]||(e[100]=l("span",{class:"salary-separator"},"-",-1)),v(st,{modelValue:tn.value,"onUpdate:modelValue":e[4]||(e[4]=p=>tn.value=p),placeholder:"最高薪资",class:"salary-input","controls-position":"right",type:"number",min:"0",onInput:ai},null,8,["modelValue"])]),l("div",pd,[v(x,{size:"small",onClick:_a},{default:y(()=>e[101]||(e[101]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:er},{default:y(()=>e[102]||(e[102]=[U("保存")])),_:1})])])):(M(),X("div",cd,[U(de(a.salary_range||"暂无")+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:qa},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1})]))]),l("div",md,[e[106]||(e[106]=l("div",{class:"detail-label"},"工作经验",-1)),Do.value?(M(),X("div",hd,[v(re,{modelValue:Wn.value,"onUpdate:modelValue":e[5]||(e[5]=p=>Wn.value=p),placeholder:"请选择工作经验",style:{width:"100%"}},{default:y(()=>[v(z,{label:"不限",value:"不限"}),v(z,{label:"应届毕业生",value:"应届毕业生"}),v(z,{label:"1年以下",value:"1年以下"}),v(z,{label:"1-3年",value:"1-3年"}),v(z,{label:"3-5年",value:"3-5年"}),v(z,{label:"5-10年",value:"5-10年"}),v(z,{label:"10年以上",value:"10年以上"})]),_:1},8,["modelValue"]),l("div",yd,[v(x,{size:"small",onClick:nr},{default:y(()=>e[104]||(e[104]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:or},{default:y(()=>e[105]||(e[105]=[U("保存")])),_:1})])])):(M(),X("div",gd,[U(de(a.work_experience_required||"暂无")+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:tr},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1})]))]),l("div",bd,[e[109]||(e[109]=l("div",{class:"detail-label"},"学历要求",-1)),Po.value?(M(),X("div",Ed,[v(re,{modelValue:Hn.value,"onUpdate:modelValue":e[6]||(e[6]=p=>Hn.value=p),placeholder:"请选择学历要求",style:{width:"100%"}},{default:y(()=>[v(z,{label:"不限",value:"不限"}),v(z,{label:"高中",value:"高中"}),v(z,{label:"大专",value:"大专"}),v(z,{label:"本科",value:"本科"}),v(z,{label:"硕士",value:"硕士"}),v(z,{label:"博士",value:"博士"})]),_:1},8,["modelValue"]),l("div",xd,[v(x,{size:"small",onClick:ar},{default:y(()=>e[107]||(e[107]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:rr},{default:y(()=>e[108]||(e[108]=[U("保存")])),_:1})])])):(M(),X("div",Sd,[U(de(a.education_required||"暂无")+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:ir},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1})]))]),l("div",Id,[e[112]||(e[112]=l("div",{class:"detail-label"},"所属部门",-1)),Vo.value?(M(),X("div",Ad,[v(N,{modelValue:Yn.value,"onUpdate:modelValue":e[7]||(e[7]=p=>Yn.value=p),placeholder:"请输入所属部门",maxlength:"30","show-word-limit":""},null,8,["modelValue"]),l("div",wd,[v(x,{size:"small",onClick:sr},{default:y(()=>e[110]||(e[110]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:dr},{default:y(()=>e[111]||(e[111]=[U("保存")])),_:1})])])):(M(),X("div",Cd,[U(de(a.department||"暂无")+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:lr},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1})]))]),l("div",Od,[e[113]||(e[113]=l("div",{class:"detail-label"},"职位状态",-1)),l("div",Td,[v(Vt,{type:fn(a.status)},{default:y(()=>[U(de(cn(a.status)),1)]),_:1},8,["type"])])]),l("div",Dd,[e[116]||(e[116]=l("div",{class:"detail-label"},"截止日期",-1)),Ro.value?(M(),X("div",Vd,[v(Lt,{modelValue:Xn.value,"onUpdate:modelValue":e[8]||(e[8]=p=>Xn.value=p),type:"datetime",placeholder:"请选择截止日期","value-format":"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}},null,8,["modelValue"]),l("div",Rd,[v(x,{size:"small",onClick:cr},{default:y(()=>e[114]||(e[114]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:fr},{default:y(()=>e[115]||(e[115]=[U("保存")])),_:1})])])):(M(),X("div",Pd,[U(de(a.end_date||"暂无")+" ",1),v(x,{type:"text",class:"edit-title-btn",onClick:ur},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1})]))]),l("div",Ud,[e[119]||(e[119]=l("div",{class:"detail-label"},"职位要求",-1)),Zn.value?we("",!0):(M(),X("div",{key:0,class:"detail-value html-content",innerHTML:a.requirements},null,8,kd)),Zn.value?(M(),X("div",Kd,[v(N,{modelValue:qn.value,"onUpdate:modelValue":e[9]||(e[9]=p=>qn.value=p),type:"textarea",rows:"6",placeholder:"请输入职位要求",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),l("div",Md,[v(x,{size:"small",onClick:pr},{default:y(()=>e[117]||(e[117]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:mr},{default:y(()=>e[118]||(e[118]=[U("保存")])),_:1})])])):(M(),Ae(x,{key:1,type:"text",class:"edit-title-btn",onClick:vr},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1}))]),e[127]||(e[127]=l("div",{style:{width:"100%","border-bottom":"1px solid #e5e5e5"}},null,-1)),l("div",Bd,[e[122]||(e[122]=l("div",{class:"detail-label"},"职位描述",-1)),_n.value?we("",!0):(M(),X("div",{key:0,class:"detail-value html-content",innerHTML:a.description},null,8,Nd)),_n.value?(M(),X("div",Fd,[v(N,{modelValue:eo.value,"onUpdate:modelValue":e[10]||(e[10]=p=>eo.value=p),type:"textarea",rows:"6",placeholder:"请输入职位描述",maxlength:"1000","show-word-limit":""},null,8,["modelValue"]),l("div",jd,[v(x,{size:"small",onClick:hr},{default:y(()=>e[120]||(e[120]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:yr},{default:y(()=>e[121]||(e[121]=[U("保存")])),_:1})])])):(M(),Ae(x,{key:1,type:"text",class:"edit-title-btn",onClick:gr},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1}))]),l("div",Ld,[e[125]||(e[125]=l("div",{class:"detail-label"},"能力标签",-1)),Uo.value?(M(),X("div",Gd,[v(re,{modelValue:wn.value,"onUpdate:modelValue":e[11]||(e[11]=p=>wn.value=p),multiple:"",filterable:"",placeholder:"请选择能力标签",style:{width:"100%"}},{default:y(()=>[(M(!0),X(Je,null,We(Oe.value,p=>(M(),Ae(z,{key:p.id,label:p.name,value:p.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l("div",zd,[v(x,{size:"small",onClick:Ir},{default:y(()=>e[123]||(e[123]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Cr},{default:y(()=>e[124]||(e[124]=[U("保存")])),_:1})])])):(M(),X("div",Qd,[(M(!0),X(Je,null,We(a.competency_tags,p=>(M(),Ae(Vt,{key:p.id,effect:"plain",class:"competency-tag"},{default:y(()=>[U(de(p.name),1)]),_:2},1024))),128)),v(x,{type:"text",class:"edit-title-btn",onClick:xr},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1})]))])]),_:1}),l("div",$d,[v(Qt,{class:"status-card"},{default:y(()=>[e[128]||(e[128]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"职位状态")],-1)),l("div",Jd,[v(nt,{modelValue:n.value,"onUpdate:modelValue":e[12]||(e[12]=p=>n.value=p),"inactive-text":"",onChange:It},null,8,["modelValue"]),l("span",Wd,de(n.value?"已启用":"待启用"),1)])]),_:1}),v(Qt,{class:"status-card"},{default:y(()=>[l("div",Hd,[e[130]||(e[130]=l("div",{class:"section-line"},null,-1)),e[131]||(e[131]=l("span",null,"职位性质",-1)),An.value?we("",!0):(M(),Ae(x,{key:0,type:"text",class:"edit-btn",onClick:br},{default:y(()=>e[129]||(e[129]=[U("编辑")])),_:1}))]),l("div",Yd,[An.value?we("",!0):(M(),X("div",Xd,de(vn(a.job_type)),1)),An.value?(M(),X("div",Zd,[v(re,{modelValue:to.value,"onUpdate:modelValue":e[13]||(e[13]=p=>to.value=p),placeholder:"请选择职位性质",style:{width:"100%"}},{default:y(()=>[v(z,{label:"全职",value:0}),v(z,{label:"兼职",value:1}),v(z,{label:"实习",value:2}),v(z,{label:"其他",value:3})]),_:1},8,["modelValue"]),l("div",qd,[v(x,{size:"small",onClick:Sr},{default:y(()=>e[132]||(e[132]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Er},{default:y(()=>e[133]||(e[133]=[U("保存")])),_:1})])])):we("",!0)])]),_:1}),v(Qt,{class:"status-card"},{default:y(()=>[l("div",_d,[e[135]||(e[135]=l("div",{class:"section-line"},null,-1)),e[136]||(e[136]=l("span",null,"招聘流程",-1)),v(x,{type:"text",class:"edit-btn",onClick:Nt},{default:y(()=>e[134]||(e[134]=[U("设置流程")])),_:1})]),l("div",eu,[(M(!0),X(Je,null,We(r,(p,se)=>jo((M(),X("div",{key:p.id,class:At(["process-step",{disabled:!p.active}])},[p.name!="已通过"&&p.name!="已淘汰"?(M(),X("div",tu,de(t(se)),1)):we("",!0),l("div",nu,[l("div",ou,de(p.name),1)])],2)),[[_i,p.visible]])),128))])]),_:1}),v(Qt,{class:"status-card"},{default:y(()=>[l("div",iu,[e[138]||(e[138]=l("div",{class:"section-line"},null,-1)),e[139]||(e[139]=l("span",null,"面试设置",-1)),v(x,{type:"text",class:"edit-btn",onClick:Hr},{default:y(()=>e[137]||(e[137]=[U("编辑")])),_:1})])]),_:1})])]),v(Ct,{title:"设置招聘流程",modelValue:u.value,"onUpdate:modelValue":e[16]||(e[16]=p=>u.value=p),width:"500px","close-on-click-modal":!1},{footer:y(()=>[l("span",cu,[v(x,{onClick:dn},{default:y(()=>e[143]||(e[143]=[U("取消")])),_:1}),v(x,{type:"primary",onClick:en},{default:y(()=>e[144]||(e[144]=[U("确定")])),_:1})])]),default:y(()=>[l("div",au,[(M(!0),X(Je,null,We(r,(p,se)=>jo((M(),X("div",{key:p.id},[se<r.length-1?(M(),X("div",ru,[v(x,{type:"text",onClick:Ce=>pn(se,Ce)},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(yn))]),_:1})]),_:2},1032,["onClick"])])):we("",!0),l("div",{class:At(["process-edit-item",{highlight:p.active}])},[p.name!="已通过"&&p.name!="已淘汰"?(M(),X("div",lu,de(t(se)),1)):we("",!0),l("div",su,[l("div",null,de(p.name),1)]),p.name!="已通过"&&p.name!="已淘汰"?(M(),X("div",du,[p.name!="简历收集"&&p.name!="肢体检测"?(M(),Ae(x,{key:0,type:"info",size:"small",plain:"",onClick:Ce=>ll(p,se)},{default:y(()=>e[140]||(e[140]=[U(" 修改 ")])),_:2},1032,["onClick"])):we("",!0),p.name!="资料收集"&&p.name!="AI考察"?(M(),Ae(x,{key:1,type:"danger",size:"small",plain:"",style:{"margin-top":"10px","margin-left":"0px"},onClick:Ce=>un(p,se)},{default:y(()=>e[141]||(e[141]=[U(" 删除 ")])),_:2},1032,["onClick"])):we("",!0)])):we("",!0)],2)])),[[_i,p.visible]])),128)),e[142]||(e[142]=l("div",{class:"add-process-btn"},null,-1))]),$.value?(M(),X("div",{key:0,class:"process-options-menu",style:Nl({top:k.top,left:k.left}),onClick:e[15]||(e[15]=Bl(()=>{},["stop"]))},[l("div",{class:"close-btn",onClick:e[14]||(e[14]=p=>$.value=!1)},[v(V,null,{default:y(()=>[v(Ee(Wl))]),_:1})]),(M(),X(Je,null,We(g,p=>l("div",{key:p.value,class:"process-option-item",onClick:se=>A(p.value,p.label)},de(p.label),9,uu)),64))],4)):we("",!0)]),_:1},8,["modelValue"]),v(Ee(ci),{title:"AI考察",modelValue:W.value,"onUpdate:modelValue":e[35]||(e[35]=p=>W.value=p),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-video-drawer","destroy-on-close":!1},{footer:y(()=>[l("div",Dc,[q.value>1?(M(),Ae(x,{key:0,size:"small",onClick:D},{default:y(()=>e[185]||(e[185]=[U("上一步")])),_:1})):we("",!0),v(x,{onClick:te,size:"small"},{default:y(()=>e[186]||(e[186]=[U("取消")])),_:1}),q.value<3?(M(),Ae(x,{key:1,type:"primary",size:"small",onClick:C,style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:y(()=>e[187]||(e[187]=[U("下一步")])),_:1})):(M(),Ae(x,{key:2,type:"success",onClick:j,size:"small",style:{"background-color":"#0419a3","border-color":"#0419a3"}},{default:y(()=>e[188]||(e[188]=[U("新增")])),_:1}))])]),default:y(()=>[l("div",fu,[l("div",{class:At(["step-item",{active:q.value===1}]),onClick:e[17]||(e[17]=p=>ce(1))},[e[145]||(e[145]=l("div",{class:"step-number"},"1",-1)),l("div",{class:At(["step-title",{"active-title":q.value===1}])},"考察能力",2)],2),l("div",{class:At(["step-line",{"active-line":q.value>=2}])},null,2),l("div",{class:At(["step-item",{active:q.value===2}]),onClick:e[18]||(e[18]=p=>ce(2))},[e[146]||(e[146]=l("div",{class:"step-number"},"2",-1)),l("div",{class:At(["step-title",{"active-title":q.value===2}])},"面试题目",2)],2),l("div",{class:At(["step-line",{"active-line":q.value>=3}])},null,2),l("div",{class:At(["step-item",{active:q.value===3}]),onClick:e[19]||(e[19]=p=>ce(3))},[e[147]||(e[147]=l("div",{class:"step-number"},"3",-1)),l("div",{class:At(["step-title",{"active-title":q.value===3}])},"系统设置",2)],2)]),q.value===1?jo((M(),X("div",vu,[l("div",pu,[e[154]||(e[154]=l("div",{class:"ai-video-options-header"},[l("div",{class:"ai-video-options-header-title"},[l("span",null,"AI根据岗位信息生成的能力,创建完步骤后,会自动将选择的胜任力考核维度加入到该职位的考察能力列表中。")])],-1)),l("div",mu,[l("div",gu,[(M(!0),X(Je,null,We(Pt.value.slice(0,10),p=>(M(),Ae(Ht,{key:p.id,modelValue:p.selected,"onUpdate:modelValue":se=>p.selected=se,onChange:se=>Li(p,se),class:"custom-checkbox"},{default:y(()=>[l("div",hu,[l("span",null,de(p.name),1),e[148]||(e[148]=l("img",{src:ua,alt:"",class:"sheng"},null,-1))])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),l("div",yu,[l("div",bu,[e[150]||(e[150]=l("h3",{style:{color:"#808080"}},"备选考核维度",-1)),l("div",Su,[v(x,{type:"primary",class:"custom-btn",plain:"",size:"small",onClick:I},{default:y(()=>e[149]||(e[149]=[U("重新生成")])),_:1})])]),l("div",Eu,[(M(!0),X(Je,null,We(Pt.value.slice(10,50),p=>(M(),Ae(Ht,{key:p.id,modelValue:p.selected,"onUpdate:modelValue":se=>p.selected=se,onChange:se=>Li(p,se),class:"custom-checkbox"},{default:y(()=>[l("div",xu,[l("span",null,de(p.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])]),l("div",Iu,[e[153]||(e[153]=l("h3",{style:{color:"#808080"}},"自定义维度",-1)),l("div",Cu,[l("div",Au,[l("div",wu,[v(N,{style:{width:"150px"},modelValue:nn.value,"onUpdate:modelValue":e[20]||(e[20]=p=>nn.value=p),placeholder:"请输入维度名称"},null,8,["modelValue"])]),l("div",Ou,[e[151]||(e[151]=l("div",{class:"input-label"},"特征描述:",-1)),v(N,{modelValue:On.value,"onUpdate:modelValue":e[21]||(e[21]=p=>On.value=p),style:{width:"500px"},type:"textarea",placeholder:"请输入特征描述"},null,8,["modelValue"])])]),l("div",Tu,[v(x,{type:"primary",onClick:Or},{default:y(()=>e[152]||(e[152]=[U("添加")])),_:1})])])])])])),[[qi,Rn.value]]):we("",!0),q.value===2?(M(),X("div",Du,[l("div",Pu,[l("div",Vu,[l("div",Ru,[v(x,{plain:"",class:"custom-btn",onClick:mn},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(yn))]),_:1}),e[155]||(e[155]=U(" 自定义题目 "))]),_:1}),v(x,{plain:"",class:"custom-btn"},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(ea))]),_:1}),e[156]||(e[156]=U(" 导入题目 "))]),_:1}),ne.value.length>0?(M(),Ae(x,{key:0,type:"primary",plain:"",class:"custom-btn",loading:pt.value,onClick:Ji},{default:y(()=>[v(V,null,{default:y(()=>[v(xl)]),_:1}),e[157]||(e[157]=U(" 重新生成 "))]),_:1},8,["loading"])):we("",!0),l("div",Uu,[l("div",ku,[e[158]||(e[158]=l("span",{class:"switch-label"},"开放题数量",-1)),v(st,{modelValue:hn.openQuestionsCount,"onUpdate:modelValue":e[22]||(e[22]=p=>hn.openQuestionsCount=p),min:1,max:10,size:"small",onChange:$i},null,8,["modelValue"])]),l("div",Ku,[e[159]||(e[159]=l("span",{class:"switch-label"},"选择题数量",-1)),v(st,{modelValue:hn.choiceQuestionsCount,"onUpdate:modelValue":e[23]||(e[23]=p=>hn.choiceQuestionsCount=p),min:1,max:20,size:"small",onChange:$i},null,8,["modelValue"])])])]),l("div",Mu,[e[160]||(e[160]=l("span",null,"预计面试时长: ",-1)),l("span",Bu,de(Gn.value),1),e[161]||(e[161]=l("span",{class:"duration-tip"},"拖动试题卡片可改变试题顺序",-1))])]),l("div",Nu,[jo((M(),X("div",Fu,[ne.value.length===0?(M(),X("div",ju,[e[164]||(e[164]=l("p",null,"暂无题目",-1)),e[165]||(e[165]=l("p",{class:"ai-tip"},'点击"AI自动组题"按钮',-1)),e[166]||(e[166]=l("p",{class:"ai-tip"},"可根据您选择的能力类型一键组题",-1)),v(x,{type:"success",class:"auto-generate-btn",loading:pt.value,onClick:Ji},{default:y(()=>e[162]||(e[162]=[U(" AI自动组题 ")])),_:1},8,["loading"]),pt.value&&Ee(Wt)?(M(),Ae(x,{key:0,type:"warning",plain:"",size:"small",onClick:Nr,style:{"margin-left":"10px"}},{default:y(()=>e[163]||(e[163]=[U(" 取消生成 ")])),_:1})):we("",!0)])):(M(),X("div",Lu,[v(Ee(xa),{modelValue:ne.value,"onUpdate:modelValue":e[24]||(e[24]=p=>ne.value=p),"item-key":"id",handle:".drag-handle",onStart:Vr,onEnd:Rr,animation:"200","ghost-class":"sortable-ghost","chosen-class":"sortable-chosen","drag-class":"sortable-drag"},{item:y(({element:p})=>[l("div",Qu,[e[170]||(e[170]=l("div",{class:"drag-handle"},[l("img",{src:vs,alt:"",class:"dorp"})],-1)),l("div",Gu,[l("div",zu,[l("div",$u,[l("div",Ju,[l("span",Wu,"题目"+de(ne.value.indexOf(p)+1),1),l("span",null,[l("span",Hu,de("「"+p.question_form_name+"」"),1),U(de(p.title),1)])]),l("div",Yu,[(M(!0),X(Je,null,We((p.competency_tag_info||p.competency_tags||[]).slice(0,2),(se,Ce)=>(M(),Ae(Vt,{key:se.id,effect:"plain",class:"competency-tag",size:"small"},{default:y(()=>[U(de(m(se)),1)]),_:2},1024))),128)),(p.competency_tag_info||p.competency_tags||[]).length>2?(M(),X("span",Xu," +"+de((p.competency_tag_info||p.competency_tags||[]).length-2),1)):we("",!0)])])]),l("div",Zu,[v(x,{type:"text",onClick:se=>Mi(ne.value.indexOf(p))},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:2},1032,["onClick"]),v(x,{type:"text",onClick:se=>Bi(ne.value.indexOf(p))},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(ta))]),_:1})]),_:2},1032,["onClick"])])]),l("div",qu,[l("div",_u,[l("span",null,de(p.scoring_reference),1)])]),p.question_form==0?(M(),X("div",ec,[l("div",tc,[v(nt,{style:{"margin-top":"0px"},modelValue:p.enable_follow_up,"onUpdate:modelValue":se=>p.enable_follow_up=se,onChange:H},null,8,["modelValue","onUpdate:modelValue"]),e[167]||(e[167]=l("span",{class:"answer-label"},"回答不充分追问",-1))]),l("div",nc,[e[168]||(e[168]=l("span",{class:"answer-label"},"追问轮数",-1)),v(re,{modelValue:p.maxAnswers,"onUpdate:modelValue":se=>p.maxAnswers=se,size:"small",placeholder:"请选择"},{default:y(()=>[v(z,{label:"1次",value:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])])])):we("",!0),p.question_form==1?(M(),X("div",oc,[l("div",ic,[e[169]||(e[169]=l("span",{class:"answer-label"},"是否为红线题:",-1)),v(re,{modelValue:p.is_required_correct,"onUpdate:modelValue":se=>p.is_required_correct=se,disabled:!0,onChange:se=>K(p.id,p.is_required_correct),size:"small",placeholder:"请选择"},{default:y(()=>[v(z,{label:"是",value:!0}),v(z,{label:"否",value:!1})]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])])):we("",!0)])]),_:1},8,["modelValue"])]))])),[[qi,pt.value]]),l("div",ac,[e[173]||(e[173]=l("div",{class:"dimension-title"},"已选胜任力考核维度",-1)),l("div",rc,[(M(!0),X(Je,null,We(L.value,(p,se)=>(M(),X("div",{key:p.value,class:"dimension-item"},[l("div",lc,[l("div",sc,[l("span",dc,de(p.label),1),e[171]||(e[171]=l("img",{src:ua,alt:"",class:"sheng"},null,-1))])]),l("div",{class:"dimension-content",onClick:Ce=>Kr(se),title:"点击删除此胜任力标签"},e[172]||(e[172]=[l("div",{class:"ability-description"},de("—"),-1)]),8,uc)]))),128))])])])])])):we("",!0),q.value===3?(M(),X("div",cc,[l("div",fc,[l("div",vc,[e[184]||(e[184]=l("div",{class:"section-header"},"请选择面试官形象",-1)),l("div",pc,[l("div",mc,[Ko.value?(M(),X("img",{key:0,src:Ko.value,alt:"",style:{width:"100%",height:"100%","object-fit":"cover",transform:"translateZ(0)","backface-visibility":"hidden"}},null,8,gc)):we("",!0)]),l("div",null,[l("div",hc,[(M(!0),X(Je,null,We(ri.value,p=>(M(),X("div",{key:p.id,class:At(["avatar-item",{active:mt.value.id===p.id}]),onClick:se=>Tr(p)},[l("div",bc,[l("div",{class:At(["avatar-circle",{selected:mt.value.id===p.id}])},[l("img",{src:p.avatar_url||p.image,alt:p.name},null,8,Sc)],2),l("div",{class:"avatar-name",title:p.name},de(p.name),9,Ec)])],10,yc))),128))]),l("div",xc,[e[174]||(e[174]=l("div",{class:"setting-label"},"「追问风格」",-1)),l("div",Ic,[v(re,{modelValue:at.followUpStyle,"onUpdate:modelValue":e[25]||(e[25]=p=>at.followUpStyle=p),placeholder:"请选择",onChange:e[26]||(e[26]=p=>no("followUpStyle",at.followUpStyle))},{default:y(()=>[v(z,{label:"温和",value:"1"}),v(z,{label:"严厉",value:"2"}),v(z,{label:"严谨",value:"3"})]),_:1},8,["modelValue"])]),e[175]||(e[175]=l("div",{class:"setting-desc"},null,-1))])])]),l("div",Cc,[l("div",Ac,[e[176]||(e[176]=l("div",{class:"setting-label"},[l("p",null,"「回答视频保留」")],-1)),e[177]||(e[177]=l("div",{class:"setting-desc"},[l("p",null,"选取后,将在报告中展示候选人的回答视频")],-1)),v(nt,{modelValue:at.keepVideo,"onUpdate:modelValue":e[27]||(e[27]=p=>at.keepVideo=p),onChange:e[28]||(e[28]=p=>no("keepVideo",p)),disabled:!0},null,8,["modelValue"])]),l("div",wc,[e[180]||(e[180]=l("div",{class:"setting-label"},[l("p",null,"「中断后作答限制」")],-1)),l("div",Oc,[v(co,{modelValue:at.interruptionMode,"onUpdate:modelValue":e[29]||(e[29]=p=>at.interruptionMode=p),label:"current",onChange:e[30]||(e[30]=p=>no("interruptionMode",at.interruptionMode))},{default:y(()=>e[178]||(e[178]=[U(" 从当前问题重新作答 ")])),_:1},8,["modelValue"]),v(co,{modelValue:at.interruptionMode,"onUpdate:modelValue":e[31]||(e[31]=p=>at.interruptionMode=p),label:"previous",onChange:e[32]||(e[32]=p=>no("interruptionMode",at.interruptionMode))},{default:y(()=>e[179]||(e[179]=[U(" 从头作答 ")])),_:1},8,["modelValue"])]),e[181]||(e[181]=l("div",{class:"setting-desc",style:{width:"40px"}},null,-1))]),l("div",Tc,[e[182]||(e[182]=l("div",{class:"setting-label"},[l("p",null,"「智慧追问」")],-1)),e[183]||(e[183]=l("div",{class:"setting-desc"},[l("p",null,"追问将结合候选人资料情况,综合分析发问")],-1)),v(nt,{modelValue:at.smartFollowUp,"onUpdate:modelValue":e[33]||(e[33]=p=>at.smartFollowUp=p),onChange:e[34]||(e[34]=p=>no("smartFollowUp",p))},null,8,["modelValue"])])])])])])):we("",!0)]),_:1},8,["modelValue"]),v(Ct,{title:"新增视频宣讲",modelValue:fe.value,"onUpdate:modelValue":e[37]||(e[37]=p=>fe.value=p),width:"35%","close-on-click-modal":!1,class:"video-lecture-dialog"},{footer:y(()=>[l("span",kc,[v(x,{onClick:me},{default:y(()=>e[192]||(e[192]=[U("取消")])),_:1}),v(x,{type:"primary",onClick:Ie},{default:y(()=>e[193]||(e[193]=[U("确认")])),_:1})])]),default:y(()=>[l("div",Pc,[l("div",Vc,[e[190]||(e[190]=l("div",{class:"form-label"},"上传视频",-1)),v(Xi,{class:"video-uploader",action:"#","auto-upload":!1,"show-file-list":!1,accept:"video/*"},{default:y(()=>[l("div",Rc,[v(V,null,{default:y(()=>[v(Ee(yn))]),_:1}),e[189]||(e[189]=l("div",{class:"upload-text"},"上传文件大小不超过500M",-1))])]),_:1})]),l("div",Uc,[e[191]||(e[191]=l("div",{class:"form-label"},"视频简介",-1)),v(N,{modelValue:Y.description,"onUpdate:modelValue":e[36]||(e[36]=p=>Y.description=p),type:"textarea",rows:"4",placeholder:"视频简介会显示在视频下方的标题下方",maxlength:"200","show-word-limit":""},null,8,["modelValue"])])])]),_:1},8,["modelValue"]),v(Ee(ci),{title:"AI实时对话",modelValue:ae.value,"onUpdate:modelValue":e[39]||(e[39]=p=>ae.value=p),direction:"rtl",size:"60%","close-on-click-modal":!1,class:"ai-chat-drawer","destroy-on-close":!1},{footer:y(()=>[l("div",qc,[v(x,{onClick:pe},{default:y(()=>e[204]||(e[204]=[U("取消")])),_:1}),v(x,{type:"primary",onClick:Be},{default:y(()=>e[205]||(e[205]=[U("确认")])),_:1})])]),default:y(()=>[l("div",Kc,[l("div",Mc,[e[203]||(e[203]=l("div",{class:"section-title"},[l("div",{class:"section-line"}),l("span",null,"对话设置")],-1)),l("div",Bc,[v(x,{type:"primary",plain:"",onClick:ii},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(yn))]),_:1}),e[194]||(e[194]=U(" 添加问题 "))]),_:1}),v(x,{type:"success",plain:"",onClick:mn},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(ea))]),_:1}),e[195]||(e[195]=U(" 导入问题 "))]),_:1})]),l("div",Nc,[ne.value.length===0?(M(),X("div",Fc,e[196]||(e[196]=[l("p",null,"暂无问题",-1),l("p",{class:"tip-text"},'点击"添加问题"或"导入问题"添加面试问题',-1)]))):(M(),X("div",jc,[v(Ee(xa),{modelValue:ne.value,"onUpdate:modelValue":e[38]||(e[38]=p=>ne.value=p),"item-key":"id",handle:".drag-handle"},{item:y(({element:p,index:se})=>[U(de(p)+" ",1),l("div",Lc,[l("div",Qc,[l("div",Gc,[l("span",zc,"题目"+de(se+1),1),l("span",null,de(p.question),1)]),l("div",$c,[l("div",Jc,[e[198]||(e[198]=l("span",{class:"weight-label"},"权重占比:",-1)),v(st,{modelValue:p.weight,"onUpdate:modelValue":Ce=>p.weight=Ce,min:0,max:100,step:1,size:"small","controls-position":"right"},{suffix:y(()=>e[197]||(e[197]=[U("%")])),_:2},1032,["modelValue","onUpdate:modelValue"])]),l("div",Wc,[e[199]||(e[199]=l("span",{class:"answer-label"},"最多回答次数",-1)),v(re,{modelValue:p.maxAnswers,"onUpdate:modelValue":Ce=>p.maxAnswers=Ce,size:"small",placeholder:"请选择"},{default:y(()=>[v(z,{label:"1次",value:1}),v(z,{label:"2次",value:2}),v(z,{label:"3次",value:3})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),v(x,{type:"text",onClick:Ce=>Mi(se)},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:2},1032,["onClick"]),v(x,{type:"text",onClick:Ce=>Bi(se)},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(ta))]),_:1})]),_:2},1032,["onClick"])])]),l("div",Hc,[l("div",Yc,[e[200]||(e[200]=l("span",{class:"info-label"},"考察能力:",-1)),l("span",null,de(p.ability),1)]),l("div",Xc,[e[201]||(e[201]=l("span",{class:"info-label"},"面试内容:",-1)),l("span",null,de(p.content),1)]),l("div",Zc,[e[202]||(e[202]=l("span",{class:"info-label"},"对话目标:",-1)),l("span",null,de(p.target),1)])])])]),_:1},8,["modelValue"])]))])])])]),_:1},8,["modelValue"]),v(Ct,{title:"查看问题",modelValue:ye.value,"onUpdate:modelValue":e[48]||(e[48]=p=>ye.value=p),width:"500px","close-on-click-modal":!1,class:"question-dialog"},{footer:y(()=>[l("span",yf,[v(x,{onClick:ke},{default:y(()=>e[232]||(e[232]=[U("取消")])),_:1})])]),default:y(()=>[l("div",_c,[l("div",ef,[e[206]||(e[206]=l("div",{class:"form-label"},[U(" 题目内容"),l("span",{class:"required"},"*")],-1)),v(N,{modelValue:_.content,"onUpdate:modelValue":e[40]||(e[40]=p=>_.content=p),type:"textarea",rows:"4",placeholder:"请描述一次你如何在紧迫的时间内完成一个复杂的后端开发任务的经历",maxlength:"300","show-word-limit":"",disabled:!0},null,8,["modelValue"])]),l("div",tf,[e[207]||(e[207]=l("div",{class:"form-label"},"胜任力标签",-1)),v(re,{modelValue:Wi.value,"onUpdate:modelValue":e[41]||(e[41]=p=>Wi.value=p),placeholder:"请选择胜任力标签",class:"full-width",multiple:"",disabled:!0},{default:y(()=>[(M(!0),X(Je,null,We(Oe.value,p=>(M(),Ae(z,{key:p.id,label:p.name,value:p.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[208]||(e[208]=l("div",{class:"form-tip"},"选择胜任力标签和胜任力标签,可多选",-1))]),l("div",nf,[e[214]||(e[214]=l("div",{class:"form-label"}," 胜任力配置 ",-1)),l("div",of,[e[210]||(e[210]=l("div",{class:"config-row"},[l("span",{class:"config-label"},"标签"),l("span",{class:"config-label"},"权重")],-1)),(M(!0),X(Je,null,We(_.competency_tags,(p,se)=>(M(),X("div",{class:"config-row",key:p.id},[l("span",af,de(p.name),1),v(st,{modelValue:p.weight,"onUpdate:modelValue":Ce=>p.weight=Ce,min:0,max:100,step:1,disabled:!0,"controls-position":"right",onChange:Ce=>sl(se,Ce)},null,8,["modelValue","onUpdate:modelValue","onChange"]),e[209]||(e[209]=U(" % "))]))),128))]),l("div",rf,[e[211]||(e[211]=U(" 配置各个胜任力标签的权重,总和需要100% ")),l("span",{class:At(["weight-sum",{"weight-error":si()!==100}])}," (当前总计: "+de(si())+"%) ",3),e[212]||(e[212]=l("br",null,null,-1)),v(V,{style:{color:"#409eff","margin-right":"4px","margin-top":"4px"}},{default:y(()=>[v(Ee(Hl))]),_:1}),e[213]||(e[213]=l("span",{style:{color:"#909399","font-size":"11px"}},' 修改任意权重时,其他权重会自动按比例调整以保持总和为100%。点击"平均分配"可快速平均分配所有权重。 ',-1))])]),l("div",lf,[e[215]||(e[215]=l("div",{class:"form-label"},"题目形式",-1)),v(re,{modelValue:_.question_form,"onUpdate:modelValue":e[42]||(e[42]=p=>_.question_form=p),placeholder:"开放问题",class:"full-width",disabled:!0,onChange:al},{default:y(()=>[v(z,{label:"开放问题",value:0}),v(z,{label:"单选题",value:1}),v(z,{label:"看图选答案",value:3}),v(z,{label:"多选题",value:2}),v(z,{label:"填空题",value:6}),v(z,{label:"得分题",value:4}),v(z,{label:"追加型开放问题",value:5})]),_:1},8,["modelValue"]),e[216]||(e[216]=l("div",{class:"form-tip"},"选择题目的形式:开放问题、单选题、多选题、填空题、自言语",-1))]),l("div",sf,[e[217]||(e[217]=l("div",{class:"form-label"},"适用职位",-1)),v(re,{modelValue:s.value,"onUpdate:modelValue":e[43]||(e[43]=p=>s.value=p),placeholder:"请选择适用职位类型",class:"full-width",disabled:!0},{default:y(()=>[(M(!0),X(Je,null,We(Ue.value,p=>(M(),Ae(z,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[218]||(e[218]=l("div",{class:"form-tip"},"选择题目适用的职位类型,可多选",-1))]),_.question_form===1||_.question_form===2||_.question_form===3?(M(),X("div",df,[e[220]||(e[220]=l("div",{class:"form-label"},"选项",-1)),l("div",null,[e[219]||(e[219]=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)),(M(!0),X(Je,null,We(_.options,(p,se)=>(M(),X("div",{key:se,class:"option-item",style:{display:"flex","align-items":"center","margin-bottom":"10px"}},[v(N,{modelValue:p.text,"onUpdate:modelValue":Ce=>p.text=Ce,placeholder:"请输入选项内容",disabled:!0,style:{flex:"1","margin-right":"10px"}},null,8,["modelValue","onUpdate:modelValue"]),v(kn,{content:"设置为正确答案",placement:"top",effect:"light",disabled:!0},{default:y(()=>[l("div",{onClick:()=>{_.question_form===1||_.question_form===3?_.options.forEach((Ce,Dl)=>{Ce.is_correct=Dl===se}):p.is_correct=!p.is_correct},style:{cursor:"pointer",width:"80px","text-align":"center"}},[_.question_form===1||_.question_form===3?(M(),Ae(co,{key:0,disabled:!0,modelValue:p.is_correct,"onUpdate:modelValue":Ce=>p.is_correct=Ce,label:!0},null,8,["modelValue","onUpdate:modelValue"])):(M(),Ae(Ht,{key:1,disabled:!0,modelValue:p.is_correct,"onUpdate:modelValue":Ce=>p.is_correct=Ce},null,8,["modelValue","onUpdate:modelValue"]))],8,uf)]),_:2},1024)]))),128))]),e[221]||(e[221]=l("div",{class:"form-tip"},"添加选项并设置正确答案,单选题只能有一个正确答案,多选题可以有多个正确答案",-1))])):we("",!0),_.question_form==6?(M(),X("div",cf,[e[222]||(e[222]=l("div",{class:"form-label"},"填空答案模板",-1)),v(ds,{"model-value":_.blank_answer_template||[],question:_.content,readonly:!0},null,8,["model-value","question"])])):we("",!0),_.question_form===3?(M(),X("div",ff,[e[223]||(e[223]=l("div",{class:"form-label"},"题目图片",-1)),l("img",{src:_.question_image_url,alt:""},null,8,vf)])):we("",!0),l("div",pf,[e[224]||(e[224]=l("div",{class:"form-label"},"分类",-1)),v(re,{modelValue:_.category,"onUpdate:modelValue":e[44]||(e[44]=p=>_.category=p),placeholder:"请选择题目分类",class:"full-width",disabled:!0},{default:y(()=>[(M(!0),X(Je,null,We($e.value,p=>(M(),Ae(z,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[225]||(e[225]=l("div",{class:"form-tip"},"选择题目所属分类",-1))]),l("div",mf,[e[226]||(e[226]=l("div",{class:"form-label"},"标签",-1)),v(re,{modelValue:_.tags,"onUpdate:modelValue":e[45]||(e[45]=p=>_.tags=p),placeholder:"请选择标签",class:"full-width",multiple:"",disabled:!0},{default:y(()=>[(M(!0),X(Je,null,We(He.value,p=>(M(),Ae(z,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[227]||(e[227]=l("div",{class:"form-tip"},"选择题目相关标签,可多选",-1))]),l("div",gf,[e[228]||(e[228]=l("div",{class:"form-label"},"建议时长(秒)",-1)),v(st,{modelValue:_.suggestedDuration,"onUpdate:modelValue":e[46]||(e[46]=p=>_.suggestedDuration=p),min:0,step:1,"controls-position":"right",placeholder:"请输入建议回答时长",class:"full-width",disabled:!0},null,8,["modelValue"]),e[229]||(e[229]=l("div",{class:"form-tip"},"建议回答题目的时长,单位为秒",-1))]),l("div",hf,[e[230]||(e[230]=l("div",{class:"form-label"},"评价标准",-1)),v(N,{modelValue:_.scoring_reference,"onUpdate:modelValue":e[47]||(e[47]=p=>_.scoring_reference=p),type:"textarea",disabled:!0,rows:"4",placeholder:"评分标准说明,例如:【团队协作能力】1.优秀:xxxxxx。2.xxxx。3.一般:xxxxx。",class:"full-width"},null,8,["modelValue"]),e[231]||(e[231]=l("div",{class:"form-tip"},"评分标准说明,例如:【团队协作能力】1.优秀:xxxxxx。2.xxxx。3.一般:xxxxx。",-1))])])]),_:1},8,["modelValue"]),v(Ct,{title:"选择题目",modelValue:Tn.value,"onUpdate:modelValue":e[49]||(e[49]=p=>Tn.value=p),width:"30%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:y(()=>[l("span",If,[v(x,{onClick:Lr},{default:y(()=>e[233]||(e[233]=[U("取消")])),_:1}),v(x,{type:"primary",onClick:Qr,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:y(()=>e[234]||(e[234]=[U("确定")])),_:1})])]),default:y(()=>[l("div",bf,[v(Cl,{ref:"treeRef",data:Yi.value,"node-key":"id",props:bl,"default-expand-all":"","highlight-current":"",onNodeClick:Sl},{default:y(({node:p,data:se})=>[l("div",Sf,[l("div",Ef,[v(V,null,{default:y(()=>[v(Il)]),_:1}),l("span",xf,de(se.title),1)])])]),_:1},8,["data"])])]),_:1},8,["modelValue"]),v(Ct,{title:"创建自定义题目",modelValue:ao.value,"onUpdate:modelValue":e[51]||(e[51]=p=>ao.value=p),width:"40%","close-on-click-modal":!1,class:"question-bank-form-dialog","before-close":ki},{default:y(()=>[v(ql,{modelValue:Mo.value,"onUpdate:modelValue":e[50]||(e[50]=p=>Mo.value=p),"is-edit":Gi.value,onSubmit:Ma,onCancel:ki},null,8,["modelValue","is-edit"])]),_:1},8,["modelValue"]),v(Ct,{title:"资料收集",modelValue:je.value,"onUpdate:modelValue":e[55]||(e[55]=p=>je.value=p),width:"900px","close-on-click-modal":!1,class:"data-collection-dialog"},{footer:y(()=>[l("span",Gf,[v(x,{onClick:Ba},{default:y(()=>e[244]||(e[244]=[U("取消")])),_:1}),v(x,{type:"primary",onClick:Gr},{default:y(()=>e[245]||(e[245]=[U("确认")])),_:1})])]),default:y(()=>[l("div",Cf,[l("div",Af,[e[243]||(e[243]=l("div",{class:"panel-header"},[l("h3",null,"字段显示配置")],-1)),l("div",wf,[e[238]||(e[238]=l("div",{class:"section-title"},"基本信息",-1)),v(Yt,{gutter:20},{default:y(()=>[(M(!0),X(Je,null,We(zr(),(p,se)=>(M(),Ae(Gt,{span:8,key:se},{default:y(()=>[l("div",Of,[l("span",Tf,de(p.label),1),v(kn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[v(nt,{modelValue:p.visible,"onUpdate:modelValue":Ce=>p.visible=Ce,disabled:p.label=="姓名"||p.label=="手机号"||p.label=="身份证号",class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),e[239]||(e[239]=l("div",{class:"section-title"},"家庭成员信息",-1)),v(Yt,{gutter:20},{default:y(()=>[v(Gt,{span:24},{default:y(()=>[l("div",Df,[l("span",Pf,[U(de(G.family_member.label)+" ",1),G.family_member.visible?(M(),Ae(Vt,{key:0,size:"small",type:"success"},{default:y(()=>e[235]||(e[235]=[U("已启用")])),_:1})):we("",!0)]),v(nt,{modelValue:G.family_member.visible,"onUpdate:modelValue":e[52]||(e[52]=p=>G.family_member.visible=p),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),G.family_member.visible?(M(),Ae(Yt,{key:0,gutter:20},{default:y(()=>[(M(!0),X(Je,null,We(G.family_member.fields,(p,se)=>(M(),Ae(Gt,{span:8,key:se},{default:y(()=>[l("div",Vf,[l("span",Rf,de(p.label),1),v(kn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[v(nt,{modelValue:p.visible,"onUpdate:modelValue":Ce=>p.visible=Ce,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):we("",!0),e[240]||(e[240]=l("div",{class:"section-title"},"教育经历",-1)),v(Yt,{gutter:20},{default:y(()=>[v(Gt,{span:24},{default:y(()=>[l("div",Uf,[l("span",kf,[U(de(G.education.label)+" ",1),G.education.visible?(M(),Ae(Vt,{key:0,size:"small",type:"success"},{default:y(()=>e[236]||(e[236]=[U("已启用")])),_:1})):we("",!0)]),v(nt,{modelValue:G.education.visible,"onUpdate:modelValue":e[53]||(e[53]=p=>G.education.visible=p),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),G.education.visible?(M(),Ae(Yt,{key:1,gutter:20},{default:y(()=>[(M(!0),X(Je,null,We(G.education.fields,(p,se)=>(M(),Ae(Gt,{span:8,key:se},{default:y(()=>[l("div",Kf,[l("span",Mf,de(p.label),1),v(kn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[v(nt,{modelValue:p.visible,"onUpdate:modelValue":Ce=>p.visible=Ce,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):we("",!0),e[241]||(e[241]=l("div",{class:"section-title"},"专业技能",-1)),v(Yt,{gutter:20},{default:y(()=>[(M(!0),X(Je,null,We($r(),(p,se)=>(M(),Ae(Gt,{span:8,key:se},{default:y(()=>[l("div",Bf,[l("span",Nf,de(p.label),1),v(kn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[v(nt,{modelValue:p.visible,"onUpdate:modelValue":Ce=>p.visible=Ce,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1}),e[242]||(e[242]=l("div",{class:"section-title"},"工作经历",-1)),v(Yt,{gutter:20},{default:y(()=>[v(Gt,{span:24},{default:y(()=>[l("div",Ff,[l("span",jf,[U(de(G.work_experience.label)+" ",1),G.work_experience.visible?(M(),Ae(Vt,{key:0,size:"small",type:"success"},{default:y(()=>e[237]||(e[237]=[U("已启用")])),_:1})):we("",!0)]),v(nt,{modelValue:G.work_experience.visible,"onUpdate:modelValue":e[54]||(e[54]=p=>G.work_experience.visible=p),class:"custom-switch"},null,8,["modelValue"])])]),_:1})]),_:1}),G.work_experience.visible?(M(),Ae(Yt,{key:2,gutter:20},{default:y(()=>[(M(!0),X(Je,null,We(G.work_experience.fields,(p,se)=>(M(),Ae(Gt,{span:8,key:se},{default:y(()=>[l("div",Lf,[l("span",Qf,de(p.label),1),v(kn,{content:"切换显示/隐藏",placement:"top"},{default:y(()=>[v(nt,{modelValue:p.visible,"onUpdate:modelValue":Ce=>p.visible=Ce,class:"custom-switch"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])]),_:2},1024))),128))]),_:1})):we("",!0)])])])]),_:1},8,["modelValue"]),v(Ct,{title:"简历收集",modelValue:yt.value,"onUpdate:modelValue":e[57]||(e[57]=p=>yt.value=p),width:"500px","close-on-click-modal":!1,class:"resume-collection-dialog"},{footer:y(()=>[l("span",Jf,[v(x,{onClick:Ye},{default:y(()=>e[247]||(e[247]=[U("取消")])),_:1}),v(x,{type:"primary",onClick:Xe},{default:y(()=>e[248]||(e[248]=[U("确认")])),_:1})])]),default:y(()=>[l("div",zf,[l("div",$f,[e[246]||(e[246]=l("div",{class:"form-label"},"步骤名称",-1)),v(N,{modelValue:xt.title,"onUpdate:modelValue":e[56]||(e[56]=p=>xt.title=p),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":"",disabled:!0},null,8,["modelValue"])])])]),_:1},8,["modelValue"]),v(Ct,{title:"添加代码笔试步骤",modelValue:zn.value,"onUpdate:modelValue":e[60]||(e[60]=p=>zn.value=p),width:"500px","close-on-click-modal":!1,class:"code-test-dialog"},{footer:y(()=>[l("span",av,[v(x,{onClick:Ni},{default:y(()=>e[257]||(e[257]=[U("取消")])),_:1}),v(x,{type:"primary",onClick:ja},{default:y(()=>e[258]||(e[258]=[U("确认")])),_:1})])]),default:y(()=>[l("div",Wf,[l("div",Hf,[e[249]||(e[249]=l("div",{class:"form-label"},"步骤名称",-1)),v(N,{modelValue:it.title,"onUpdate:modelValue":e[58]||(e[58]=p=>it.title=p),placeholder:"请输入步骤名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])]),l("div",Yf,[e[250]||(e[250]=l("div",{class:"form-label"},"自动评判试卷",-1)),v(nt,{modelValue:it.autoJudge,"onUpdate:modelValue":e[59]||(e[59]=p=>it.autoJudge=p)},null,8,["modelValue"]),l("span",Xf,de(it.autoJudge?"开启":"关闭"),1)]),l("div",Zf,[e[256]||(e[256]=l("div",{class:"form-label"},"添加考试试卷",-1)),l("div",qf,[it.selectedPaper?(M(),X("div",ev,[l("div",tv,[l("div",nv,de(it.selectedPaper.title),1),l("div",ov,[l("span",null,de(it.selectedPaper.questionCount)+"道题",1),l("span",null,de(it.selectedPaper.duration)+"分钟",1),l("span",null,de(it.selectedPaper.difficulty),1)])]),l("div",iv,[v(x,{type:"text",onClick:Qa},{default:y(()=>e[253]||(e[253]=[U("查看")])),_:1}),v(x,{type:"text",onClick:Ga},{default:y(()=>e[254]||(e[254]=[U("更换")])),_:1}),v(x,{type:"text",onClick:za},{default:y(()=>e[255]||(e[255]=[U("删除")])),_:1})])])):(M(),X("div",_f,[v(x,{type:"primary",plain:"",onClick:La},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(yn))]),_:1}),e[251]||(e[251]=U(" 添加考卷 "))]),_:1}),e[252]||(e[252]=l("p",{class:"tip-text"},"多选时,考生会随机分配到一套试卷",-1))]))])])])]),_:1},8,["modelValue"]),v(Ee(ci),{title:"添加打字测试步骤",modelValue:$n.value,"onUpdate:modelValue":e[68]||(e[68]=p=>$n.value=p),size:"60%","close-on-click-modal":!1,class:"typing-test-dialog","destroy-on-close":!1},{footer:y(()=>[l("span",bv,[v(x,{onClick:Fi},{default:y(()=>e[275]||(e[275]=[U("取消")])),_:1}),v(x,{type:"primary",onClick:$a},{default:y(()=>e[276]||(e[276]=[U("保存")])),_:1})])]),default:y(()=>[l("div",rv,[l("div",lv,[e[260]||(e[260]=l("div",{class:"form-label"},"选择文章",-1)),l("div",sv,[v(x,{type:"primary",size:"small",class:"add-article-btn"},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(yn))]),_:1}),e[259]||(e[259]=U(" 添加文章 "))]),_:1})])]),l("div",dv,[e[263]||(e[263]=l("div",{class:"form-label"},"候选人选择文章方式",-1)),v(Al,{modelValue:tt.selectionMode,"onUpdate:modelValue":e[61]||(e[61]=p=>tt.selectionMode=p)},{default:y(()=>[v(co,{label:"random"},{default:y(()=>e[261]||(e[261]=[U("随机抽取")])),_:1}),v(co,{label:"self"},{default:y(()=>e[262]||(e[262]=[U("候选人自主选择")])),_:1})]),_:1},8,["modelValue"])]),l("div",uv,[e[265]||(e[265]=l("div",{class:"form-label"},"测试时间",-1)),l("div",cv,[v(N,{modelValue:tt.duration,"onUpdate:modelValue":e[62]||(e[62]=p=>tt.duration=p),class:"time-input"},null,8,["modelValue"]),e[264]||(e[264]=l("span",{class:"time-unit"},"分钟",-1))])]),l("div",fv,[e[267]||(e[267]=l("div",{class:"form-label"},"登录界面预览图(建议尺寸1024*768像素,最大不要超过5M)",-1)),v(Xi,{class:"preview-uploader",action:"#","auto-upload":!1,"show-file-list":!1,accept:"image/*"},{default:y(()=>[l("div",vv,[v(V,null,{default:y(()=>[v(Ee(yn))]),_:1}),e[266]||(e[266]=l("div",{class:"upload-text"},"添加图片",-1))])]),_:1})]),l("div",pv,[e[268]||(e[268]=l("div",{class:"form-label"},"注意事项内容(在登录界面显示)",-1)),v(N,{modelValue:tt.notes,"onUpdate:modelValue":e[63]||(e[63]=p=>tt.notes=p),type:"textarea",rows:"4",placeholder:"请输入注意事项内容",maxlength:"300","show-word-limit":""},null,8,["modelValue"])]),l("div",mv,[e[269]||(e[269]=l("div",{class:"form-label"},"测试页面标题",-1)),v(N,{modelValue:tt.pageTitle,"onUpdate:modelValue":e[64]||(e[64]=p=>tt.pageTitle=p),placeholder:"测试页面标题"},null,8,["modelValue"])]),l("div",gv,[e[271]||(e[271]=l("div",{class:"form-label"},"视频监控",-1)),v(Ht,{modelValue:tt.videoMonitoring,"onUpdate:modelValue":e[65]||(e[65]=p=>tt.videoMonitoring=p)},{default:y(()=>e[270]||(e[270]=[U("视频监控")])),_:1},8,["modelValue"])]),l("div",hv,[e[274]||(e[274]=l("div",{class:"form-label"},"通过标准",-1)),l("div",yv,[v(Ht,{modelValue:tt.passCriteria.speed,"onUpdate:modelValue":e[66]||(e[66]=p=>tt.passCriteria.speed=p)},{default:y(()=>e[272]||(e[272]=[U("速度")])),_:1},8,["modelValue"]),v(Ht,{modelValue:tt.passCriteria.accuracy,"onUpdate:modelValue":e[67]||(e[67]=p=>tt.passCriteria.accuracy=p)},{default:y(()=>e[273]||(e[273]=[U("正确率")])),_:1},8,["modelValue"])])])])]),_:1},8,["modelValue"]),v(Ct,{title:"面试设置",modelValue:ro.value,"onUpdate:modelValue":e[77]||(e[77]=p=>ro.value=p),width:"60%","close-on-click-modal":!1,class:"interview-settings-dialog"},{footer:y(()=>[l("span",Hv,[v(x,{onClick:Jr},{default:y(()=>e[295]||(e[295]=[U("取消")])),_:1}),v(x,{type:"primary",onClick:Wr},{default:y(()=>e[296]||(e[296]=[U("完成")])),_:1})])]),default:y(()=>[l("div",Sv,[l("div",Ev,[e[282]||(e[282]=l("div",{class:"section-header"},[l("span",{class:"section-title"},"防作弊设置")],-1)),l("div",xv,[e[277]||(e[277]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「人脸一致性检测」"),l("p",{class:"setting-desc"},"选取后,将会在候选人离开前置摄像头时进行提示,默认开启")],-1)),v(nt,{modelValue:Le.faceConsistency,"onUpdate:modelValue":e[69]||(e[69]=p=>Le.faceConsistency=p),disabled:!0},null,8,["modelValue"])]),l("div",Iv,[e[278]||(e[278]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 防截屏 / 录屏 」"),l("p",{class:"setting-desc"},"选取后,将会在候选人截屏或录屏时进行提示,为防止泄题,默认开启")],-1)),v(nt,{modelValue:Le.preventScreenshot,"onUpdate:modelValue":e[70]||(e[70]=p=>Le.preventScreenshot=p),disabled:!0},null,8,["modelValue"])]),l("div",Cv,[e[280]||(e[280]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「 切 屏 预 制 」"),l("p",{class:"setting-desc"},"选取后,将会在候选人切屏时进行提示,为防止作弊,默认开启")],-1)),v(nt,{modelValue:Le.screenSwitchAlert,"onUpdate:modelValue":e[71]||(e[71]=p=>Le.screenSwitchAlert=p),disabled:!0},{default:y(()=>e[279]||(e[279]=[l("span",{class:"switch-desc"},"切屏超过 2 次关闭,作废本关面试",-1)])),_:1},8,["modelValue"])]),l("div",Av,[e[281]||(e[281]=l("div",{class:"setting-info"},[l("span",{class:"setting-name"},"「情绪/眼动检测」"),l("p",{class:"setting-desc"},"该现已,将对候选人整场面试的情绪与压力表现进行分析,建议开启")],-1)),v(nt,{modelValue:Le.positionDetection,"onUpdate:modelValue":e[72]||(e[72]=p=>Le.positionDetection=p)},null,8,["modelValue"])])]),l("div",wv,[e[294]||(e[294]=l("div",{class:"section-header"},[l("span",{class:"section-title"},"其他设置")],-1)),l("div",Ov,[l("div",Tv,[e[284]||(e[284]=l("span",{class:"setting-name"},"重复面试",-1)),l("div",Dv,[e[283]||(e[283]=l("p",{class:"setting-desc",style:{}},"选取后,将允许面试者进行重复面试",-1)),v(nt,{modelValue:Le.reviewInterview,"onUpdate:modelValue":e[73]||(e[73]=p=>Le.reviewInterview=p)},null,8,["modelValue"])])])]),l("div",Pv,[l("div",Vv,[e[287]||(e[287]=l("span",{class:"setting-name"},"开场词",-1)),Dn.value?(M(),X("div",kv,[v(N,{modelValue:on.value,"onUpdate:modelValue":e[74]||(e[74]=p=>on.value=p),type:"textarea",rows:"5",maxlength:"150",placeholder:"请输入开始前提示内容","show-word-limit":""},null,8,["modelValue"]),l("div",Kv,[v(x,{size:"small",onClick:Xr},{default:y(()=>e[285]||(e[285]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:Zr},{default:y(()=>e[286]||(e[286]=[U("保存")])),_:1})])])):(M(),X("div",Rv,[l("p",Uv,de(Le.beforeStartText),1),v(x,{type:"text",class:"edit-desc-btn",onClick:Yr},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1})]))])]),l("div",Mv,[l("div",Bv,[e[290]||(e[290]=l("span",{class:"setting-name"},"开始后提醒",-1)),lo.value?(M(),X("div",jv,[v(N,{modelValue:Pn.value,"onUpdate:modelValue":e[75]||(e[75]=p=>Pn.value=p),type:"textarea",rows:"2",placeholder:"请输入开始后提醒内容",maxlength:"100","show-word-limit":""},null,8,["modelValue"]),l("div",Lv,[v(x,{size:"small",onClick:_r},{default:y(()=>e[288]||(e[288]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:el},{default:y(()=>e[289]||(e[289]=[U("保存")])),_:1})])])):(M(),X("div",Nv,[l("p",Fv,de(Le.afterStartText),1),v(x,{type:"text",class:"edit-desc-btn",onClick:qr},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1})]))])]),l("div",Qv,[l("div",Gv,[e[293]||(e[293]=l("span",{class:"setting-name"},"结束语",-1)),so.value?(M(),X("div",Jv,[v(N,{modelValue:Vn.value,"onUpdate:modelValue":e[76]||(e[76]=p=>Vn.value=p),type:"textarea",rows:"2",placeholder:"请输入免责声明内容",maxlength:"200","show-word-limit":""},null,8,["modelValue"]),l("div",Wv,[v(x,{size:"small",onClick:nl},{default:y(()=>e[291]||(e[291]=[U("取消")])),_:1}),v(x,{size:"small",type:"primary",onClick:ol},{default:y(()=>e[292]||(e[292]=[U("保存")])),_:1})])])):(M(),X("div",zv,[l("p",$v,de(Le.disclaimerText),1),v(x,{type:"text",class:"edit-desc-btn",onClick:tl},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(gt))]),_:1})]),_:1})]))])])])])]),_:1},8,["modelValue"]),v(Ct,{title:"选择题目",modelValue:h.value,"onUpdate:modelValue":e[82]||(e[82]=p=>h.value=p),width:"70%","close-on-click-modal":!1,class:"question-select-dialog"},{footer:y(()=>[l("span",tp,[v(x,{onClick:F},{default:y(()=>e[297]||(e[297]=[U("预览已选")])),_:1}),v(x,{type:"primary",onClick:E,style:{"background-color":"#ed7d31","border-color":"#ed7d31"}},{default:y(()=>e[298]||(e[298]=[U("确定")])),_:1})])]),default:y(()=>[l("div",Yv,[v(Yt,{class:"document-el-row"},{default:y(()=>[v(Gt,{span:3},{default:y(()=>[l("div",Xv,[v(cs,{ref_key:"treeListRef",ref:pl,treeData:Hi.value,onTreeClick:ml,onUpdateDocument:gl,onDeleteDocument:hl},null,8,["treeData"])])]),_:1}),v(Gt,{span:21},{default:y(()=>[l("div",Zv,[l("div",qv,[v(N,{modelValue:io.value,"onUpdate:modelValue":e[78]||(e[78]=p=>io.value=p),placeholder:"请输入关键词搜索题目",clearable:"",onClear:Bo,onKeyup:Fl(Bo,["enter"]),style:{width:"300px","margin-right":"10px"}},{append:y(()=>[v(x,{onClick:Bo},{default:y(()=>[v(V,null,{default:y(()=>[v(Ee(Yl))]),_:1})]),_:1})]),_:1},8,["modelValue"]),v(re,{modelValue:lt.question_form,"onUpdate:modelValue":e[79]||(e[79]=p=>lt.question_form=p),placeholder:"题目类型",clearable:"",onChange:Bo,style:{width:"120px"}},{default:y(()=>[v(z,{label:"开放问题",value:0}),v(z,{label:"单选题",value:1}),v(z,{label:"多选题",value:2}),v(z,{label:"看图选答案",value:3}),v(z,{label:"得分题",value:4}),v(z,{label:"追加型开放问题",value:5}),v(z,{label:"填空题",value:6})]),_:1},8,["modelValue"])])]),l("div",_v,[v(Zi,{data:rt.value,style:{width:"100%"},onSelectionChange:jr},{default:y(()=>[v(Fo,{type:"selection",width:"55"}),v(Fo,{prop:"question",label:"题目标题"}),v(Fo,{prop:"question_form_name",label:"题目类型",width:"100"})]),_:1},8,["data"]),l("div",ep,[v(wl,{"current-page":lt.page,"onUpdate:currentPage":e[80]||(e[80]=p=>lt.page=p),"page-size":lt.pageSize,"onUpdate:pageSize":e[81]||(e[81]=p=>lt.pageSize=p),total:jt.value,"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",onSizeChange:b,onCurrentChange:S},null,8,["current-page","page-size","total"])])])]),_:1})]),_:1})])]),_:1},8,["modelValue"]),v(Ct,{title:uo.value>=0?"编辑候选人提问环节":"配置候选人提问环节",modelValue:Un.value,"onUpdate:modelValue":e[86]||(e[86]=p=>Un.value=p),width:"600px","close-on-click-modal":!1,class:"candidate-questions-dialog"},{footer:y(()=>[l("span",rp,[v(x,{onClick:ue},{default:y(()=>e[305]||(e[305]=[U("取消")])),_:1}),v(x,{type:"primary",onClick:oe},{default:y(()=>e[306]||(e[306]=[U("确认")])),_:1})])]),default:y(()=>[l("div",np,[l("div",op,[e[299]||(e[299]=l("div",{class:"form-label"},[U(" 环节名称"),l("span",{class:"required"},"*")],-1)),v(N,{modelValue:Ve.title,"onUpdate:modelValue":e[83]||(e[83]=p=>Ve.title=p),placeholder:"请输入环节名称",maxlength:"30","show-word-limit":""},null,8,["modelValue"])]),l("div",ip,[e[300]||(e[300]=l("div",{class:"form-label"},[U(" 提问时长"),l("span",{class:"required"},"*")],-1)),v(st,{modelValue:Ve.duration,"onUpdate:modelValue":e[84]||(e[84]=p=>Ve.duration=p),min:1,max:30,step:1,"controls-position":"right",style:{width:"200px"}},null,8,["modelValue"]),e[301]||(e[301]=l("span",{class:"form-unit"},"分钟",-1)),e[302]||(e[302]=l("div",{class:"form-tip"},"候选人可用于提问的总时长",-1))]),l("div",ap,[e[303]||(e[303]=l("div",{class:"form-label"},"环节描述",-1)),v(N,{modelValue:Ve.description,"onUpdate:modelValue":e[85]||(e[85]=p=>Ve.description=p),type:"textarea",rows:"3",placeholder:"请输入环节描述",maxlength:"200"},null,8,["modelValue"]),e[304]||(e[304]=l("div",{class:"form-tip"},"向候选人说明此环节的目的和意义",-1))])])]),_:1},8,["title","modelValue"]),v(Ct,{modelValue:No.value,"onUpdate:modelValue":e[90]||(e[90]=p=>No.value=p),title:"肢体检测配置",width:"600px","close-on-click-modal":!1},{footer:y(()=>[l("span",lp,[v(x,{onClick:fl,size:"small"},{default:y(()=>e[311]||(e[311]=[U("取消")])),_:1}),v(x,{type:"primary",onClick:vl,size:"small"},{default:y(()=>e[312]||(e[312]=[U("确定")])),_:1})])]),default:y(()=>[v(Tl,{model:an.value,"label-width":"120px"},{default:y(()=>[v(di,{label:"检测时长"},{default:y(()=>[v(st,{modelValue:an.value.duration,"onUpdate:modelValue":e[87]||(e[87]=p=>an.value.duration=p),min:1,max:30,step:1,"controls-position":"right"},null,8,["modelValue"]),e[307]||(e[307]=U(" 分钟 "))]),_:1}),v(di,{label:"检测项目"},{default:y(()=>[v(Ol,{modelValue:an.value.detectionItems,"onUpdate:modelValue":e[88]||(e[88]=p=>an.value.detectionItems=p)},{default:y(()=>[v(Ht,{label:"face"},{default:y(()=>e[308]||(e[308]=[U("面部表情")])),_:1}),v(Ht,{label:"pose"},{default:y(()=>e[309]||(e[309]=[U("肢体姿态")])),_:1}),v(Ht,{label:"gesture"},{default:y(()=>e[310]||(e[310]=[U("手势动作")])),_:1})]),_:1},8,["modelValue"])]),_:1}),v(di,{label:"提示文本"},{default:y(()=>[v(N,{modelValue:an.value.promptText,"onUpdate:modelValue":e[89]||(e[89]=p=>an.value.promptText=p),type:"textarea",rows:3,placeholder:"请输入提示文本"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),v(Ct,{modelValue:B.value,"onUpdate:modelValue":e[92]||(e[92]=p=>B.value=p),title:"职位问题预览",width:"60%","close-on-click-modal":!1},{default:y(()=>[l("div",sp,[l("div",dp,"已绑定的问题("+de(R.value.length)+"):",1),v(Zi,{data:R.value,style:{width:"100%"}},{default:y(()=>[v(Fo,{prop:"question",label:"问题内容","min-width":"300","show-overflow-tooltip":""})]),_:1},8,["data"])]),l("div",up,[v(x,{type:"primary",onClick:e[91]||(e[91]=p=>B.value=!1)},{default:y(()=>e[313]||(e[313]=[U("关闭")])),_:1})])]),_:1},8,["modelValue"])])}}}),Ip=fs(cp,[["__scopeId","data-v-08df5e94"]]);export{Ip as default};
|