@polyv/iar-questionnaire-ui 2.7.0-rc-20260716.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36901,8 +36901,8 @@ const Zq = Rq.exports;
36901
36901
  console.log(
36902
36902
  "%c@polyv/iar-questionnaire-ui",
36903
36903
  "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
36904
- "[version: 2.7.0-rc-20260716.1]",
36905
- "[buildTime: 2026-07-16 06:02:57]"
36904
+ "[version: 2.7.0]",
36905
+ "[buildTime: 2026-07-17 02:01:27]"
36906
36906
  );
36907
36907
  export {
36908
36908
  Zq as default
@@ -1286,4 +1286,4 @@ ${Kn(t)}`),i}})}function r3(e){const r=Object.keys(e),t=r.filter(n=>{var o;retur
1286
1286
  effect: tooltipEffect,
1287
1287
  popperOffset: tooltipOffset,
1288
1288
  tooltipClass: 'pwc-menu-item__tooltip',
1289
- }`}],staticClass:"pwc-menu-item__content",class:{"is-active":t.isActive&&!t.menuItemProps.iconMode,"is-icon-mode":t.menuItemProps.iconMode},on:{click:t.onClickItem}},[t.hasSlot("icon")||t.menuIcon?r("div",{staticClass:"pwc-menu-item__icon"},[t.hasSlot("icon")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("icon",{isActive:t.isActive})}})]:[r(t.menuIcon,{tag:"component"})]],2):e._e(),t.menuItemProps.iconMode?e._e():r("div",{directives:[{name:"show",rawName:"v-show",value:!t.menuProps.collapsed||t.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[t.hasSlot("title")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title")}})]:[e._v(" "+e._s(t.menuItemProps.title)+" ")]],2)])},LW=[],SW=j(CW,kW,LW);const PW=SW.exports,TW=c.defineComponent({__name:"menu-item",props:iW(),setup(e){const r=e,{receiveRouterSlotData:t}=yW({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:PW}}});var QW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.props.to?r("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(i){return[r("a",e._b({staticClass:"pwc-menu-item",attrs:{href:i.href}},"a",t.receiveRouterSlotData(i),!1),[r(t.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?r("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[r(t.MenuItemContent)],1):r("div",{staticClass:"pwc-menu-item"},[r(t.MenuItemContent)],1)},MW=[],EW=j(TW,QW,MW);const IW=EW.exports,AW={};var zW=function(){var e=this;return e._self._c,e._m(0)},DW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],RW=j(AW,zW,DW);const OW=RW.exports;ee("PwcMenu",cW),ee("PwcSubMenu",xW),ee("PwcMenuItem",IW),ee("PwcMenuDivider",OW);const VW=12,BW=16,Yn={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function Sf(e,r){const t=Yn[e];let i=BW;for(let n=0;n<r;n++)i+=t[n].height+VW;return i}function Pf(e){const r=Yn[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=Sf(e,t)}const Pa={add(e,r,t){const i=Yn[e],n=i.length,o={id:r,height:0,offsetRef:t};i.push(o),t.value=Sf(e,n)},updateHeight(e,r,t){const i=Yn[e].find(n=>n.id===r);i&&i.height!==t&&(i.height=t,Pf(e))},remove(e,r){const t=Yn[e],i=t.findIndex(n=>n.id===r);i!==-1&&(t.splice(i,1),Pf(e))}};let FW=0;const jW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=Ln(),n=++FW,o=c.ref(!1),a=c.ref(0);Pa.add(r,n,a);const{startTimeout:s,closeTimeout:l}=ei(()=>{u()},t);function p(){o.value=!0,t>0&&s()}function u(){o.value=!1,l()}function d(){Pa.remove(r,n),i()}function m(f){Pa.updateHeight(r,n,f)}return c.onBeforeUnmount(()=>{Pa.remove(r,n)}),{visible:o,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Et.Info);const NW=()=>X(R(R({},$s()),d2()),{trigger:w.oneOf(Uo).def("click"),placement:w.oneOf(Qi).def("top"),feedbackType:w.enum().def(Et.Warning),concise:w.bool.def(!1)}),UW=()=>X(R(R({},he()),Yu()),{show:Y(),hide:Y()}),WW=c.defineComponent({__name:"popconfirm",props:NW(),emits:UW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:n}=de(t),{buttonData:o,onClickConfirm:a,onClickCancel:s}=Ku({props:t,emit:r,afterConfirm:()=>{var m;(m=d.value)==null||m.hidePopper()},afterCancel:()=>{var m;(m=d.value)==null||m.hidePopper()}});function l(){i.value||n(!0),r("show")}function p(){i.value&&n(!1),r("hide")}const u=c.computed(()=>{if(!t.concise)return t.feedbackType}),d=c.ref();return{__sfc:!0,props:t,emit:r,modelValue:i,updateModelValue:n,buttonData:o,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:f2}}});var HW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":t.popoverFeedbackType},on:{show:t.onShow,hide:t.onHide},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[r("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),r("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[t.buttonData.showCancelButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickCancel}},"pwc-button",t.buttonData.cancelButtonProps,!1)):e._e(),t.buttonData.showConfirmButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickConfirm}},"pwc-button",t.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",t.props,!1))},qW=[],ZW=j(WW,HW,qW);const YW=ZW.exports;ee("PwcPopconfirm",YW);var at=(e=>(e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.TopLeft="top-left",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomRight="bottom-right",e))(at||{});function GW(e,r){const t=c.ref((()=>{try{const i=localStorage.getItem(e);if(i)return JSON.parse(i)}catch(i){}return r})());return c.watch(t,i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(n){}},{deep:!0}),t}const KW=()=>({width:w.number.def(0),height:w.number.def(0),minWidth:w.number.def(50),minHeight:w.number.def(50),maxWidth:w.number.def(1/0),maxHeight:w.number.def(1/0),disabled:w.bool.def(!1),handleSize:w.number.def(8),showHandles:w.oneOfType([Boolean,Array]).def(!0),storageKey:w.string.def("")}),XW=()=>({"resize-start":Y(),resize:Y(),"resize-end":Y()}),JW=e=>{const{props:r,emit:t}=e,i=c.ref(),n=c.ref(!1),o=c.ref(null),a=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:r.width,height:r.height},p=r.storageKey?GW(r.storageKey,l):c.ref(l),u=(y,k,C)=>Math.max(k,Math.min(C,y)),d=y=>({width:y.width===void 0?void 0:u(y.width,r.minWidth,r.maxWidth),height:y.height===void 0?void 0:u(y.height,r.minHeight,r.maxHeight)}),m=y=>{var C,P;const k=d(y);return{width:(C=k.width)!=null?C:p.value.width,height:(P=k.height)!=null?P:p.value.height}},f=y=>{p.value=m(y)},g=()=>({width:p.value.width,height:p.value.height}),v=c.computed(()=>{const y={};return(r.width||p.value.width)&&(y.width=p.value.width+"px"),(r.height||p.value.height)&&(y.height=p.value.height+"px"),y}),b=y=>r.showHandles===!1||Array.isArray(r.showHandles)&&!r.showHandles.includes(y)?!1:[at.Top,at.Bottom].includes(y)?!!r.height:[at.Left,at.Right].includes(y)?!!r.width:!!r.width&&!!r.height,h=(y,k)=>{r.disabled||(y.preventDefault(),y.stopPropagation(),n.value=!0,o.value=k,a.value={x:y.clientX,y:y.clientY},s.value=R({},p.value),t("resize-start",{width:p.value.width,height:p.value.height,direction:k,event:y}))},_=y=>{if(!n.value||!o.value)return;const k=y.clientX-a.value.x,C=y.clientY-a.value.y,P={};switch(o.value){case at.Right:P.width=s.value.width+k;break;case at.Bottom:P.height=s.value.height+C;break;case at.Left:P.width=s.value.width-k;break;case at.Top:P.height=s.value.height-C;break;case at.TopRight:P.width=s.value.width+k,P.height=s.value.height-C;break;case at.TopLeft:P.width=s.value.width-k,P.height=s.value.height-C;break;case at.BottomRight:P.width=s.value.width+k,P.height=s.value.height+C;break;case at.BottomLeft:P.width=s.value.width-k,P.height=s.value.height+C;break}const{width:L,height:T}=m(P);p.value={width:L,height:T},t("resize",{width:L,height:T,direction:o.value,event:y})},x=y=>{if(!n.value||!o.value)return;n.value=!1;const k=o.value;o.value=null,t("resize-end",{width:p.value.width,height:p.value.height,direction:k,event:y})};return c.onMounted(()=>{document.addEventListener("mousemove",_),document.addEventListener("mouseup",x)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",x)}),{boxStyle:v,containerRef:i,currentSize:p,isResizing:n,showHandleControl:b,handleMouseDown:h,setSize:f,getSize:g}};KW(),XW();const $W=()=>({title:w.looseString,titleTooltip:w.looseString}),eH=c.defineComponent({__name:"section",props:$W(),setup(e){const r=e,{hasSlot:t,slotRender:i}=xe(),n=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:n,PwcTooltip:Ho,renderSlot:dt}}});var tH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("section",{staticClass:"pwc-section"},[t.hasSlot("title")||e.title?r("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),t.hasTitleTooltip?[r(t.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([t.hasSlot("title-tooltip")?{key:"content",fn:function(){return[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),r("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},rH=[],iH=j(eH,tH,rH);const nH=iH.exports;ee("PwcSection",nH);const oH=()=>({[w.modelValueKey]:w.oneOfType([Number,Array]).def(0),min:w.number.def(0),max:w.number.def(100),disabled:w.bool.def(!1),showTooltip:w.bool.def(!1),range:w.bool.def(!1),step:w.number.def(1),showStops:w.bool.def(!1),showSliderButton:w.bool.def(!0),marks:w.object(),cssRotateAngle:w.oneOf([0,90,180,270]).def(0),progressBarVisible:w.bool.def(!0),hotAreaHeight:w.number.def(4),sliderBarHeight:w.looseNumber,sliderBarBg:w.string.def(""),buttonSize:w.number.def(14)}),aH=()=>X(R({},he()),{change:Y()}),Tf=Symbol("slider-inject-key"),sH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:n}=de(r,{outSideUpdate:()=>{P()}}),o=c.ref(0),a=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=Oe(p),d=c.ref(),m=c.ref(),f=c.ref(),g=c.computed(()=>Math.min(o.value,a.value)),v=c.computed(()=>Math.max(o.value,a.value)),b=c.computed(()=>r.range?`${100*(v.value-g.value)/(r.max-r.min)}%`:`${100*(o.value-r.min)/(r.max-r.min)}%`),h=c.computed(()=>r.range?`${100*(g.value-r.min)/(r.max-r.min)}%`:"0%"),_=c.computed(()=>X(R({},x.value),{width:b.value,left:h.value})),x=c.computed(()=>{const D={};return r.sliderBarHeight&&(D.height=`${r.sliderBarHeight}px`,D.borderRadius=`${r.sliderBarHeight/2}px`),D}),y=c.computed(()=>{const D=R({},x.value);return r.sliderBarBg&&(D.background=r.sliderBarBg),D}),k=c.computed(()=>{const D=[],A=r.max-r.min,E=M=>{D.includes(M)||D.push(M)};if(r.step&&r.showStops){const M=A/r.step,I=r.step/A;for(let V=1;V<M;V++){const O=Math.round(V*I*100);E(O)}}return r.marks&&Object.keys(r.marks).forEach(M=>{const I=Number(M);if(I>=r.min&&I<=r.max){const V=(I-r.min)/A,O=Math.round(V*100);E(O)}}),D}),C=c.computed(()=>{const D=[],A=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(E=>{const M=Number(E),I=r.marks[M];let V="",O={};if(typeof I=="string"?V=I:(V=I.label,O=I.style||{}),M>=r.min&&M<=r.max){const W=(M-r.min)/A,B=Math.round(W*100);D.push({label:V,style:O,left:B,value:M})}}),D});function P(){r.range?Array.isArray(i.value)?(o.value=Math.max(r.min,i.value[0]),a.value=Math.min(r.max,i.value[1])):(o.value=r.min,a.value=r.max):typeof i.value!="number"||isNaN(i.value)?o.value=r.min:o.value=Math.min(r.max,Math.max(r.min,i.value))}function L(){let D=i.value;r.range?D=[Math.floor(g.value),Math.floor(v.value)]:D=Math.floor(o.value),D!==i.value&&(l.value=i.value,n(D))}function T(){c.nextTick(()=>{t("change",r.range?[g.value,v.value]:i.value)})}function Q(D){var M;if(!r.range){(M=m.value)==null||M.setPosition(D);return}let A;const E=r.min+D*(r.max-r.min)/100;Math.abs(g.value-E)<Math.abs(v.value-E)?A=o.value<a.value?m.value:f.value:A=o.value>a.value?m.value:f.value,A==null||A.setPosition(D)}function S(D){var A,E;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const M=((A=d.value)==null?void 0:A.getBoundingClientRect().top)||0;Q((D.clientY-M)/u.value*100)}else{const M=((E=d.value)==null?void 0:E.getBoundingClientRect().left)||0;Q((D.clientX-M)/u.value*100)}T()}}function z(D){Q(D.left),T()}return c.onMounted(()=>{P()}),c.provide(Tf,{sliderProps:r,sliderWidth:u,dragging:s,emitChange:T}),{modelValue:i,firstValue:o,secondValue:a,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:y,stops:k,markList:C,onSliderClick:S,onClickMark:z,emitInnerInput:L}},Qf=()=>c.inject(Tf),lH=()=>({value:w.number}),cH=()=>({change:Y()}),pH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:n,emitChange:o}=Qf(),a=c.ref(!1),s=c.ref(!1),l=c.ref(!1),p=c.ref(0),u=c.ref(0),d=c.ref(null),m=c.computed(()=>`${(r.value-i.min)/(i.max-i.min)*100}%`),f=c.computed(()=>({left:m.value}));function g(L){let T,Q;switch("touches"in L?(T=L.touches[0].clientX,Q=L.touches[0].clientY):(T=L.clientX,Q=L.clientY),i.cssRotateAngle){case 90:return{clientX:Q,clientY:T};case 180:return{clientX:-T,clientY:-Q};case 270:return{clientX:-Q,clientY:T}}return{clientX:T,clientY:Q}}function v(){i.disabled||(a.value=!0)}function b(){i.disabled||(a.value=!1)}function h(L){if(i.disabled)return;s.value=!0,l.value=!0;const T=g(L);p.value=T.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!i.disabled&&s.value){l.value=!1;const T=(g(L).clientX-p.value)/n.value*100;d.value=u.value+T,P(d.value)}}function x(){i.disabled||ue||s.value&&setTimeout(()=>{s.value=!1,l.value||(P(d.value),o())},0)}function y(L){i.disabled||ue||(h(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",x),window.addEventListener("touchend",x),window.addEventListener("contextmenu",x))}function k(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",x),window.removeEventListener("touchend",x),window.removeEventListener("contextmenu",x)}c.onBeforeUnmount(()=>{k()});function C(L){let T=L;return i.step&&(T=Math.round(L/i.step)*i.step),T<i.min&&(T=i.min),T>i.max&&(T=i.max),T}function P(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const T=(i.max-i.min)*(L/100),Q=i.min+T;t("change",C(Q))}return{hovering:a,dragging:s,btnStyle:f,handleMouseEnter:v,handleMouseLeave:b,onButtonDown:y,setPosition:P}},uH={name:"PlvSliderButton"},dH=c.defineComponent(X(R({},uH),{props:lH(),emits:cH(),setup(e,{expose:r,emit:t}){const i=e,n=Qf(),{sliderProps:o}=n,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=pH({props:i,emit:t}),f=c.computed(()=>s.value||n.dragging.value||!1);return r({setPosition:m}),{__sfc:!0,props:i,emit:t,sliderInject:n,sliderProps:o,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var fH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider__button",style:t.btnStyle,on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown}},[r("div",{class:["pwc-slider__button__inner",t.hovering||t.dragging?"pwc-slider__button__inner--hover":"",t.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${t.sliderProps.buttonSize}px`,height:`${t.sliderProps.buttonSize}px`}})])},mH=[],hH=j(dH,fH,mH);const gH=hH.exports,vH=c.defineComponent({__name:"slider",props:oH(),emits:aH(),setup(e,{emit:r}){const t=e,{firstValue:i,secondValue:n,sliderRef:o,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:v}=sH({props:t,emit:r});function b(_){i.value=_,v()}function h(_){n.value=_,v()}return{__sfc:!0,props:t,emit:r,firstValue:i,secondValue:n,sliderRef:o,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:v,onFirstValueChange:b,onSecondValueChange:h,SliderButton:gH}}});var wH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider"},[r("div",{ref:"sliderRef",class:["pwc-slider__runway",t.props.disabled?"pwc-slider__runway--disabled":""],style:t.runwayStyle},[t.props.progressBarVisible?r("div",{staticClass:"pwc-slider__runway__bar",style:t.barStyle}):e._e(),r("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${t.props.hotAreaHeight}px`},on:{click:t.onSliderClick}}),e._l(t.stops,function(i){return r("div",{key:`dot-${i}`,staticClass:"pwc-slider__runway__dot",style:{left:`${i}%`}})}),t.props.showSliderButton?r(t.SliderButton,{ref:"button1Ref",attrs:{value:t.firstValue},on:{change:t.onFirstValueChange}}):e._e(),t.props.range&&t.props.showSliderButton?r(t.SliderButton,{ref:"button2Ref",attrs:{value:t.secondValue},on:{change:t.onSecondValueChange}}):e._e()],2),t.markList.length?r("div",{staticClass:"pwc-slider__marks"},e._l(t.markList,function(i,n){return r("div",{key:`mark-${n}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(o){return t.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},bH=[],_H=j(vH,wH,bH);const xH=_H.exports;ee("PwcSlider",xH);const yH=["horizontal","vertical"],CH=["mini","small","medium","large"],kH={mini:4,small:8,medium:16,large:24},LH=()=>({direction:w.oneOf(yH).def("horizontal"),size:w.oneOfType([w.oneOf(CH),Number]).def("small"),wrap:w.bool.def(!1)}),SH=c.defineComponent({__name:"space",props:LH(),setup(e){const r=e,t=c.computed(()=>[`is-${r.direction}`,{"is-wrap":r.wrap}]),i=c.computed(()=>({gap:`${typeof r.size=="number"?r.size:kH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var PH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-space",class:t.spaceClass,style:t.spaceStyle},[e._t("default")],2)},TH=[],QH=j(SH,PH,TH);const MH=QH.exports;ee("PwcSpace",MH);const EH=["horizontal","vertical"],IH=()=>({direction:w.oneOf(EH).def("horizontal"),lazy:w.bool.def(!1)}),AH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),Mf=Symbol("SPLITTER_INJECT_KEY"),zH=c.defineComponent({__name:"splitter",props:IH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),n=c.ref([]),{width:o,height:a}=Oe(t),s=c.computed(()=>r.direction==="horizontal"),l=()=>{if(!t.value||i.value.length===0)return;const C=s.value?t.value.clientWidth:t.value.clientHeight;let P=0;const L=i.value.map(S=>S.props.initialSize!==void 0?(P+=S.props.initialSize,!0):!1),T=L.filter(S=>!S).length,Q=T>0?(C-P)/T:0;n.value=i.value.map((S,z)=>L[z]?S.props.initialSize:Q)};c.watch(()=>{const C=s.value?o.value:a.value;return`${r.direction}-${C}`},(C,P)=>{const L=Number(C.split("-").pop()),T=P?Number(P.split("-").pop()):0;if(L===0)return;if(n.value.length===0||n.value.every(z=>z===0)){l();return}if(f.value||T===0||T===L)return;const Q=n.value.reduce((z,D)=>z+D,0);if(Q===0)return;const S=n.value.map(z=>z/Q);n.value=S.map((z,D)=>{var I,V;const A=i.value[D],E=(I=A==null?void 0:A.props.min)!=null?I:0,M=(V=A==null?void 0:A.props.max)!=null?V:1/0;return Math.max(E,Math.min(M,z*L))})});const p=C=>{i.value.push(C),c.nextTick(l)},u=C=>{const P=i.value.findIndex(L=>L.id===C);P>=0&&(i.value.splice(P,1),n.value.splice(P,1))},d=C=>{const P=i.value.findIndex(T=>T.id===C),L=n.value[P];return L===void 0?{}:s.value?{width:`${L}px`,flexShrink:"0"}:{height:`${L}px`,flexShrink:"0"}},m=C=>{var P;return((P=i.value[i.value.length-1])==null?void 0:P.id)===C},f=c.ref(!1),g=c.ref(""),v=c.ref(0),b=c.ref([]),h=c.ref([]),_=c.computed(()=>{var L,T;if(!f.value||!r.lazy)return-1;const C=i.value.findIndex(Q=>Q.id===g.value);if(C<0)return-1;let P=0;for(let Q=0;Q<=C;Q++)P+=(T=(L=h.value[Q])!=null?L:n.value[Q])!=null?T:0;return P}),x=(C,P)=>{P.preventDefault(),f.value=!0,g.value=C,v.value=s.value?P.clientX:P.clientY,b.value=[...n.value],h.value=[...n.value],document.addEventListener("mousemove",y),document.addEventListener("mouseup",k)},y=C=>{var V,O,W,B;if(!f.value)return;const P=(s.value?C.clientX:C.clientY)-v.value,L=i.value.findIndex(F=>F.id===g.value);if(L<0||L>=i.value.length-1)return;const T=i.value[L],Q=i.value[L+1],S=b.value[L]+b.value[L+1],z=(V=T.props.min)!=null?V:0,D=(O=T.props.max)!=null?O:1/0,A=(W=Q.props.min)!=null?W:0,E=(B=Q.props.max)!=null?B:1/0;let M=Math.max(z,Math.min(D,b.value[L]+P)),I=S-M;if(I<A&&(I=A,M=S-I),I>E&&(I=E,M=S-I),M=Math.max(z,Math.min(D,M)),r.lazy){const F=[...b.value];F[L]=M,F[L+1]=I,h.value=F}else{const F=[...n.value];F[L]=M,F[L+1]=I,n.value=F}},k=()=>{r.lazy&&(n.value=[...h.value]),f.value=!1,g.value="",document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)};return c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)}),c.provide(Mf,{direction:c.computed(()=>r.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:r,containerRef:t,panels:i,sizes:n,containerWidth:o,containerHeight:a,isHorizontal:s,initSizes:l,registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,isDragging:f,draggingId:g,startPos:v,startSizes:b,pendingSizes:h,lazyPreviewPos:_,onDividerMouseDown:x,onMouseMove:y,onMouseUp:k}}});var DH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"containerRef",staticClass:"pwc-splitter",class:[`pwc-splitter--${t.props.direction}`,{"is-dragging":t.isDragging}]},[e._t("default"),t.isDragging&&t.props.lazy&&t.lazyPreviewPos>=0?r("div",{staticClass:"pwc-splitter__lazy-preview",class:[`pwc-splitter__lazy-preview--${t.props.direction}`],style:t.isHorizontal?{left:`${t.lazyPreviewPos}px`}:{top:`${t.lazyPreviewPos}px`}}):e._e()],2)},RH=[],OH=j(zH,DH,RH);const VH=OH.exports,BH=c.defineComponent({__name:"splitter-panel",props:AH(),setup(e){const r=e,t=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(Mf),n=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),o=c.computed(()=>{var l;return(l=i==null?void 0:i.isLastPanel(t))!=null?l:!1}),a=c.computed(()=>{var l;return(l=i==null?void 0:i.getPanelStyle(t))!=null?l:{}}),s=l=>{i==null||i.onDividerMouseDown(t,l)};return c.onMounted(()=>{i==null||i.registerPanel({id:t,props:r})}),c.onBeforeUnmount(()=>{i==null||i.unregisterPanel(t)}),{__sfc:!0,props:r,panelId:t,splitter:i,direction:n,isLast:o,panelStyle:a,handleDividerMouseDown:s}}});var FH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-splitter-panel",style:t.panelStyle},[r("div",{staticClass:"pwc-splitter-panel__content"},[e._t("default")],2),t.isLast?e._e():r("div",{staticClass:"pwc-splitter__divider",class:[`pwc-splitter__divider--${t.direction}`],on:{mousedown:t.handleDividerMouseDown}},[r("span",{staticClass:"pwc-splitter__divider-bar"})])])},jH=[],NH=j(BH,FH,jH);const UH=NH.exports;ee("PwcSplitter",VH),ee("PwcSplitterPanel",UH);const WH=()=>({max:w.number.def(3)}),HH=()=>({label:w.looseString,disabled:w.bool.def(!1)}),qH=()=>({click:Y()}),Ef=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),ZH=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(Ef,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:uu,PwcDropdown:DD,PwcDropdownMenu:RD}}});var YH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[r(t.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[r(t.PwcButton,{attrs:{link:""}},[r("div",{staticClass:"pwc-table-operation-dropdown__icon"},[r(t.PwcIconMore)],1)])],1)},GH=[],KH=j(ZH,YH,GH);const XH=KH.exports;function JH(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function $H(e){const r=JH(e);return typeof r=="string"&&r.trim()===""}function eq(e){return!Ae.isCommentVNode(e)&&!$H(e)}const tq=c.defineComponent({props:WH(),setup(e){const r=c.useSlots(),t=c.inject(Ol,void 0),i=ar(8),n=c.ref();function o(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Oe(n,({width:a})=>{const s=o();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=o();a&&a.removeOperationWidthRecord(i)}),()=>{var m;let a=(m=r.default)==null?void 0:m.call(r);if(!a)return c.h("span",{},"-");a=a.filter(eq);let s=0;const l=[],p=[],u=a.length;u===0&&l.push(c.h("span",{},"-")),a.forEach(f=>{u<=e.max||s<e.max-1?(l.push(f),s++):p.push(f)}),p.length>0&&l.push(c.h(XH,{},vn()?{default:()=>p}:p));const d=["pwc-table-operation"];return u===0&&d.push("is-empty"),c.h("div",{class:d},[c.h("div",{class:"pwc-table-operation__content",ref:n},l)])}}}),rq=c.defineComponent({__name:"table-operation-item",props:HH(),emits:qH(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),n=c.inject(Ef,void 0);function o(s){t.disabled||r("click",s)}const a=c.computed(()=>"href"in i?"a":"div");return{__sfc:!0,props:t,emit:r,attrs:i,dropdownInject:n,onClickItem:o,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:OD}}});var iq=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.dropdownInject?r(t.PwcDropdownItem,{staticClass:"pwc-table-operation-item",attrs:{disabled:e.disabled,tag:t.dropdownItemTag},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):r(t.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:"",disabled:e.disabled},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},nq=[],oq=j(rq,iq,nq);const aq=oq.exports;ee("PwcTableOperation",tq),ee("PwcTableOperationItem",aq);const sq=["line","rounded","text"],lq=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(sq).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),cq=()=>X(R({},he()),{change:Y()}),pq=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),hc=Symbol("tabs-inject-key"),uq=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(hc),{$t:n}=oe(),o=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=tt();function p(){return K(this,null,function*(){if(yield c.nextTick(),!o.value||ue)return;const d=o.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;o.value.clientHeight>=m*1.5||o.value.scrollWidth>o.value.clientWidth?a.value=!0:a.value=!1})}c.watch(()=>r.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||i(d.getPaneName())}return{__sfc:!0,tabPanes:r,tabsProps:t,setCurrentTab:i,$t:n,listRef:o,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:dr,PwcIconUp:js,renderSlot:dt}}});var dq=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-nav",class:[`is-type-${t.tabsProps.type}`]},[r("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":t.tabsProps.expand&&!t.isExpanded}},e._l(t.tabPanes,function(i){return r("div",{key:i.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":i.getIsActive(),"is-disabled":i.paneProps.disabled},on:{click:function(n){return t.onClickItem(i)}}},[i.hasSlot("title")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":i.getTitleRenderSlot}}):r("span",[e._v(e._s(i.paneProps.title))]),i.hasSlot("extra")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":i.getExtraRenderSlot}}):e._e(),i.paneProps.extra?r("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(i.paneProps.extra)+" ")]):e._e()],1)}),0),r("div",{staticClass:"pwc-tab-nav__right"},[t.tabsProps.expand&&t.isMoreItem?r("div",{staticClass:"pwc-tab-nav__expand",on:{click:t.toggle}},[r("span",[e._v(e._s(t.isExpanded?t.$t("tabs.collapse"):t.$t("tabs.more")))]),t.isExpanded?r(t.PwcIconUp):r(t.PwcIconDown)],1):e._e()])])},fq=[],mq=j(uq,dq,fq);const hq=mq.exports,gq=c.defineComponent({__name:"tabs",props:lq(),emits:cq(),setup(e,{emit:r}){const t=e,i=c.ref(),n=c.ref(),{modelValue:o,updateModelValue:a}=de(t,{outSideUpdate:g=>{i.value=g}}),s=c.ref([]);function l(g){if(!s.value.includes(g)){if(typeof i.value>"u")if(typeof o.value>"u"){const v=g.getPaneName();u(v,!1)}else u(o.value,!1);s.value.push(g)}}function p(g){s.value=s.value.filter(v=>v!==g)}function u(g,v=!0){i.value!==g&&(i.value=g,a(g),v&&r("change",g))}const d=c.ref(0);function m(){return K(this,null,function*(){var b;yield c.nextTick();const g=((b=n.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let v=0;for(let h=0;h<g.length;h++)if(g[h].getAttribute("data-is-active")==="true"){v=h*100;break}d.value=v})}c.watch(()=>i.value,()=>{m()});const f={tabsProps:t,currentTab:i,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(hc,f),{__sfc:!0,props:t,emits:r,currentTab:i,tabsRef:n,modelValue:o,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:hq}}});var vq=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[r(t.TabNav),r("div",{staticClass:"pwc-tabs__content"},[r("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${t.offsetPercent}%`}},[e._t("default")],2)])],1)},wq=[],bq=j(gq,vq,wq);const _q=bq.exports,xq=c.defineComponent({__name:"tab-pane",props:pq(),setup(e){const r=e,t=ar(8),i=c.inject(hc),{hasSlot:n,slotRender:o}=xe(),a=c.computed(()=>r.name||t),s=c.computed(()=>i.currentTab.value===a.value);function l(){return o("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=r.lazyLoad)!=null?f:i.tabsProps.lazyLoad}),u=c.ref(!1);c.watch(s,()=>{s.value&&(u.value=!0)});const d=c.computed(()=>p.value?u.value:!0),m={paneId:t,paneProps:r,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:n,getTitleRenderSlot:l,getExtraRenderSlot:()=>o("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:r,paneId:t,tabsInject:i,hasSlot:n,slotRender:o,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var yq=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-pane",class:{"is-active":t.isActive},attrs:{"data-pane-name":t.tabPaneName,"data-is-active":t.isActive}},[t.canRender?r("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},Cq=[],kq=j(xq,yq,Cq);const Lq=kq.exports;ee("PwcTabs",_q),ee("PwcTabPane",Lq);var If={},Sq,Pq;function Tq(e,r,t,o){var n=0,o=o===void 0?{}:o,a=o.loop===void 0?null:o.loop,s=o.palette===void 0?null:o.palette;if(r<=0||t<=0||r>65535||t>65535)throw new Error("Width/Height invalid.");function l(b){var h=b.length;if(h<2||h>256||h&h-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return h}e[n++]=71,e[n++]=73,e[n++]=70,e[n++]=56,e[n++]=57,e[n++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,o.background!==void 0){if(u=o.background,u>=d)throw new Error("Background index out of range.");if(u===0)throw new Error("Background index explicitly passed as 0.")}}if(e[n++]=r&255,e[n++]=r>>8&255,e[n++]=t&255,e[n++]=t>>8&255,e[n++]=(s!==null?128:0)|p,e[n++]=u,e[n++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var g=s[m];e[n++]=g>>16&255,e[n++]=g>>8&255,e[n++]=g&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[n++]=33,e[n++]=255,e[n++]=11,e[n++]=78,e[n++]=69,e[n++]=84,e[n++]=83,e[n++]=67,e[n++]=65,e[n++]=80,e[n++]=69,e[n++]=50,e[n++]=46,e[n++]=48,e[n++]=3,e[n++]=1,e[n++]=a&255,e[n++]=a>>8&255,e[n++]=0}var v=!1;this.addFrame=function(b,h,_,x,y,k){if(v===!0&&(--n,v=!1),k=k===void 0?{}:k,b<0||h<0||b>65535||h>65535)throw new Error("x/y invalid.");if(_<=0||x<=0||_>65535||x>65535)throw new Error("Width/Height invalid.");if(y.length<_*x)throw new Error("Not enough pixels for the frame size.");var C=!0,P=k.palette;if(P==null&&(C=!1,P=s),P==null)throw new Error("Must supply either a local or global palette.");for(var L=l(P),T=0;L>>=1;)++T;L=1<<T;var Q=k.delay===void 0?0:k.delay,S=k.disposal===void 0?0:k.disposal;if(S<0||S>3)throw new Error("Disposal out of range.");var z=!1,D=0;if(k.transparent!==void 0&&k.transparent!==null&&(z=!0,D=k.transparent,D<0||D>=L))throw new Error("Transparent color index.");if((S!==0||z||Q!==0)&&(e[n++]=33,e[n++]=249,e[n++]=4,e[n++]=S<<2|(z===!0?1:0),e[n++]=Q&255,e[n++]=Q>>8&255,e[n++]=D,e[n++]=0),e[n++]=44,e[n++]=b&255,e[n++]=b>>8&255,e[n++]=h&255,e[n++]=h>>8&255,e[n++]=_&255,e[n++]=_>>8&255,e[n++]=x&255,e[n++]=x>>8&255,e[n++]=C===!0?128|T-1:0,C===!0)for(var A=0,E=P.length;A<E;++A){var M=P[A];e[n++]=M>>16&255,e[n++]=M>>8&255,e[n++]=M&255}return n=Qq(e,n,T<2?2:T,y),n},this.end=function(){return v===!1&&(e[n++]=59,v=!0),n},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return n},this.setOutputBufferPosition=function(b){n=b}}function Qq(e,r,t,i){e[r++]=t;var n=r++,o=1<<t,a=o-1,s=o+1,l=s+1,p=t+1,u=0,d=0;function m(k){for(;u>=k;)e[r++]=d&255,d>>=8,u-=8,r===n+256&&(e[n]=255,n=r++)}function f(k){d|=k<<u,u+=p,m(8)}var g=i[0]&a,v={};f(o);for(var b=1,h=i.length;b<h;++b){var _=i[b]&a,x=g<<8|_,y=v[x];if(y===void 0){for(d|=g<<u,u+=p;u>=8;)e[r++]=d&255,d>>=8,u-=8,r===n+256&&(e[n]=255,n=r++);l===4096?(f(o),l=s+1,p=t+1,v={}):(l>=1<<p&&++p,v[x]=l++),g=_}else g=y}return f(g),f(s),m(1),n+1===r?e[n]=0:(e[n]=r-n-1,e[r++]=0),r}function Mq(e){var r=0;if(e[r++]!==71||e[r++]!==73||e[r++]!==70||e[r++]!==56||(e[r++]+1&253)!==56||e[r++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[r++]|e[r++]<<8,i=e[r++]|e[r++]<<8,n=e[r++],o=n>>7,a=n&7,s=1<<a+1;e[r++],e[r++];var l=null,p=null;o&&(l=r,p=s,r+=s*3);var u=!0,d=[],m=0,f=null,g=0,v=null;for(this.width=t,this.height=i;u&&r<e.length;)switch(e[r++]){case 33:switch(e[r++]){case 255:if(e[r]!==11||e[r+1]==78&&e[r+2]==69&&e[r+3]==84&&e[r+4]==83&&e[r+5]==67&&e[r+6]==65&&e[r+7]==80&&e[r+8]==69&&e[r+9]==50&&e[r+10]==46&&e[r+11]==48&&e[r+12]==3&&e[r+13]==1&&e[r+16]==0)r+=14,v=e[r++]|e[r++]<<8,r++;else for(r+=12;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;case 249:if(e[r++]!==4||e[r+4]!==0)throw new Error("Invalid graphics extension block.");var h=e[r++];m=e[r++]|e[r++]<<8,f=e[r++],h&1||(f=null),g=h>>2&7,r++;break;case 254:for(;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[r-1].toString(16))}break;case 44:var _=e[r++]|e[r++]<<8,x=e[r++]|e[r++]<<8,y=e[r++]|e[r++]<<8,k=e[r++]|e[r++]<<8,C=e[r++],P=C>>7,L=C>>6&1,T=C&7,Q=1<<T+1,S=l,z=p,D=!1;if(P){var D=!0;S=r,z=Q,r+=Q*3}var A=r;for(r++;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}d.push({x:_,y:x,width:y,height:k,has_local_palette:D,palette_offset:S,palette_size:z,data_offset:A,data_length:r-A,transparent_index:f,interlaced:!!L,delay:m,disposal:g});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[r-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return v},this.frameInfo=function(E){if(E<0||E>=d.length)throw new Error("Frame index out of range.");return d[E]},this.decodeAndBlitFrameBGRA=function(E,M){var I=this.frameInfo(E),V=I.width*I.height,O=new Uint8Array(V);Af(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Z=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Z&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],qe=e[W+we*3+1],xt=e[W+we*3+2];M[J++]=xt,M[J++]=qe,M[J++]=be,M[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(E,M){var I=this.frameInfo(E),V=I.width*I.height,O=new Uint8Array(V);Af(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Z=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Z&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],qe=e[W+we*3+1],xt=e[W+we*3+2];M[J++]=be,M[J++]=qe,M[J++]=xt,M[J++]=255}--G}}}function Af(e,r,t,i){for(var n=e[r++],o=1<<n,a=o+1,s=a+1,l=n+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[r++],g=new Int32Array(4096),v=null;;){for(;u<16&&f!==0;)d|=e[r++]<<u,u+=8,f===1?f=e[r++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===o){s=a+1,l=n+1,p=(1<<l)-1,v=null;continue}else if(b===a)break;for(var h=b<s?b:v,_=0,x=h;x>o;)x=g[x]>>8,++_;var y=x,k=m+_+(h!==b?1:0);if(k>i){console.log("Warning, gif stream longer than expected.");return}t[m++]=y,m+=_;var C=m;for(h!==b&&(t[m++]=y),x=h;_--;)x=g[x],t[--C]=x&255,x>>=8;v!==null&&s<4096&&(g[s++]=v<<8|y,s>=p+1&&l<12&&(++l,p=p<<1|1)),v=b}return m!==i&&console.log("Warning, gif stream shorter than expected."),t}try{Pq=If.GifWriter=Tq,Sq=If.GifReader=Mq}catch(e){}function Eq(e,r,t={}){function i(){if(e)for(const o in r)r[o]&&e.on(o,r[o])}function n(){if(e)for(const o in r)r[o]&&e.off(o,r[o])}return Oo({listenEvent:i,removeEvent:n},t),{listenEvent:i,removeEvent:n}}const Iq=c.defineComponent({__name:"rank-title",props:{title:w.string},setup(e){return{__sfc:!0}}});function Ta(e,r,t,i,n,o,a,s){var l=typeof e=="function"?e.options:e;return r&&(l.render=r,l.staticRenderFns=t,l._compiled=!0),{exports:e,options:l}}var Aq=function(){var r=this,t=r._self._c;return r._self._setupProxy,t("div",{staticClass:"plv-iar-questionnaire-rank__title"},[r._v(" "+r._s(r.title)+" "),t("span")])},zq=[],Dq=Ta(Iq,Aq,zq);const Rq=Dq.exports,Oq={questionnaire:{title:"Questionnaire",typeCheckbox:"Multiple Choice",typeRadio:"Single Choice",typeQuestion:"Question",typeStar:"Evaluation",typeScor:"Evaluation",typeJudgement:"Judgement",typeFill:"Fill in the blank",typeVote:"Vote",prevQuestion:"Previous",nextQuestion:"Next",finishError:"Please complete the answer",pleaseInput:"Please input",pleaseFillInBlank:"Please fill",errorMessage1:"Please select at least one option",errorMessage2:"Please input text",errorMessage3:"Please select one option",errorMessage4:"Please evaluate",errorMessage5:"Please input text",errorMessageMinChoose:"Select at least {min} options",errorMessageMaxChoose:"You can select up to {max} options",submitMessage1:"Submitted successfully",submitMessage2:"Questionnaire ended",submitMessage3:"Answer already submitted",submitMessage4:"Submission failed",submitMessage5:"The test has been automatically submitted for you",countdownTitle:"Time remaining:",countdownHour:"H",countdownMinute:"M",countdownSecond:"S",privacyProtocolErrorMessage:"Please check the privacy protocol",answerTag:"Answer",resultTitle:"Questionnaire Result",resultMsg1:"Total<span>{count}</span>answers",resultMsg2:"Total<span>{count}</span>evaluations",resultOption:"Option",resultCount:"Count",resultPercent:"Percent",answerRight:"Congratulations, you answered correctly!",answerRightContent:"The correct answer is {rightAnswer}",answerWrong:"Answer is wrong!",answerWrongContent:"The correct answer is {rightAnswer}, your answer is {yourAnswer}",questionnaireListTitle:"Questionnaire List",questionnaireListGoFill:"Fill in",rankTitle:"Ranking",rankMe:"Me",rankScore:"points",rankNotOnTheList:"Not on the list",rankListTitle:"Rank",rankListScore:"Total score",rankListTime:"Time",rankListNoMore:"No more",questionnaireListEmpty:"No questionnaire"}},Vq={questionnaire:{title:"アンケート",typeCheckbox:"多肢選択",typeRadio:"単一選択",typeQuestion:"記述",typeStar:"星評価",typeScor:"星評価問題",typeJudgement:"真偽問題",typeFill:"穴埋め問題",typeVote:"投票",prevQuestion:"前の問題",nextQuestion:"次の問題",finishError:"回答を完了してください",pleaseInput:"入力してください",pleaseFillInBlank:"ブランクを埋めてください",errorMessage1:"少なくとも1つのオプションを選択してください",errorMessage2:"テキストを入力してください",errorMessage3:"1つのオプションを選択してください",errorMessage4:"評価してください",errorMessage5:"テキストを入力してください",errorMessageMinChoose:"最少で{min}つ選択してください",errorMessageMaxChoose:"最大{max}つまでしか選択できません",submitMessage1:"送信成功",submitMessage2:"アンケートが終了しました",submitMessage3:"回答が送信されました",submitMessage4:"送信に失敗しました",submitMessage5:"テストは自動的に送信されました",countdownTitle:"試験終了までの残り時間:",countdownHour:"時間",countdownMinute:"分",countdownSecond:"秒",privacyProtocolErrorMessage:"プライバシーポリシーを確認してください",answerTag:"回答",resultTitle:"アンケート結果",resultMsg1:"合計<span>{count}</span>回答",resultMsg2:"合計<span>{count}</span>評価",resultOption:"オプション",resultCount:"人数",resultPercent:"比率",answerRight:"おめでとうございます!正解です!",answerRightContent:"正解は {rightAnswer} です",answerWrong:"不正解です!",answerWrongContent:"正解は {rightAnswer} です。あなたの回答は {yourAnswer} です",questionnaireListTitle:"アンケートリスト",questionnaireListGoFill:"記入する",rankTitle:"ランキング",rankMe:"私",rankScore:"点",rankNotOnTheList:"未登録",rankListTitle:"順位",rankListScore:"総得点",rankListTime:"所要時間",rankListNoMore:"もうありません",questionnaireListEmpty:"アンケートなし"}},Bq={questionnaire:{title:"설문",typeCheckbox:"다중 선택 문제",typeRadio:"단일 선택 문제",typeQuestion:"질문 응답 문제",typeStar:"별점 평가 문제",typeScor:"별점 평가 문제",typeJudgement:"참/거짓 문제",typeFill:"빈칸 채우기 문제",typeVote:"투표 문제",prevQuestion:"이전 문제",nextQuestion:"다음 문제",finishError:"답변을 완료해 주세요",pleaseInput:"입력해 주세요",pleaseFillInBlank:"빈칸을 채워주세요",errorMessage1:"최소 하나의 옵션을 선택해 주세요",errorMessage2:"텍스트를 입력해 주세요",errorMessage3:"하나의 옵션을 선택해 주세요",errorMessage4:"평가해 주세요",errorMessage5:"텍스트를 입력해 주세요",errorMessageMinChoose:"최소 {min}개 선택해 주세요",errorMessageMaxChoose:"최대 {max}개까지만 선택할 수 있습니다",submitMessage1:"제출 성공",submitMessage2:"설문 종료",submitMessage3:"이미 제출된 답변",submitMessage4:"제출 실패",submitMessage5:"테스트는 자동으로 제출되었습니다",countdownTitle:"시험 종료까지 남은 시간:",countdownHour:"시간",countdownMinute:"분",countdownSecond:"초",privacyProtocolErrorMessage:"개인정보 처리방침을 확인해 주세요",answerTag:"답변",resultTitle:"설문 결과",resultMsg1:"총<span>{count}</span>명 답변",resultMsg2:"총<span>{count}</span>명 평가",resultOption:"옵션",resultCount:"인원",resultPercent:"비율",answerRight:"축하합니다, 답변이 맞습니다!",answerRightContent:"정답은 {rightAnswer}입니다",answerWrong:"답변이 틀렸습니다!",answerWrongContent:"정답은 {rightAnswer}입니다, 당신의 답변은 {yourAnswer}입니다",questionnaireListTitle:"설문 목록",questionnaireListGoFill:"채우기",rankTitle:"랭킹",rankMe:"나",rankScore:"점",rankNotOnTheList:"미등록",rankListTitle:"순위",rankListScore:"총 점수",rankListTime:"소요 시간",rankListNoMore:"더 이상 없습니다",questionnaireListEmpty:"설문 없음"}},Fq={questionnaire:{title:"Опрос",typeCheckbox:"Множественный выбор",typeRadio:"Один ответ",typeQuestion:"Вопрос-ответ",typeStar:"Оценка звездами",typeScor:"Оценка звездами",typeJudgement:"Верно/Неверно",typeFill:"Заполнение пропусков",typeVote:"Голосование",prevQuestion:"Предыдущий",nextQuestion:"Следующий",finishError:"Пожалуйста, завершите ответы",pleaseInput:"Пожалуйста, введите",pleaseFillInBlank:"Пожалуйста, заполните пропуски",errorMessage1:"Пожалуйста, выберите хотя бы один вариант",errorMessage2:"Пожалуйста, введите текст",errorMessage3:"Пожалуйста, выберите один вариант",errorMessage4:"Пожалуйста, оцените",errorMessage5:"Пожалуйста, введите текст",errorMessageMinChoose:"Пожалуйста, выберите не менее {min} вариантов",errorMessageMaxChoose:"Можно выбрать не более {max} вариантов",submitMessage1:"Отправлено успешно",submitMessage2:"Опрос закончен",submitMessage3:"Ответ уже отправлен",submitMessage4:"Отправлено не удалось",submitMessage5:"Тест был автоматически отправлен за вас",countdownTitle:"До конца теста осталось:",countdownHour:"ч",countdownMinute:"мин",countdownSecond:"сек",privacyProtocolErrorMessage:"Пожалуйста, проверьте политику конфиденциальности",answerTag:"Ответ",resultTitle:"Результаты опроса",resultMsg1:"Всего<span>{count}</span>ответов",resultMsg2:"Всего<span>{count}</span>оценок",resultOption:"Вариант",resultCount:"Количество",resultPercent:"Процент",answerRight:"Поздравляем, вы ответили правильно!",answerRightContent:"Правильный ответ: {rightAnswer}",answerWrong:"Ответ неправильный!",answerWrongContent:"Правильный ответ: {rightAnswer}, ваш ответ: {yourAnswer}",questionnaireListTitle:"Список опросов",questionnaireListGoFill:"Заполнить",rankTitle:"Рейтинг",rankMe:"Я",rankScore:"баллов",rankNotOnTheList:"Не набрал",rankListTitle:"Ранг",rankListScore:"Общий балл",rankListTime:"Время",rankListNoMore:"Нет больше",questionnaireListEmpty:"Нет опросов"}},jq={questionnaire:{title:"问卷",typeCheckbox:"多选",typeRadio:"单选",typeQuestion:"问答",typeStar:"评星",typeScor:"评分",typeJudgement:"判断",typeFill:"填空",typeVote:"投票",prevQuestion:"上一题",nextQuestion:"下一题",finishError:"请完成答题",pleaseInput:"请输入",pleaseFillInBlank:"请填空",errorMessage1:"请至少选择一个选项",errorMessage2:"请输入内容",errorMessage3:"请选择一个选项",errorMessage4:"请打分",errorMessage5:"请输入内容",errorMessageMinChoose:"最少选 {min} 项",errorMessageMaxChoose:"最多选 {max} 项",submitMessage1:"提交成功",submitMessage2:"问卷已结束",submitMessage3:"已答题",submitMessage4:"提交失败",submitMessage5:"已自动为你提交考卷",countdownTitle:"距离考试结束还剩:",countdownHour:"时",countdownMinute:"分",countdownSecond:"秒",privacyProtocolErrorMessage:"请勾选隐私协议",answerTag:"答案",resultTitle:"问卷结果",resultMsg1:"共<span>{count}</span>人回答",resultMsg2:"共<span>{count}</span>人评分",resultOption:"选项",resultCount:"人数",resultPercent:"占比",answerRight:"恭喜你答对了!",answerRightContent:"正确答案是 {rightAnswer}",answerWrong:"回答错误!",answerWrongContent:"正确答案是 {rightAnswer},你的答案是 {yourAnswer}",questionnaireListTitle:"问卷列表",questionnaireListGoFill:"去填写",rankTitle:"排行榜",rankMe:"我",rankScore:"分",rankNotOnTheList:"未上榜",rankListTitle:"排行",rankListScore:"总得分",rankListTime:"耗时",rankListNoMore:"已经没有更多了",questionnaireListEmpty:"暂无问卷"}},Nq={questionnaire:{title:"問卷",typeCheckbox:"多選",typeRadio:"單選",typeQuestion:"問答",typeStar:"評星",typeScor:"評星題",typeJudgement:"判斷題",typeFill:"填空題",typeVote:"投票",prevQuestion:"上一題",nextQuestion:"下一題",finishError:"請完成答題",pleaseInput:"請輸入",pleaseFillInBlank:"請填空",errorMessage1:"請至少選擇一個選項",errorMessage2:"請輸入內容",errorMessage3:"請選擇一個選項",errorMessage4:"請打分",errorMessage5:"請輸入內容",errorMessageMinChoose:"最少選擇 {min} 項",errorMessageMaxChoose:"最多只能選擇 {max} 項",submitMessage1:"提交成功",submitMessage2:"問卷已結束",submitMessage3:"已提交過答案",submitMessage4:"提交失敗",submitMessage5:"已自動為你提交考卷",countdownTitle:"距離考試結束還剩:",countdownHour:"時",countdownMinute:"分",countdownSecond:"秒",privacyProtocolErrorMessage:"請勾選隱私協議",answerTag:"答案",resultTitle:"問卷結果",resultMsg1:"共<span>{count}</span>人回答",resultMsg2:"共<span>{count}</span>人評分",resultOption:"選項",resultCount:"人數",resultPercent:"占比",answerRight:"恭喜你答對了!",answerRightContent:"正确答案是 {rightAnswer}",answerWrong:"回答錯誤!",answerWrongContent:"正确答案是 {rightAnswer},你的答案是 {yourAnswer}",questionnaireListTitle:"問卷列表",questionnaireListGoFill:"去填寫",rankTitle:"排行榜",rankMe:"我",rankScore:"分",rankNotOnTheList:"未上榜",rankListTitle:"排行",rankListScore:"總得分",rankListTime:"耗時",rankListNoMore:"沒有更多了",questionnaireListEmpty:"暫無問卷"}},{useI18n:gc}=Zu({zh_CN:jq,zh_TW:Nq,en:Oq,ja:Vq,ko:Bq,ru:Fq}),Uq=c.defineComponent({__name:"rank-item",props:{item:w.object().isRequired},setup(e){const{$t:r}=gc();return{__sfc:!0,$t:r,defaultUserAvatar:"https://s1.videocc.net/default-img/avatar/viewer.png",formatSeconds:ws}}});var Wq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-questionnaire-rank__list__item"},[t("div",{staticClass:"plv-iar-questionnaire-rank__list__item__rank plv-font-din-pro-regular"},[t("span",[r._v(r._s(r.item.rank))])]),t("img",{staticClass:"plv-iar-questionnaire-rank__list__item__avatar",attrs:{src:r.item.avatar||i.defaultUserAvatar,alt:r.item.nickname}}),r._t("default",function(){return[t("div",{staticClass:"plv-iar-questionnaire-rank__list__item__info"},[t("div",{class:{"plv-iar-questionnaire-rank__list__item__nick":!0,"plv-iar-questionnaire-rank__list__item__nick--me":r.item.isCurrent}},[t("span",{staticClass:"plv-iar-questionnaire-rank__list__item__nick__name"},[r._v(r._s(r.item.nickname))]),r.item.isCurrent?t("span",{staticClass:"plv-iar-questionnaire-rank__me-label"},[t("span",[r._v(r._s(i.$t("questionnaire.rankMe")))])]):r._e()]),t("div",{staticClass:"plv-iar-questionnaire-rank__list__item__time"},[r._v(" "+r._s(i.$t("questionnaire.rankListTime"))+":"+r._s(i.formatSeconds(r.item.costTime))+" ")])]),t("div",{staticClass:"plv-iar-questionnaire-rank__list__item__number plv-font-din-pro-regular"},[r._v(" "+r._s(r.item.score)+r._s(i.$t("questionnaire.rankScore"))+" ")])]})],2)},Hq=[],qq=Ta(Uq,Wq,Hq);const Zq=qq.exports,Yq=c.defineComponent({__name:"top-three",props:{data:w.object(),order:w.oneOf(["first","second","third"]).def("first")},setup(e){const{$t:r}=gc();return{__sfc:!0,$t:r,defaultUserAvatar:"https://s1.videocc.net/default-img/avatar/viewer.png"}}});var Gq=function(){var n,o,a,s;var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{class:["plv-iar-questionnaire-rank__top-three",`plv-iar-questionnaire-rank__top-three--${r.order}`]},[t("div",{staticClass:"plv-iar-questionnaire-rank__top-three__avatar plv-font-din-pro-regular"},[t("img",{staticClass:"plv-iar-questionnaire-rank__top-three__avatar__pic",attrs:{src:((n=r.data)==null?void 0:n.avatar)||i.defaultUserAvatar}})]),t("div",{staticClass:"plv-iar-questionnaire-rank__top-three__detail"},[t("div",{staticClass:"plv-iar-questionnaire-rank__top-three__detail__nick"},[t("span",{staticClass:"plv-iar-questionnaire-rank__top-three__detail__nick__name"},[r._v(r._s(((o=r.data)==null?void 0:o.nickname)||"-"))]),(a=r.data)!=null&&a.isCurrent?t("span",{staticClass:"plv-iar-questionnaire-rank__me-label"},[t("span",[r._v(r._s(i.$t("questionnaire.rankMe")))])]):r._e()]),r.data&&r.data.score>=0?t("div",{staticClass:"plv-iar-questionnaire-rank__top-three__detail__num"},[t("span",[r._v(r._s((s=r.data)==null?void 0:s.score))]),r._v(r._s(i.$t("questionnaire.rankScore"))+" ")]):t("div",{staticClass:"plv-iar-questionnaire-rank__top-three__detail__num"},[r._v(" "+r._s(i.$t("questionnaire.rankNotOnTheList"))+" ")])])])},Kq=[],Xq=Ta(Yq,Gq,Kq);const Jq=Xq.exports,$q=()=>({questionnaireTarget:w.object().isRequired}),eZ=Symbol("QUESTIONNAIRE_PROVIDE_KEY");function tZ(e){const r=e.QuestionItemType,t=e.QuestionnaireType,i=e.QuestionnaireEvent,n=e.SubmitAnswerResult;return{QuestionItemType:r,QuestionnaireType:t,QuestionnaireEvent:i,SubmitAnswerResult:n}}const rZ=e=>{const{props:r}=e;return c.provide(eZ,{getQuestionnaireTarget:()=>r.questionnaireTarget}),R({questionnaireTarget:r.questionnaireTarget},tZ(r.questionnaireTarget))},iZ=c.defineComponent({__name:"questionnaire-rank",props:R({},$q()),setup(e){const r=e,{$t:t}=gc(),{visible:i,show:n}=tt(),{QuestionnaireEvent:o}=rZ({props:r}),a=c.ref([]),s=c.computed(()=>a.value.slice(0,3)),l=c.computed(()=>a.value.slice(3)),p=c.computed(()=>a.value.find(u=>u.isCurrent));return Eq(r.questionnaireTarget.eventEmitter,{[o.QuestionnaireRank]:u=>{a.value=u.rank,n()}}),{__sfc:!0,props:r,$t:t,visible:i,show:n,QuestionnaireEvent:o,rankList:a,topThreeRankItems:s,rankListItems:l,currentRankItem:p,PwcPopup:mt,RankTitle:Rq,RankItem:Zq,TopThree:Jq}}});var nZ=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t(i.PwcPopup,{staticClass:"plv-iar-questionnaire-rank",attrs:{"show-header":!1,height:"80%","body-style":{padding:"0px"},background:"#ffeae4"},model:{value:i.visible,callback:function(n){i.visible=n},expression:"visible"}},[t("div",{staticClass:"plv-iar-questionnaire-rank__body"},[t("div",{staticClass:"plv-iar-questionnaire-rank__inner"},[t(i.RankTitle,{attrs:{title:i.$t("questionnaire.rankTitle")}}),t("div",{staticClass:"plv-iar-questionnaire-rank__content"},[t("div",{staticClass:"plv-iar-questionnaire-rank__top-three-list"},[t(i.TopThree,{attrs:{data:i.topThreeRankItems[1],order:"second"}}),t(i.TopThree,{attrs:{data:i.topThreeRankItems[0],order:"first"}}),t(i.TopThree,{attrs:{data:i.topThreeRankItems[2],order:"third"}})],1),t("div",{staticClass:"plv-iar-questionnaire-rank__list__title"},[t("span",[r._v(r._s(i.$t("questionnaire.rankListTitle")))]),t("span",[r._v(r._s(i.$t("questionnaire.rankListScore")))])]),r._l(i.rankListItems,function(n,o){return t(i.RankItem,{key:o,attrs:{item:n}})}),t("div",{staticClass:"plv-iar-questionnaire-rank__list__nomore"},[r._v(" "+r._s(i.$t("questionnaire.rankListNoMore"))+" ")])],2)],1),i.currentRankItem?t("div",{staticClass:"plv-iar-questionnaire-rank__me"},[t(i.RankItem,{attrs:{item:i.currentRankItem}})],1):r._e()])])},oZ=[],aZ=Ta(iZ,nZ,oZ);return aZ.exports});console.log("%c@polyv/iar-questionnaire-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.7.0-rc-20260716.1]","[buildTime: 2026-07-16 06:02:57]");
1289
+ }`}],staticClass:"pwc-menu-item__content",class:{"is-active":t.isActive&&!t.menuItemProps.iconMode,"is-icon-mode":t.menuItemProps.iconMode},on:{click:t.onClickItem}},[t.hasSlot("icon")||t.menuIcon?r("div",{staticClass:"pwc-menu-item__icon"},[t.hasSlot("icon")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("icon",{isActive:t.isActive})}})]:[r(t.menuIcon,{tag:"component"})]],2):e._e(),t.menuItemProps.iconMode?e._e():r("div",{directives:[{name:"show",rawName:"v-show",value:!t.menuProps.collapsed||t.inSubMenuPopper,expression:"!menuProps.collapsed || inSubMenuPopper"}],staticClass:"pwc-menu-item__title"},[t.hasSlot("title")?[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title")}})]:[e._v(" "+e._s(t.menuItemProps.title)+" ")]],2)])},LW=[],SW=j(CW,kW,LW);const PW=SW.exports,TW=c.defineComponent({__name:"menu-item",props:iW(),setup(e){const r=e,{receiveRouterSlotData:t}=yW({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:PW}}});var QW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.props.to?r("router-link",{tag:"component",attrs:{to:e.to,custom:""},scopedSlots:e._u([{key:"default",fn:function(i){return[r("a",e._b({staticClass:"pwc-menu-item",attrs:{href:i.href}},"a",t.receiveRouterSlotData(i),!1),[r(t.MenuItemContent)],1)]}}],null,!1,4189994726)}):e.href?r("a",{staticClass:"pwc-menu-item",attrs:{href:e.href}},[r(t.MenuItemContent)],1):r("div",{staticClass:"pwc-menu-item"},[r(t.MenuItemContent)],1)},MW=[],EW=j(TW,QW,MW);const IW=EW.exports,AW={};var zW=function(){var e=this;return e._self._c,e._m(0)},DW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],RW=j(AW,zW,DW);const OW=RW.exports;ee("PwcMenu",cW),ee("PwcSubMenu",xW),ee("PwcMenuItem",IW),ee("PwcMenuDivider",OW);const VW=12,BW=16,Yn={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function Sf(e,r){const t=Yn[e];let i=BW;for(let n=0;n<r;n++)i+=t[n].height+VW;return i}function Pf(e){const r=Yn[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=Sf(e,t)}const Pa={add(e,r,t){const i=Yn[e],n=i.length,o={id:r,height:0,offsetRef:t};i.push(o),t.value=Sf(e,n)},updateHeight(e,r,t){const i=Yn[e].find(n=>n.id===r);i&&i.height!==t&&(i.height=t,Pf(e))},remove(e,r){const t=Yn[e],i=t.findIndex(n=>n.id===r);i!==-1&&(t.splice(i,1),Pf(e))}};let FW=0;const jW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=Ln(),n=++FW,o=c.ref(!1),a=c.ref(0);Pa.add(r,n,a);const{startTimeout:s,closeTimeout:l}=ei(()=>{u()},t);function p(){o.value=!0,t>0&&s()}function u(){o.value=!1,l()}function d(){Pa.remove(r,n),i()}function m(f){Pa.updateHeight(r,n,f)}return c.onBeforeUnmount(()=>{Pa.remove(r,n)}),{visible:o,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Et.Info);const NW=()=>X(R(R({},$s()),d2()),{trigger:w.oneOf(Uo).def("click"),placement:w.oneOf(Qi).def("top"),feedbackType:w.enum().def(Et.Warning),concise:w.bool.def(!1)}),UW=()=>X(R(R({},he()),Yu()),{show:Y(),hide:Y()}),WW=c.defineComponent({__name:"popconfirm",props:NW(),emits:UW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:n}=de(t),{buttonData:o,onClickConfirm:a,onClickCancel:s}=Ku({props:t,emit:r,afterConfirm:()=>{var m;(m=d.value)==null||m.hidePopper()},afterCancel:()=>{var m;(m=d.value)==null||m.hidePopper()}});function l(){i.value||n(!0),r("show")}function p(){i.value&&n(!1),r("hide")}const u=c.computed(()=>{if(!t.concise)return t.feedbackType}),d=c.ref();return{__sfc:!0,props:t,emit:r,modelValue:i,updateModelValue:n,buttonData:o,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:f2}}});var HW=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcPopover,e._b({ref:"popoverRef",staticClass:"pwc-popconfirm",attrs:{trigger:e.trigger,placement:e.placement,"feedback-type":t.popoverFeedbackType},on:{show:t.onShow,hide:t.onHide},scopedSlots:e._u([{key:"reference",fn:function(){return[e._t("default")]},proxy:!0},{key:"default",fn:function(){return[r("div",{staticClass:"pwc-popconfirm__content"},[e.concise?e._e():e._t("content",function(){return[e._v(e._s(e.content))]}),r("div",{staticClass:"pwc-popconfirm__content__btns",class:{"is-concise":e.concise}},[t.buttonData.showCancelButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickCancel}},"pwc-button",t.buttonData.cancelButtonProps,!1)):e._e(),t.buttonData.showConfirmButton?r(t.PwcButton,e._b({attrs:{size:e.concise?"default":"mini",block:e.concise},on:{click:t.onClickConfirm}},"pwc-button",t.buttonData.confirmButtonProps,!1)):e._e()],1)],2)]},proxy:!0}],null,!0)},"pwc-popover",t.props,!1))},qW=[],ZW=j(WW,HW,qW);const YW=ZW.exports;ee("PwcPopconfirm",YW);var at=(e=>(e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.TopLeft="top-left",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomRight="bottom-right",e))(at||{});function GW(e,r){const t=c.ref((()=>{try{const i=localStorage.getItem(e);if(i)return JSON.parse(i)}catch(i){}return r})());return c.watch(t,i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(n){}},{deep:!0}),t}const KW=()=>({width:w.number.def(0),height:w.number.def(0),minWidth:w.number.def(50),minHeight:w.number.def(50),maxWidth:w.number.def(1/0),maxHeight:w.number.def(1/0),disabled:w.bool.def(!1),handleSize:w.number.def(8),showHandles:w.oneOfType([Boolean,Array]).def(!0),storageKey:w.string.def("")}),XW=()=>({"resize-start":Y(),resize:Y(),"resize-end":Y()}),JW=e=>{const{props:r,emit:t}=e,i=c.ref(),n=c.ref(!1),o=c.ref(null),a=c.ref({x:0,y:0}),s=c.ref({width:0,height:0}),l={width:r.width,height:r.height},p=r.storageKey?GW(r.storageKey,l):c.ref(l),u=(y,k,C)=>Math.max(k,Math.min(C,y)),d=y=>({width:y.width===void 0?void 0:u(y.width,r.minWidth,r.maxWidth),height:y.height===void 0?void 0:u(y.height,r.minHeight,r.maxHeight)}),m=y=>{var C,P;const k=d(y);return{width:(C=k.width)!=null?C:p.value.width,height:(P=k.height)!=null?P:p.value.height}},f=y=>{p.value=m(y)},g=()=>({width:p.value.width,height:p.value.height}),v=c.computed(()=>{const y={};return(r.width||p.value.width)&&(y.width=p.value.width+"px"),(r.height||p.value.height)&&(y.height=p.value.height+"px"),y}),b=y=>r.showHandles===!1||Array.isArray(r.showHandles)&&!r.showHandles.includes(y)?!1:[at.Top,at.Bottom].includes(y)?!!r.height:[at.Left,at.Right].includes(y)?!!r.width:!!r.width&&!!r.height,h=(y,k)=>{r.disabled||(y.preventDefault(),y.stopPropagation(),n.value=!0,o.value=k,a.value={x:y.clientX,y:y.clientY},s.value=R({},p.value),t("resize-start",{width:p.value.width,height:p.value.height,direction:k,event:y}))},_=y=>{if(!n.value||!o.value)return;const k=y.clientX-a.value.x,C=y.clientY-a.value.y,P={};switch(o.value){case at.Right:P.width=s.value.width+k;break;case at.Bottom:P.height=s.value.height+C;break;case at.Left:P.width=s.value.width-k;break;case at.Top:P.height=s.value.height-C;break;case at.TopRight:P.width=s.value.width+k,P.height=s.value.height-C;break;case at.TopLeft:P.width=s.value.width-k,P.height=s.value.height-C;break;case at.BottomRight:P.width=s.value.width+k,P.height=s.value.height+C;break;case at.BottomLeft:P.width=s.value.width-k,P.height=s.value.height+C;break}const{width:L,height:T}=m(P);p.value={width:L,height:T},t("resize",{width:L,height:T,direction:o.value,event:y})},x=y=>{if(!n.value||!o.value)return;n.value=!1;const k=o.value;o.value=null,t("resize-end",{width:p.value.width,height:p.value.height,direction:k,event:y})};return c.onMounted(()=>{document.addEventListener("mousemove",_),document.addEventListener("mouseup",x)}),c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",x)}),{boxStyle:v,containerRef:i,currentSize:p,isResizing:n,showHandleControl:b,handleMouseDown:h,setSize:f,getSize:g}};KW(),XW();const $W=()=>({title:w.looseString,titleTooltip:w.looseString}),eH=c.defineComponent({__name:"section",props:$W(),setup(e){const r=e,{hasSlot:t,slotRender:i}=xe(),n=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:n,PwcTooltip:Ho,renderSlot:dt}}});var tH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("section",{staticClass:"pwc-section"},[t.hasSlot("title")||e.title?r("div",{staticClass:"pwc-section__title"},[e._t("title",function(){return[e._v(e._s(e.title))]}),t.hasTitleTooltip?[r(t.PwcTooltip,{attrs:{content:e.titleTooltip},scopedSlots:e._u([t.hasSlot("title-tooltip")?{key:"content",fn:function(){return[r(t.renderSlot,{attrs:{"slot-func":()=>t.slotRender("title-tooltip")}})]},proxy:!0}:null],null,!0)})]:e._e()],2):e._e(),r("div",{staticClass:"pwc-section__content"},[e._t("default")],2)])},rH=[],iH=j(eH,tH,rH);const nH=iH.exports;ee("PwcSection",nH);const oH=()=>({[w.modelValueKey]:w.oneOfType([Number,Array]).def(0),min:w.number.def(0),max:w.number.def(100),disabled:w.bool.def(!1),showTooltip:w.bool.def(!1),range:w.bool.def(!1),step:w.number.def(1),showStops:w.bool.def(!1),showSliderButton:w.bool.def(!0),marks:w.object(),cssRotateAngle:w.oneOf([0,90,180,270]).def(0),progressBarVisible:w.bool.def(!0),hotAreaHeight:w.number.def(4),sliderBarHeight:w.looseNumber,sliderBarBg:w.string.def(""),buttonSize:w.number.def(14)}),aH=()=>X(R({},he()),{change:Y()}),Tf=Symbol("slider-inject-key"),sH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:n}=de(r,{outSideUpdate:()=>{P()}}),o=c.ref(0),a=c.ref(0),s=c.ref(!1),l=c.ref(void 0),p=c.ref(),{width:u}=Oe(p),d=c.ref(),m=c.ref(),f=c.ref(),g=c.computed(()=>Math.min(o.value,a.value)),v=c.computed(()=>Math.max(o.value,a.value)),b=c.computed(()=>r.range?`${100*(v.value-g.value)/(r.max-r.min)}%`:`${100*(o.value-r.min)/(r.max-r.min)}%`),h=c.computed(()=>r.range?`${100*(g.value-r.min)/(r.max-r.min)}%`:"0%"),_=c.computed(()=>X(R({},x.value),{width:b.value,left:h.value})),x=c.computed(()=>{const D={};return r.sliderBarHeight&&(D.height=`${r.sliderBarHeight}px`,D.borderRadius=`${r.sliderBarHeight/2}px`),D}),y=c.computed(()=>{const D=R({},x.value);return r.sliderBarBg&&(D.background=r.sliderBarBg),D}),k=c.computed(()=>{const D=[],A=r.max-r.min,E=M=>{D.includes(M)||D.push(M)};if(r.step&&r.showStops){const M=A/r.step,I=r.step/A;for(let V=1;V<M;V++){const O=Math.round(V*I*100);E(O)}}return r.marks&&Object.keys(r.marks).forEach(M=>{const I=Number(M);if(I>=r.min&&I<=r.max){const V=(I-r.min)/A,O=Math.round(V*100);E(O)}}),D}),C=c.computed(()=>{const D=[],A=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(E=>{const M=Number(E),I=r.marks[M];let V="",O={};if(typeof I=="string"?V=I:(V=I.label,O=I.style||{}),M>=r.min&&M<=r.max){const W=(M-r.min)/A,B=Math.round(W*100);D.push({label:V,style:O,left:B,value:M})}}),D});function P(){r.range?Array.isArray(i.value)?(o.value=Math.max(r.min,i.value[0]),a.value=Math.min(r.max,i.value[1])):(o.value=r.min,a.value=r.max):typeof i.value!="number"||isNaN(i.value)?o.value=r.min:o.value=Math.min(r.max,Math.max(r.min,i.value))}function L(){let D=i.value;r.range?D=[Math.floor(g.value),Math.floor(v.value)]:D=Math.floor(o.value),D!==i.value&&(l.value=i.value,n(D))}function T(){c.nextTick(()=>{t("change",r.range?[g.value,v.value]:i.value)})}function Q(D){var M;if(!r.range){(M=m.value)==null||M.setPosition(D);return}let A;const E=r.min+D*(r.max-r.min)/100;Math.abs(g.value-E)<Math.abs(v.value-E)?A=o.value<a.value?m.value:f.value:A=o.value>a.value?m.value:f.value,A==null||A.setPosition(D)}function S(D){var A,E;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const M=((A=d.value)==null?void 0:A.getBoundingClientRect().top)||0;Q((D.clientY-M)/u.value*100)}else{const M=((E=d.value)==null?void 0:E.getBoundingClientRect().left)||0;Q((D.clientX-M)/u.value*100)}T()}}function z(D){Q(D.left),T()}return c.onMounted(()=>{P()}),c.provide(Tf,{sliderProps:r,sliderWidth:u,dragging:s,emitChange:T}),{modelValue:i,firstValue:o,secondValue:a,dragging:s,sliderRef:p,sliderClickRef:d,button1Ref:m,button2Ref:f,barStyle:_,runwayStyle:y,stops:k,markList:C,onSliderClick:S,onClickMark:z,emitInnerInput:L}},Qf=()=>c.inject(Tf),lH=()=>({value:w.number}),cH=()=>({change:Y()}),pH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:n,emitChange:o}=Qf(),a=c.ref(!1),s=c.ref(!1),l=c.ref(!1),p=c.ref(0),u=c.ref(0),d=c.ref(null),m=c.computed(()=>`${(r.value-i.min)/(i.max-i.min)*100}%`),f=c.computed(()=>({left:m.value}));function g(L){let T,Q;switch("touches"in L?(T=L.touches[0].clientX,Q=L.touches[0].clientY):(T=L.clientX,Q=L.clientY),i.cssRotateAngle){case 90:return{clientX:Q,clientY:T};case 180:return{clientX:-T,clientY:-Q};case 270:return{clientX:-Q,clientY:T}}return{clientX:T,clientY:Q}}function v(){i.disabled||(a.value=!0)}function b(){i.disabled||(a.value=!1)}function h(L){if(i.disabled)return;s.value=!0,l.value=!0;const T=g(L);p.value=T.clientX,u.value=parseFloat(m.value),d.value=u.value}function _(L){if(!i.disabled&&s.value){l.value=!1;const T=(g(L).clientX-p.value)/n.value*100;d.value=u.value+T,P(d.value)}}function x(){i.disabled||ue||s.value&&setTimeout(()=>{s.value=!1,l.value||(P(d.value),o())},0)}function y(L){i.disabled||ue||(h(L),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",x),window.addEventListener("touchend",x),window.addEventListener("contextmenu",x))}function k(){window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",x),window.removeEventListener("touchend",x),window.removeEventListener("contextmenu",x)}c.onBeforeUnmount(()=>{k()});function C(L){let T=L;return i.step&&(T=Math.round(L/i.step)*i.step),T<i.min&&(T=i.min),T>i.max&&(T=i.max),T}function P(L){if(L===null||isNaN(L))return;L<0?L=0:L>100&&(L=100);const T=(i.max-i.min)*(L/100),Q=i.min+T;t("change",C(Q))}return{hovering:a,dragging:s,btnStyle:f,handleMouseEnter:v,handleMouseLeave:b,onButtonDown:y,setPosition:P}},uH={name:"PlvSliderButton"},dH=c.defineComponent(X(R({},uH),{props:lH(),emits:cH(),setup(e,{expose:r,emit:t}){const i=e,n=Qf(),{sliderProps:o}=n,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=pH({props:i,emit:t}),f=c.computed(()=>s.value||n.dragging.value||!1);return r({setPosition:m}),{__sfc:!0,props:i,emit:t,sliderInject:n,sliderProps:o,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var fH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider__button",style:t.btnStyle,on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave,mousedown:t.onButtonDown,touchstart:t.onButtonDown}},[r("div",{class:["pwc-slider__button__inner",t.hovering||t.dragging?"pwc-slider__button__inner--hover":"",t.sliderProps.disabled?"pwc-slider__button__inner--disabled":""],style:{width:`${t.sliderProps.buttonSize}px`,height:`${t.sliderProps.buttonSize}px`}})])},mH=[],hH=j(dH,fH,mH);const gH=hH.exports,vH=c.defineComponent({__name:"slider",props:oH(),emits:aH(),setup(e,{emit:r}){const t=e,{firstValue:i,secondValue:n,sliderRef:o,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:v}=sH({props:t,emit:r});function b(_){i.value=_,v()}function h(_){n.value=_,v()}return{__sfc:!0,props:t,emit:r,firstValue:i,secondValue:n,sliderRef:o,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:v,onFirstValueChange:b,onSecondValueChange:h,SliderButton:gH}}});var wH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-slider"},[r("div",{ref:"sliderRef",class:["pwc-slider__runway",t.props.disabled?"pwc-slider__runway--disabled":""],style:t.runwayStyle},[t.props.progressBarVisible?r("div",{staticClass:"pwc-slider__runway__bar",style:t.barStyle}):e._e(),r("div",{ref:"sliderClickRef",staticClass:"pwc-slider__runway__click",style:{height:`${t.props.hotAreaHeight}px`},on:{click:t.onSliderClick}}),e._l(t.stops,function(i){return r("div",{key:`dot-${i}`,staticClass:"pwc-slider__runway__dot",style:{left:`${i}%`}})}),t.props.showSliderButton?r(t.SliderButton,{ref:"button1Ref",attrs:{value:t.firstValue},on:{change:t.onFirstValueChange}}):e._e(),t.props.range&&t.props.showSliderButton?r(t.SliderButton,{ref:"button2Ref",attrs:{value:t.secondValue},on:{change:t.onSecondValueChange}}):e._e()],2),t.markList.length?r("div",{staticClass:"pwc-slider__marks"},e._l(t.markList,function(i,n){return r("div",{key:`mark-${n}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(o){return t.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},bH=[],_H=j(vH,wH,bH);const xH=_H.exports;ee("PwcSlider",xH);const yH=["horizontal","vertical"],CH=["mini","small","medium","large"],kH={mini:4,small:8,medium:16,large:24},LH=()=>({direction:w.oneOf(yH).def("horizontal"),size:w.oneOfType([w.oneOf(CH),Number]).def("small"),wrap:w.bool.def(!1)}),SH=c.defineComponent({__name:"space",props:LH(),setup(e){const r=e,t=c.computed(()=>[`is-${r.direction}`,{"is-wrap":r.wrap}]),i=c.computed(()=>({gap:`${typeof r.size=="number"?r.size:kH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var PH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-space",class:t.spaceClass,style:t.spaceStyle},[e._t("default")],2)},TH=[],QH=j(SH,PH,TH);const MH=QH.exports;ee("PwcSpace",MH);const EH=["horizontal","vertical"],IH=()=>({direction:w.oneOf(EH).def("horizontal"),lazy:w.bool.def(!1)}),AH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),Mf=Symbol("SPLITTER_INJECT_KEY"),zH=c.defineComponent({__name:"splitter",props:IH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),n=c.ref([]),{width:o,height:a}=Oe(t),s=c.computed(()=>r.direction==="horizontal"),l=()=>{if(!t.value||i.value.length===0)return;const C=s.value?t.value.clientWidth:t.value.clientHeight;let P=0;const L=i.value.map(S=>S.props.initialSize!==void 0?(P+=S.props.initialSize,!0):!1),T=L.filter(S=>!S).length,Q=T>0?(C-P)/T:0;n.value=i.value.map((S,z)=>L[z]?S.props.initialSize:Q)};c.watch(()=>{const C=s.value?o.value:a.value;return`${r.direction}-${C}`},(C,P)=>{const L=Number(C.split("-").pop()),T=P?Number(P.split("-").pop()):0;if(L===0)return;if(n.value.length===0||n.value.every(z=>z===0)){l();return}if(f.value||T===0||T===L)return;const Q=n.value.reduce((z,D)=>z+D,0);if(Q===0)return;const S=n.value.map(z=>z/Q);n.value=S.map((z,D)=>{var I,V;const A=i.value[D],E=(I=A==null?void 0:A.props.min)!=null?I:0,M=(V=A==null?void 0:A.props.max)!=null?V:1/0;return Math.max(E,Math.min(M,z*L))})});const p=C=>{i.value.push(C),c.nextTick(l)},u=C=>{const P=i.value.findIndex(L=>L.id===C);P>=0&&(i.value.splice(P,1),n.value.splice(P,1))},d=C=>{const P=i.value.findIndex(T=>T.id===C),L=n.value[P];return L===void 0?{}:s.value?{width:`${L}px`,flexShrink:"0"}:{height:`${L}px`,flexShrink:"0"}},m=C=>{var P;return((P=i.value[i.value.length-1])==null?void 0:P.id)===C},f=c.ref(!1),g=c.ref(""),v=c.ref(0),b=c.ref([]),h=c.ref([]),_=c.computed(()=>{var L,T;if(!f.value||!r.lazy)return-1;const C=i.value.findIndex(Q=>Q.id===g.value);if(C<0)return-1;let P=0;for(let Q=0;Q<=C;Q++)P+=(T=(L=h.value[Q])!=null?L:n.value[Q])!=null?T:0;return P}),x=(C,P)=>{P.preventDefault(),f.value=!0,g.value=C,v.value=s.value?P.clientX:P.clientY,b.value=[...n.value],h.value=[...n.value],document.addEventListener("mousemove",y),document.addEventListener("mouseup",k)},y=C=>{var V,O,W,B;if(!f.value)return;const P=(s.value?C.clientX:C.clientY)-v.value,L=i.value.findIndex(F=>F.id===g.value);if(L<0||L>=i.value.length-1)return;const T=i.value[L],Q=i.value[L+1],S=b.value[L]+b.value[L+1],z=(V=T.props.min)!=null?V:0,D=(O=T.props.max)!=null?O:1/0,A=(W=Q.props.min)!=null?W:0,E=(B=Q.props.max)!=null?B:1/0;let M=Math.max(z,Math.min(D,b.value[L]+P)),I=S-M;if(I<A&&(I=A,M=S-I),I>E&&(I=E,M=S-I),M=Math.max(z,Math.min(D,M)),r.lazy){const F=[...b.value];F[L]=M,F[L+1]=I,h.value=F}else{const F=[...n.value];F[L]=M,F[L+1]=I,n.value=F}},k=()=>{r.lazy&&(n.value=[...h.value]),f.value=!1,g.value="",document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)};return c.onBeforeUnmount(()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k)}),c.provide(Mf,{direction:c.computed(()=>r.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:r,containerRef:t,panels:i,sizes:n,containerWidth:o,containerHeight:a,isHorizontal:s,initSizes:l,registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,isDragging:f,draggingId:g,startPos:v,startSizes:b,pendingSizes:h,lazyPreviewPos:_,onDividerMouseDown:x,onMouseMove:y,onMouseUp:k}}});var DH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"containerRef",staticClass:"pwc-splitter",class:[`pwc-splitter--${t.props.direction}`,{"is-dragging":t.isDragging}]},[e._t("default"),t.isDragging&&t.props.lazy&&t.lazyPreviewPos>=0?r("div",{staticClass:"pwc-splitter__lazy-preview",class:[`pwc-splitter__lazy-preview--${t.props.direction}`],style:t.isHorizontal?{left:`${t.lazyPreviewPos}px`}:{top:`${t.lazyPreviewPos}px`}}):e._e()],2)},RH=[],OH=j(zH,DH,RH);const VH=OH.exports,BH=c.defineComponent({__name:"splitter-panel",props:AH(),setup(e){const r=e,t=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(Mf),n=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),o=c.computed(()=>{var l;return(l=i==null?void 0:i.isLastPanel(t))!=null?l:!1}),a=c.computed(()=>{var l;return(l=i==null?void 0:i.getPanelStyle(t))!=null?l:{}}),s=l=>{i==null||i.onDividerMouseDown(t,l)};return c.onMounted(()=>{i==null||i.registerPanel({id:t,props:r})}),c.onBeforeUnmount(()=>{i==null||i.unregisterPanel(t)}),{__sfc:!0,props:r,panelId:t,splitter:i,direction:n,isLast:o,panelStyle:a,handleDividerMouseDown:s}}});var FH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-splitter-panel",style:t.panelStyle},[r("div",{staticClass:"pwc-splitter-panel__content"},[e._t("default")],2),t.isLast?e._e():r("div",{staticClass:"pwc-splitter__divider",class:[`pwc-splitter__divider--${t.direction}`],on:{mousedown:t.handleDividerMouseDown}},[r("span",{staticClass:"pwc-splitter__divider-bar"})])])},jH=[],NH=j(BH,FH,jH);const UH=NH.exports;ee("PwcSplitter",VH),ee("PwcSplitterPanel",UH);const WH=()=>({max:w.number.def(3)}),HH=()=>({label:w.looseString,disabled:w.bool.def(!1)}),qH=()=>({click:Y()}),Ef=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),ZH=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(Ef,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:uu,PwcDropdown:DD,PwcDropdownMenu:RD}}});var YH=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r(t.PwcDropdown,{staticClass:"pwc-table-operation-dropdown",scopedSlots:e._u([{key:"dropdown",fn:function(){return[r(t.PwcDropdownMenu,[e._t("default")],2)]},proxy:!0}],null,!0)},[r(t.PwcButton,{attrs:{link:""}},[r("div",{staticClass:"pwc-table-operation-dropdown__icon"},[r(t.PwcIconMore)],1)])],1)},GH=[],KH=j(ZH,YH,GH);const XH=KH.exports;function JH(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function $H(e){const r=JH(e);return typeof r=="string"&&r.trim()===""}function eq(e){return!Ae.isCommentVNode(e)&&!$H(e)}const tq=c.defineComponent({props:WH(),setup(e){const r=c.useSlots(),t=c.inject(Ol,void 0),i=ar(8),n=c.ref();function o(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Oe(n,({width:a})=>{const s=o();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=o();a&&a.removeOperationWidthRecord(i)}),()=>{var m;let a=(m=r.default)==null?void 0:m.call(r);if(!a)return c.h("span",{},"-");a=a.filter(eq);let s=0;const l=[],p=[],u=a.length;u===0&&l.push(c.h("span",{},"-")),a.forEach(f=>{u<=e.max||s<e.max-1?(l.push(f),s++):p.push(f)}),p.length>0&&l.push(c.h(XH,{},vn()?{default:()=>p}:p));const d=["pwc-table-operation"];return u===0&&d.push("is-empty"),c.h("div",{class:d},[c.h("div",{class:"pwc-table-operation__content",ref:n},l)])}}}),rq=c.defineComponent({__name:"table-operation-item",props:HH(),emits:qH(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),n=c.inject(Ef,void 0);function o(s){t.disabled||r("click",s)}const a=c.computed(()=>"href"in i?"a":"div");return{__sfc:!0,props:t,emit:r,attrs:i,dropdownInject:n,onClickItem:o,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:OD}}});var iq=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return t.dropdownInject?r(t.PwcDropdownItem,{staticClass:"pwc-table-operation-item",attrs:{disabled:e.disabled,tag:t.dropdownItemTag},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2):r(t.PwcButton,{staticClass:"pwc-table-operation-item",attrs:{link:"",disabled:e.disabled},nativeOn:{click:function(i){return t.onClickItem.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},nq=[],oq=j(rq,iq,nq);const aq=oq.exports;ee("PwcTableOperation",tq),ee("PwcTableOperationItem",aq);const sq=["line","rounded","text"],lq=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(sq).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),cq=()=>X(R({},he()),{change:Y()}),pq=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),hc=Symbol("tabs-inject-key"),uq=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(hc),{$t:n}=oe(),o=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=tt();function p(){return K(this,null,function*(){if(yield c.nextTick(),!o.value||ue)return;const d=o.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;o.value.clientHeight>=m*1.5||o.value.scrollWidth>o.value.clientWidth?a.value=!0:a.value=!1})}c.watch(()=>r.value.length,()=>{p()},{immediate:!0});function u(d){d.paneProps.disabled||i(d.getPaneName())}return{__sfc:!0,tabPanes:r,tabsProps:t,setCurrentTab:i,$t:n,listRef:o,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:dr,PwcIconUp:js,renderSlot:dt}}});var dq=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-nav",class:[`is-type-${t.tabsProps.type}`]},[r("div",{ref:"listRef",staticClass:"pwc-tab-nav__list",class:{"is-hide":t.tabsProps.expand&&!t.isExpanded}},e._l(t.tabPanes,function(i){return r("div",{key:i.paneId,staticClass:"pwc-tab-nav__item",class:{"is-active":i.getIsActive(),"is-disabled":i.paneProps.disabled},on:{click:function(n){return t.onClickItem(i)}}},[i.hasSlot("title")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__title",attrs:{"slot-func":i.getTitleRenderSlot}}):r("span",[e._v(e._s(i.paneProps.title))]),i.hasSlot("extra")?r(t.renderSlot,{staticClass:"pwc-tab-nav__item__extra",attrs:{"slot-func":i.getExtraRenderSlot}}):e._e(),i.paneProps.extra?r("span",{staticClass:"pwc-tab-nav__item__extra"},[e._v(" "+e._s(i.paneProps.extra)+" ")]):e._e()],1)}),0),r("div",{staticClass:"pwc-tab-nav__right"},[t.tabsProps.expand&&t.isMoreItem?r("div",{staticClass:"pwc-tab-nav__expand",on:{click:t.toggle}},[r("span",[e._v(e._s(t.isExpanded?t.$t("tabs.collapse"):t.$t("tabs.more")))]),t.isExpanded?r(t.PwcIconUp):r(t.PwcIconDown)],1):e._e()])])},fq=[],mq=j(uq,dq,fq);const hq=mq.exports,gq=c.defineComponent({__name:"tabs",props:lq(),emits:cq(),setup(e,{emit:r}){const t=e,i=c.ref(),n=c.ref(),{modelValue:o,updateModelValue:a}=de(t,{outSideUpdate:g=>{i.value=g}}),s=c.ref([]);function l(g){if(!s.value.includes(g)){if(typeof i.value>"u")if(typeof o.value>"u"){const v=g.getPaneName();u(v,!1)}else u(o.value,!1);s.value.push(g)}}function p(g){s.value=s.value.filter(v=>v!==g)}function u(g,v=!0){i.value!==g&&(i.value=g,a(g),v&&r("change",g))}const d=c.ref(0);function m(){return K(this,null,function*(){var b;yield c.nextTick();const g=((b=n.value)==null?void 0:b.querySelectorAll("[data-pane-name]"))||[];let v=0;for(let h=0;h<g.length;h++)if(g[h].getAttribute("data-is-active")==="true"){v=h*100;break}d.value=v})}c.watch(()=>i.value,()=>{m()});const f={tabsProps:t,currentTab:i,tabPanes:s,setCurrentTab:u,addTabPane:l,removeTabPane:p};return c.provide(hc,f),{__sfc:!0,props:t,emits:r,currentTab:i,tabsRef:n,modelValue:o,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:hq}}});var vq=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{ref:"tabsRef",staticClass:"pwc-tabs"},[r(t.TabNav),r("div",{staticClass:"pwc-tabs__content"},[r("div",{staticClass:"pwc-tabs__list",style:{marginLeft:`-${t.offsetPercent}%`}},[e._t("default")],2)])],1)},wq=[],bq=j(gq,vq,wq);const _q=bq.exports,xq=c.defineComponent({__name:"tab-pane",props:pq(),setup(e){const r=e,t=ar(8),i=c.inject(hc),{hasSlot:n,slotRender:o}=xe(),a=c.computed(()=>r.name||t),s=c.computed(()=>i.currentTab.value===a.value);function l(){return o("title",{isActive:s.value})}const p=c.computed(()=>{var f;return(f=r.lazyLoad)!=null?f:i.tabsProps.lazyLoad}),u=c.ref(!1);c.watch(s,()=>{s.value&&(u.value=!0)});const d=c.computed(()=>p.value?u.value:!0),m={paneId:t,paneProps:r,getPaneName:()=>a.value,getIsActive:()=>s.value,hasSlot:n,getTitleRenderSlot:l,getExtraRenderSlot:()=>o("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:r,paneId:t,tabsInject:i,hasSlot:n,slotRender:o,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var yq=function(){var e=this,r=e._self._c,t=e._self._setupProxy;return r("div",{staticClass:"pwc-tab-pane",class:{"is-active":t.isActive},attrs:{"data-pane-name":t.tabPaneName,"data-is-active":t.isActive}},[t.canRender?r("div",{staticClass:"pwc-tab-pane__content"},[e._t("default")],2):e._e()])},Cq=[],kq=j(xq,yq,Cq);const Lq=kq.exports;ee("PwcTabs",_q),ee("PwcTabPane",Lq);var If={},Sq,Pq;function Tq(e,r,t,o){var n=0,o=o===void 0?{}:o,a=o.loop===void 0?null:o.loop,s=o.palette===void 0?null:o.palette;if(r<=0||t<=0||r>65535||t>65535)throw new Error("Width/Height invalid.");function l(b){var h=b.length;if(h<2||h>256||h&h-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return h}e[n++]=71,e[n++]=73,e[n++]=70,e[n++]=56,e[n++]=57,e[n++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,o.background!==void 0){if(u=o.background,u>=d)throw new Error("Background index out of range.");if(u===0)throw new Error("Background index explicitly passed as 0.")}}if(e[n++]=r&255,e[n++]=r>>8&255,e[n++]=t&255,e[n++]=t>>8&255,e[n++]=(s!==null?128:0)|p,e[n++]=u,e[n++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var g=s[m];e[n++]=g>>16&255,e[n++]=g>>8&255,e[n++]=g&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[n++]=33,e[n++]=255,e[n++]=11,e[n++]=78,e[n++]=69,e[n++]=84,e[n++]=83,e[n++]=67,e[n++]=65,e[n++]=80,e[n++]=69,e[n++]=50,e[n++]=46,e[n++]=48,e[n++]=3,e[n++]=1,e[n++]=a&255,e[n++]=a>>8&255,e[n++]=0}var v=!1;this.addFrame=function(b,h,_,x,y,k){if(v===!0&&(--n,v=!1),k=k===void 0?{}:k,b<0||h<0||b>65535||h>65535)throw new Error("x/y invalid.");if(_<=0||x<=0||_>65535||x>65535)throw new Error("Width/Height invalid.");if(y.length<_*x)throw new Error("Not enough pixels for the frame size.");var C=!0,P=k.palette;if(P==null&&(C=!1,P=s),P==null)throw new Error("Must supply either a local or global palette.");for(var L=l(P),T=0;L>>=1;)++T;L=1<<T;var Q=k.delay===void 0?0:k.delay,S=k.disposal===void 0?0:k.disposal;if(S<0||S>3)throw new Error("Disposal out of range.");var z=!1,D=0;if(k.transparent!==void 0&&k.transparent!==null&&(z=!0,D=k.transparent,D<0||D>=L))throw new Error("Transparent color index.");if((S!==0||z||Q!==0)&&(e[n++]=33,e[n++]=249,e[n++]=4,e[n++]=S<<2|(z===!0?1:0),e[n++]=Q&255,e[n++]=Q>>8&255,e[n++]=D,e[n++]=0),e[n++]=44,e[n++]=b&255,e[n++]=b>>8&255,e[n++]=h&255,e[n++]=h>>8&255,e[n++]=_&255,e[n++]=_>>8&255,e[n++]=x&255,e[n++]=x>>8&255,e[n++]=C===!0?128|T-1:0,C===!0)for(var A=0,E=P.length;A<E;++A){var M=P[A];e[n++]=M>>16&255,e[n++]=M>>8&255,e[n++]=M&255}return n=Qq(e,n,T<2?2:T,y),n},this.end=function(){return v===!1&&(e[n++]=59,v=!0),n},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return n},this.setOutputBufferPosition=function(b){n=b}}function Qq(e,r,t,i){e[r++]=t;var n=r++,o=1<<t,a=o-1,s=o+1,l=s+1,p=t+1,u=0,d=0;function m(k){for(;u>=k;)e[r++]=d&255,d>>=8,u-=8,r===n+256&&(e[n]=255,n=r++)}function f(k){d|=k<<u,u+=p,m(8)}var g=i[0]&a,v={};f(o);for(var b=1,h=i.length;b<h;++b){var _=i[b]&a,x=g<<8|_,y=v[x];if(y===void 0){for(d|=g<<u,u+=p;u>=8;)e[r++]=d&255,d>>=8,u-=8,r===n+256&&(e[n]=255,n=r++);l===4096?(f(o),l=s+1,p=t+1,v={}):(l>=1<<p&&++p,v[x]=l++),g=_}else g=y}return f(g),f(s),m(1),n+1===r?e[n]=0:(e[n]=r-n-1,e[r++]=0),r}function Mq(e){var r=0;if(e[r++]!==71||e[r++]!==73||e[r++]!==70||e[r++]!==56||(e[r++]+1&253)!==56||e[r++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[r++]|e[r++]<<8,i=e[r++]|e[r++]<<8,n=e[r++],o=n>>7,a=n&7,s=1<<a+1;e[r++],e[r++];var l=null,p=null;o&&(l=r,p=s,r+=s*3);var u=!0,d=[],m=0,f=null,g=0,v=null;for(this.width=t,this.height=i;u&&r<e.length;)switch(e[r++]){case 33:switch(e[r++]){case 255:if(e[r]!==11||e[r+1]==78&&e[r+2]==69&&e[r+3]==84&&e[r+4]==83&&e[r+5]==67&&e[r+6]==65&&e[r+7]==80&&e[r+8]==69&&e[r+9]==50&&e[r+10]==46&&e[r+11]==48&&e[r+12]==3&&e[r+13]==1&&e[r+16]==0)r+=14,v=e[r++]|e[r++]<<8,r++;else for(r+=12;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;case 249:if(e[r++]!==4||e[r+4]!==0)throw new Error("Invalid graphics extension block.");var h=e[r++];m=e[r++]|e[r++]<<8,f=e[r++],h&1||(f=null),g=h>>2&7,r++;break;case 254:for(;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}break;default:throw new Error("Unknown graphic control label: 0x"+e[r-1].toString(16))}break;case 44:var _=e[r++]|e[r++]<<8,x=e[r++]|e[r++]<<8,y=e[r++]|e[r++]<<8,k=e[r++]|e[r++]<<8,C=e[r++],P=C>>7,L=C>>6&1,T=C&7,Q=1<<T+1,S=l,z=p,D=!1;if(P){var D=!0;S=r,z=Q,r+=Q*3}var A=r;for(r++;;){var b=e[r++];if(!(b>=0))throw Error("Invalid block size");if(b===0)break;r+=b}d.push({x:_,y:x,width:y,height:k,has_local_palette:D,palette_offset:S,palette_size:z,data_offset:A,data_length:r-A,transparent_index:f,interlaced:!!L,delay:m,disposal:g});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[r-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return v},this.frameInfo=function(E){if(E<0||E>=d.length)throw new Error("Frame index out of range.");return d[E]},this.decodeAndBlitFrameBGRA=function(E,M){var I=this.frameInfo(E),V=I.width*I.height,O=new Uint8Array(V);Af(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Z=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Z&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],qe=e[W+we*3+1],xt=e[W+we*3+2];M[J++]=xt,M[J++]=qe,M[J++]=be,M[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(E,M){var I=this.frameInfo(E),V=I.width*I.height,O=new Uint8Array(V);Af(e,I.data_offset,O,V);var W=I.palette_offset,B=I.transparent_index;B===null&&(B=256);var F=I.width,H=t-F,G=F,N=(I.y*t+I.x)*4,Z=((I.y+I.height)*t+I.x)*4,J=N,ie=H*4;I.interlaced===!0&&(ie+=t*4*7);for(var U=8,te=0,fe=O.length;te<fe;++te){var we=O[te];if(G===0&&(J+=ie,G=F,J>=Z&&(ie=H*4+t*4*(U-1),J=N+(F+H)*(U<<1),U>>=1)),we===B)J+=4;else{var be=e[W+we*3],qe=e[W+we*3+1],xt=e[W+we*3+2];M[J++]=be,M[J++]=qe,M[J++]=xt,M[J++]=255}--G}}}function Af(e,r,t,i){for(var n=e[r++],o=1<<n,a=o+1,s=a+1,l=n+1,p=(1<<l)-1,u=0,d=0,m=0,f=e[r++],g=new Int32Array(4096),v=null;;){for(;u<16&&f!==0;)d|=e[r++]<<u,u+=8,f===1?f=e[r++]:--f;if(u<l)break;var b=d&p;if(d>>=l,u-=l,b===o){s=a+1,l=n+1,p=(1<<l)-1,v=null;continue}else if(b===a)break;for(var h=b<s?b:v,_=0,x=h;x>o;)x=g[x]>>8,++_;var y=x,k=m+_+(h!==b?1:0);if(k>i){console.log("Warning, gif stream longer than expected.");return}t[m++]=y,m+=_;var C=m;for(h!==b&&(t[m++]=y),x=h;_--;)x=g[x],t[--C]=x&255,x>>=8;v!==null&&s<4096&&(g[s++]=v<<8|y,s>=p+1&&l<12&&(++l,p=p<<1|1)),v=b}return m!==i&&console.log("Warning, gif stream shorter than expected."),t}try{Pq=If.GifWriter=Tq,Sq=If.GifReader=Mq}catch(e){}function Eq(e,r,t={}){function i(){if(e)for(const o in r)r[o]&&e.on(o,r[o])}function n(){if(e)for(const o in r)r[o]&&e.off(o,r[o])}return Oo({listenEvent:i,removeEvent:n},t),{listenEvent:i,removeEvent:n}}const Iq=c.defineComponent({__name:"rank-title",props:{title:w.string},setup(e){return{__sfc:!0}}});function Ta(e,r,t,i,n,o,a,s){var l=typeof e=="function"?e.options:e;return r&&(l.render=r,l.staticRenderFns=t,l._compiled=!0),{exports:e,options:l}}var Aq=function(){var r=this,t=r._self._c;return r._self._setupProxy,t("div",{staticClass:"plv-iar-questionnaire-rank__title"},[r._v(" "+r._s(r.title)+" "),t("span")])},zq=[],Dq=Ta(Iq,Aq,zq);const Rq=Dq.exports,Oq={questionnaire:{title:"Questionnaire",typeCheckbox:"Multiple Choice",typeRadio:"Single Choice",typeQuestion:"Question",typeStar:"Evaluation",typeScor:"Evaluation",typeJudgement:"Judgement",typeFill:"Fill in the blank",typeVote:"Vote",prevQuestion:"Previous",nextQuestion:"Next",finishError:"Please complete the answer",pleaseInput:"Please input",pleaseFillInBlank:"Please fill",errorMessage1:"Please select at least one option",errorMessage2:"Please input text",errorMessage3:"Please select one option",errorMessage4:"Please evaluate",errorMessage5:"Please input text",errorMessageMinChoose:"Select at least {min} options",errorMessageMaxChoose:"You can select up to {max} options",submitMessage1:"Submitted successfully",submitMessage2:"Questionnaire ended",submitMessage3:"Answer already submitted",submitMessage4:"Submission failed",submitMessage5:"The test has been automatically submitted for you",countdownTitle:"Time remaining:",countdownHour:"H",countdownMinute:"M",countdownSecond:"S",privacyProtocolErrorMessage:"Please check the privacy protocol",answerTag:"Answer",resultTitle:"Questionnaire Result",resultMsg1:"Total<span>{count}</span>answers",resultMsg2:"Total<span>{count}</span>evaluations",resultOption:"Option",resultCount:"Count",resultPercent:"Percent",answerRight:"Congratulations, you answered correctly!",answerRightContent:"The correct answer is {rightAnswer}",answerWrong:"Answer is wrong!",answerWrongContent:"The correct answer is {rightAnswer}, your answer is {yourAnswer}",questionnaireListTitle:"Questionnaire List",questionnaireListGoFill:"Fill in",rankTitle:"Ranking",rankMe:"Me",rankScore:"points",rankNotOnTheList:"Not on the list",rankListTitle:"Rank",rankListScore:"Total score",rankListTime:"Time",rankListNoMore:"No more",questionnaireListEmpty:"No questionnaire"}},Vq={questionnaire:{title:"アンケート",typeCheckbox:"多肢選択",typeRadio:"単一選択",typeQuestion:"記述",typeStar:"星評価",typeScor:"星評価問題",typeJudgement:"真偽問題",typeFill:"穴埋め問題",typeVote:"投票",prevQuestion:"前の問題",nextQuestion:"次の問題",finishError:"回答を完了してください",pleaseInput:"入力してください",pleaseFillInBlank:"ブランクを埋めてください",errorMessage1:"少なくとも1つのオプションを選択してください",errorMessage2:"テキストを入力してください",errorMessage3:"1つのオプションを選択してください",errorMessage4:"評価してください",errorMessage5:"テキストを入力してください",errorMessageMinChoose:"最少で{min}つ選択してください",errorMessageMaxChoose:"最大{max}つまでしか選択できません",submitMessage1:"送信成功",submitMessage2:"アンケートが終了しました",submitMessage3:"回答が送信されました",submitMessage4:"送信に失敗しました",submitMessage5:"テストは自動的に送信されました",countdownTitle:"試験終了までの残り時間:",countdownHour:"時間",countdownMinute:"分",countdownSecond:"秒",privacyProtocolErrorMessage:"プライバシーポリシーを確認してください",answerTag:"回答",resultTitle:"アンケート結果",resultMsg1:"合計<span>{count}</span>回答",resultMsg2:"合計<span>{count}</span>評価",resultOption:"オプション",resultCount:"人数",resultPercent:"比率",answerRight:"おめでとうございます!正解です!",answerRightContent:"正解は {rightAnswer} です",answerWrong:"不正解です!",answerWrongContent:"正解は {rightAnswer} です。あなたの回答は {yourAnswer} です",questionnaireListTitle:"アンケートリスト",questionnaireListGoFill:"記入する",rankTitle:"ランキング",rankMe:"私",rankScore:"点",rankNotOnTheList:"未登録",rankListTitle:"順位",rankListScore:"総得点",rankListTime:"所要時間",rankListNoMore:"もうありません",questionnaireListEmpty:"アンケートなし"}},Bq={questionnaire:{title:"설문",typeCheckbox:"다중 선택 문제",typeRadio:"단일 선택 문제",typeQuestion:"질문 응답 문제",typeStar:"별점 평가 문제",typeScor:"별점 평가 문제",typeJudgement:"참/거짓 문제",typeFill:"빈칸 채우기 문제",typeVote:"투표 문제",prevQuestion:"이전 문제",nextQuestion:"다음 문제",finishError:"답변을 완료해 주세요",pleaseInput:"입력해 주세요",pleaseFillInBlank:"빈칸을 채워주세요",errorMessage1:"최소 하나의 옵션을 선택해 주세요",errorMessage2:"텍스트를 입력해 주세요",errorMessage3:"하나의 옵션을 선택해 주세요",errorMessage4:"평가해 주세요",errorMessage5:"텍스트를 입력해 주세요",errorMessageMinChoose:"최소 {min}개 선택해 주세요",errorMessageMaxChoose:"최대 {max}개까지만 선택할 수 있습니다",submitMessage1:"제출 성공",submitMessage2:"설문 종료",submitMessage3:"이미 제출된 답변",submitMessage4:"제출 실패",submitMessage5:"테스트는 자동으로 제출되었습니다",countdownTitle:"시험 종료까지 남은 시간:",countdownHour:"시간",countdownMinute:"분",countdownSecond:"초",privacyProtocolErrorMessage:"개인정보 처리방침을 확인해 주세요",answerTag:"답변",resultTitle:"설문 결과",resultMsg1:"총<span>{count}</span>명 답변",resultMsg2:"총<span>{count}</span>명 평가",resultOption:"옵션",resultCount:"인원",resultPercent:"비율",answerRight:"축하합니다, 답변이 맞습니다!",answerRightContent:"정답은 {rightAnswer}입니다",answerWrong:"답변이 틀렸습니다!",answerWrongContent:"정답은 {rightAnswer}입니다, 당신의 답변은 {yourAnswer}입니다",questionnaireListTitle:"설문 목록",questionnaireListGoFill:"채우기",rankTitle:"랭킹",rankMe:"나",rankScore:"점",rankNotOnTheList:"미등록",rankListTitle:"순위",rankListScore:"총 점수",rankListTime:"소요 시간",rankListNoMore:"더 이상 없습니다",questionnaireListEmpty:"설문 없음"}},Fq={questionnaire:{title:"Опрос",typeCheckbox:"Множественный выбор",typeRadio:"Один ответ",typeQuestion:"Вопрос-ответ",typeStar:"Оценка звездами",typeScor:"Оценка звездами",typeJudgement:"Верно/Неверно",typeFill:"Заполнение пропусков",typeVote:"Голосование",prevQuestion:"Предыдущий",nextQuestion:"Следующий",finishError:"Пожалуйста, завершите ответы",pleaseInput:"Пожалуйста, введите",pleaseFillInBlank:"Пожалуйста, заполните пропуски",errorMessage1:"Пожалуйста, выберите хотя бы один вариант",errorMessage2:"Пожалуйста, введите текст",errorMessage3:"Пожалуйста, выберите один вариант",errorMessage4:"Пожалуйста, оцените",errorMessage5:"Пожалуйста, введите текст",errorMessageMinChoose:"Пожалуйста, выберите не менее {min} вариантов",errorMessageMaxChoose:"Можно выбрать не более {max} вариантов",submitMessage1:"Отправлено успешно",submitMessage2:"Опрос закончен",submitMessage3:"Ответ уже отправлен",submitMessage4:"Отправлено не удалось",submitMessage5:"Тест был автоматически отправлен за вас",countdownTitle:"До конца теста осталось:",countdownHour:"ч",countdownMinute:"мин",countdownSecond:"сек",privacyProtocolErrorMessage:"Пожалуйста, проверьте политику конфиденциальности",answerTag:"Ответ",resultTitle:"Результаты опроса",resultMsg1:"Всего<span>{count}</span>ответов",resultMsg2:"Всего<span>{count}</span>оценок",resultOption:"Вариант",resultCount:"Количество",resultPercent:"Процент",answerRight:"Поздравляем, вы ответили правильно!",answerRightContent:"Правильный ответ: {rightAnswer}",answerWrong:"Ответ неправильный!",answerWrongContent:"Правильный ответ: {rightAnswer}, ваш ответ: {yourAnswer}",questionnaireListTitle:"Список опросов",questionnaireListGoFill:"Заполнить",rankTitle:"Рейтинг",rankMe:"Я",rankScore:"баллов",rankNotOnTheList:"Не набрал",rankListTitle:"Ранг",rankListScore:"Общий балл",rankListTime:"Время",rankListNoMore:"Нет больше",questionnaireListEmpty:"Нет опросов"}},jq={questionnaire:{title:"问卷",typeCheckbox:"多选",typeRadio:"单选",typeQuestion:"问答",typeStar:"评星",typeScor:"评分",typeJudgement:"判断",typeFill:"填空",typeVote:"投票",prevQuestion:"上一题",nextQuestion:"下一题",finishError:"请完成答题",pleaseInput:"请输入",pleaseFillInBlank:"请填空",errorMessage1:"请至少选择一个选项",errorMessage2:"请输入内容",errorMessage3:"请选择一个选项",errorMessage4:"请打分",errorMessage5:"请输入内容",errorMessageMinChoose:"最少选 {min} 项",errorMessageMaxChoose:"最多选 {max} 项",submitMessage1:"提交成功",submitMessage2:"问卷已结束",submitMessage3:"已答题",submitMessage4:"提交失败",submitMessage5:"已自动为你提交考卷",countdownTitle:"距离考试结束还剩:",countdownHour:"时",countdownMinute:"分",countdownSecond:"秒",privacyProtocolErrorMessage:"请勾选隐私协议",answerTag:"答案",resultTitle:"问卷结果",resultMsg1:"共<span>{count}</span>人回答",resultMsg2:"共<span>{count}</span>人评分",resultOption:"选项",resultCount:"人数",resultPercent:"占比",answerRight:"恭喜你答对了!",answerRightContent:"正确答案是 {rightAnswer}",answerWrong:"回答错误!",answerWrongContent:"正确答案是 {rightAnswer},你的答案是 {yourAnswer}",questionnaireListTitle:"问卷列表",questionnaireListGoFill:"去填写",rankTitle:"排行榜",rankMe:"我",rankScore:"分",rankNotOnTheList:"未上榜",rankListTitle:"排行",rankListScore:"总得分",rankListTime:"耗时",rankListNoMore:"已经没有更多了",questionnaireListEmpty:"暂无问卷"}},Nq={questionnaire:{title:"問卷",typeCheckbox:"多選",typeRadio:"單選",typeQuestion:"問答",typeStar:"評星",typeScor:"評星題",typeJudgement:"判斷題",typeFill:"填空題",typeVote:"投票",prevQuestion:"上一題",nextQuestion:"下一題",finishError:"請完成答題",pleaseInput:"請輸入",pleaseFillInBlank:"請填空",errorMessage1:"請至少選擇一個選項",errorMessage2:"請輸入內容",errorMessage3:"請選擇一個選項",errorMessage4:"請打分",errorMessage5:"請輸入內容",errorMessageMinChoose:"最少選擇 {min} 項",errorMessageMaxChoose:"最多只能選擇 {max} 項",submitMessage1:"提交成功",submitMessage2:"問卷已結束",submitMessage3:"已提交過答案",submitMessage4:"提交失敗",submitMessage5:"已自動為你提交考卷",countdownTitle:"距離考試結束還剩:",countdownHour:"時",countdownMinute:"分",countdownSecond:"秒",privacyProtocolErrorMessage:"請勾選隱私協議",answerTag:"答案",resultTitle:"問卷結果",resultMsg1:"共<span>{count}</span>人回答",resultMsg2:"共<span>{count}</span>人評分",resultOption:"選項",resultCount:"人數",resultPercent:"占比",answerRight:"恭喜你答對了!",answerRightContent:"正确答案是 {rightAnswer}",answerWrong:"回答錯誤!",answerWrongContent:"正确答案是 {rightAnswer},你的答案是 {yourAnswer}",questionnaireListTitle:"問卷列表",questionnaireListGoFill:"去填寫",rankTitle:"排行榜",rankMe:"我",rankScore:"分",rankNotOnTheList:"未上榜",rankListTitle:"排行",rankListScore:"總得分",rankListTime:"耗時",rankListNoMore:"沒有更多了",questionnaireListEmpty:"暫無問卷"}},{useI18n:gc}=Zu({zh_CN:jq,zh_TW:Nq,en:Oq,ja:Vq,ko:Bq,ru:Fq}),Uq=c.defineComponent({__name:"rank-item",props:{item:w.object().isRequired},setup(e){const{$t:r}=gc();return{__sfc:!0,$t:r,defaultUserAvatar:"https://s1.videocc.net/default-img/avatar/viewer.png",formatSeconds:ws}}});var Wq=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{staticClass:"plv-iar-questionnaire-rank__list__item"},[t("div",{staticClass:"plv-iar-questionnaire-rank__list__item__rank plv-font-din-pro-regular"},[t("span",[r._v(r._s(r.item.rank))])]),t("img",{staticClass:"plv-iar-questionnaire-rank__list__item__avatar",attrs:{src:r.item.avatar||i.defaultUserAvatar,alt:r.item.nickname}}),r._t("default",function(){return[t("div",{staticClass:"plv-iar-questionnaire-rank__list__item__info"},[t("div",{class:{"plv-iar-questionnaire-rank__list__item__nick":!0,"plv-iar-questionnaire-rank__list__item__nick--me":r.item.isCurrent}},[t("span",{staticClass:"plv-iar-questionnaire-rank__list__item__nick__name"},[r._v(r._s(r.item.nickname))]),r.item.isCurrent?t("span",{staticClass:"plv-iar-questionnaire-rank__me-label"},[t("span",[r._v(r._s(i.$t("questionnaire.rankMe")))])]):r._e()]),t("div",{staticClass:"plv-iar-questionnaire-rank__list__item__time"},[r._v(" "+r._s(i.$t("questionnaire.rankListTime"))+":"+r._s(i.formatSeconds(r.item.costTime))+" ")])]),t("div",{staticClass:"plv-iar-questionnaire-rank__list__item__number plv-font-din-pro-regular"},[r._v(" "+r._s(r.item.score)+r._s(i.$t("questionnaire.rankScore"))+" ")])]})],2)},Hq=[],qq=Ta(Uq,Wq,Hq);const Zq=qq.exports,Yq=c.defineComponent({__name:"top-three",props:{data:w.object(),order:w.oneOf(["first","second","third"]).def("first")},setup(e){const{$t:r}=gc();return{__sfc:!0,$t:r,defaultUserAvatar:"https://s1.videocc.net/default-img/avatar/viewer.png"}}});var Gq=function(){var n,o,a,s;var r=this,t=r._self._c,i=r._self._setupProxy;return t("div",{class:["plv-iar-questionnaire-rank__top-three",`plv-iar-questionnaire-rank__top-three--${r.order}`]},[t("div",{staticClass:"plv-iar-questionnaire-rank__top-three__avatar plv-font-din-pro-regular"},[t("img",{staticClass:"plv-iar-questionnaire-rank__top-three__avatar__pic",attrs:{src:((n=r.data)==null?void 0:n.avatar)||i.defaultUserAvatar}})]),t("div",{staticClass:"plv-iar-questionnaire-rank__top-three__detail"},[t("div",{staticClass:"plv-iar-questionnaire-rank__top-three__detail__nick"},[t("span",{staticClass:"plv-iar-questionnaire-rank__top-three__detail__nick__name"},[r._v(r._s(((o=r.data)==null?void 0:o.nickname)||"-"))]),(a=r.data)!=null&&a.isCurrent?t("span",{staticClass:"plv-iar-questionnaire-rank__me-label"},[t("span",[r._v(r._s(i.$t("questionnaire.rankMe")))])]):r._e()]),r.data&&r.data.score>=0?t("div",{staticClass:"plv-iar-questionnaire-rank__top-three__detail__num"},[t("span",[r._v(r._s((s=r.data)==null?void 0:s.score))]),r._v(r._s(i.$t("questionnaire.rankScore"))+" ")]):t("div",{staticClass:"plv-iar-questionnaire-rank__top-three__detail__num"},[r._v(" "+r._s(i.$t("questionnaire.rankNotOnTheList"))+" ")])])])},Kq=[],Xq=Ta(Yq,Gq,Kq);const Jq=Xq.exports,$q=()=>({questionnaireTarget:w.object().isRequired}),eZ=Symbol("QUESTIONNAIRE_PROVIDE_KEY");function tZ(e){const r=e.QuestionItemType,t=e.QuestionnaireType,i=e.QuestionnaireEvent,n=e.SubmitAnswerResult;return{QuestionItemType:r,QuestionnaireType:t,QuestionnaireEvent:i,SubmitAnswerResult:n}}const rZ=e=>{const{props:r}=e;return c.provide(eZ,{getQuestionnaireTarget:()=>r.questionnaireTarget}),R({questionnaireTarget:r.questionnaireTarget},tZ(r.questionnaireTarget))},iZ=c.defineComponent({__name:"questionnaire-rank",props:R({},$q()),setup(e){const r=e,{$t:t}=gc(),{visible:i,show:n}=tt(),{QuestionnaireEvent:o}=rZ({props:r}),a=c.ref([]),s=c.computed(()=>a.value.slice(0,3)),l=c.computed(()=>a.value.slice(3)),p=c.computed(()=>a.value.find(u=>u.isCurrent));return Eq(r.questionnaireTarget.eventEmitter,{[o.QuestionnaireRank]:u=>{a.value=u.rank,n()}}),{__sfc:!0,props:r,$t:t,visible:i,show:n,QuestionnaireEvent:o,rankList:a,topThreeRankItems:s,rankListItems:l,currentRankItem:p,PwcPopup:mt,RankTitle:Rq,RankItem:Zq,TopThree:Jq}}});var nZ=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t(i.PwcPopup,{staticClass:"plv-iar-questionnaire-rank",attrs:{"show-header":!1,height:"80%","body-style":{padding:"0px"},background:"#ffeae4"},model:{value:i.visible,callback:function(n){i.visible=n},expression:"visible"}},[t("div",{staticClass:"plv-iar-questionnaire-rank__body"},[t("div",{staticClass:"plv-iar-questionnaire-rank__inner"},[t(i.RankTitle,{attrs:{title:i.$t("questionnaire.rankTitle")}}),t("div",{staticClass:"plv-iar-questionnaire-rank__content"},[t("div",{staticClass:"plv-iar-questionnaire-rank__top-three-list"},[t(i.TopThree,{attrs:{data:i.topThreeRankItems[1],order:"second"}}),t(i.TopThree,{attrs:{data:i.topThreeRankItems[0],order:"first"}}),t(i.TopThree,{attrs:{data:i.topThreeRankItems[2],order:"third"}})],1),t("div",{staticClass:"plv-iar-questionnaire-rank__list__title"},[t("span",[r._v(r._s(i.$t("questionnaire.rankListTitle")))]),t("span",[r._v(r._s(i.$t("questionnaire.rankListScore")))])]),r._l(i.rankListItems,function(n,o){return t(i.RankItem,{key:o,attrs:{item:n}})}),t("div",{staticClass:"plv-iar-questionnaire-rank__list__nomore"},[r._v(" "+r._s(i.$t("questionnaire.rankListNoMore"))+" ")])],2)],1),i.currentRankItem?t("div",{staticClass:"plv-iar-questionnaire-rank__me"},[t(i.RankItem,{attrs:{item:i.currentRankItem}})],1):r._e()])])},oZ=[],aZ=Ta(iZ,nZ,oZ);return aZ.exports});console.log("%c@polyv/iar-questionnaire-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.7.0]","[buildTime: 2026-07-17 02:01:26]");
@@ -43493,8 +43493,8 @@ const ite = Yee.exports;
43493
43493
  console.log(
43494
43494
  "%c@polyv/iar-questionnaire-ui",
43495
43495
  "background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
43496
- "[version: 2.7.0-rc-20260716.1]",
43497
- "[buildTime: 2026-07-16 06:03:01]"
43496
+ "[version: 2.7.0]",
43497
+ "[buildTime: 2026-07-17 02:01:30]"
43498
43498
  );
43499
43499
  export {
43500
43500
  ite as default