@polyv/iar-vote-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.
- package/index.es.js +2 -2
- package/index.umd.js +1 -1
- package/package.json +1 -1
- package/vote-list-popup.es.js +2 -2
- package/vote-list-popup.umd.js +1 -1
- package/vote-list.es.js +2 -2
- package/vote-list.umd.js +1 -1
- package/vote-pendant.es.js +2 -2
- package/vote-pendant.umd.js +1 -1
- package/vote-rule-popup.es.js +2 -2
- package/vote-rule-popup.umd.js +1 -1
package/vote-pendant.es.js
CHANGED
|
@@ -36620,8 +36620,8 @@ const IZ = xZ.exports;
|
|
|
36620
36620
|
console.log(
|
|
36621
36621
|
"%c@polyv/iar-vote-ui",
|
|
36622
36622
|
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
36623
|
-
"[version: 2.7.0
|
|
36624
|
-
"[buildTime: 2026-07-
|
|
36623
|
+
"[version: 2.7.0]",
|
|
36624
|
+
"[buildTime: 2026-07-17 02:01:14]"
|
|
36625
36625
|
);
|
|
36626
36626
|
export {
|
|
36627
36627
|
IZ as default
|
package/vote-pendant.umd.js
CHANGED
|
@@ -1286,4 +1286,4 @@ ${Ko(t)}`),i}})}function e3(e){const r=Object.keys(e),t=r.filter(o=>{var n;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)])},CW=[],kW=j(xW,yW,CW);const LW=kW.exports,SW=c.defineComponent({__name:"menu-item",props:tW(),setup(e){const r=e,{receiveRouterSlotData:t}=_W({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:LW}}});var PW=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)},TW=[],QW=j(SW,PW,TW);const EW=QW.exports,MW={};var AW=function(){var e=this;return e._self._c,e._m(0)},IW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],zW=j(MW,AW,IW);const DW=zW.exports;ee("PwcMenu",sW),ee("PwcSubMenu",bW),ee("PwcMenuItem",EW),ee("PwcMenuDivider",DW);const RW=12,OW=16,Yo={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function kf(e,r){const t=Yo[e];let i=OW;for(let o=0;o<r;o++)i+=t[o].height+RW;return i}function Lf(e){const r=Yo[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=kf(e,t)}const Sa={add(e,r,t){const i=Yo[e],o=i.length,n={id:r,height:0,offsetRef:t};i.push(n),t.value=kf(e,o)},updateHeight(e,r,t){const i=Yo[e].find(o=>o.id===r);i&&i.height!==t&&(i.height=t,Lf(e))},remove(e,r){const t=Yo[e],i=t.findIndex(o=>o.id===r);i!==-1&&(t.splice(i,1),Lf(e))}};let VW=0;const BW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=Lo(),o=++VW,n=c.ref(!1),a=c.ref(0);Sa.add(r,o,a);const{startTimeout:s,closeTimeout:l}=ei(()=>{u()},t);function p(){n.value=!0,t>0&&s()}function u(){n.value=!1,l()}function d(){Sa.remove(r,o),i()}function m(f){Sa.updateHeight(r,o,f)}return c.onBeforeUnmount(()=>{Sa.remove(r,o)}),{visible:n,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Mt.Info);const FW=()=>X(R(R({},Js()),p2()),{trigger:w.oneOf(Nn).def("click"),placement:w.oneOf(Ei).def("top"),feedbackType:w.enum().def(Mt.Warning),concise:w.bool.def(!1)}),jW=()=>X(R(R({},he()),Zu()),{show:Y(),hide:Y()}),NW=c.defineComponent({__name:"popconfirm",props:FW(),emits:jW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:o}=de(t),{buttonData:n,onClickConfirm:a,onClickCancel:s}=Yu({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||o(!0),r("show")}function p(){i.value&&o(!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:o,buttonData:n,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:u2}}});var UW=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))},WW=[],HW=j(NW,UW,WW);const ZW=HW.exports;ee("PwcPopconfirm",ZW);var nt=(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))(nt||{});function qW(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(o){}},{deep:!0}),t}const YW=()=>({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("")}),GW=()=>({"resize-start":Y(),resize:Y(),"resize-end":Y()}),KW=e=>{const{props:r,emit:t}=e,i=c.ref(),o=c.ref(!1),n=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?qW(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:[nt.Top,nt.Bottom].includes(y)?!!r.height:[nt.Left,nt.Right].includes(y)?!!r.width:!!r.width&&!!r.height,h=(y,k)=>{r.disabled||(y.preventDefault(),y.stopPropagation(),o.value=!0,n.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(!o.value||!n.value)return;const k=y.clientX-a.value.x,C=y.clientY-a.value.y,P={};switch(n.value){case nt.Right:P.width=s.value.width+k;break;case nt.Bottom:P.height=s.value.height+C;break;case nt.Left:P.width=s.value.width-k;break;case nt.Top:P.height=s.value.height-C;break;case nt.TopRight:P.width=s.value.width+k,P.height=s.value.height-C;break;case nt.TopLeft:P.width=s.value.width-k,P.height=s.value.height-C;break;case nt.BottomRight:P.width=s.value.width+k,P.height=s.value.height+C;break;case nt.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:n.value,event:y})},x=y=>{if(!o.value||!n.value)return;o.value=!1;const k=n.value;n.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:o,showHandleControl:b,handleMouseDown:h,setSize:f,getSize:g}};YW(),GW();const XW=()=>({title:w.looseString,titleTooltip:w.looseString}),JW=c.defineComponent({__name:"section",props:XW(),setup(e){const r=e,{hasSlot:t,slotRender:i}=xe(),o=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:o,PwcTooltip:Wn,renderSlot:ut}}});var $W=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)])},eH=[],tH=j(JW,$W,eH);const rH=tH.exports;ee("PwcSection",rH);const iH=()=>({[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)}),oH=()=>X(R({},he()),{change:Y()}),Sf=Symbol("slider-inject-key"),nH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:o}=de(r,{outSideUpdate:()=>{P()}}),n=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(n.value,a.value)),v=c.computed(()=>Math.max(n.value,a.value)),b=c.computed(()=>r.range?`${100*(v.value-g.value)/(r.max-r.min)}%`:`${100*(n.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=[],I=r.max-r.min,M=E=>{D.includes(E)||D.push(E)};if(r.step&&r.showStops){const E=I/r.step,A=r.step/I;for(let V=1;V<E;V++){const O=Math.round(V*A*100);M(O)}}return r.marks&&Object.keys(r.marks).forEach(E=>{const A=Number(E);if(A>=r.min&&A<=r.max){const V=(A-r.min)/I,O=Math.round(V*100);M(O)}}),D}),C=c.computed(()=>{const D=[],I=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(M=>{const E=Number(M),A=r.marks[E];let V="",O={};if(typeof A=="string"?V=A:(V=A.label,O=A.style||{}),E>=r.min&&E<=r.max){const W=(E-r.min)/I,B=Math.round(W*100);D.push({label:V,style:O,left:B,value:E})}}),D});function P(){r.range?Array.isArray(i.value)?(n.value=Math.max(r.min,i.value[0]),a.value=Math.min(r.max,i.value[1])):(n.value=r.min,a.value=r.max):typeof i.value!="number"||isNaN(i.value)?n.value=r.min:n.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(n.value),D!==i.value&&(l.value=i.value,o(D))}function T(){c.nextTick(()=>{t("change",r.range?[g.value,v.value]:i.value)})}function Q(D){var E;if(!r.range){(E=m.value)==null||E.setPosition(D);return}let I;const M=r.min+D*(r.max-r.min)/100;Math.abs(g.value-M)<Math.abs(v.value-M)?I=n.value<a.value?m.value:f.value:I=n.value>a.value?m.value:f.value,I==null||I.setPosition(D)}function S(D){var I,M;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const E=((I=d.value)==null?void 0:I.getBoundingClientRect().top)||0;Q((D.clientY-E)/u.value*100)}else{const E=((M=d.value)==null?void 0:M.getBoundingClientRect().left)||0;Q((D.clientX-E)/u.value*100)}T()}}function z(D){Q(D.left),T()}return c.onMounted(()=>{P()}),c.provide(Sf,{sliderProps:r,sliderWidth:u,dragging:s,emitChange:T}),{modelValue:i,firstValue:n,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}},Pf=()=>c.inject(Sf),aH=()=>({value:w.number}),sH=()=>({change:Y()}),lH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:o,emitChange:n}=Pf(),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)/o.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),n())},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}},cH={name:"PlvSliderButton"},pH=c.defineComponent(X(R({},cH),{props:aH(),emits:sH(),setup(e,{expose:r,emit:t}){const i=e,o=Pf(),{sliderProps:n}=o,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=lH({props:i,emit:t}),f=c.computed(()=>s.value||o.dragging.value||!1);return r({setPosition:m}),{__sfc:!0,props:i,emit:t,sliderInject:o,sliderProps:n,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var uH=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`}})])},dH=[],fH=j(pH,uH,dH);const mH=fH.exports,hH=c.defineComponent({__name:"slider",props:iH(),emits:oH(),setup(e,{emit:r}){const t=e,{firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:v}=nH({props:t,emit:r});function b(_){i.value=_,v()}function h(_){o.value=_,v()}return{__sfc:!0,props:t,emit:r,firstValue:i,secondValue:o,sliderRef:n,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:mH}}});var gH=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,o){return r("div",{key:`mark-${o}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(n){return t.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},vH=[],wH=j(hH,gH,vH);const bH=wH.exports;ee("PwcSlider",bH);const _H=["horizontal","vertical"],xH=["mini","small","medium","large"],yH={mini:4,small:8,medium:16,large:24},CH=()=>({direction:w.oneOf(_H).def("horizontal"),size:w.oneOfType([w.oneOf(xH),Number]).def("small"),wrap:w.bool.def(!1)}),kH=c.defineComponent({__name:"space",props:CH(),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:yH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var LH=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)},SH=[],PH=j(kH,LH,SH);const TH=PH.exports;ee("PwcSpace",TH);const QH=["horizontal","vertical"],EH=()=>({direction:w.oneOf(QH).def("horizontal"),lazy:w.bool.def(!1)}),MH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),Tf=Symbol("SPLITTER_INJECT_KEY"),AH=c.defineComponent({__name:"splitter",props:EH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),o=c.ref([]),{width:n,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;o.value=i.value.map((S,z)=>L[z]?S.props.initialSize:Q)};c.watch(()=>{const C=s.value?n.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(o.value.length===0||o.value.every(z=>z===0)){l();return}if(f.value||T===0||T===L)return;const Q=o.value.reduce((z,D)=>z+D,0);if(Q===0)return;const S=o.value.map(z=>z/Q);o.value=S.map((z,D)=>{var A,V;const I=i.value[D],M=(A=I==null?void 0:I.props.min)!=null?A:0,E=(V=I==null?void 0:I.props.max)!=null?V:1/0;return Math.max(M,Math.min(E,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),o.value.splice(P,1))},d=C=>{const P=i.value.findIndex(T=>T.id===C),L=o.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:o.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=[...o.value],h.value=[...o.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,I=(W=Q.props.min)!=null?W:0,M=(B=Q.props.max)!=null?B:1/0;let E=Math.max(z,Math.min(D,b.value[L]+P)),A=S-E;if(A<I&&(A=I,E=S-A),A>M&&(A=M,E=S-A),E=Math.max(z,Math.min(D,E)),r.lazy){const F=[...b.value];F[L]=E,F[L+1]=A,h.value=F}else{const F=[...o.value];F[L]=E,F[L+1]=A,o.value=F}},k=()=>{r.lazy&&(o.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(Tf,{direction:c.computed(()=>r.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:r,containerRef:t,panels:i,sizes:o,containerWidth:n,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 IH=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)},zH=[],DH=j(AH,IH,zH);const RH=DH.exports,OH=c.defineComponent({__name:"splitter-panel",props:MH(),setup(e){const r=e,t=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(Tf),o=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),n=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:o,isLast:n,panelStyle:a,handleDividerMouseDown:s}}});var VH=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"})])])},BH=[],FH=j(OH,VH,BH);const jH=FH.exports;ee("PwcSplitter",RH),ee("PwcSplitterPanel",jH);const NH=()=>({max:w.number.def(3)}),UH=()=>({label:w.looseString,disabled:w.bool.def(!1)}),WH=()=>({click:Y()}),Qf=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),HH=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(Qf,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:cu,PwcDropdown:ID,PwcDropdownMenu:zD}}});var ZH=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)},qH=[],YH=j(HH,ZH,qH);const GH=YH.exports;function KH(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function XH(e){const r=KH(e);return typeof r=="string"&&r.trim()===""}function JH(e){return!Ie.isCommentVNode(e)&&!XH(e)}const $H=c.defineComponent({props:NH(),setup(e){const r=c.useSlots(),t=c.inject(Rl,void 0),i=ar(8),o=c.ref();function n(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Oe(o,({width:a})=>{const s=n();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=n();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(JH);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(GH,{},wo()?{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:o},l)])}}}),eZ=c.defineComponent({__name:"table-operation-item",props:UH(),emits:WH(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),o=c.inject(Qf,void 0);function n(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:o,onClickItem:n,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:DD}}});var tZ=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)},rZ=[],iZ=j(eZ,tZ,rZ);const oZ=iZ.exports;ee("PwcTableOperation",$H),ee("PwcTableOperationItem",oZ);const nZ=["line","rounded","text"],aZ=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(nZ).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),sZ=()=>X(R({},he()),{change:Y()}),lZ=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),mc=Symbol("tabs-inject-key"),cZ=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(mc),{$t:o}=ne(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=ft();function p(){return K(this,null,function*(){if(yield c.nextTick(),!n.value||ue)return;const d=n.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;n.value.clientHeight>=m*1.5||n.value.scrollWidth>n.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:o,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:dr,PwcIconUp:Bs,renderSlot:ut}}});var pZ=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(o){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()])])},uZ=[],dZ=j(cZ,pZ,uZ);const fZ=dZ.exports,mZ=c.defineComponent({__name:"tabs",props:aZ(),emits:sZ(),setup(e,{emit:r}){const t=e,i=c.ref(),o=c.ref(),{modelValue:n,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 n.value>"u"){const v=g.getPaneName();u(v,!1)}else u(n.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=o.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(mc,f),{__sfc:!0,props:t,emits:r,currentTab:i,tabsRef:o,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:fZ}}});var hZ=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)},gZ=[],vZ=j(mZ,hZ,gZ);const wZ=vZ.exports,bZ=c.defineComponent({__name:"tab-pane",props:lZ(),setup(e){const r=e,t=ar(8),i=c.inject(mc),{hasSlot:o,slotRender:n}=xe(),a=c.computed(()=>r.name||t),s=c.computed(()=>i.currentTab.value===a.value);function l(){return n("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:o,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:r,paneId:t,tabsInject:i,hasSlot:o,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var _Z=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()])},xZ=[],yZ=j(bZ,_Z,xZ);const CZ=yZ.exports;ee("PwcTabs",wZ),ee("PwcTabPane",CZ);var Ef={},kZ,LZ;function SZ(e,r,t,n){var o=0,n=n===void 0?{}:n,a=n.loop===void 0?null:n.loop,s=n.palette===void 0?null:n.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[o++]=71,e[o++]=73,e[o++]=70,e[o++]=56,e[o++]=57,e[o++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,n.background!==void 0){if(u=n.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[o++]=r&255,e[o++]=r>>8&255,e[o++]=t&255,e[o++]=t>>8&255,e[o++]=(s!==null?128:0)|p,e[o++]=u,e[o++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var g=s[m];e[o++]=g>>16&255,e[o++]=g>>8&255,e[o++]=g&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[o++]=33,e[o++]=255,e[o++]=11,e[o++]=78,e[o++]=69,e[o++]=84,e[o++]=83,e[o++]=67,e[o++]=65,e[o++]=80,e[o++]=69,e[o++]=50,e[o++]=46,e[o++]=48,e[o++]=3,e[o++]=1,e[o++]=a&255,e[o++]=a>>8&255,e[o++]=0}var v=!1;this.addFrame=function(b,h,_,x,y,k){if(v===!0&&(--o,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[o++]=33,e[o++]=249,e[o++]=4,e[o++]=S<<2|(z===!0?1:0),e[o++]=Q&255,e[o++]=Q>>8&255,e[o++]=D,e[o++]=0),e[o++]=44,e[o++]=b&255,e[o++]=b>>8&255,e[o++]=h&255,e[o++]=h>>8&255,e[o++]=_&255,e[o++]=_>>8&255,e[o++]=x&255,e[o++]=x>>8&255,e[o++]=C===!0?128|T-1:0,C===!0)for(var I=0,M=P.length;I<M;++I){var E=P[I];e[o++]=E>>16&255,e[o++]=E>>8&255,e[o++]=E&255}return o=PZ(e,o,T<2?2:T,y),o},this.end=function(){return v===!1&&(e[o++]=59,v=!0),o},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return o},this.setOutputBufferPosition=function(b){o=b}}function PZ(e,r,t,i){e[r++]=t;var o=r++,n=1<<t,a=n-1,s=n+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===o+256&&(e[o]=255,o=r++)}function f(k){d|=k<<u,u+=p,m(8)}var g=i[0]&a,v={};f(n);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===o+256&&(e[o]=255,o=r++);l===4096?(f(n),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),o+1===r?e[o]=0:(e[o]=r-o-1,e[r++]=0),r}function TZ(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,o=e[r++],n=o>>7,a=o&7,s=1<<a+1;e[r++],e[r++];var l=null,p=null;n&&(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 I=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:I,data_length:r-I,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(M){if(M<0||M>=d.length)throw new Error("Frame index out of range.");return d[M]},this.decodeAndBlitFrameBGRA=function(M,E){var A=this.frameInfo(M),V=A.width*A.height,O=new Uint8Array(V);Mf(e,A.data_offset,O,V);var W=A.palette_offset,B=A.transparent_index;B===null&&(B=256);var F=A.width,H=t-F,G=F,N=(A.y*t+A.x)*4,q=((A.y+A.height)*t+A.x)*4,J=N,ie=H*4;A.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>=q&&(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],Ze=e[W+we*3+1],_t=e[W+we*3+2];E[J++]=_t,E[J++]=Ze,E[J++]=be,E[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(M,E){var A=this.frameInfo(M),V=A.width*A.height,O=new Uint8Array(V);Mf(e,A.data_offset,O,V);var W=A.palette_offset,B=A.transparent_index;B===null&&(B=256);var F=A.width,H=t-F,G=F,N=(A.y*t+A.x)*4,q=((A.y+A.height)*t+A.x)*4,J=N,ie=H*4;A.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>=q&&(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],Ze=e[W+we*3+1],_t=e[W+we*3+2];E[J++]=be,E[J++]=Ze,E[J++]=_t,E[J++]=255}--G}}}function Mf(e,r,t,i){for(var o=e[r++],n=1<<o,a=n+1,s=a+1,l=o+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===n){s=a+1,l=o+1,p=(1<<l)-1,v=null;continue}else if(b===a)break;for(var h=b<s?b:v,_=0,x=h;x>n;)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{LZ=Ef.GifWriter=SZ,kZ=Ef.GifReader=TZ}catch(e){}const QZ={vote:{option:"Voting Options",rule:"Rules",ruleTitle:"Rule Description",success:"Vote successful",voted:"You have already voted",voteFailed:"Vote failed",voteLimit:"Vote limit reached",count:"votes",entrance:"Vote",listTitle:"Vote Activity",noRule:"No rules",status:{voting:"Voting",ended:"Ended"},button:{vote:"Vote",voted:"Voted",notVoted:"Not Voted"}}},EZ={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},MZ={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},AZ={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},IZ={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},zZ={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:DZ}=Hu({zh_CN:IZ,zh_TW:zZ,en:QZ,ja:EZ,ko:MZ,ru:AZ}),RZ={OpenVote:"OpenVote"},OZ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAaXSURBVHic7VxPbBRVHP7eTPd/SwkEKjZ2oZ4K6cZEm0YUvGiikYOxSkJa9QjSqAkX/iTogQPVQz2BcFATbI0HiRyQmlAvFa0aLrZRQ4zEFgy2NNil7G7b3Zmfh5nZnZ2dmff2f7vOl2zevJnfvPfmm9/vm/fevB2GQjAAfgCyvs1sbBoJpP8UAKv6dhbWiw8A8NW2fWsOaQArRkY2HQgBaKpPm9YUZP2XgYmggEdOHiQ9upQmfaPosJoYH+/o6e054fc1dTMmRRnQmjtK2UgmAAyUC2yCNczz7PP25ZlaDMimDHNCFAdhcXk59fXsX7dHunp7p4u8RB+AVVaK7iSX4kOhQGAQUEFQbS7YDhwbbhEidVjMiQBV+y2nVs6Et247VlwhSDMAYd2lhKAsJ7+XJClGLF18o+sFlYBVBYqiTPk2bnmqmDOlYh7jyaX40LojBwAkBgRkyLIcS87fGSriTCZM0O9TU92hQHBw3ZFjgDHALyEY9A9OXLnSIXqWcGh1RDsGIKw3axSSBEgMPT2PnRA+RdQwFAy+SEwtuW1rBrKEpiZft6i5MEFgbOO69h4DEiBJLFqEuRhy/RyDpAqlVGL+7j9gxw6Dvf2G/XHHFGCMmfps7hDvPTPrRoVSVmR+YR5s7Ctg7JKW3xmzt3dMha8YKGl4QaRVQnqlZeWLTCeugl0cBe7OaW2JdoKOvJvriYuWU1WCrHei7LxAencO7MI54Ppkrh3RTtDJD4BIRDPK2pNAXhziBGXHUCUKdTIBXDgHPPMc0BUTOEEDuzgCXBzN32mQE444j+2c8lXzIOMOlBIaDMDMn2AT48DEOLD3WdDrh7S7T5Y6jPz1SbDPzufCyYCZHGvIlBBCIpfdLGJI6ZUlolVoncUSKzs3DExc1TLhCOiVAeD5l/KNFubAvhzRiLTCTE6p0Mdl0obNLUJtriVBWJgDO3U03yt2xkB9/VrYfXMJbOxSodegQuSgmgStriwRyiQIAGZugh0fLNwfjmg6ZYdKkYPiCRLqKN7f3368YlP30U6gb6Bwfy3IMWHu5fZ+ETshggIMQoWJgvr6TR08F1SJHABoldlhETsuQTdeeGgPZSA8dhEFHTwCbGlzNqgiOQAAlWLjezZxpz24BG1uYk+rGbs54zKxpQ302kH7Y9UmB4CaIexq9e/j2XEJChL6VYWq8/rwiSeBPkv01oAcAFAVQjP40uFK0E+7t3arGYqqmepNc1DfQC7Uop2gk+9XnRzoHoQMYld63cPMtSf9cAB7SKl42wpAp88Av01pwl0DcgCAFE01Hg1JMQCzTnauHtTc3hZTMypUpQoaZEY4ooVbjciB7kGqQpDTcJ0bciXI17oRqqK7Y4MtYVAVgpohtLRtd7VzJUhuCSEYfUTzoAaDqhCCm7ZB8rm/M+WO5sOd28F8EWD+b2BDCxDwV7Kd9cH8HTTv2IlgOIJk/F9XU6HpjlDnDmBkGMzfDMgBIJME0kktzf6WTa96kUspP09DnwOhErUmmQAb3M+3YwwIhrV6ghE91fOZDPBgEcGt7cCDRW5RRbzVMG8wrRHM6TjyZ/HMmPpRuMoCzN4UNLSpmDGuiR3ECSpYZeH0ZLO+vbC0a+wLIOUwMHVD8gHYx8OCxjZ1W1eDCMpqiR6EnBc5GlpTHffmwE6/A/wx7TyCNyOZAK6Ng733FrAwX2xjTbtK86Ai56SNDdLuCNnN9Vo9zObO3ZsH+/CEvVZVBHX3oDI0SHRfWVjHGlSbt9d19yCUrkE16ZHX3YPK1CDHsiuFunuQp0GF8DSIA0+DOPA0iIMCDYKnQXko8BCnu+BpUC71NMgET4M48DSIA0+DOPA0iANPgzjwNIgDT4M48DSIA0+DOPA0iANPgzjwNKgQqop4NuNpUCHSRDPZTINq0EJCmXIryZWgO/cT32UzDahBBMS7Lv/s+kUGV4K6zv8wnSFoJDWgBqVUdoZXksS7p5O3Fg8BjadBRJi58Ovts7yCuATt/fTb2aWVzNFCDbJ40JrSILs6cpUQIX5j8f6BNyd/ibueoxPEXei74dTo2bml1AEixPM9xM0d6qlBdvWSUf3MtVsLu7s+uSzyNRjFeBYJrYn76NV9rQce39UfkZV9sprqYEoqinRCW4KnLHOW39kvyYOqh6JaweUvTAKCoewSPApGZtL+0HQC7PKmk8OjAiUYSBh+532aqxBpACvGU2yl/H/KNRQU4ztm5m+YpfVwk53P+18gDWDZyDg9U7zPBOr4D1m9Wh4sOVbJAAAAAElFTkSuQmCC",VZ=()=>({voteTarget:w.object(),isFullScreen:w.bool.def(!1),iconUrl:w.string.def(""),beforeClickInterrupt:w.func()}),BZ=()=>({"open-vote":Y()}),FZ=e=>{const{props:r}=e,{getEmitter:t}=Ti();function i(){return K(this,null,function*(){r.beforeClickInterrupt&&ts(r.beforeClickInterrupt)&&(yield r.beforeClickInterrupt())||t().emit(RZ.OpenVote)})}return{pendantIconUrl:c.computed(()=>r.iconUrl||OZ),onClickPendant:i}},jZ=c.defineComponent({__name:"vote-pendant",props:VZ(),emits:BZ(),setup(e,{emit:r}){const t=e,{$t:i}=DZ(),{onClickPendant:o,pendantIconUrl:n}=FZ({props:t}),a=c.computed(()=>({backgroundImage:`url(${n.value})`}));return{__sfc:!0,props:t,emit:r,$t:i,onClickPendant:o,pendantIconUrl:n,pendantStyle:a}}});function NZ(e,r,t,i,o,n,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 UZ=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return r.voteTarget&&!r.isFullScreen?t("div",{staticClass:"plv-iar-vote-pendant",style:i.pendantStyle,on:{click:i.onClickPendant}},[t("div",{staticClass:"plv-iar-vote-pendant__text"},[r._v(" "+r._s(i.$t("vote.entrance"))+" ")])]):r._e()},WZ=[],HZ=NZ(jZ,UZ,WZ);return HZ.exports});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.7.0-rc-20260716.1]","[buildTime: 2026-07-16 06:02:44]");
|
|
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)])},CW=[],kW=j(xW,yW,CW);const LW=kW.exports,SW=c.defineComponent({__name:"menu-item",props:tW(),setup(e){const r=e,{receiveRouterSlotData:t}=_W({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:LW}}});var PW=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)},TW=[],QW=j(SW,PW,TW);const EW=QW.exports,MW={};var AW=function(){var e=this;return e._self._c,e._m(0)},IW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],zW=j(MW,AW,IW);const DW=zW.exports;ee("PwcMenu",sW),ee("PwcSubMenu",bW),ee("PwcMenuItem",EW),ee("PwcMenuDivider",DW);const RW=12,OW=16,Yo={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function kf(e,r){const t=Yo[e];let i=OW;for(let o=0;o<r;o++)i+=t[o].height+RW;return i}function Lf(e){const r=Yo[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=kf(e,t)}const Sa={add(e,r,t){const i=Yo[e],o=i.length,n={id:r,height:0,offsetRef:t};i.push(n),t.value=kf(e,o)},updateHeight(e,r,t){const i=Yo[e].find(o=>o.id===r);i&&i.height!==t&&(i.height=t,Lf(e))},remove(e,r){const t=Yo[e],i=t.findIndex(o=>o.id===r);i!==-1&&(t.splice(i,1),Lf(e))}};let VW=0;const BW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=Lo(),o=++VW,n=c.ref(!1),a=c.ref(0);Sa.add(r,o,a);const{startTimeout:s,closeTimeout:l}=ei(()=>{u()},t);function p(){n.value=!0,t>0&&s()}function u(){n.value=!1,l()}function d(){Sa.remove(r,o),i()}function m(f){Sa.updateHeight(r,o,f)}return c.onBeforeUnmount(()=>{Sa.remove(r,o)}),{visible:n,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Mt.Info);const FW=()=>X(R(R({},Js()),p2()),{trigger:w.oneOf(Nn).def("click"),placement:w.oneOf(Ei).def("top"),feedbackType:w.enum().def(Mt.Warning),concise:w.bool.def(!1)}),jW=()=>X(R(R({},he()),Zu()),{show:Y(),hide:Y()}),NW=c.defineComponent({__name:"popconfirm",props:FW(),emits:jW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:o}=de(t),{buttonData:n,onClickConfirm:a,onClickCancel:s}=Yu({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||o(!0),r("show")}function p(){i.value&&o(!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:o,buttonData:n,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:u2}}});var UW=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))},WW=[],HW=j(NW,UW,WW);const ZW=HW.exports;ee("PwcPopconfirm",ZW);var nt=(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))(nt||{});function qW(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(o){}},{deep:!0}),t}const YW=()=>({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("")}),GW=()=>({"resize-start":Y(),resize:Y(),"resize-end":Y()}),KW=e=>{const{props:r,emit:t}=e,i=c.ref(),o=c.ref(!1),n=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?qW(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:[nt.Top,nt.Bottom].includes(y)?!!r.height:[nt.Left,nt.Right].includes(y)?!!r.width:!!r.width&&!!r.height,h=(y,k)=>{r.disabled||(y.preventDefault(),y.stopPropagation(),o.value=!0,n.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(!o.value||!n.value)return;const k=y.clientX-a.value.x,C=y.clientY-a.value.y,P={};switch(n.value){case nt.Right:P.width=s.value.width+k;break;case nt.Bottom:P.height=s.value.height+C;break;case nt.Left:P.width=s.value.width-k;break;case nt.Top:P.height=s.value.height-C;break;case nt.TopRight:P.width=s.value.width+k,P.height=s.value.height-C;break;case nt.TopLeft:P.width=s.value.width-k,P.height=s.value.height-C;break;case nt.BottomRight:P.width=s.value.width+k,P.height=s.value.height+C;break;case nt.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:n.value,event:y})},x=y=>{if(!o.value||!n.value)return;o.value=!1;const k=n.value;n.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:o,showHandleControl:b,handleMouseDown:h,setSize:f,getSize:g}};YW(),GW();const XW=()=>({title:w.looseString,titleTooltip:w.looseString}),JW=c.defineComponent({__name:"section",props:XW(),setup(e){const r=e,{hasSlot:t,slotRender:i}=xe(),o=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:o,PwcTooltip:Wn,renderSlot:ut}}});var $W=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)])},eH=[],tH=j(JW,$W,eH);const rH=tH.exports;ee("PwcSection",rH);const iH=()=>({[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)}),oH=()=>X(R({},he()),{change:Y()}),Sf=Symbol("slider-inject-key"),nH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:o}=de(r,{outSideUpdate:()=>{P()}}),n=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(n.value,a.value)),v=c.computed(()=>Math.max(n.value,a.value)),b=c.computed(()=>r.range?`${100*(v.value-g.value)/(r.max-r.min)}%`:`${100*(n.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=[],I=r.max-r.min,M=E=>{D.includes(E)||D.push(E)};if(r.step&&r.showStops){const E=I/r.step,A=r.step/I;for(let V=1;V<E;V++){const O=Math.round(V*A*100);M(O)}}return r.marks&&Object.keys(r.marks).forEach(E=>{const A=Number(E);if(A>=r.min&&A<=r.max){const V=(A-r.min)/I,O=Math.round(V*100);M(O)}}),D}),C=c.computed(()=>{const D=[],I=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(M=>{const E=Number(M),A=r.marks[E];let V="",O={};if(typeof A=="string"?V=A:(V=A.label,O=A.style||{}),E>=r.min&&E<=r.max){const W=(E-r.min)/I,B=Math.round(W*100);D.push({label:V,style:O,left:B,value:E})}}),D});function P(){r.range?Array.isArray(i.value)?(n.value=Math.max(r.min,i.value[0]),a.value=Math.min(r.max,i.value[1])):(n.value=r.min,a.value=r.max):typeof i.value!="number"||isNaN(i.value)?n.value=r.min:n.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(n.value),D!==i.value&&(l.value=i.value,o(D))}function T(){c.nextTick(()=>{t("change",r.range?[g.value,v.value]:i.value)})}function Q(D){var E;if(!r.range){(E=m.value)==null||E.setPosition(D);return}let I;const M=r.min+D*(r.max-r.min)/100;Math.abs(g.value-M)<Math.abs(v.value-M)?I=n.value<a.value?m.value:f.value:I=n.value>a.value?m.value:f.value,I==null||I.setPosition(D)}function S(D){var I,M;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const E=((I=d.value)==null?void 0:I.getBoundingClientRect().top)||0;Q((D.clientY-E)/u.value*100)}else{const E=((M=d.value)==null?void 0:M.getBoundingClientRect().left)||0;Q((D.clientX-E)/u.value*100)}T()}}function z(D){Q(D.left),T()}return c.onMounted(()=>{P()}),c.provide(Sf,{sliderProps:r,sliderWidth:u,dragging:s,emitChange:T}),{modelValue:i,firstValue:n,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}},Pf=()=>c.inject(Sf),aH=()=>({value:w.number}),sH=()=>({change:Y()}),lH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:o,emitChange:n}=Pf(),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)/o.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),n())},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}},cH={name:"PlvSliderButton"},pH=c.defineComponent(X(R({},cH),{props:aH(),emits:sH(),setup(e,{expose:r,emit:t}){const i=e,o=Pf(),{sliderProps:n}=o,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=lH({props:i,emit:t}),f=c.computed(()=>s.value||o.dragging.value||!1);return r({setPosition:m}),{__sfc:!0,props:i,emit:t,sliderInject:o,sliderProps:n,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var uH=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`}})])},dH=[],fH=j(pH,uH,dH);const mH=fH.exports,hH=c.defineComponent({__name:"slider",props:iH(),emits:oH(),setup(e,{emit:r}){const t=e,{firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:v}=nH({props:t,emit:r});function b(_){i.value=_,v()}function h(_){o.value=_,v()}return{__sfc:!0,props:t,emit:r,firstValue:i,secondValue:o,sliderRef:n,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:mH}}});var gH=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,o){return r("div",{key:`mark-${o}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(n){return t.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},vH=[],wH=j(hH,gH,vH);const bH=wH.exports;ee("PwcSlider",bH);const _H=["horizontal","vertical"],xH=["mini","small","medium","large"],yH={mini:4,small:8,medium:16,large:24},CH=()=>({direction:w.oneOf(_H).def("horizontal"),size:w.oneOfType([w.oneOf(xH),Number]).def("small"),wrap:w.bool.def(!1)}),kH=c.defineComponent({__name:"space",props:CH(),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:yH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var LH=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)},SH=[],PH=j(kH,LH,SH);const TH=PH.exports;ee("PwcSpace",TH);const QH=["horizontal","vertical"],EH=()=>({direction:w.oneOf(QH).def("horizontal"),lazy:w.bool.def(!1)}),MH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),Tf=Symbol("SPLITTER_INJECT_KEY"),AH=c.defineComponent({__name:"splitter",props:EH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),o=c.ref([]),{width:n,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;o.value=i.value.map((S,z)=>L[z]?S.props.initialSize:Q)};c.watch(()=>{const C=s.value?n.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(o.value.length===0||o.value.every(z=>z===0)){l();return}if(f.value||T===0||T===L)return;const Q=o.value.reduce((z,D)=>z+D,0);if(Q===0)return;const S=o.value.map(z=>z/Q);o.value=S.map((z,D)=>{var A,V;const I=i.value[D],M=(A=I==null?void 0:I.props.min)!=null?A:0,E=(V=I==null?void 0:I.props.max)!=null?V:1/0;return Math.max(M,Math.min(E,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),o.value.splice(P,1))},d=C=>{const P=i.value.findIndex(T=>T.id===C),L=o.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:o.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=[...o.value],h.value=[...o.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,I=(W=Q.props.min)!=null?W:0,M=(B=Q.props.max)!=null?B:1/0;let E=Math.max(z,Math.min(D,b.value[L]+P)),A=S-E;if(A<I&&(A=I,E=S-A),A>M&&(A=M,E=S-A),E=Math.max(z,Math.min(D,E)),r.lazy){const F=[...b.value];F[L]=E,F[L+1]=A,h.value=F}else{const F=[...o.value];F[L]=E,F[L+1]=A,o.value=F}},k=()=>{r.lazy&&(o.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(Tf,{direction:c.computed(()=>r.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:r,containerRef:t,panels:i,sizes:o,containerWidth:n,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 IH=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)},zH=[],DH=j(AH,IH,zH);const RH=DH.exports,OH=c.defineComponent({__name:"splitter-panel",props:MH(),setup(e){const r=e,t=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(Tf),o=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),n=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:o,isLast:n,panelStyle:a,handleDividerMouseDown:s}}});var VH=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"})])])},BH=[],FH=j(OH,VH,BH);const jH=FH.exports;ee("PwcSplitter",RH),ee("PwcSplitterPanel",jH);const NH=()=>({max:w.number.def(3)}),UH=()=>({label:w.looseString,disabled:w.bool.def(!1)}),WH=()=>({click:Y()}),Qf=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),HH=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(Qf,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:cu,PwcDropdown:ID,PwcDropdownMenu:zD}}});var ZH=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)},qH=[],YH=j(HH,ZH,qH);const GH=YH.exports;function KH(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function XH(e){const r=KH(e);return typeof r=="string"&&r.trim()===""}function JH(e){return!Ie.isCommentVNode(e)&&!XH(e)}const $H=c.defineComponent({props:NH(),setup(e){const r=c.useSlots(),t=c.inject(Rl,void 0),i=ar(8),o=c.ref();function n(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Oe(o,({width:a})=>{const s=n();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=n();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(JH);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(GH,{},wo()?{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:o},l)])}}}),eZ=c.defineComponent({__name:"table-operation-item",props:UH(),emits:WH(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),o=c.inject(Qf,void 0);function n(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:o,onClickItem:n,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:DD}}});var tZ=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)},rZ=[],iZ=j(eZ,tZ,rZ);const oZ=iZ.exports;ee("PwcTableOperation",$H),ee("PwcTableOperationItem",oZ);const nZ=["line","rounded","text"],aZ=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(nZ).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),sZ=()=>X(R({},he()),{change:Y()}),lZ=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),mc=Symbol("tabs-inject-key"),cZ=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(mc),{$t:o}=ne(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=ft();function p(){return K(this,null,function*(){if(yield c.nextTick(),!n.value||ue)return;const d=n.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;n.value.clientHeight>=m*1.5||n.value.scrollWidth>n.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:o,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:dr,PwcIconUp:Bs,renderSlot:ut}}});var pZ=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(o){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()])])},uZ=[],dZ=j(cZ,pZ,uZ);const fZ=dZ.exports,mZ=c.defineComponent({__name:"tabs",props:aZ(),emits:sZ(),setup(e,{emit:r}){const t=e,i=c.ref(),o=c.ref(),{modelValue:n,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 n.value>"u"){const v=g.getPaneName();u(v,!1)}else u(n.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=o.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(mc,f),{__sfc:!0,props:t,emits:r,currentTab:i,tabsRef:o,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:fZ}}});var hZ=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)},gZ=[],vZ=j(mZ,hZ,gZ);const wZ=vZ.exports,bZ=c.defineComponent({__name:"tab-pane",props:lZ(),setup(e){const r=e,t=ar(8),i=c.inject(mc),{hasSlot:o,slotRender:n}=xe(),a=c.computed(()=>r.name||t),s=c.computed(()=>i.currentTab.value===a.value);function l(){return n("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:o,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:r,paneId:t,tabsInject:i,hasSlot:o,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var _Z=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()])},xZ=[],yZ=j(bZ,_Z,xZ);const CZ=yZ.exports;ee("PwcTabs",wZ),ee("PwcTabPane",CZ);var Ef={},kZ,LZ;function SZ(e,r,t,n){var o=0,n=n===void 0?{}:n,a=n.loop===void 0?null:n.loop,s=n.palette===void 0?null:n.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[o++]=71,e[o++]=73,e[o++]=70,e[o++]=56,e[o++]=57,e[o++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,n.background!==void 0){if(u=n.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[o++]=r&255,e[o++]=r>>8&255,e[o++]=t&255,e[o++]=t>>8&255,e[o++]=(s!==null?128:0)|p,e[o++]=u,e[o++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var g=s[m];e[o++]=g>>16&255,e[o++]=g>>8&255,e[o++]=g&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[o++]=33,e[o++]=255,e[o++]=11,e[o++]=78,e[o++]=69,e[o++]=84,e[o++]=83,e[o++]=67,e[o++]=65,e[o++]=80,e[o++]=69,e[o++]=50,e[o++]=46,e[o++]=48,e[o++]=3,e[o++]=1,e[o++]=a&255,e[o++]=a>>8&255,e[o++]=0}var v=!1;this.addFrame=function(b,h,_,x,y,k){if(v===!0&&(--o,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[o++]=33,e[o++]=249,e[o++]=4,e[o++]=S<<2|(z===!0?1:0),e[o++]=Q&255,e[o++]=Q>>8&255,e[o++]=D,e[o++]=0),e[o++]=44,e[o++]=b&255,e[o++]=b>>8&255,e[o++]=h&255,e[o++]=h>>8&255,e[o++]=_&255,e[o++]=_>>8&255,e[o++]=x&255,e[o++]=x>>8&255,e[o++]=C===!0?128|T-1:0,C===!0)for(var I=0,M=P.length;I<M;++I){var E=P[I];e[o++]=E>>16&255,e[o++]=E>>8&255,e[o++]=E&255}return o=PZ(e,o,T<2?2:T,y),o},this.end=function(){return v===!1&&(e[o++]=59,v=!0),o},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return o},this.setOutputBufferPosition=function(b){o=b}}function PZ(e,r,t,i){e[r++]=t;var o=r++,n=1<<t,a=n-1,s=n+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===o+256&&(e[o]=255,o=r++)}function f(k){d|=k<<u,u+=p,m(8)}var g=i[0]&a,v={};f(n);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===o+256&&(e[o]=255,o=r++);l===4096?(f(n),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),o+1===r?e[o]=0:(e[o]=r-o-1,e[r++]=0),r}function TZ(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,o=e[r++],n=o>>7,a=o&7,s=1<<a+1;e[r++],e[r++];var l=null,p=null;n&&(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 I=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:I,data_length:r-I,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(M){if(M<0||M>=d.length)throw new Error("Frame index out of range.");return d[M]},this.decodeAndBlitFrameBGRA=function(M,E){var A=this.frameInfo(M),V=A.width*A.height,O=new Uint8Array(V);Mf(e,A.data_offset,O,V);var W=A.palette_offset,B=A.transparent_index;B===null&&(B=256);var F=A.width,H=t-F,G=F,N=(A.y*t+A.x)*4,q=((A.y+A.height)*t+A.x)*4,J=N,ie=H*4;A.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>=q&&(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],Ze=e[W+we*3+1],_t=e[W+we*3+2];E[J++]=_t,E[J++]=Ze,E[J++]=be,E[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(M,E){var A=this.frameInfo(M),V=A.width*A.height,O=new Uint8Array(V);Mf(e,A.data_offset,O,V);var W=A.palette_offset,B=A.transparent_index;B===null&&(B=256);var F=A.width,H=t-F,G=F,N=(A.y*t+A.x)*4,q=((A.y+A.height)*t+A.x)*4,J=N,ie=H*4;A.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>=q&&(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],Ze=e[W+we*3+1],_t=e[W+we*3+2];E[J++]=be,E[J++]=Ze,E[J++]=_t,E[J++]=255}--G}}}function Mf(e,r,t,i){for(var o=e[r++],n=1<<o,a=n+1,s=a+1,l=o+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===n){s=a+1,l=o+1,p=(1<<l)-1,v=null;continue}else if(b===a)break;for(var h=b<s?b:v,_=0,x=h;x>n;)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{LZ=Ef.GifWriter=SZ,kZ=Ef.GifReader=TZ}catch(e){}const QZ={vote:{option:"Voting Options",rule:"Rules",ruleTitle:"Rule Description",success:"Vote successful",voted:"You have already voted",voteFailed:"Vote failed",voteLimit:"Vote limit reached",count:"votes",entrance:"Vote",listTitle:"Vote Activity",noRule:"No rules",status:{voting:"Voting",ended:"Ended"},button:{vote:"Vote",voted:"Voted",notVoted:"Not Voted"}}},EZ={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},MZ={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},AZ={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},IZ={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},zZ={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:DZ}=Hu({zh_CN:IZ,zh_TW:zZ,en:QZ,ja:EZ,ko:MZ,ru:AZ}),RZ={OpenVote:"OpenVote"},OZ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAaXSURBVHic7VxPbBRVHP7eTPd/SwkEKjZ2oZ4K6cZEm0YUvGiikYOxSkJa9QjSqAkX/iTogQPVQz2BcFATbI0HiRyQmlAvFa0aLrZRQ4zEFgy2NNil7G7b3Zmfh5nZnZ2dmff2f7vOl2zevJnfvPfmm9/vm/fevB2GQjAAfgCyvs1sbBoJpP8UAKv6dhbWiw8A8NW2fWsOaQArRkY2HQgBaKpPm9YUZP2XgYmggEdOHiQ9upQmfaPosJoYH+/o6e054fc1dTMmRRnQmjtK2UgmAAyUC2yCNczz7PP25ZlaDMimDHNCFAdhcXk59fXsX7dHunp7p4u8RB+AVVaK7iSX4kOhQGAQUEFQbS7YDhwbbhEidVjMiQBV+y2nVs6Et247VlwhSDMAYd2lhKAsJ7+XJClGLF18o+sFlYBVBYqiTPk2bnmqmDOlYh7jyaX40LojBwAkBgRkyLIcS87fGSriTCZM0O9TU92hQHBw3ZFjgDHALyEY9A9OXLnSIXqWcGh1RDsGIKw3axSSBEgMPT2PnRA+RdQwFAy+SEwtuW1rBrKEpiZft6i5MEFgbOO69h4DEiBJLFqEuRhy/RyDpAqlVGL+7j9gxw6Dvf2G/XHHFGCMmfps7hDvPTPrRoVSVmR+YR5s7Ctg7JKW3xmzt3dMha8YKGl4QaRVQnqlZeWLTCeugl0cBe7OaW2JdoKOvJvriYuWU1WCrHei7LxAencO7MI54Ppkrh3RTtDJD4BIRDPK2pNAXhziBGXHUCUKdTIBXDgHPPMc0BUTOEEDuzgCXBzN32mQE444j+2c8lXzIOMOlBIaDMDMn2AT48DEOLD3WdDrh7S7T5Y6jPz1SbDPzufCyYCZHGvIlBBCIpfdLGJI6ZUlolVoncUSKzs3DExc1TLhCOiVAeD5l/KNFubAvhzRiLTCTE6p0Mdl0obNLUJtriVBWJgDO3U03yt2xkB9/VrYfXMJbOxSodegQuSgmgStriwRyiQIAGZugh0fLNwfjmg6ZYdKkYPiCRLqKN7f3368YlP30U6gb6Bwfy3IMWHu5fZ+ETshggIMQoWJgvr6TR08F1SJHABoldlhETsuQTdeeGgPZSA8dhEFHTwCbGlzNqgiOQAAlWLjezZxpz24BG1uYk+rGbs54zKxpQ302kH7Y9UmB4CaIexq9e/j2XEJChL6VYWq8/rwiSeBPkv01oAcAFAVQjP40uFK0E+7t3arGYqqmepNc1DfQC7Uop2gk+9XnRzoHoQMYld63cPMtSf9cAB7SKl42wpAp88Av01pwl0DcgCAFE01Hg1JMQCzTnauHtTc3hZTMypUpQoaZEY4ooVbjciB7kGqQpDTcJ0bciXI17oRqqK7Y4MtYVAVgpohtLRtd7VzJUhuCSEYfUTzoAaDqhCCm7ZB8rm/M+WO5sOd28F8EWD+b2BDCxDwV7Kd9cH8HTTv2IlgOIJk/F9XU6HpjlDnDmBkGMzfDMgBIJME0kktzf6WTa96kUspP09DnwOhErUmmQAb3M+3YwwIhrV6ghE91fOZDPBgEcGt7cCDRW5RRbzVMG8wrRHM6TjyZ/HMmPpRuMoCzN4UNLSpmDGuiR3ECSpYZeH0ZLO+vbC0a+wLIOUwMHVD8gHYx8OCxjZ1W1eDCMpqiR6EnBc5GlpTHffmwE6/A/wx7TyCNyOZAK6Ng733FrAwX2xjTbtK86Ai56SNDdLuCNnN9Vo9zObO3ZsH+/CEvVZVBHX3oDI0SHRfWVjHGlSbt9d19yCUrkE16ZHX3YPK1CDHsiuFunuQp0GF8DSIA0+DOPA0iIMCDYKnQXko8BCnu+BpUC71NMgET4M48DSIA0+DOPA0iANPgzjwNIgDT4M48DSIA0+DOPA0iANPgzjwNKgQqop4NuNpUCHSRDPZTINq0EJCmXIryZWgO/cT32UzDahBBMS7Lv/s+kUGV4K6zv8wnSFoJDWgBqVUdoZXksS7p5O3Fg8BjadBRJi58Ovts7yCuATt/fTb2aWVzNFCDbJ40JrSILs6cpUQIX5j8f6BNyd/ibueoxPEXei74dTo2bml1AEixPM9xM0d6qlBdvWSUf3MtVsLu7s+uSzyNRjFeBYJrYn76NV9rQce39UfkZV9sprqYEoqinRCW4KnLHOW39kvyYOqh6JaweUvTAKCoewSPApGZtL+0HQC7PKmk8OjAiUYSBh+532aqxBpACvGU2yl/H/KNRQU4ztm5m+YpfVwk53P+18gDWDZyDg9U7zPBOr4D1m9Wh4sOVbJAAAAAElFTkSuQmCC",VZ=()=>({voteTarget:w.object(),isFullScreen:w.bool.def(!1),iconUrl:w.string.def(""),beforeClickInterrupt:w.func()}),BZ=()=>({"open-vote":Y()}),FZ=e=>{const{props:r}=e,{getEmitter:t}=Ti();function i(){return K(this,null,function*(){r.beforeClickInterrupt&&ts(r.beforeClickInterrupt)&&(yield r.beforeClickInterrupt())||t().emit(RZ.OpenVote)})}return{pendantIconUrl:c.computed(()=>r.iconUrl||OZ),onClickPendant:i}},jZ=c.defineComponent({__name:"vote-pendant",props:VZ(),emits:BZ(),setup(e,{emit:r}){const t=e,{$t:i}=DZ(),{onClickPendant:o,pendantIconUrl:n}=FZ({props:t}),a=c.computed(()=>({backgroundImage:`url(${n.value})`}));return{__sfc:!0,props:t,emit:r,$t:i,onClickPendant:o,pendantIconUrl:n,pendantStyle:a}}});function NZ(e,r,t,i,o,n,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 UZ=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return r.voteTarget&&!r.isFullScreen?t("div",{staticClass:"plv-iar-vote-pendant",style:i.pendantStyle,on:{click:i.onClickPendant}},[t("div",{staticClass:"plv-iar-vote-pendant__text"},[r._v(" "+r._s(i.$t("vote.entrance"))+" ")])]):r._e()},WZ=[],HZ=NZ(jZ,UZ,WZ);return HZ.exports});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.7.0]","[buildTime: 2026-07-17 02:01:14]");
|
package/vote-rule-popup.es.js
CHANGED
|
@@ -36625,8 +36625,8 @@ const MZ = bZ.exports;
|
|
|
36625
36625
|
console.log(
|
|
36626
36626
|
"%c@polyv/iar-vote-ui",
|
|
36627
36627
|
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
36628
|
-
"[version: 2.7.0
|
|
36629
|
-
"[buildTime: 2026-07-
|
|
36628
|
+
"[version: 2.7.0]",
|
|
36629
|
+
"[buildTime: 2026-07-17 02:01:19]"
|
|
36630
36630
|
);
|
|
36631
36631
|
export {
|
|
36632
36632
|
MZ as default
|
package/vote-rule-popup.umd.js
CHANGED
|
@@ -1286,4 +1286,4 @@ ${Ko(t)}`),i}})}function e3(e){const r=Object.keys(e),t=r.filter(o=>{var n;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)])},CW=[],kW=j(xW,yW,CW);const LW=kW.exports,SW=c.defineComponent({__name:"menu-item",props:tW(),setup(e){const r=e,{receiveRouterSlotData:t}=_W({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:LW}}});var PW=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)},TW=[],QW=j(SW,PW,TW);const EW=QW.exports,MW={};var IW=function(){var e=this;return e._self._c,e._m(0)},AW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],zW=j(MW,IW,AW);const DW=zW.exports;ee("PwcMenu",sW),ee("PwcSubMenu",bW),ee("PwcMenuItem",EW),ee("PwcMenuDivider",DW);const RW=12,OW=16,Yo={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function kf(e,r){const t=Yo[e];let i=OW;for(let o=0;o<r;o++)i+=t[o].height+RW;return i}function Lf(e){const r=Yo[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=kf(e,t)}const Sa={add(e,r,t){const i=Yo[e],o=i.length,n={id:r,height:0,offsetRef:t};i.push(n),t.value=kf(e,o)},updateHeight(e,r,t){const i=Yo[e].find(o=>o.id===r);i&&i.height!==t&&(i.height=t,Lf(e))},remove(e,r){const t=Yo[e],i=t.findIndex(o=>o.id===r);i!==-1&&(t.splice(i,1),Lf(e))}};let VW=0;const BW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=Lo(),o=++VW,n=c.ref(!1),a=c.ref(0);Sa.add(r,o,a);const{startTimeout:s,closeTimeout:l}=ti(()=>{u()},t);function p(){n.value=!0,t>0&&s()}function u(){n.value=!1,l()}function d(){Sa.remove(r,o),i()}function m(f){Sa.updateHeight(r,o,f)}return c.onBeforeUnmount(()=>{Sa.remove(r,o)}),{visible:n,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Mt.Info);const FW=()=>X(R(R({},Xs()),p2()),{trigger:w.oneOf(Nn).def("click"),placement:w.oneOf(Qi).def("top"),feedbackType:w.enum().def(Mt.Warning),concise:w.bool.def(!1)}),jW=()=>X(R(R({},he()),Zu()),{show:Y(),hide:Y()}),NW=c.defineComponent({__name:"popconfirm",props:FW(),emits:jW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:o}=de(t),{buttonData:n,onClickConfirm:a,onClickCancel:s}=Yu({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||o(!0),r("show")}function p(){i.value&&o(!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:o,buttonData:n,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:u2}}});var UW=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))},WW=[],HW=j(NW,UW,WW);const ZW=HW.exports;ee("PwcPopconfirm",ZW);var nt=(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))(nt||{});function qW(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(o){}},{deep:!0}),t}const YW=()=>({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("")}),GW=()=>({"resize-start":Y(),resize:Y(),"resize-end":Y()}),KW=e=>{const{props:r,emit:t}=e,i=c.ref(),o=c.ref(!1),n=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?qW(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:[nt.Top,nt.Bottom].includes(y)?!!r.height:[nt.Left,nt.Right].includes(y)?!!r.width:!!r.width&&!!r.height,h=(y,k)=>{r.disabled||(y.preventDefault(),y.stopPropagation(),o.value=!0,n.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(!o.value||!n.value)return;const k=y.clientX-a.value.x,C=y.clientY-a.value.y,P={};switch(n.value){case nt.Right:P.width=s.value.width+k;break;case nt.Bottom:P.height=s.value.height+C;break;case nt.Left:P.width=s.value.width-k;break;case nt.Top:P.height=s.value.height-C;break;case nt.TopRight:P.width=s.value.width+k,P.height=s.value.height-C;break;case nt.TopLeft:P.width=s.value.width-k,P.height=s.value.height-C;break;case nt.BottomRight:P.width=s.value.width+k,P.height=s.value.height+C;break;case nt.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:n.value,event:y})},x=y=>{if(!o.value||!n.value)return;o.value=!1;const k=n.value;n.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:o,showHandleControl:b,handleMouseDown:h,setSize:f,getSize:g}};YW(),GW();const XW=()=>({title:w.looseString,titleTooltip:w.looseString}),JW=c.defineComponent({__name:"section",props:XW(),setup(e){const r=e,{hasSlot:t,slotRender:i}=xe(),o=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:o,PwcTooltip:Wn,renderSlot:ut}}});var $W=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)])},eH=[],tH=j(JW,$W,eH);const rH=tH.exports;ee("PwcSection",rH);const iH=()=>({[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)}),oH=()=>X(R({},he()),{change:Y()}),Sf=Symbol("slider-inject-key"),nH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:o}=de(r,{outSideUpdate:()=>{P()}}),n=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(n.value,a.value)),v=c.computed(()=>Math.max(n.value,a.value)),b=c.computed(()=>r.range?`${100*(v.value-g.value)/(r.max-r.min)}%`:`${100*(n.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,M=E=>{D.includes(E)||D.push(E)};if(r.step&&r.showStops){const E=A/r.step,I=r.step/A;for(let V=1;V<E;V++){const O=Math.round(V*I*100);M(O)}}return r.marks&&Object.keys(r.marks).forEach(E=>{const I=Number(E);if(I>=r.min&&I<=r.max){const V=(I-r.min)/A,O=Math.round(V*100);M(O)}}),D}),C=c.computed(()=>{const D=[],A=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(M=>{const E=Number(M),I=r.marks[E];let V="",O={};if(typeof I=="string"?V=I:(V=I.label,O=I.style||{}),E>=r.min&&E<=r.max){const W=(E-r.min)/A,B=Math.round(W*100);D.push({label:V,style:O,left:B,value:E})}}),D});function P(){r.range?Array.isArray(i.value)?(n.value=Math.max(r.min,i.value[0]),a.value=Math.min(r.max,i.value[1])):(n.value=r.min,a.value=r.max):typeof i.value!="number"||isNaN(i.value)?n.value=r.min:n.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(n.value),D!==i.value&&(l.value=i.value,o(D))}function T(){c.nextTick(()=>{t("change",r.range?[g.value,v.value]:i.value)})}function Q(D){var E;if(!r.range){(E=m.value)==null||E.setPosition(D);return}let A;const M=r.min+D*(r.max-r.min)/100;Math.abs(g.value-M)<Math.abs(v.value-M)?A=n.value<a.value?m.value:f.value:A=n.value>a.value?m.value:f.value,A==null||A.setPosition(D)}function S(D){var A,M;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const E=((A=d.value)==null?void 0:A.getBoundingClientRect().top)||0;Q((D.clientY-E)/u.value*100)}else{const E=((M=d.value)==null?void 0:M.getBoundingClientRect().left)||0;Q((D.clientX-E)/u.value*100)}T()}}function z(D){Q(D.left),T()}return c.onMounted(()=>{P()}),c.provide(Sf,{sliderProps:r,sliderWidth:u,dragging:s,emitChange:T}),{modelValue:i,firstValue:n,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}},Pf=()=>c.inject(Sf),aH=()=>({value:w.number}),sH=()=>({change:Y()}),lH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:o,emitChange:n}=Pf(),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)/o.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),n())},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}},cH={name:"PlvSliderButton"},pH=c.defineComponent(X(R({},cH),{props:aH(),emits:sH(),setup(e,{expose:r,emit:t}){const i=e,o=Pf(),{sliderProps:n}=o,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=lH({props:i,emit:t}),f=c.computed(()=>s.value||o.dragging.value||!1);return r({setPosition:m}),{__sfc:!0,props:i,emit:t,sliderInject:o,sliderProps:n,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var uH=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`}})])},dH=[],fH=j(pH,uH,dH);const mH=fH.exports,hH=c.defineComponent({__name:"slider",props:iH(),emits:oH(),setup(e,{emit:r}){const t=e,{firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:v}=nH({props:t,emit:r});function b(_){i.value=_,v()}function h(_){o.value=_,v()}return{__sfc:!0,props:t,emit:r,firstValue:i,secondValue:o,sliderRef:n,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:mH}}});var gH=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,o){return r("div",{key:`mark-${o}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(n){return t.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},vH=[],wH=j(hH,gH,vH);const bH=wH.exports;ee("PwcSlider",bH);const _H=["horizontal","vertical"],xH=["mini","small","medium","large"],yH={mini:4,small:8,medium:16,large:24},CH=()=>({direction:w.oneOf(_H).def("horizontal"),size:w.oneOfType([w.oneOf(xH),Number]).def("small"),wrap:w.bool.def(!1)}),kH=c.defineComponent({__name:"space",props:CH(),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:yH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var LH=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)},SH=[],PH=j(kH,LH,SH);const TH=PH.exports;ee("PwcSpace",TH);const QH=["horizontal","vertical"],EH=()=>({direction:w.oneOf(QH).def("horizontal"),lazy:w.bool.def(!1)}),MH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),Tf=Symbol("SPLITTER_INJECT_KEY"),IH=c.defineComponent({__name:"splitter",props:EH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),o=c.ref([]),{width:n,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;o.value=i.value.map((S,z)=>L[z]?S.props.initialSize:Q)};c.watch(()=>{const C=s.value?n.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(o.value.length===0||o.value.every(z=>z===0)){l();return}if(f.value||T===0||T===L)return;const Q=o.value.reduce((z,D)=>z+D,0);if(Q===0)return;const S=o.value.map(z=>z/Q);o.value=S.map((z,D)=>{var I,V;const A=i.value[D],M=(I=A==null?void 0:A.props.min)!=null?I:0,E=(V=A==null?void 0:A.props.max)!=null?V:1/0;return Math.max(M,Math.min(E,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),o.value.splice(P,1))},d=C=>{const P=i.value.findIndex(T=>T.id===C),L=o.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:o.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=[...o.value],h.value=[...o.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,M=(B=Q.props.max)!=null?B:1/0;let E=Math.max(z,Math.min(D,b.value[L]+P)),I=S-E;if(I<A&&(I=A,E=S-I),I>M&&(I=M,E=S-I),E=Math.max(z,Math.min(D,E)),r.lazy){const F=[...b.value];F[L]=E,F[L+1]=I,h.value=F}else{const F=[...o.value];F[L]=E,F[L+1]=I,o.value=F}},k=()=>{r.lazy&&(o.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(Tf,{direction:c.computed(()=>r.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:r,containerRef:t,panels:i,sizes:o,containerWidth:n,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 AH=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)},zH=[],DH=j(IH,AH,zH);const RH=DH.exports,OH=c.defineComponent({__name:"splitter-panel",props:MH(),setup(e){const r=e,t=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(Tf),o=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),n=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:o,isLast:n,panelStyle:a,handleDividerMouseDown:s}}});var VH=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"})])])},BH=[],FH=j(OH,VH,BH);const jH=FH.exports;ee("PwcSplitter",RH),ee("PwcSplitterPanel",jH);const NH=()=>({max:w.number.def(3)}),UH=()=>({label:w.looseString,disabled:w.bool.def(!1)}),WH=()=>({click:Y()}),Qf=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),HH=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(Qf,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:cu,PwcDropdown:AD,PwcDropdownMenu:zD}}});var ZH=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)},qH=[],YH=j(HH,ZH,qH);const GH=YH.exports;function KH(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function XH(e){const r=KH(e);return typeof r=="string"&&r.trim()===""}function JH(e){return!Ae.isCommentVNode(e)&&!XH(e)}const $H=c.defineComponent({props:NH(),setup(e){const r=c.useSlots(),t=c.inject(Dl,void 0),i=ar(8),o=c.ref();function n(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Oe(o,({width:a})=>{const s=n();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=n();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(JH);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(GH,{},vo()?{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:o},l)])}}}),eZ=c.defineComponent({__name:"table-operation-item",props:UH(),emits:WH(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),o=c.inject(Qf,void 0);function n(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:o,onClickItem:n,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:DD}}});var tZ=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)},rZ=[],iZ=j(eZ,tZ,rZ);const oZ=iZ.exports;ee("PwcTableOperation",$H),ee("PwcTableOperationItem",oZ);const nZ=["line","rounded","text"],aZ=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(nZ).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),sZ=()=>X(R({},he()),{change:Y()}),lZ=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),fc=Symbol("tabs-inject-key"),cZ=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(fc),{$t:o}=ne(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=mt();function p(){return K(this,null,function*(){if(yield c.nextTick(),!n.value||ue)return;const d=n.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;n.value.clientHeight>=m*1.5||n.value.scrollWidth>n.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:o,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:dr,PwcIconUp:Vs,renderSlot:ut}}});var pZ=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(o){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()])])},uZ=[],dZ=j(cZ,pZ,uZ);const fZ=dZ.exports,mZ=c.defineComponent({__name:"tabs",props:aZ(),emits:sZ(),setup(e,{emit:r}){const t=e,i=c.ref(),o=c.ref(),{modelValue:n,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 n.value>"u"){const v=g.getPaneName();u(v,!1)}else u(n.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=o.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(fc,f),{__sfc:!0,props:t,emits:r,currentTab:i,tabsRef:o,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:fZ}}});var hZ=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)},gZ=[],vZ=j(mZ,hZ,gZ);const wZ=vZ.exports,bZ=c.defineComponent({__name:"tab-pane",props:lZ(),setup(e){const r=e,t=ar(8),i=c.inject(fc),{hasSlot:o,slotRender:n}=xe(),a=c.computed(()=>r.name||t),s=c.computed(()=>i.currentTab.value===a.value);function l(){return n("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:o,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:r,paneId:t,tabsInject:i,hasSlot:o,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var _Z=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()])},xZ=[],yZ=j(bZ,_Z,xZ);const CZ=yZ.exports;ee("PwcTabs",wZ),ee("PwcTabPane",CZ);var Ef={},kZ,LZ;function SZ(e,r,t,n){var o=0,n=n===void 0?{}:n,a=n.loop===void 0?null:n.loop,s=n.palette===void 0?null:n.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[o++]=71,e[o++]=73,e[o++]=70,e[o++]=56,e[o++]=57,e[o++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,n.background!==void 0){if(u=n.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[o++]=r&255,e[o++]=r>>8&255,e[o++]=t&255,e[o++]=t>>8&255,e[o++]=(s!==null?128:0)|p,e[o++]=u,e[o++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var g=s[m];e[o++]=g>>16&255,e[o++]=g>>8&255,e[o++]=g&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[o++]=33,e[o++]=255,e[o++]=11,e[o++]=78,e[o++]=69,e[o++]=84,e[o++]=83,e[o++]=67,e[o++]=65,e[o++]=80,e[o++]=69,e[o++]=50,e[o++]=46,e[o++]=48,e[o++]=3,e[o++]=1,e[o++]=a&255,e[o++]=a>>8&255,e[o++]=0}var v=!1;this.addFrame=function(b,h,_,x,y,k){if(v===!0&&(--o,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[o++]=33,e[o++]=249,e[o++]=4,e[o++]=S<<2|(z===!0?1:0),e[o++]=Q&255,e[o++]=Q>>8&255,e[o++]=D,e[o++]=0),e[o++]=44,e[o++]=b&255,e[o++]=b>>8&255,e[o++]=h&255,e[o++]=h>>8&255,e[o++]=_&255,e[o++]=_>>8&255,e[o++]=x&255,e[o++]=x>>8&255,e[o++]=C===!0?128|T-1:0,C===!0)for(var A=0,M=P.length;A<M;++A){var E=P[A];e[o++]=E>>16&255,e[o++]=E>>8&255,e[o++]=E&255}return o=PZ(e,o,T<2?2:T,y),o},this.end=function(){return v===!1&&(e[o++]=59,v=!0),o},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return o},this.setOutputBufferPosition=function(b){o=b}}function PZ(e,r,t,i){e[r++]=t;var o=r++,n=1<<t,a=n-1,s=n+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===o+256&&(e[o]=255,o=r++)}function f(k){d|=k<<u,u+=p,m(8)}var g=i[0]&a,v={};f(n);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===o+256&&(e[o]=255,o=r++);l===4096?(f(n),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),o+1===r?e[o]=0:(e[o]=r-o-1,e[r++]=0),r}function TZ(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,o=e[r++],n=o>>7,a=o&7,s=1<<a+1;e[r++],e[r++];var l=null,p=null;n&&(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(M){if(M<0||M>=d.length)throw new Error("Frame index out of range.");return d[M]},this.decodeAndBlitFrameBGRA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);Mf(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,q=((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>=q&&(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],Ze=e[W+we*3+1],xt=e[W+we*3+2];E[J++]=xt,E[J++]=Ze,E[J++]=be,E[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);Mf(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,q=((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>=q&&(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],Ze=e[W+we*3+1],xt=e[W+we*3+2];E[J++]=be,E[J++]=Ze,E[J++]=xt,E[J++]=255}--G}}}function Mf(e,r,t,i){for(var o=e[r++],n=1<<o,a=n+1,s=a+1,l=o+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===n){s=a+1,l=o+1,p=(1<<l)-1,v=null;continue}else if(b===a)break;for(var h=b<s?b:v,_=0,x=h;x>n;)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{LZ=Ef.GifWriter=SZ,kZ=Ef.GifReader=TZ}catch(e){}const QZ={vote:{option:"Voting Options",rule:"Rules",ruleTitle:"Rule Description",success:"Vote successful",voted:"You have already voted",voteFailed:"Vote failed",voteLimit:"Vote limit reached",count:"votes",entrance:"Vote",listTitle:"Vote Activity",noRule:"No rules",status:{voting:"Voting",ended:"Ended"},button:{vote:"Vote",voted:"Voted",notVoted:"Not Voted"}}},EZ={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},MZ={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},IZ={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},AZ={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},zZ={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:DZ}=Hu({zh_CN:AZ,zh_TW:zZ,en:QZ,ja:EZ,ko:MZ,ru:IZ}),RZ={OpenVoteRule:"OpenVoteRule"},OZ=()=>({ruleText:w.string.def(""),popupConfig:w.object()}),VZ=e=>{const r=c.ref(!1),t=c.ref();function i(){r.value=!0,c.nextTick(()=>{t.value&&t.value.resetScroll()})}function o(){r.value=!1}return ei(RZ.OpenVoteRule,i),{instance:{open:i,close:o},visible:r,popupRef:t,close:o}},BZ=c.defineComponent({__name:"vote-rule-popup",props:OZ(),setup(e,{expose:r}){const t=e,{$t:i}=DZ(),{isMobile:o}=ke(),{instance:n,visible:a,popupRef:s}=VZ();return r(n),{__sfc:!0,props:t,$t:i,isMobile:o,instance:n,visible:a,popupRef:s,PwcPopup:ft}}});function FZ(e,r,t,i,o,n,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 jZ=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t(i.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-rule-popup",attrs:{title:i.$t("vote.ruleTitle"),"popup-config":r.popupConfig,backable:i.isMobile,background:i.isMobile?"#F7F8Fa":void 0,"body-height-percent":i.isMobile?.65:void 0},model:{value:i.visible,callback:function(o){i.visible=o},expression:"visible"}},[t("div",{staticClass:"plv-iar-vote-rule-popup__content"},[r.ruleText?t("div",{staticClass:"plv-iar-vote-rule-popup__text",domProps:{innerHTML:r._s(r.ruleText)}}):t("div",{staticClass:"plv-iar-vote-rule-popup__empty"},[r._v(" "+r._s(i.$t("vote.noRule"))+" ")])])])},NZ=[],UZ=FZ(BZ,jZ,NZ);return UZ.exports});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.7.0-rc-20260716.1]","[buildTime: 2026-07-16 06:02:49]");
|
|
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)])},CW=[],kW=j(xW,yW,CW);const LW=kW.exports,SW=c.defineComponent({__name:"menu-item",props:tW(),setup(e){const r=e,{receiveRouterSlotData:t}=_W({props:r});return{__sfc:!0,props:r,receiveRouterSlotData:t,MenuItemContent:LW}}});var PW=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)},TW=[],QW=j(SW,PW,TW);const EW=QW.exports,MW={};var IW=function(){var e=this;return e._self._c,e._m(0)},AW=[function(){var e=this,r=e._self._c;return r("div",{staticClass:"pwc-menu-divider"},[r("div")])}],zW=j(MW,IW,AW);const DW=zW.exports;ee("PwcMenu",sW),ee("PwcSubMenu",bW),ee("PwcMenuItem",EW),ee("PwcMenuDivider",DW);const RW=12,OW=16,Yo={"top-right":[],"top-left":[],"bottom-right":[],"bottom-left":[]};function kf(e,r){const t=Yo[e];let i=OW;for(let o=0;o<r;o++)i+=t[o].height+RW;return i}function Lf(e){const r=Yo[e];for(let t=0;t<r.length;t++)r[t].offsetRef.value=kf(e,t)}const Sa={add(e,r,t){const i=Yo[e],o=i.length,n={id:r,height:0,offsetRef:t};i.push(n),t.value=kf(e,o)},updateHeight(e,r,t){const i=Yo[e].find(o=>o.id===r);i&&i.height!==t&&(i.height=t,Lf(e))},remove(e,r){const t=Yo[e],i=t.findIndex(o=>o.id===r);i!==-1&&(t.splice(i,1),Lf(e))}};let VW=0;const BW=e=>{const{position:r,duration:t}=e,{destroyCurrentInstance:i}=Lo(),o=++VW,n=c.ref(!1),a=c.ref(0);Sa.add(r,o,a);const{startTimeout:s,closeTimeout:l}=ti(()=>{u()},t);function p(){n.value=!0,t>0&&s()}function u(){n.value=!1,l()}function d(){Sa.remove(r,o),i()}function m(f){Sa.updateHeight(r,o,f)}return c.onBeforeUnmount(()=>{Sa.remove(r,o)}),{visible:n,offsetPx:a,open:p,close:u,onAfterLeave:d,updateHeight:m}};w.object().def({}),w.enum().def(Mt.Info);const FW=()=>X(R(R({},Xs()),p2()),{trigger:w.oneOf(Nn).def("click"),placement:w.oneOf(Qi).def("top"),feedbackType:w.enum().def(Mt.Warning),concise:w.bool.def(!1)}),jW=()=>X(R(R({},he()),Zu()),{show:Y(),hide:Y()}),NW=c.defineComponent({__name:"popconfirm",props:FW(),emits:jW(),setup(e,{emit:r}){const t=e,{modelValue:i,updateModelValue:o}=de(t),{buttonData:n,onClickConfirm:a,onClickCancel:s}=Yu({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||o(!0),r("show")}function p(){i.value&&o(!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:o,buttonData:n,onClickConfirm:a,onClickCancel:s,onShow:l,onHide:p,popoverFeedbackType:u,popoverRef:d,PwcButton:Ne,PwcPopover:u2}}});var UW=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))},WW=[],HW=j(NW,UW,WW);const ZW=HW.exports;ee("PwcPopconfirm",ZW);var nt=(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))(nt||{});function qW(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(o){}},{deep:!0}),t}const YW=()=>({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("")}),GW=()=>({"resize-start":Y(),resize:Y(),"resize-end":Y()}),KW=e=>{const{props:r,emit:t}=e,i=c.ref(),o=c.ref(!1),n=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?qW(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:[nt.Top,nt.Bottom].includes(y)?!!r.height:[nt.Left,nt.Right].includes(y)?!!r.width:!!r.width&&!!r.height,h=(y,k)=>{r.disabled||(y.preventDefault(),y.stopPropagation(),o.value=!0,n.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(!o.value||!n.value)return;const k=y.clientX-a.value.x,C=y.clientY-a.value.y,P={};switch(n.value){case nt.Right:P.width=s.value.width+k;break;case nt.Bottom:P.height=s.value.height+C;break;case nt.Left:P.width=s.value.width-k;break;case nt.Top:P.height=s.value.height-C;break;case nt.TopRight:P.width=s.value.width+k,P.height=s.value.height-C;break;case nt.TopLeft:P.width=s.value.width-k,P.height=s.value.height-C;break;case nt.BottomRight:P.width=s.value.width+k,P.height=s.value.height+C;break;case nt.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:n.value,event:y})},x=y=>{if(!o.value||!n.value)return;o.value=!1;const k=n.value;n.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:o,showHandleControl:b,handleMouseDown:h,setSize:f,getSize:g}};YW(),GW();const XW=()=>({title:w.looseString,titleTooltip:w.looseString}),JW=c.defineComponent({__name:"section",props:XW(),setup(e){const r=e,{hasSlot:t,slotRender:i}=xe(),o=c.computed(()=>t("title-tooltip")||r.titleTooltip);return{__sfc:!0,props:r,hasSlot:t,slotRender:i,hasTitleTooltip:o,PwcTooltip:Wn,renderSlot:ut}}});var $W=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)])},eH=[],tH=j(JW,$W,eH);const rH=tH.exports;ee("PwcSection",rH);const iH=()=>({[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)}),oH=()=>X(R({},he()),{change:Y()}),Sf=Symbol("slider-inject-key"),nH=e=>{const{props:r,emit:t}=e,{modelValue:i,updateModelValue:o}=de(r,{outSideUpdate:()=>{P()}}),n=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(n.value,a.value)),v=c.computed(()=>Math.max(n.value,a.value)),b=c.computed(()=>r.range?`${100*(v.value-g.value)/(r.max-r.min)}%`:`${100*(n.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,M=E=>{D.includes(E)||D.push(E)};if(r.step&&r.showStops){const E=A/r.step,I=r.step/A;for(let V=1;V<E;V++){const O=Math.round(V*I*100);M(O)}}return r.marks&&Object.keys(r.marks).forEach(E=>{const I=Number(E);if(I>=r.min&&I<=r.max){const V=(I-r.min)/A,O=Math.round(V*100);M(O)}}),D}),C=c.computed(()=>{const D=[],A=r.max-r.min;return r.marks&&Object.keys(r.marks).forEach(M=>{const E=Number(M),I=r.marks[E];let V="",O={};if(typeof I=="string"?V=I:(V=I.label,O=I.style||{}),E>=r.min&&E<=r.max){const W=(E-r.min)/A,B=Math.round(W*100);D.push({label:V,style:O,left:B,value:E})}}),D});function P(){r.range?Array.isArray(i.value)?(n.value=Math.max(r.min,i.value[0]),a.value=Math.min(r.max,i.value[1])):(n.value=r.min,a.value=r.max):typeof i.value!="number"||isNaN(i.value)?n.value=r.min:n.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(n.value),D!==i.value&&(l.value=i.value,o(D))}function T(){c.nextTick(()=>{t("change",r.range?[g.value,v.value]:i.value)})}function Q(D){var E;if(!r.range){(E=m.value)==null||E.setPosition(D);return}let A;const M=r.min+D*(r.max-r.min)/100;Math.abs(g.value-M)<Math.abs(v.value-M)?A=n.value<a.value?m.value:f.value:A=n.value>a.value?m.value:f.value,A==null||A.setPosition(D)}function S(D){var A,M;if(!(r.disabled||s.value)){if(r.cssRotateAngle===90){const E=((A=d.value)==null?void 0:A.getBoundingClientRect().top)||0;Q((D.clientY-E)/u.value*100)}else{const E=((M=d.value)==null?void 0:M.getBoundingClientRect().left)||0;Q((D.clientX-E)/u.value*100)}T()}}function z(D){Q(D.left),T()}return c.onMounted(()=>{P()}),c.provide(Sf,{sliderProps:r,sliderWidth:u,dragging:s,emitChange:T}),{modelValue:i,firstValue:n,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}},Pf=()=>c.inject(Sf),aH=()=>({value:w.number}),sH=()=>({change:Y()}),lH=e=>{const{props:r,emit:t}=e,{sliderProps:i,sliderWidth:o,emitChange:n}=Pf(),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)/o.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),n())},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}},cH={name:"PlvSliderButton"},pH=c.defineComponent(X(R({},cH),{props:aH(),emits:sH(),setup(e,{expose:r,emit:t}){const i=e,o=Pf(),{sliderProps:n}=o,{hovering:a,dragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m}=lH({props:i,emit:t}),f=c.computed(()=>s.value||o.dragging.value||!1);return r({setPosition:m}),{__sfc:!0,props:i,emit:t,sliderInject:o,sliderProps:n,hovering:a,buttonDragging:s,btnStyle:l,handleMouseEnter:p,handleMouseLeave:u,onButtonDown:d,setPosition:m,dragging:f}}}));var uH=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`}})])},dH=[],fH=j(pH,uH,dH);const mH=fH.exports,hH=c.defineComponent({__name:"slider",props:iH(),emits:oH(),setup(e,{emit:r}){const t=e,{firstValue:i,secondValue:o,sliderRef:n,sliderClickRef:a,button1Ref:s,button2Ref:l,barStyle:p,runwayStyle:u,stops:d,markList:m,onSliderClick:f,onClickMark:g,emitInnerInput:v}=nH({props:t,emit:r});function b(_){i.value=_,v()}function h(_){o.value=_,v()}return{__sfc:!0,props:t,emit:r,firstValue:i,secondValue:o,sliderRef:n,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:mH}}});var gH=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,o){return r("div",{key:`mark-${o}`,staticClass:"pwc-slider__marks__item",style:R({left:`${i.left}%`},i.style),on:{click:function(n){return t.onClickMark(i)}}},[e._v(" "+e._s(i.label)+" ")])}),0):e._e()])},vH=[],wH=j(hH,gH,vH);const bH=wH.exports;ee("PwcSlider",bH);const _H=["horizontal","vertical"],xH=["mini","small","medium","large"],yH={mini:4,small:8,medium:16,large:24},CH=()=>({direction:w.oneOf(_H).def("horizontal"),size:w.oneOfType([w.oneOf(xH),Number]).def("small"),wrap:w.bool.def(!1)}),kH=c.defineComponent({__name:"space",props:CH(),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:yH[r.size]}px`}));return{__sfc:!0,props:r,spaceClass:t,spaceStyle:i}}});var LH=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)},SH=[],PH=j(kH,LH,SH);const TH=PH.exports;ee("PwcSpace",TH);const QH=["horizontal","vertical"],EH=()=>({direction:w.oneOf(QH).def("horizontal"),lazy:w.bool.def(!1)}),MH=()=>({min:w.looseNumber,max:w.looseNumber,initialSize:w.looseNumber}),Tf=Symbol("SPLITTER_INJECT_KEY"),IH=c.defineComponent({__name:"splitter",props:EH(),setup(e){const r=e,t=c.ref(),i=c.ref([]),o=c.ref([]),{width:n,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;o.value=i.value.map((S,z)=>L[z]?S.props.initialSize:Q)};c.watch(()=>{const C=s.value?n.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(o.value.length===0||o.value.every(z=>z===0)){l();return}if(f.value||T===0||T===L)return;const Q=o.value.reduce((z,D)=>z+D,0);if(Q===0)return;const S=o.value.map(z=>z/Q);o.value=S.map((z,D)=>{var I,V;const A=i.value[D],M=(I=A==null?void 0:A.props.min)!=null?I:0,E=(V=A==null?void 0:A.props.max)!=null?V:1/0;return Math.max(M,Math.min(E,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),o.value.splice(P,1))},d=C=>{const P=i.value.findIndex(T=>T.id===C),L=o.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:o.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=[...o.value],h.value=[...o.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,M=(B=Q.props.max)!=null?B:1/0;let E=Math.max(z,Math.min(D,b.value[L]+P)),I=S-E;if(I<A&&(I=A,E=S-I),I>M&&(I=M,E=S-I),E=Math.max(z,Math.min(D,E)),r.lazy){const F=[...b.value];F[L]=E,F[L+1]=I,h.value=F}else{const F=[...o.value];F[L]=E,F[L+1]=I,o.value=F}},k=()=>{r.lazy&&(o.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(Tf,{direction:c.computed(()=>r.direction),registerPanel:p,unregisterPanel:u,getPanelStyle:d,isLastPanel:m,onDividerMouseDown:x}),{__sfc:!0,props:r,containerRef:t,panels:i,sizes:o,containerWidth:n,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 AH=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)},zH=[],DH=j(IH,AH,zH);const RH=DH.exports,OH=c.defineComponent({__name:"splitter-panel",props:MH(),setup(e){const r=e,t=`splitter-panel-${Math.random().toString(36).slice(2)}`,i=c.inject(Tf),o=c.computed(()=>{var l;return(l=i==null?void 0:i.direction.value)!=null?l:"horizontal"}),n=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:o,isLast:n,panelStyle:a,handleDividerMouseDown:s}}});var VH=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"})])])},BH=[],FH=j(OH,VH,BH);const jH=FH.exports;ee("PwcSplitter",RH),ee("PwcSplitterPanel",jH);const NH=()=>({max:w.number.def(3)}),UH=()=>({label:w.looseString,disabled:w.bool.def(!1)}),WH=()=>({click:Y()}),Qf=Symbol("TABLE_OPERATION_DROPDOWN_INJECT_KEY"),HH=c.defineComponent({__name:"table-operation-dropdown",props:{},setup(e){return c.provide(Qf,{}),{__sfc:!0,PwcButton:Ne,PwcIconMore:cu,PwcDropdown:AD,PwcDropdownMenu:zD}}});var ZH=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)},qH=[],YH=j(HH,ZH,qH);const GH=YH.exports;function KH(e){const r=e;if(typeof r.text=="string")return r.text;if(typeof r.children=="string")return r.children}function XH(e){const r=KH(e);return typeof r=="string"&&r.trim()===""}function JH(e){return!Ae.isCommentVNode(e)&&!XH(e)}const $H=c.defineComponent({props:NH(),setup(e){const r=c.useSlots(),t=c.inject(Dl,void 0),i=ar(8),o=c.ref();function n(){if(t)return t.allRenderColumnList.value.find(a=>a.columnProps.type==="operation")}return Oe(o,({width:a})=>{const s=n();s&&s.setOperationWidthRecord(i,a)}),c.onBeforeUnmount(()=>{const a=n();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(JH);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(GH,{},vo()?{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:o},l)])}}}),eZ=c.defineComponent({__name:"table-operation-item",props:UH(),emits:WH(),setup(e,{emit:r}){const t=e,i=c.useAttrs(),o=c.inject(Qf,void 0);function n(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:o,onClickItem:n,dropdownItemTag:a,PwcButton:Ne,PwcDropdownItem:DD}}});var tZ=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)},rZ=[],iZ=j(eZ,tZ,rZ);const oZ=iZ.exports;ee("PwcTableOperation",$H),ee("PwcTableOperationItem",oZ);const nZ=["line","rounded","text"],aZ=()=>({[w.modelValueKey]:w.oneOfType([String,Number,Symbol]),type:w.oneOf(nZ).def("line"),expand:w.bool.def(!1),lazyLoad:w.bool.def(!1)}),sZ=()=>X(R({},he()),{change:Y()}),lZ=()=>({name:w.oneOfType([String,Number]),extra:w.looseString,disabled:w.bool.def(!1),title:w.looseString,lazyLoad:w.looseBool}),fc=Symbol("tabs-inject-key"),cZ=c.defineComponent({__name:"tab-nav",setup(e){const{tabPanes:r,tabsProps:t,setCurrentTab:i}=c.inject(fc),{$t:o}=ne(),n=c.ref(),a=c.ref(!1),{visible:s,toggle:l}=mt();function p(){return K(this,null,function*(){if(yield c.nextTick(),!n.value||ue)return;const d=n.value.querySelector(".pwc-tab-nav__item");if(!d)return;const m=d.clientHeight;n.value.clientHeight>=m*1.5||n.value.scrollWidth>n.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:o,listRef:n,isMoreItem:a,isExpanded:s,toggle:l,computeIsMoreItem:p,onClickItem:u,PwcIconDown:dr,PwcIconUp:Vs,renderSlot:ut}}});var pZ=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(o){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()])])},uZ=[],dZ=j(cZ,pZ,uZ);const fZ=dZ.exports,mZ=c.defineComponent({__name:"tabs",props:aZ(),emits:sZ(),setup(e,{emit:r}){const t=e,i=c.ref(),o=c.ref(),{modelValue:n,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 n.value>"u"){const v=g.getPaneName();u(v,!1)}else u(n.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=o.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(fc,f),{__sfc:!0,props:t,emits:r,currentTab:i,tabsRef:o,modelValue:n,updateModelValue:a,tabPanes:s,addTabPane:l,removeTabPane:p,setCurrentTab:u,offsetPercent:d,getTabsOffset:m,injectData:f,TabNav:fZ}}});var hZ=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)},gZ=[],vZ=j(mZ,hZ,gZ);const wZ=vZ.exports,bZ=c.defineComponent({__name:"tab-pane",props:lZ(),setup(e){const r=e,t=ar(8),i=c.inject(fc),{hasSlot:o,slotRender:n}=xe(),a=c.computed(()=>r.name||t),s=c.computed(()=>i.currentTab.value===a.value);function l(){return n("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:o,getTitleRenderSlot:l,getExtraRenderSlot:()=>n("extra")};return c.onBeforeMount(()=>{i.addTabPane(m)}),{__sfc:!0,props:r,paneId:t,tabsInject:i,hasSlot:o,slotRender:n,tabPaneName:a,isActive:s,getTitleRenderSlot:l,isLazyLoad:p,isFirstRender:u,canRender:d,tabPaneInstance:m}}});var _Z=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()])},xZ=[],yZ=j(bZ,_Z,xZ);const CZ=yZ.exports;ee("PwcTabs",wZ),ee("PwcTabPane",CZ);var Ef={},kZ,LZ;function SZ(e,r,t,n){var o=0,n=n===void 0?{}:n,a=n.loop===void 0?null:n.loop,s=n.palette===void 0?null:n.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[o++]=71,e[o++]=73,e[o++]=70,e[o++]=56,e[o++]=57,e[o++]=97;var p=0,u=0;if(s!==null){for(var d=l(s);d>>=1;)++p;if(d=1<<p,--p,n.background!==void 0){if(u=n.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[o++]=r&255,e[o++]=r>>8&255,e[o++]=t&255,e[o++]=t>>8&255,e[o++]=(s!==null?128:0)|p,e[o++]=u,e[o++]=0,s!==null)for(var m=0,f=s.length;m<f;++m){var g=s[m];e[o++]=g>>16&255,e[o++]=g>>8&255,e[o++]=g&255}if(a!==null){if(a<0||a>65535)throw new Error("Loop count invalid.");e[o++]=33,e[o++]=255,e[o++]=11,e[o++]=78,e[o++]=69,e[o++]=84,e[o++]=83,e[o++]=67,e[o++]=65,e[o++]=80,e[o++]=69,e[o++]=50,e[o++]=46,e[o++]=48,e[o++]=3,e[o++]=1,e[o++]=a&255,e[o++]=a>>8&255,e[o++]=0}var v=!1;this.addFrame=function(b,h,_,x,y,k){if(v===!0&&(--o,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[o++]=33,e[o++]=249,e[o++]=4,e[o++]=S<<2|(z===!0?1:0),e[o++]=Q&255,e[o++]=Q>>8&255,e[o++]=D,e[o++]=0),e[o++]=44,e[o++]=b&255,e[o++]=b>>8&255,e[o++]=h&255,e[o++]=h>>8&255,e[o++]=_&255,e[o++]=_>>8&255,e[o++]=x&255,e[o++]=x>>8&255,e[o++]=C===!0?128|T-1:0,C===!0)for(var A=0,M=P.length;A<M;++A){var E=P[A];e[o++]=E>>16&255,e[o++]=E>>8&255,e[o++]=E&255}return o=PZ(e,o,T<2?2:T,y),o},this.end=function(){return v===!1&&(e[o++]=59,v=!0),o},this.getOutputBuffer=function(){return e},this.setOutputBuffer=function(b){e=b},this.getOutputBufferPosition=function(){return o},this.setOutputBufferPosition=function(b){o=b}}function PZ(e,r,t,i){e[r++]=t;var o=r++,n=1<<t,a=n-1,s=n+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===o+256&&(e[o]=255,o=r++)}function f(k){d|=k<<u,u+=p,m(8)}var g=i[0]&a,v={};f(n);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===o+256&&(e[o]=255,o=r++);l===4096?(f(n),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),o+1===r?e[o]=0:(e[o]=r-o-1,e[r++]=0),r}function TZ(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,o=e[r++],n=o>>7,a=o&7,s=1<<a+1;e[r++],e[r++];var l=null,p=null;n&&(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(M){if(M<0||M>=d.length)throw new Error("Frame index out of range.");return d[M]},this.decodeAndBlitFrameBGRA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);Mf(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,q=((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>=q&&(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],Ze=e[W+we*3+1],xt=e[W+we*3+2];E[J++]=xt,E[J++]=Ze,E[J++]=be,E[J++]=255}--G}},this.decodeAndBlitFrameRGBA=function(M,E){var I=this.frameInfo(M),V=I.width*I.height,O=new Uint8Array(V);Mf(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,q=((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>=q&&(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],Ze=e[W+we*3+1],xt=e[W+we*3+2];E[J++]=be,E[J++]=Ze,E[J++]=xt,E[J++]=255}--G}}}function Mf(e,r,t,i){for(var o=e[r++],n=1<<o,a=n+1,s=a+1,l=o+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===n){s=a+1,l=o+1,p=(1<<l)-1,v=null;continue}else if(b===a)break;for(var h=b<s?b:v,_=0,x=h;x>n;)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{LZ=Ef.GifWriter=SZ,kZ=Ef.GifReader=TZ}catch(e){}const QZ={vote:{option:"Voting Options",rule:"Rules",ruleTitle:"Rule Description",success:"Vote successful",voted:"You have already voted",voteFailed:"Vote failed",voteLimit:"Vote limit reached",count:"votes",entrance:"Vote",listTitle:"Vote Activity",noRule:"No rules",status:{voting:"Voting",ended:"Ended"},button:{vote:"Vote",voted:"Voted",notVoted:"Not Voted"}}},EZ={vote:{option:"投票オプション",rule:"ルール",ruleTitle:"ルール説明",success:"投票成功",voted:"すでに投票済みです",voteFailed:"投票失敗",voteLimit:"投票回数が上限に達しました",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"ルールなし",status:{voting:"投票中",ended:"終了"},button:{vote:"投票",voted:"投票済み",notVoted:"未投票"}}},MZ={vote:{option:"투표 옵션",rule:"규칙",ruleTitle:"규칙 설명",success:"투표 성공",voted:"이미 투표했습니다",voteFailed:"투표 실패",voteLimit:"투표 횟수가 소진되었습니다",count:"표",entrance:"투표",listTitle:"투표 활동",noRule:"규칙 없음",status:{voting:"투표 중",ended:"종료"},button:{vote:"투표",voted:"투표함",notVoted:"미투표"}}},IZ={vote:{option:"Варианты голосования",rule:"Правила",ruleTitle:"Описание правил",success:"Голосование успешно",voted:"Вы уже проголосовали",voteFailed:"Голосование не удалось",voteLimit:"Лимит голосований исчерпан",count:"голосов",entrance:"Голосование",listTitle:"Активность голосования",noRule:"Нет правил",status:{voting:"Голосование",ended:"Завершено"},button:{vote:"Голосовать",voted:"Проголосовано",notVoted:"Не проголосовано"}}},AZ={vote:{option:"投票选项",rule:"规则",ruleTitle:"规则说明",success:"投票成功",voted:"你之前已经投过票",voteFailed:"投票失败",voteLimit:"投票次数已用完",count:"票",entrance:"投票",listTitle:"投票活动",noRule:"暂无规则",status:{voting:"投票中",ended:"已结束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},zZ={vote:{option:"投票選項",rule:"規則",ruleTitle:"規則說明",success:"投票成功",voted:"你之前已經投過票",voteFailed:"投票失敗",voteLimit:"投票次數已用完",count:"票",entrance:"投票",listTitle:"投票活動",noRule:"暫無規則",status:{voting:"投票中",ended:"已結束"},button:{vote:"投票",voted:"已投票",notVoted:"未投票"}}},{useI18n:DZ}=Hu({zh_CN:AZ,zh_TW:zZ,en:QZ,ja:EZ,ko:MZ,ru:IZ}),RZ={OpenVoteRule:"OpenVoteRule"},OZ=()=>({ruleText:w.string.def(""),popupConfig:w.object()}),VZ=e=>{const r=c.ref(!1),t=c.ref();function i(){r.value=!0,c.nextTick(()=>{t.value&&t.value.resetScroll()})}function o(){r.value=!1}return ei(RZ.OpenVoteRule,i),{instance:{open:i,close:o},visible:r,popupRef:t,close:o}},BZ=c.defineComponent({__name:"vote-rule-popup",props:OZ(),setup(e,{expose:r}){const t=e,{$t:i}=DZ(),{isMobile:o}=ke(),{instance:n,visible:a,popupRef:s}=VZ();return r(n),{__sfc:!0,props:t,$t:i,isMobile:o,instance:n,visible:a,popupRef:s,PwcPopup:ft}}});function FZ(e,r,t,i,o,n,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 jZ=function(){var r=this,t=r._self._c,i=r._self._setupProxy;return t(i.PwcPopup,{ref:"popupRef",staticClass:"plv-iar-vote-rule-popup",attrs:{title:i.$t("vote.ruleTitle"),"popup-config":r.popupConfig,backable:i.isMobile,background:i.isMobile?"#F7F8Fa":void 0,"body-height-percent":i.isMobile?.65:void 0},model:{value:i.visible,callback:function(o){i.visible=o},expression:"visible"}},[t("div",{staticClass:"plv-iar-vote-rule-popup__content"},[r.ruleText?t("div",{staticClass:"plv-iar-vote-rule-popup__text",domProps:{innerHTML:r._s(r.ruleText)}}):t("div",{staticClass:"plv-iar-vote-rule-popup__empty"},[r._v(" "+r._s(i.$t("vote.noRule"))+" ")])])])},NZ=[],UZ=FZ(BZ,jZ,NZ);return UZ.exports});console.log("%c@polyv/iar-vote-ui","background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.7.0]","[buildTime: 2026-07-17 02:01:18]");
|