@hbis-uni/components 2.12.0 → 2.13.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/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +807 -647
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vue=require("vue"),_sfc_main$d=vue.defineComponent({__name:"C1",props:{title:{default:"C1 Component"},primary:{type:Boolean,default:!1}},setup(s){return(m,n)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["c1-container",{"c1-primary":s.primary}])},[vue.renderSlot(m.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(s.title),1)],!0)],2))}}),_export_sfc=(s,m)=>{const n=s.__vccOpts||s;for(const[t,r]of m)n[t]=r;return n},C1=_export_sfc(_sfc_main$d,[["__scopeId","data-v-e2250793"]]),_hoisted_1$a={class:"c2-container"},_hoisted_2$9={class:"c2-title"},_hoisted_3$7={class:"c2-content"},_sfc_main$c=vue.defineComponent({__name:"C2",props:{title:{default:"C2 Component"},showButton:{type:Boolean,default:!0},buttonText:{default:"Click Me"}},emits:["click"],setup(s,{emit:m}){const n=m,t=r=>{n("click",r)};return(r,u)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a,[vue.createElementVNode("h2",_hoisted_2$9,vue.toDisplayString(s.title),1),vue.createElementVNode("div",_hoisted_3$7,[vue.renderSlot(r.$slots,"default",{},void 0,!0)]),s.showButton?(vue.openBlock(),vue.createElementBlock("button",{key:0,class:"c2-button",onClick:t},vue.toDisplayString(s.buttonText),1)):vue.createCommentVNode("",!0)]))}}),C2=_export_sfc(_sfc_main$c,[["__scopeId","data-v-ed1086ed"]]),_hoisted_1$9={key:0},_hoisted_2$8={class:"hbis-date-strip__weekdays"},_hoisted_3$6={class:"hbis-date-strip__dates"},_hoisted_4$5=["onClick"],_hoisted_5$4={class:"hbis-date-strip__date-number"},_hoisted_6$4={class:"hbis-date-strip__date-slot"},_hoisted_7$4={key:1,class:"hbis-date-strip__scroll-wrapper"},_hoisted_8$2={class:"hbis-date-strip__scroll-container"},_hoisted_9$1={class:"hbis-date-strip__weekdays"},_hoisted_10$1={class:"hbis-date-strip__dates"},_hoisted_11$1=["onClick"],_hoisted_12={class:"hbis-date-strip__date-number"},_hoisted_13={class:"hbis-date-strip__date-slot"},_sfc_main$b=vue.defineComponent({__name:"hbis-dateStrip",props:{modelValue:{default:()=>new Date},startDate:{default:()=>new Date},endDate:{default:()=>{const s=new Date;return s.setDate(s.getDate()+30),s}},highlightType:{default:"bg"},showToday:{type:Boolean,default:!0},disablePast:{type:Boolean,default:!1},disableFuture:{type:Boolean,default:!1},selectedColor:{default:"#ffffff"},normalColor:{default:"#666666"},selectedBgColor:{default:"#1890ff"},normalBgColor:{default:"transparent"},scrollable:{type:Boolean,default:!1},visibleDays:{default:7}},emits:["update:modelValue","dateClick"],setup(s,{emit:m}){const n=s,t=m,r=vue.computed(()=>{if(console.log("props:",{startDate:n.startDate,endDate:n.endDate,scrollable:n.scrollable}),n.scrollable)return console.log("显式设置了scrollable为true,允许滚动"),!0;try{const f=new Date(n.startDate);f.setHours(0,0,0,0);const v=new Date(n.endDate);if(v.setHours(0,0,0,0),isNaN(f.getTime())||isNaN(v.getTime()))return console.log("无效的日期对象,使用默认滚动行为"),!1;const e=v.getTime()-f.getTime(),x=Math.ceil(e/(1e3*60*60*24)),y=x+1;return console.log("日期范围天数计算:",{start:f.toLocaleDateString(),end:v.toLocaleDateString(),diffTime:e,diffDays:x,totalDays:y,shouldScroll:y>7}),y>7}catch(f){return console.error("计算日期范围时出错:",f),!1}}),u=[{value:0,label:"日",isWeekend:!0},{value:1,label:"一",isWeekend:!1},{value:2,label:"二",isWeekend:!1},{value:3,label:"三",isWeekend:!1},{value:4,label:"四",isWeekend:!1},{value:5,label:"五",isWeekend:!1},{value:6,label:"六",isWeekend:!0}],a=vue.computed(()=>{const f=d.value[0];if(!f)return u;const v=f.weekday,e=[];for(let x=0;x<7;x++){const y=(v+x)%7;e.push(u[y])}return e}),o=()=>{const f=n.startDate||new Date,v=f.getDay(),e=f.getDate()-(v===0?6:v-1),x=new Date(f);return x.setDate(e),x};vue.ref(o()),vue.onMounted(()=>{console.log("props:",n),console.log("highlightType:",n.highlightType)}),vue.watch(()=>n.highlightType,f=>{console.log("highlightType changed:",f)}),vue.watch(()=>n.modelValue,f=>{console.log("modelValue changed:",f)});const h=vue.computed(()=>{const f=[];try{const v=n.startDate,e=n.endDate;if(isNaN(v.getTime())||isNaN(e.getTime()))return console.log("无效的日期对象,返回空数组"),f;const x=Math.ceil((e.getTime()-v.getTime())/(1e3*60*60*24))+1;for(let y=0;y<x;y++){const w=new Date(v);w.setDate(v.getDate()+y),isNaN(w.getTime())||f.push({date:w,dateString:l(w),day:w.getDate(),month:w.getMonth()+1,year:w.getFullYear(),isWeekend:w.getDay()===0||w.getDay()===6,weekday:w.getDay()})}}catch(v){console.error("生成日期数组时出错:",v)}return f}),d=vue.computed(()=>h.value.filter(f=>!!(f&&f.date&&f.dateString&&!isNaN(f.date.getTime())&&typeof f.dateString=="string"&&typeof f.day=="number"))),l=f=>`${f.getFullYear()}-${String(f.getMonth()+1).padStart(2,"0")}-${String(f.getDate()).padStart(2,"0")}`,i=f=>{const v=f.dateString;return n.modelValue?Array.isArray(n.modelValue)?n.modelValue.some(e=>!e||isNaN(e.getTime())?!1:l(e)===v):isNaN(n.modelValue.getTime())?!1:l(n.modelValue)===v:!1},p=f=>{const v=l(new Date);return f.dateString===v},c=f=>{const v=f.date;return n.disablePast&&v<new Date(new Date().setHours(0,0,0,0))||n.disableFuture&&v>new Date(new Date().setHours(23,59,59,999))?!1:v>=n.startDate&&v<=n.endDate},b=f=>{var v;return((v=u.find(e=>e.value===f))==null?void 0:v.label)||""},_=f=>{c(f)&&(t("dateClick",f),t("update:modelValue",f.date))};return(f,v)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-date-strip",{"hbis-date-strip--highlight-bg":s.highlightType==="bg","hbis-date-strip--highlight-dot":s.highlightType==="dot","hbis-date-strip--highlight-round":s.highlightType==="round","hbis-date-strip--scrollable":r.value}])},[r.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$4,[vue.createElementVNode("div",_hoisted_8$2,[vue.createElementVNode("div",_hoisted_9$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(d.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.dateString+"-weekday",class:vue.normalizeClass(["hbis-date-strip__weekday",{"hbis-date-strip__weekday--weekend":e.isWeekend}])},vue.toDisplayString(b(e.weekday)),3))),128))]),vue.createElementVNode("div",_hoisted_10$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(d.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.dateString,class:vue.normalizeClass(["hbis-date-strip__date",{"hbis-date-strip__date--selected":i(e),"hbis-date-strip__date--today":p(e),"hbis-date-strip__date--disabled":!c(e),"hbis-date-strip__date--weekend":e.isWeekend}]),style:vue.normalizeStyle({color:i(e)?s.selectedColor:s.normalColor,backgroundColor:i(e)?s.selectedBgColor:s.normalBgColor}),onClick:x=>_(e)},[vue.createElementVNode("div",_hoisted_12,vue.toDisplayString(e.day),1),vue.createElementVNode("div",_hoisted_13,[vue.renderSlot(f.$slots,"default",{date:e},void 0,!0)])],14,_hoisted_11$1))),128))])])])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$9,[vue.createElementVNode("div",_hoisted_2$8,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.value,class:vue.normalizeClass(["hbis-date-strip__weekday",{"hbis-date-strip__weekday--weekend":e.isWeekend}])},vue.toDisplayString(e.label),3))),128))]),vue.createElementVNode("div",_hoisted_3$6,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(d.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.dateString,class:vue.normalizeClass(["hbis-date-strip__date",{"hbis-date-strip__date--selected":i(e),"hbis-date-strip__date--today":p(e),"hbis-date-strip__date--disabled":!c(e),"hbis-date-strip__date--weekend":e.isWeekend}]),style:vue.normalizeStyle({color:i(e)?s.selectedColor:s.normalColor,backgroundColor:i(e)?s.selectedBgColor:s.normalBgColor}),onClick:x=>_(e)},[vue.createElementVNode("div",_hoisted_5$4,vue.toDisplayString(e.day),1),vue.createElementVNode("div",_hoisted_6$4,[vue.renderSlot(f.$slots,"default",{date:e},void 0,!0)])],14,_hoisted_4$5))),128))])]))],2))}}),hbisDateStrip=_export_sfc(_sfc_main$b,[["__scopeId","data-v-f7fe6423"]]),_hoisted_1$8={class:"image-preview"},_hoisted_2$7={key:0,class:"counter"},_hoisted_3$5={class:"counter-text"},_hoisted_4$4={class:"swiper-container"},_hoisted_5$3=["onWheel"],_hoisted_6$3=["src","onLoad"],_hoisted_7$3=["disabled"],_hoisted_8$1=["disabled"],_sfc_main$a={__name:"hbis-previewImage",props:{images:{type:Array,required:!0,validator:s=>s.every(m=>typeof m=="string")},initialIndex:{type:Number,default:0},minScale:{type:Number,default:.5},maxScale:{type:Number,default:5},showCloseBtn:{type:Boolean,default:!0},enableSwipe:{type:Boolean,default:!0}},emits:["close","change","update:initialIndex"],setup(s,{emit:m}){const n=s,t=m,r=vue.ref(n.initialIndex),u=vue.ref(null),a=vue.ref(!1),o=vue.ref(!1),h=vue.ref(0),d=vue.ref(0),l=vue.ref(0),i=vue.ref(window.innerWidth),p=vue.ref(window.innerHeight),c=vue.ref(n.images.map(()=>({scale:1,translateX:0,translateY:0,naturalWidth:0,naturalHeight:0,isLoaded:!1}))),b=vue.ref(0),_=vue.ref(0),f=vue.ref(0),v=vue.ref(0),e=vue.ref(0),x=vue.computed(()=>({transform:`translateX(${l.value}px)`,transition:a.value?"none":"transform 0.3s ease"})),y=vue.computed(()=>({width:`${i.value}px`,height:`${p.value}px`}));vue.watch(()=>n.initialIndex,g=>{g!==r.value&&(r.value=g,w())}),vue.onMounted(()=>{const g=()=>{i.value=window.innerWidth,p.value=window.innerHeight,w()};return window.addEventListener("resize",g),g(),()=>{window.removeEventListener("resize",g)}});const w=()=>{l.value=-r.value*i.value},N=()=>{r.value>0&&(r.value--,w(),C(),t("change",r.value),t("update:initialIndex",r.value))},S=()=>{r.value<n.images.length-1&&(r.value++,w(),C(),t("change",r.value),t("update:initialIndex",r.value))},C=()=>{c.value[r.value]={...c.value[r.value],scale:1,translateX:0,translateY:0}},$=g=>{const k=c.value[g];return{transform:`scale(${k.scale}) translate(${k.translateX}px, ${k.translateY}px)`,transition:o.value?"none":"transform 0.1s ease",opacity:k.isLoaded?1:0}},M=g=>{const k=event.target;c.value[g]={...c.value[g],naturalWidth:k.naturalWidth,naturalHeight:k.naturalHeight,isLoaded:!0}},F=g=>{g.target.tagName==="IMG"?(o.value=!0,h.value=g.clientX-c.value[r.value].translateX,d.value=g.clientY-c.value[r.value].translateY):(a.value=!0,h.value=g.clientX-l.value),g.preventDefault()},D=g=>{if(o.value){const k=g.clientX-h.value,T=g.clientY-d.value;c.value[r.value]={...c.value[r.value],translateX:k,translateY:T}}else if(a.value&&n.enableSwipe){const k=g.clientX-h.value;l.value=k}},E=()=>{if(a.value&&n.enableSwipe){const g=i.value*.3;Math.abs(l.value+r.value*i.value)>g?l.value>0?N():S():w()}a.value=!1,o.value=!1},A=g=>{const k=g.touches[0];b.value=k.clientX,_.value=k.clientY,f.value=Date.now()},V=g=>{const k=g.touches[0];v.value=k.clientX,e.value=k.clientY;const T=v.value-b.value,B=e.value-_.value;if(Math.abs(T)>Math.abs(B))g.preventDefault(),a.value=!0,l.value=-r.value*i.value+T;else if(c.value[r.value].scale>1){g.preventDefault(),o.value=!0;const L=T+c.value[r.value].translateX,j=B+c.value[r.value].translateY;c.value[r.value]={...c.value[r.value],translateX:L,translateY:j}}},O=()=>{if(a.value){const g=v.value-b.value,k=Date.now()-f.value,T=i.value*.2,B=Math.abs(g)/k;Math.abs(g)>T||B>.5?g>0?N():S():w()}a.value=!1,o.value=!1},I=(g,k)=>{if(k!==r.value)return;g.preventDefault();const T=g.deltaY>0?-.1:.1,B=g.clientX,L=g.clientY;R(B,L,T)},R=(g,k,T)=>{const B=c.value[r.value],L=Math.max(n.minScale,Math.min(n.maxScale,B.scale+T)),j=event.target.getBoundingClientRect(),P=g-j.left,z=k-j.top,W=L-B.scale,H=B.translateX+(P-B.translateX)*(W/B.scale),U=B.translateY+(z-B.translateY)*(W/B.scale);c.value[r.value]={...B,scale:L,translateX:H,translateY:U}};return(g,k)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$8,[s.images.length>1?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$7,[vue.createElementVNode("span",_hoisted_3$5,vue.toDisplayString(r.value+1)+"/"+vue.toDisplayString(s.images.length),1)])):vue.createCommentVNode("",!0),s.showCloseBtn?(vue.openBlock(),vue.createElementBlock("button",{key:1,class:"close-btn",onClick:k[0]||(k[0]=T=>t("close"))},[...k[1]||(k[1]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),vue.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$4,[vue.createElementVNode("div",{class:"swiper-wrapper",ref_key:"swiperWrapper",ref:u,style:vue.normalizeStyle(x.value),onTouchstart:A,onTouchmove:V,onTouchend:O,onMousedown:F,onMousemove:D,onMouseup:E,onMouseleave:E},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.images,(T,B)=>(vue.openBlock(),vue.createElementBlock("div",{key:B,class:"swiper-slide",style:vue.normalizeStyle(y.value)},[vue.createElementVNode("div",{class:"image-container",onWheel:L=>I(L,B)},[vue.createElementVNode("img",{src:T,alt:"Preview image",class:"preview-image",style:vue.normalizeStyle($(B)),onLoad:L=>M(B),loading:"lazy"},null,44,_hoisted_6$3)],40,_hoisted_5$3)],4))),128))],36)]),vue.createElementVNode("button",{class:"nav-btn prev-btn",onClick:N,disabled:r.value===0},[...k[2]||(k[2]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("polyline",{points:"15 18 9 12 15 6"})],-1)])],8,_hoisted_7$3),vue.createElementVNode("button",{class:"nav-btn next-btn",onClick:S,disabled:r.value===s.images.length-1},[...k[3]||(k[3]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,_hoisted_8$1)]))}},_sfc_main$9={__name:"hbis-auto-scroll-list",props:{data:{type:Array,default:()=>[]},speed:{type:Number,default:1},direction:{type:String,default:"vertical",validator:s=>["vertical","horizontal"].includes(s)},pauseOnHover:{type:Boolean,default:!0},itemHeight:{type:Number,default:40},itemWidth:{type:Number,default:200},containerHeight:{type:[Number,String],default:300},containerWidth:{type:[Number,String],default:"100%"},loop:{type:Boolean,default:!0},customItemClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({})}},emits:["scroll","pause","resume","dragStart","dragEnd"],setup(s,{expose:m,emit:n}){const t=s,r=n,u=vue.ref(null),a=vue.ref(null),o=vue.ref(!1),h=vue.ref(null),d=vue.ref(0),l=vue.ref([]),i=vue.ref(!1),p=vue.ref(0),c=vue.ref(0),b=vue.ref(0),_=vue.ref(!1),f=vue.computed(()=>({height:typeof t.containerHeight=="number"?`${t.containerHeight}px`:t.containerHeight,width:typeof t.containerWidth=="number"?`${t.containerWidth}px`:t.containerWidth,overflow:"hidden",position:"relative"})),v=vue.computed(()=>{const g={with:"100%",position:"absolute",transition:"none",willChange:"transform"};return t.direction==="vertical"?g.transform=`translateY(${d.value}px)`:g.transform=`translateX(${d.value}px)`,g}),e=()=>{if(!t.data||t.data.length===0){l.value=[];return}t.loop?l.value=[...t.data,...t.data]:l.value=[...t.data]},x=()=>{if(o.value||i.value){h.value=requestAnimationFrame(x);return}const g=u.value,k=a.value;if(!g||!k){h.value=requestAnimationFrame(x);return}const T=t.direction==="vertical"?g.offsetHeight:g.offsetWidth,L=(t.direction==="vertical"?t.itemHeight:t.itemWidth)*t.data.length;if(d.value-=t.speed,t.loop)Math.abs(d.value)>=L&&(d.value=0);else{const j=-(L-T);if(d.value<=j){d.value=j,o.value=!0,r("scroll",d.value);return}}r("scroll",d.value),h.value=requestAnimationFrame(x)},y=()=>{h.value&&cancelAnimationFrame(h.value),h.value=requestAnimationFrame(x)},w=()=>{h.value&&(cancelAnimationFrame(h.value),h.value=null)},N=()=>{o.value=!0,r("pause")},S=()=>{o.value=!1,r("resume")},C=()=>{t.pauseOnHover&&N()},$=()=>{t.pauseOnHover&&!i.value&&S()},M=g=>{i.value=!0,_.value=o.value,o.value=!0,p.value=t.direction==="vertical"?g.clientY:g.clientX,c.value=p.value,b.value=d.value,r("dragStart"),document.addEventListener("mousemove",F),document.addEventListener("mouseup",D)},F=g=>{if(!i.value)return;c.value=t.direction==="vertical"?g.clientY:g.clientX;const k=c.value-p.value;d.value=b.value+k;const T=u.value,B=a.value;if(T&&B){const L=t.direction==="vertical"?T.offsetHeight:T.offsetWidth,P=(t.direction==="vertical"?t.itemHeight:t.itemWidth)*t.data.length;if(t.loop)d.value>0?d.value=0:Math.abs(d.value)>P&&(d.value=-P);else{const z=-(P-L);d.value>0?d.value=0:d.value<z&&(d.value=z)}}r("scroll",d.value)},D=()=>{i.value&&(i.value=!1,document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",D),_.value||(o.value=!1),r("dragEnd"))},E=g=>{const k=g.touches[0];i.value=!0,_.value=o.value,o.value=!0,p.value=t.direction==="vertical"?k.clientY:k.clientX,c.value=p.value,b.value=d.value,r("dragStart")},A=g=>{if(!i.value)return;g.preventDefault();const k=g.touches[0];c.value=t.direction==="vertical"?k.clientY:k.clientX;const T=c.value-p.value;d.value=b.value+T;const B=u.value,L=a.value;if(B&&L){const j=t.direction==="vertical"?B.offsetHeight:B.offsetWidth,z=(t.direction==="vertical"?t.itemHeight:t.itemWidth)*t.data.length;if(t.loop)d.value>0?d.value=0:Math.abs(d.value)>z&&(d.value=-z);else{const W=-(z-j);d.value>0?d.value=0:d.value<W&&(d.value=W)}}r("scroll",d.value)},V=()=>{i.value&&(i.value=!1,_.value||(o.value=!1),r("dragEnd"))},O=g=>{d.value=g},I=()=>{d.value=0},R=()=>{const g=u.value;if(g){const k=a.value;if(k){const T=t.direction==="vertical"?k.offsetHeight:k.offsetWidth;d.value=-(T-g.offsetHeight)}}};return vue.watch(()=>t.data,()=>{e(),d.value=0},{deep:!0}),vue.watch(()=>t.speed,()=>{o.value||(w(),y())}),vue.onMounted(()=>{e(),vue.nextTick(()=>{y();const g=u.value;g&&(g.addEventListener("mouseenter",C),g.addEventListener("mouseleave",$))})}),vue.onUnmounted(()=>{w();const g=u.value;g&&(g.removeEventListener("mouseenter",C),g.removeEventListener("mouseleave",$)),document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",D)}),m({pause:N,resume:S,scrollTo:O,scrollToTop:I,scrollToBottom:R,isPaused:o,isDragging:i}),(g,k)=>(vue.openBlock(),vue.createElementBlock("div",{class:"hbis-auto-scroll-list",ref_key:"containerRef",ref:u,style:vue.normalizeStyle(f.value),onMousedown:M,onTouchstart:E,onTouchmove:A,onTouchend:V},[vue.createElementVNode("div",{class:"scroll-content",ref_key:"contentRef",ref:a,style:vue.normalizeStyle(v.value)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,(T,B)=>vue.renderSlot(g.$slots,"item",{item:T,index:B},()=>[vue.createElementVNode("div",{class:"default-item",style:vue.normalizeStyle(s.itemStyle)},vue.toDisplayString(T),5)],!0)),256))],4)],36))}},HbisAutoScrollList=_export_sfc(_sfc_main$9,[["__scopeId","data-v-d516a98e"]]),_hoisted_1$7={key:0,class:"circular-spinner"},_hoisted_2$6={key:1,class:"dots-spinner"},_hoisted_3$4={key:2,class:"bars-spinner"},_sfc_main$8={__name:"hbis-loading",props:{visible:{type:Boolean,default:!1},touchDismiss:{type:Boolean,default:!1},text:{type:String,default:""},spinnerType:{type:String,default:"circular"},textStyle:{type:Object,default:()=>({})},containerStyle:{type:Object,default:()=>({})}},emits:["update:visible","close"],setup(s,{expose:m,emit:n}){const t=s,r=n,u=()=>{t.touchDismiss&&(r("update:visible",!1),r("close"))};return vue.watch(()=>t.visible,a=>{a?document.body.style.overflow="hidden":document.body.style.overflow=""}),vue.onUnmounted(()=>{document.body.style.overflow=""}),m({show:()=>r("update:visible",!0),hide:()=>{r("update:visible",!1),r("close")}}),(a,o)=>s.visible?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["hbis-loading-container",{"touch-dismissible":s.touchDismiss}]),onClick:u},[vue.createElementVNode("div",{class:"hbis-loading-wrapper",onClick:o[0]||(o[0]=vue.withModifiers(()=>{},["stop"]))},[vue.renderSlot(a.$slots,"spinner",{},()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["hbis-loading-spinner",s.spinnerType])},[s.spinnerType==="circular"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$7,[...o[1]||(o[1]=[vue.createElementVNode("div",{class:"circle"},null,-1)])])):s.spinnerType==="dots"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$6,[...o[2]||(o[2]=[vue.createElementVNode("div",{class:"dot"},null,-1),vue.createElementVNode("div",{class:"dot"},null,-1),vue.createElementVNode("div",{class:"dot"},null,-1)])])):s.spinnerType==="bars"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$4,[...o[3]||(o[3]=[vue.createElementVNode("div",{class:"bar"},null,-1),vue.createElementVNode("div",{class:"bar"},null,-1),vue.createElementVNode("div",{class:"bar"},null,-1)])])):vue.createCommentVNode("",!0)],2)],!0),s.text?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-loading-text",style:vue.normalizeStyle(s.textStyle)},vue.toDisplayString(s.text),5)):vue.createCommentVNode("",!0)])],2)):vue.createCommentVNode("",!0)}},hbisLoading=_export_sfc(_sfc_main$8,[["__scopeId","data-v-61aef9bd"]]),_hoisted_1$6={class:"parent-view"},_sfc_main$7={__name:"hbis-sms-input",props:{countDownTime:{type:Number,default:60},inputPlacheHolder:{type:String,default:"请输入验证码"},inputColor:{type:String,default:"#F1F7FA"},inputTextColor:{type:String,default:"#000"},inputPlacheHolderColor:{type:String,default:"#F00"},smsCodeTimeText:{type:String,default:"s"},smsCodeBtnText:{type:String,default:"发送"},smsCodeBtnColor:{type:String,default:"#FFF"},smsCodeBtnTextColor:{type:String,default:"#2E6DFF"}},emits:["custom-event"],setup(s,{expose:m,emit:n}){const t=s,r=n,u=vue.ref(!0),a=vue.ref(""),o=vue.ref(t.countDownTime),h=()=>{if(console.log("验证码isSendSMS:"+u.value),!u.value){console.log("请"+t.countDownTime+"秒后再重试。");return}r("custom-event")};return m({countDown:()=>{o.value=t.countDownTime;let l=setInterval(()=>{u.value=!1,o.value--,o.value===0&&(u.value=!0,clearInterval(l))},1e3)},smsCode:a}),(l,i)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$6,[vue.createElementVNode("div",{class:"input_view_sms_code",style:vue.normalizeStyle({background:s.inputColor})},[vue.withDirectives(vue.createElementVNode("input",{type:"text",class:"view_sms_code","placeholder-style":"color:#999",placeholder:"请输入验证码","onUpdate:modelValue":i[0]||(i[0]=p=>a.value=p),style:vue.normalizeStyle({color:s.inputTextColor})},null,4),[[vue.vModelText,a.value]]),u.value?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["sms_code_btn",{disabled:!u.value}]),style:vue.normalizeStyle({color:s.smsCodeBtnTextColor,background:s.smsCodeBtnColor}),onClick:h},vue.toDisplayString(o.value)+" "+vue.toDisplayString(s.smsCodeTimeText),7)),u.value?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"sms_code_btn",style:vue.normalizeStyle({color:s.smsCodeBtnTextColor,background:s.smsCodeBtnColor}),onClick:h},vue.toDisplayString(s.smsCodeBtnText),5)):vue.createCommentVNode("",!0)],4)]))}},HbisSmsInput=_export_sfc(_sfc_main$7,[["__scopeId","data-v-ef42fb9a"]]),_hoisted_1$5={class:"waterfall-debug"},_hoisted_2$5={class:"waterfall-container"},_hoisted_3$3={class:"column-debug"},_hoisted_4$3={key:0,class:"waterfall-item-with-slot"},_hoisted_5$2=["src"],_hoisted_6$2={class:"waterfall-content"},_hoisted_7$2=["src"],_sfc_main$6=Object.assign({name:"HbisWaterfall"},{__name:"hbis-waterfall",props:{data:{type:Array,default:()=>[]},column:{type:Number,default:2,validator:s=>s>=2},maxColumn:{type:Number,default:5},columnGap:{type:[Number,String],default:10},rowGap:{type:[Number,String],default:10},itemKey:{type:String,default:"id"},imageKey:{type:String,default:"url"}},emits:["load","error"],setup(s,{expose:m,emit:n}){const t=vue.useSlots(),r=vue.ref(null),u=s,a=n;vue.useCssVars(()=>({columnGap:String(u.columnGap)+"px",rowGap:String(u.rowGap)+"px"}));const o=vue.ref([]),h=vue.ref(2),d=vue.computed(()=>t.default!==void 0),l=b=>(r.value&&r.value.offsetWidth,Math.min(u.column,u.maxColumn),parseInt(u.columnGap),parseInt(u.rowGap),200+Math.floor(Math.random()*100)+20),i=()=>{console.log("开始分配数据,总数据量:",u.data.length);const b=Math.min(u.column,u.maxColumn);h.value=b;const _=[];for(let f=0;f<b;f++)_.push({items:[],height:0});o.value=_,u.data.forEach((f,v)=>{const e=l();let x=1/0,y=0;for(let w=0;w<b;w++)o.value[w].height<x&&(x=o.value[w].height,y=w);o.value[y].items.push(f),o.value[y].height+=e,console.log("分配数据到列:",{itemIndex:v,columnIndex:y,itemHeight:e,columnHeight:o.value[y].height})}),console.log("分配完成,各列数据量:",o.value.map((f,v)=>`列${v+1}: ${f.items.length}个`)),console.log("分配完成,各列高度:",o.value.map((f,v)=>`列${v+1}: ${f.height}px`))},p=b=>{a("load",b)},c=b=>{a("error",b)};return vue.watch(()=>u.data,()=>{console.log("数据变化,重新分配数据"),i()},{deep:!0}),vue.watch(()=>[u.column,u.maxColumn],()=>{console.log("列数变化,更新列数"),h.value=Math.min(u.column,u.maxColumn),i()}),vue.watch(()=>[u.columnGap,u.rowGap],()=>{console.log("间距变化,重新计算高度和分配数据"),i()}),vue.onMounted(()=>{console.log("===== 组件挂载 ====="),console.log("组件挂载,初始化数据"),console.log("初始数据量:",u.data.length);try{i(),console.log("===== 组件挂载完成 =====")}catch(b){console.error("refresh函数执行失败:",b),console.log("===== 组件挂载失败 =====")}}),m({refresh:i}),(b,_)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"waterfallRef",ref:r},[vue.createElementVNode("div",_hoisted_1$5,[vue.createTextVNode(" 列数: "+vue.toDisplayString(h.value)+" ",1),_[1]||(_[1]=vue.createElementVNode("br",null,null,-1)),vue.createTextVNode(" 数据总量: "+vue.toDisplayString(s.data.length)+" ",1),_[2]||(_[2]=vue.createElementVNode("br",null,null,-1)),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,(f,v)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:v},[vue.createTextVNode(" 列"+vue.toDisplayString(v+1)+"数据量: "+vue.toDisplayString(f.items.length),1),_[0]||(_[0]=vue.createElementVNode("br",null,null,-1))],64))),128))]),vue.createElementVNode("div",_hoisted_2$5,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,(f,v)=>(vue.openBlock(),vue.createElementBlock("div",{key:v,class:"waterfall-column"},[vue.createElementVNode("div",_hoisted_3$3," 列"+vue.toDisplayString(v+1)+": "+vue.toDisplayString(f.items.length)+"个元素 ",1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(f.items,(e,x)=>(vue.openBlock(),vue.createElementBlock("div",{key:e[s.itemKey]||`col${v}-${x}`,class:"waterfall-item"},[d.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$3,[vue.createElementVNode("img",{src:e[s.imageKey],class:"waterfall-image",style:vue.normalizeStyle({height:l()+"px"}),onLoad:p,onError:c},null,44,_hoisted_5$2),vue.createElementVNode("div",_hoisted_6$2,[vue.renderSlot(b.$slots,"default",{item:e,index:x},void 0,!0)])])):(vue.openBlock(),vue.createElementBlock("img",{key:1,src:e[s.imageKey],class:"waterfall-image",style:vue.normalizeStyle({height:l()+"px"}),onLoad:p,onError:c},null,44,_hoisted_7$2))]))),128))]))),128))])],512))}}),HbisWaterfall=_export_sfc(_sfc_main$6,[["__scopeId","data-v-cae450ae"]]);var svga_lite_min={exports:{}};/*!
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const vue=require("vue"),_sfc_main$e=vue.defineComponent({__name:"C1",props:{title:{default:"C1 Component"},primary:{type:Boolean,default:!1}},setup(o){return(m,n)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["c1-container",{"c1-primary":o.primary}])},[vue.renderSlot(m.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(o.title),1)],!0)],2))}}),_export_sfc=(o,m)=>{const n=o.__vccOpts||o;for(const[t,r]of m)n[t]=r;return n},C1=_export_sfc(_sfc_main$e,[["__scopeId","data-v-e2028f64"]]),_hoisted_1$b={class:"c2-container"},_hoisted_2$a={class:"c2-title"},_hoisted_3$8={class:"c2-content"},_sfc_main$d=vue.defineComponent({__name:"C2",props:{title:{default:"C2 Component"},showButton:{type:Boolean,default:!0},buttonText:{default:"Click Me"}},emits:["click"],setup(o,{emit:m}){const n=m,t=r=>{n("click",r)};return(r,u)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$b,[vue.createElementVNode("h2",_hoisted_2$a,vue.toDisplayString(o.title),1),vue.createElementVNode("div",_hoisted_3$8,[vue.renderSlot(r.$slots,"default",{},void 0,!0)]),o.showButton?(vue.openBlock(),vue.createElementBlock("button",{key:0,class:"c2-button",onClick:t},vue.toDisplayString(o.buttonText),1)):vue.createCommentVNode("",!0)]))}}),C2=_export_sfc(_sfc_main$d,[["__scopeId","data-v-b1d573ae"]]),_hoisted_1$a={key:0},_hoisted_2$9={class:"hbis-date-strip__weekdays"},_hoisted_3$7={class:"hbis-date-strip__dates"},_hoisted_4$5=["onClick"],_hoisted_5$4={class:"hbis-date-strip__date-number"},_hoisted_6$4={class:"hbis-date-strip__date-slot"},_hoisted_7$4={key:1,class:"hbis-date-strip__scroll-wrapper"},_hoisted_8$2={class:"hbis-date-strip__scroll-container"},_hoisted_9$1={class:"hbis-date-strip__weekdays"},_hoisted_10$1={class:"hbis-date-strip__dates"},_hoisted_11$1=["onClick"],_hoisted_12={class:"hbis-date-strip__date-number"},_hoisted_13={class:"hbis-date-strip__date-slot"},_sfc_main$c=vue.defineComponent({__name:"hbis-dateStrip",props:{modelValue:{default:()=>new Date},startDate:{default:()=>new Date},endDate:{default:()=>{const o=new Date;return o.setDate(o.getDate()+30),o}},highlightType:{default:"bg"},showToday:{type:Boolean,default:!0},disablePast:{type:Boolean,default:!1},disableFuture:{type:Boolean,default:!1},selectedColor:{default:"#ffffff"},normalColor:{default:"#666666"},selectedBgColor:{default:"#1890ff"},normalBgColor:{default:"transparent"},scrollable:{type:Boolean,default:!1},visibleDays:{default:7}},emits:["update:modelValue","dateClick"],setup(o,{emit:m}){const n=o,t=m,r=vue.computed(()=>{if(console.log("props:",{startDate:n.startDate,endDate:n.endDate,scrollable:n.scrollable}),n.scrollable)return console.log("显式设置了scrollable为true,允许滚动"),!0;try{const d=new Date(n.startDate);d.setHours(0,0,0,0);const p=new Date(n.endDate);if(p.setHours(0,0,0,0),isNaN(d.getTime())||isNaN(p.getTime()))return console.log("无效的日期对象,使用默认滚动行为"),!1;const e=p.getTime()-d.getTime(),x=Math.ceil(e/(1e3*60*60*24)),g=x+1;return console.log("日期范围天数计算:",{start:d.toLocaleDateString(),end:p.toLocaleDateString(),diffTime:e,diffDays:x,totalDays:g,shouldScroll:g>7}),g>7}catch(d){return console.error("计算日期范围时出错:",d),!1}}),u=[{value:0,label:"日",isWeekend:!0},{value:1,label:"一",isWeekend:!1},{value:2,label:"二",isWeekend:!1},{value:3,label:"三",isWeekend:!1},{value:4,label:"四",isWeekend:!1},{value:5,label:"五",isWeekend:!1},{value:6,label:"六",isWeekend:!0}],a=vue.computed(()=>{const d=h.value[0];if(!d)return u;const p=d.weekday,e=[];for(let x=0;x<7;x++){const g=(p+x)%7;e.push(u[g])}return e}),s=()=>{const d=n.startDate||new Date,p=d.getDay(),e=d.getDate()-(p===0?6:p-1),x=new Date(d);return x.setDate(e),x};vue.ref(s()),vue.onMounted(()=>{console.log("props:",n),console.log("highlightType:",n.highlightType)}),vue.watch(()=>n.highlightType,d=>{console.log("highlightType changed:",d)}),vue.watch(()=>n.modelValue,d=>{console.log("modelValue changed:",d)});const v=vue.computed(()=>{const d=[];try{const p=n.startDate,e=n.endDate;if(isNaN(p.getTime())||isNaN(e.getTime()))return console.log("无效的日期对象,返回空数组"),d;const x=Math.ceil((e.getTime()-p.getTime())/(1e3*60*60*24))+1;for(let g=0;g<x;g++){const w=new Date(p);w.setDate(p.getDate()+g),isNaN(w.getTime())||d.push({date:w,dateString:l(w),day:w.getDate(),month:w.getMonth()+1,year:w.getFullYear(),isWeekend:w.getDay()===0||w.getDay()===6,weekday:w.getDay()})}}catch(p){console.error("生成日期数组时出错:",p)}return d}),h=vue.computed(()=>v.value.filter(d=>!!(d&&d.date&&d.dateString&&!isNaN(d.date.getTime())&&typeof d.dateString=="string"&&typeof d.day=="number"))),l=d=>`${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,"0")}-${String(d.getDate()).padStart(2,"0")}`,i=d=>{const p=d.dateString;return n.modelValue?Array.isArray(n.modelValue)?n.modelValue.some(e=>!e||isNaN(e.getTime())?!1:l(e)===p):isNaN(n.modelValue.getTime())?!1:l(n.modelValue)===p:!1},f=d=>{const p=l(new Date);return d.dateString===p},c=d=>{const p=d.date;return n.disablePast&&p<new Date(new Date().setHours(0,0,0,0))||n.disableFuture&&p>new Date(new Date().setHours(23,59,59,999))?!1:p>=n.startDate&&p<=n.endDate},_=d=>{var p;return((p=u.find(e=>e.value===d))==null?void 0:p.label)||""},y=d=>{c(d)&&(t("dateClick",d),t("update:modelValue",d.date))};return(d,p)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-date-strip",{"hbis-date-strip--highlight-bg":o.highlightType==="bg","hbis-date-strip--highlight-dot":o.highlightType==="dot","hbis-date-strip--highlight-round":o.highlightType==="round","hbis-date-strip--scrollable":r.value}])},[r.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$4,[vue.createElementVNode("div",_hoisted_8$2,[vue.createElementVNode("div",_hoisted_9$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(h.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.dateString+"-weekday",class:vue.normalizeClass(["hbis-date-strip__weekday",{"hbis-date-strip__weekday--weekend":e.isWeekend}])},vue.toDisplayString(_(e.weekday)),3))),128))]),vue.createElementVNode("div",_hoisted_10$1,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(h.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.dateString,class:vue.normalizeClass(["hbis-date-strip__date",{"hbis-date-strip__date--selected":i(e),"hbis-date-strip__date--today":f(e),"hbis-date-strip__date--disabled":!c(e),"hbis-date-strip__date--weekend":e.isWeekend}]),style:vue.normalizeStyle({color:i(e)?o.selectedColor:o.normalColor,backgroundColor:i(e)?o.selectedBgColor:o.normalBgColor}),onClick:x=>y(e)},[vue.createElementVNode("div",_hoisted_12,vue.toDisplayString(e.day),1),vue.createElementVNode("div",_hoisted_13,[vue.renderSlot(d.$slots,"default",{date:e},void 0,!0)])],14,_hoisted_11$1))),128))])])])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a,[vue.createElementVNode("div",_hoisted_2$9,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.value,class:vue.normalizeClass(["hbis-date-strip__weekday",{"hbis-date-strip__weekday--weekend":e.isWeekend}])},vue.toDisplayString(e.label),3))),128))]),vue.createElementVNode("div",_hoisted_3$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(h.value,e=>(vue.openBlock(),vue.createElementBlock("div",{key:e.dateString,class:vue.normalizeClass(["hbis-date-strip__date",{"hbis-date-strip__date--selected":i(e),"hbis-date-strip__date--today":f(e),"hbis-date-strip__date--disabled":!c(e),"hbis-date-strip__date--weekend":e.isWeekend}]),style:vue.normalizeStyle({color:i(e)?o.selectedColor:o.normalColor,backgroundColor:i(e)?o.selectedBgColor:o.normalBgColor}),onClick:x=>y(e)},[vue.createElementVNode("div",_hoisted_5$4,vue.toDisplayString(e.day),1),vue.createElementVNode("div",_hoisted_6$4,[vue.renderSlot(d.$slots,"default",{date:e},void 0,!0)])],14,_hoisted_4$5))),128))])]))],2))}}),hbisDateStrip=_export_sfc(_sfc_main$c,[["__scopeId","data-v-2e8258eb"]]),_hoisted_1$9={class:"image-preview"},_hoisted_2$8={key:0,class:"counter"},_hoisted_3$6={class:"counter-text"},_hoisted_4$4={class:"swiper-container"},_hoisted_5$3=["onWheel"],_hoisted_6$3=["src","onLoad"],_hoisted_7$3=["disabled"],_hoisted_8$1=["disabled"],_sfc_main$b={__name:"hbis-previewImage",props:{images:{type:Array,required:!0,validator:o=>o.every(m=>typeof m=="string")},initialIndex:{type:Number,default:0},minScale:{type:Number,default:.5},maxScale:{type:Number,default:5},showCloseBtn:{type:Boolean,default:!0},enableSwipe:{type:Boolean,default:!0}},emits:["close","change","update:initialIndex"],setup(o,{emit:m}){const n=o,t=m,r=vue.ref(n.initialIndex),u=vue.ref(null),a=vue.ref(!1),s=vue.ref(!1),v=vue.ref(0),h=vue.ref(0),l=vue.ref(0),i=vue.ref(window.innerWidth),f=vue.ref(window.innerHeight),c=vue.ref(n.images.map(()=>({scale:1,translateX:0,translateY:0,naturalWidth:0,naturalHeight:0,isLoaded:!1}))),_=vue.ref(0),y=vue.ref(0),d=vue.ref(0),p=vue.ref(0),e=vue.ref(0),x=vue.computed(()=>({transform:`translateX(${l.value}px)`,transition:a.value?"none":"transform 0.3s ease"})),g=vue.computed(()=>({width:`${i.value}px`,height:`${f.value}px`}));vue.watch(()=>n.initialIndex,b=>{b!==r.value&&(r.value=b,w())}),vue.onMounted(()=>{const b=()=>{i.value=window.innerWidth,f.value=window.innerHeight,w()};return window.addEventListener("resize",b),b(),()=>{window.removeEventListener("resize",b)}});const w=()=>{l.value=-r.value*i.value},N=()=>{r.value>0&&(r.value--,w(),T(),t("change",r.value),t("update:initialIndex",r.value))},S=()=>{r.value<n.images.length-1&&(r.value++,w(),T(),t("change",r.value),t("update:initialIndex",r.value))},T=()=>{c.value[r.value]={...c.value[r.value],scale:1,translateX:0,translateY:0}},O=b=>{const k=c.value[b];return{transform:`scale(${k.scale}) translate(${k.translateX}px, ${k.translateY}px)`,transition:s.value?"none":"transform 0.1s ease",opacity:k.isLoaded?1:0}},M=b=>{const k=event.target;c.value[b]={...c.value[b],naturalWidth:k.naturalWidth,naturalHeight:k.naturalHeight,isLoaded:!0}},F=b=>{b.target.tagName==="IMG"?(s.value=!0,v.value=b.clientX-c.value[r.value].translateX,h.value=b.clientY-c.value[r.value].translateY):(a.value=!0,v.value=b.clientX-l.value),b.preventDefault()},D=b=>{if(s.value){const k=b.clientX-v.value,A=b.clientY-h.value;c.value[r.value]={...c.value[r.value],translateX:k,translateY:A}}else if(a.value&&n.enableSwipe){const k=b.clientX-v.value;l.value=k}},E=()=>{if(a.value&&n.enableSwipe){const b=i.value*.3;Math.abs(l.value+r.value*i.value)>b?l.value>0?N():S():w()}a.value=!1,s.value=!1},C=b=>{const k=b.touches[0];_.value=k.clientX,y.value=k.clientY,d.value=Date.now()},V=b=>{const k=b.touches[0];p.value=k.clientX,e.value=k.clientY;const A=p.value-_.value,B=e.value-y.value;if(Math.abs(A)>Math.abs(B))b.preventDefault(),a.value=!0,l.value=-r.value*i.value+A;else if(c.value[r.value].scale>1){b.preventDefault(),s.value=!0;const z=A+c.value[r.value].translateX,L=B+c.value[r.value].translateY;c.value[r.value]={...c.value[r.value],translateX:z,translateY:L}}},$=()=>{if(a.value){const b=p.value-_.value,k=Date.now()-d.value,A=i.value*.2,B=Math.abs(b)/k;Math.abs(b)>A||B>.5?b>0?N():S():w()}a.value=!1,s.value=!1},I=(b,k)=>{if(k!==r.value)return;b.preventDefault();const A=b.deltaY>0?-.1:.1,B=b.clientX,z=b.clientY;R(B,z,A)},R=(b,k,A)=>{const B=c.value[r.value],z=Math.max(n.minScale,Math.min(n.maxScale,B.scale+A)),L=event.target.getBoundingClientRect(),P=b-L.left,j=k-L.top,W=z-B.scale,H=B.translateX+(P-B.translateX)*(W/B.scale),U=B.translateY+(j-B.translateY)*(W/B.scale);c.value[r.value]={...B,scale:z,translateX:H,translateY:U}};return(b,k)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$9,[o.images.length>1?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$8,[vue.createElementVNode("span",_hoisted_3$6,vue.toDisplayString(r.value+1)+"/"+vue.toDisplayString(o.images.length),1)])):vue.createCommentVNode("",!0),o.showCloseBtn?(vue.openBlock(),vue.createElementBlock("button",{key:1,class:"close-btn",onClick:k[0]||(k[0]=A=>t("close"))},[...k[1]||(k[1]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),vue.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$4,[vue.createElementVNode("div",{class:"swiper-wrapper",ref_key:"swiperWrapper",ref:u,style:vue.normalizeStyle(x.value),onTouchstart:C,onTouchmove:V,onTouchend:$,onMousedown:F,onMousemove:D,onMouseup:E,onMouseleave:E},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.images,(A,B)=>(vue.openBlock(),vue.createElementBlock("div",{key:B,class:"swiper-slide",style:vue.normalizeStyle(g.value)},[vue.createElementVNode("div",{class:"image-container",onWheel:z=>I(z,B)},[vue.createElementVNode("img",{src:A,alt:"Preview image",class:"preview-image",style:vue.normalizeStyle(O(B)),onLoad:z=>M(B),loading:"lazy"},null,44,_hoisted_6$3)],40,_hoisted_5$3)],4))),128))],36)]),vue.createElementVNode("button",{class:"nav-btn prev-btn",onClick:N,disabled:r.value===0},[...k[2]||(k[2]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("polyline",{points:"15 18 9 12 15 6"})],-1)])],8,_hoisted_7$3),vue.createElementVNode("button",{class:"nav-btn next-btn",onClick:S,disabled:r.value===o.images.length-1},[...k[3]||(k[3]=[vue.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[vue.createElementVNode("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,_hoisted_8$1)]))}},_sfc_main$a={__name:"hbis-auto-scroll-list",props:{data:{type:Array,default:()=>[]},speed:{type:Number,default:1},direction:{type:String,default:"vertical",validator:o=>["vertical","horizontal"].includes(o)},pauseOnHover:{type:Boolean,default:!0},itemHeight:{type:Number,default:40},itemWidth:{type:Number,default:200},containerHeight:{type:[Number,String],default:300},containerWidth:{type:[Number,String],default:"100%"},loop:{type:Boolean,default:!0},customItemClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({})}},emits:["scroll","pause","resume","dragStart","dragEnd"],setup(o,{expose:m,emit:n}){const t=o,r=n,u=vue.ref(null),a=vue.ref(null),s=vue.ref(!1),v=vue.ref(null),h=vue.ref(0),l=vue.ref([]),i=vue.ref(!1),f=vue.ref(0),c=vue.ref(0),_=vue.ref(0),y=vue.ref(!1),d=vue.computed(()=>({height:typeof t.containerHeight=="number"?`${t.containerHeight}px`:t.containerHeight,width:typeof t.containerWidth=="number"?`${t.containerWidth}px`:t.containerWidth,overflow:"hidden",position:"relative"})),p=vue.computed(()=>{const b={with:"100%",position:"absolute",transition:"none",willChange:"transform"};return t.direction==="vertical"?b.transform=`translateY(${h.value}px)`:b.transform=`translateX(${h.value}px)`,b}),e=()=>{if(!t.data||t.data.length===0){l.value=[];return}t.loop?l.value=[...t.data,...t.data]:l.value=[...t.data]},x=()=>{if(s.value||i.value){v.value=requestAnimationFrame(x);return}const b=u.value,k=a.value;if(!b||!k){v.value=requestAnimationFrame(x);return}const A=t.direction==="vertical"?b.offsetHeight:b.offsetWidth,z=(t.direction==="vertical"?t.itemHeight:t.itemWidth)*t.data.length;if(h.value-=t.speed,t.loop)Math.abs(h.value)>=z&&(h.value=0);else{const L=-(z-A);if(h.value<=L){h.value=L,s.value=!0,r("scroll",h.value);return}}r("scroll",h.value),v.value=requestAnimationFrame(x)},g=()=>{v.value&&cancelAnimationFrame(v.value),v.value=requestAnimationFrame(x)},w=()=>{v.value&&(cancelAnimationFrame(v.value),v.value=null)},N=()=>{s.value=!0,r("pause")},S=()=>{s.value=!1,r("resume")},T=()=>{t.pauseOnHover&&N()},O=()=>{t.pauseOnHover&&!i.value&&S()},M=b=>{i.value=!0,y.value=s.value,s.value=!0,f.value=t.direction==="vertical"?b.clientY:b.clientX,c.value=f.value,_.value=h.value,r("dragStart"),document.addEventListener("mousemove",F),document.addEventListener("mouseup",D)},F=b=>{if(!i.value)return;c.value=t.direction==="vertical"?b.clientY:b.clientX;const k=c.value-f.value;h.value=_.value+k;const A=u.value,B=a.value;if(A&&B){const z=t.direction==="vertical"?A.offsetHeight:A.offsetWidth,P=(t.direction==="vertical"?t.itemHeight:t.itemWidth)*t.data.length;if(t.loop)h.value>0?h.value=0:Math.abs(h.value)>P&&(h.value=-P);else{const j=-(P-z);h.value>0?h.value=0:h.value<j&&(h.value=j)}}r("scroll",h.value)},D=()=>{i.value&&(i.value=!1,document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",D),y.value||(s.value=!1),r("dragEnd"))},E=b=>{const k=b.touches[0];i.value=!0,y.value=s.value,s.value=!0,f.value=t.direction==="vertical"?k.clientY:k.clientX,c.value=f.value,_.value=h.value,r("dragStart")},C=b=>{if(!i.value)return;b.preventDefault();const k=b.touches[0];c.value=t.direction==="vertical"?k.clientY:k.clientX;const A=c.value-f.value;h.value=_.value+A;const B=u.value,z=a.value;if(B&&z){const L=t.direction==="vertical"?B.offsetHeight:B.offsetWidth,j=(t.direction==="vertical"?t.itemHeight:t.itemWidth)*t.data.length;if(t.loop)h.value>0?h.value=0:Math.abs(h.value)>j&&(h.value=-j);else{const W=-(j-L);h.value>0?h.value=0:h.value<W&&(h.value=W)}}r("scroll",h.value)},V=()=>{i.value&&(i.value=!1,y.value||(s.value=!1),r("dragEnd"))},$=b=>{h.value=b},I=()=>{h.value=0},R=()=>{const b=u.value;if(b){const k=a.value;if(k){const A=t.direction==="vertical"?k.offsetHeight:k.offsetWidth;h.value=-(A-b.offsetHeight)}}};return vue.watch(()=>t.data,()=>{e(),h.value=0},{deep:!0}),vue.watch(()=>t.speed,()=>{s.value||(w(),g())}),vue.onMounted(()=>{e(),vue.nextTick(()=>{g();const b=u.value;b&&(b.addEventListener("mouseenter",T),b.addEventListener("mouseleave",O))})}),vue.onUnmounted(()=>{w();const b=u.value;b&&(b.removeEventListener("mouseenter",T),b.removeEventListener("mouseleave",O)),document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",D)}),m({pause:N,resume:S,scrollTo:$,scrollToTop:I,scrollToBottom:R,isPaused:s,isDragging:i}),(b,k)=>(vue.openBlock(),vue.createElementBlock("div",{class:"hbis-auto-scroll-list",ref_key:"containerRef",ref:u,style:vue.normalizeStyle(d.value),onMousedown:M,onTouchstart:E,onTouchmove:C,onTouchend:V},[vue.createElementVNode("div",{class:"scroll-content",ref_key:"contentRef",ref:a,style:vue.normalizeStyle(p.value)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,(A,B)=>vue.renderSlot(b.$slots,"item",{item:A,index:B},()=>[vue.createElementVNode("div",{class:"default-item",style:vue.normalizeStyle(o.itemStyle)},vue.toDisplayString(A),5)],!0)),256))],4)],36))}},HbisAutoScrollList=_export_sfc(_sfc_main$a,[["__scopeId","data-v-5b76d8eb"]]),_hoisted_1$8={key:0,class:"circular-spinner"},_hoisted_2$7={key:1,class:"dots-spinner"},_hoisted_3$5={key:2,class:"bars-spinner"},_sfc_main$9={__name:"hbis-loading",props:{visible:{type:Boolean,default:!1},touchDismiss:{type:Boolean,default:!1},text:{type:String,default:""},spinnerType:{type:String,default:"circular"},textStyle:{type:Object,default:()=>({})},containerStyle:{type:Object,default:()=>({})}},emits:["update:visible","close"],setup(o,{expose:m,emit:n}){const t=o,r=n,u=()=>{t.touchDismiss&&(r("update:visible",!1),r("close"))};return vue.watch(()=>t.visible,a=>{a?document.body.style.overflow="hidden":document.body.style.overflow=""}),vue.onUnmounted(()=>{document.body.style.overflow=""}),m({show:()=>r("update:visible",!0),hide:()=>{r("update:visible",!1),r("close")}}),(a,s)=>o.visible?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["hbis-loading-container",{"touch-dismissible":o.touchDismiss}]),onClick:u},[vue.createElementVNode("div",{class:"hbis-loading-wrapper",onClick:s[0]||(s[0]=vue.withModifiers(()=>{},["stop"]))},[vue.renderSlot(a.$slots,"spinner",{},()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["hbis-loading-spinner",o.spinnerType])},[o.spinnerType==="circular"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$8,[...s[1]||(s[1]=[vue.createElementVNode("div",{class:"circle"},null,-1)])])):o.spinnerType==="dots"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$7,[...s[2]||(s[2]=[vue.createElementVNode("div",{class:"dot"},null,-1),vue.createElementVNode("div",{class:"dot"},null,-1),vue.createElementVNode("div",{class:"dot"},null,-1)])])):o.spinnerType==="bars"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$5,[...s[3]||(s[3]=[vue.createElementVNode("div",{class:"bar"},null,-1),vue.createElementVNode("div",{class:"bar"},null,-1),vue.createElementVNode("div",{class:"bar"},null,-1)])])):vue.createCommentVNode("",!0)],2)],!0),o.text?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-loading-text",style:vue.normalizeStyle(o.textStyle)},vue.toDisplayString(o.text),5)):vue.createCommentVNode("",!0)])],2)):vue.createCommentVNode("",!0)}},hbisLoading=_export_sfc(_sfc_main$9,[["__scopeId","data-v-d5965f87"]]),_hoisted_1$7={class:"parent-view"},_sfc_main$8={__name:"hbis-sms-input",props:{countDownTime:{type:Number,default:60},inputPlacheHolder:{type:String,default:"请输入验证码"},inputColor:{type:String,default:"#F1F7FA"},inputTextColor:{type:String,default:"#000"},inputPlacheHolderColor:{type:String,default:"#F00"},smsCodeTimeText:{type:String,default:"s"},smsCodeBtnText:{type:String,default:"发送"},smsCodeBtnColor:{type:String,default:"#FFF"},smsCodeBtnTextColor:{type:String,default:"#2E6DFF"}},emits:["custom-event"],setup(o,{expose:m,emit:n}){const t=o,r=n,u=vue.ref(!0),a=vue.ref(""),s=vue.ref(t.countDownTime),v=()=>{if(console.log("验证码isSendSMS:"+u.value),!u.value){console.log("请"+t.countDownTime+"秒后再重试。");return}r("custom-event")};return m({countDown:()=>{s.value=t.countDownTime;let l=setInterval(()=>{u.value=!1,s.value--,s.value===0&&(u.value=!0,clearInterval(l))},1e3)},smsCode:a}),(l,i)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$7,[vue.createElementVNode("div",{class:"input_view_sms_code",style:vue.normalizeStyle({background:o.inputColor})},[vue.withDirectives(vue.createElementVNode("input",{type:"text",class:"view_sms_code","placeholder-style":"color:#999",placeholder:"请输入验证码","onUpdate:modelValue":i[0]||(i[0]=f=>a.value=f),style:vue.normalizeStyle({color:o.inputTextColor})},null,4),[[vue.vModelText,a.value]]),u.value?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["sms_code_btn",{disabled:!u.value}]),style:vue.normalizeStyle({color:o.smsCodeBtnTextColor,background:o.smsCodeBtnColor}),onClick:v},vue.toDisplayString(s.value)+" "+vue.toDisplayString(o.smsCodeTimeText),7)),u.value?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"sms_code_btn",style:vue.normalizeStyle({color:o.smsCodeBtnTextColor,background:o.smsCodeBtnColor}),onClick:v},vue.toDisplayString(o.smsCodeBtnText),5)):vue.createCommentVNode("",!0)],4)]))}},HbisSmsInput=_export_sfc(_sfc_main$8,[["__scopeId","data-v-3eedbbcc"]]),_hoisted_1$6={class:"waterfall-debug"},_hoisted_2$6={class:"waterfall-container"},_hoisted_3$4={class:"column-debug"},_hoisted_4$3={key:0,class:"waterfall-item-with-slot"},_hoisted_5$2=["src"],_hoisted_6$2={class:"waterfall-content"},_hoisted_7$2=["src"],_sfc_main$7=Object.assign({name:"HbisWaterfall"},{__name:"hbis-waterfall",props:{data:{type:Array,default:()=>[]},column:{type:Number,default:2,validator:o=>o>=2},maxColumn:{type:Number,default:5},columnGap:{type:[Number,String],default:10},rowGap:{type:[Number,String],default:10},itemKey:{type:String,default:"id"},imageKey:{type:String,default:"url"}},emits:["load","error"],setup(o,{expose:m,emit:n}){const t=vue.useSlots(),r=vue.ref(null),u=o,a=n;vue.useCssVars(()=>({columnGap:String(u.columnGap)+"px",rowGap:String(u.rowGap)+"px"}));const s=vue.ref([]),v=vue.ref(2),h=vue.computed(()=>t.default!==void 0),l=_=>(r.value&&r.value.offsetWidth,Math.min(u.column,u.maxColumn),parseInt(u.columnGap),parseInt(u.rowGap),200+Math.floor(Math.random()*100)+20),i=()=>{console.log("开始分配数据,总数据量:",u.data.length);const _=Math.min(u.column,u.maxColumn);v.value=_;const y=[];for(let d=0;d<_;d++)y.push({items:[],height:0});s.value=y,u.data.forEach((d,p)=>{const e=l();let x=1/0,g=0;for(let w=0;w<_;w++)s.value[w].height<x&&(x=s.value[w].height,g=w);s.value[g].items.push(d),s.value[g].height+=e,console.log("分配数据到列:",{itemIndex:p,columnIndex:g,itemHeight:e,columnHeight:s.value[g].height})}),console.log("分配完成,各列数据量:",s.value.map((d,p)=>`列${p+1}: ${d.items.length}个`)),console.log("分配完成,各列高度:",s.value.map((d,p)=>`列${p+1}: ${d.height}px`))},f=_=>{a("load",_)},c=_=>{a("error",_)};return vue.watch(()=>u.data,()=>{console.log("数据变化,重新分配数据"),i()},{deep:!0}),vue.watch(()=>[u.column,u.maxColumn],()=>{console.log("列数变化,更新列数"),v.value=Math.min(u.column,u.maxColumn),i()}),vue.watch(()=>[u.columnGap,u.rowGap],()=>{console.log("间距变化,重新计算高度和分配数据"),i()}),vue.onMounted(()=>{console.log("===== 组件挂载 ====="),console.log("组件挂载,初始化数据"),console.log("初始数据量:",u.data.length);try{i(),console.log("===== 组件挂载完成 =====")}catch(_){console.error("refresh函数执行失败:",_),console.log("===== 组件挂载失败 =====")}}),m({refresh:i}),(_,y)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"waterfallRef",ref:r},[vue.createElementVNode("div",_hoisted_1$6,[vue.createTextVNode(" 列数: "+vue.toDisplayString(v.value)+" ",1),y[1]||(y[1]=vue.createElementVNode("br",null,null,-1)),vue.createTextVNode(" 数据总量: "+vue.toDisplayString(o.data.length)+" ",1),y[2]||(y[2]=vue.createElementVNode("br",null,null,-1)),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.value,(d,p)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:p},[vue.createTextVNode(" 列"+vue.toDisplayString(p+1)+"数据量: "+vue.toDisplayString(d.items.length),1),y[0]||(y[0]=vue.createElementVNode("br",null,null,-1))],64))),128))]),vue.createElementVNode("div",_hoisted_2$6,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.value,(d,p)=>(vue.openBlock(),vue.createElementBlock("div",{key:p,class:"waterfall-column"},[vue.createElementVNode("div",_hoisted_3$4," 列"+vue.toDisplayString(p+1)+": "+vue.toDisplayString(d.items.length)+"个元素 ",1),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(d.items,(e,x)=>(vue.openBlock(),vue.createElementBlock("div",{key:e[o.itemKey]||`col${p}-${x}`,class:"waterfall-item"},[h.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$3,[vue.createElementVNode("img",{src:e[o.imageKey],class:"waterfall-image",style:vue.normalizeStyle({height:l()+"px"}),onLoad:f,onError:c},null,44,_hoisted_5$2),vue.createElementVNode("div",_hoisted_6$2,[vue.renderSlot(_.$slots,"default",{item:e,index:x},void 0,!0)])])):(vue.openBlock(),vue.createElementBlock("img",{key:1,src:e[o.imageKey],class:"waterfall-image",style:vue.normalizeStyle({height:l()+"px"}),onLoad:f,onError:c},null,44,_hoisted_7$2))]))),128))]))),128))])],512))}}),HbisWaterfall=_export_sfc(_sfc_main$7,[["__scopeId","data-v-20459ccd"]]);var svga_lite_min={exports:{}};/*!
|
|
2
2
|
* svga.lite
|
|
3
3
|
*
|
|
4
4
|
* Version: 1.6.1
|
|
5
5
|
* Document: https://github.com/svga/SVGAPlayer-Web-Lite
|
|
6
6
|
* (c) 2019 YY.SVGA
|
|
7
7
|
* Released under the MIT License.
|
|
8
|
-
*/(function(module,exports$1){(function(s,m){module.exports=m()})(window,function(){return function(s){var m={};function n(t){if(m[t])return m[t].exports;var r=m[t]={i:t,l:!1,exports:{}};return s[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=s,n.c=m,n.d=function(t,r,u){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:u})},n.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r||4&r&&typeof t=="object"&&t&&t.__esModule)return t;var u=Object.create(null);if(n.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:t}),2&r&&typeof t!="string")for(var a in t)n.d(u,a,(function(o){return t[o]}).bind(null,a));return u},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=1)}([function(s,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=function(r,u,a){this._d=r,this._transform=u,this._styles=a};m.default=t},function(s,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=n(2),r=n(3),u=n(4),a={Downloader:t.default,Parser:r.default,Player:u.default};m.default=a},function(s,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function r(){this.request=null}return r.prototype.get=function(u){var a=this;if(!u)throw new Error("download link undefined");return new Promise(function(o,h){var d=new XMLHttpRequest;d.open("GET",u,!0),d.responseType="arraybuffer",d.onloadend=function(){!d.response||d.status!==200&&d.status!==304?h(d):o(d.response)},d.onerror=function(){return h(d.response)},d.send(),a.request=d})},r.prototype.cancel=function(){this.request&&this.request.abort()},r.prototype.destroy=function(){this.request&&this.request.abort()},r}();m.default=t},function(module,exports$1,__webpack_require__){Object.defineProperty(exports$1,"__esModule",{value:!0});var WORKER=`!function(t){var e={};function r(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)r.d(i,s,function(e){return t[e]}.bind(null,s));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8)}([function(t,e,r){"use strict";var i=t.exports=r(6);i.codegen=r(16),i.toArray=function(t){if(t){for(var e=Object.keys(t),r=new Array(e.length),i=0;i<e.length;)r[i]=t[e[i++]];return r}return[]};var s=/\\\\/g,n=/"/g;i.isReserved=function(t){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(t)},i.safeProp=function(t){return!/^[$\\w_]+$/.test(t)||i.isReserved(t)?'["'+t.replace(s,"\\\\\\\\").replace(n,'\\\\"')+'"]':"."+t}},function(t,e,r){"use strict";t.exports=h;var i=r(2);((h.prototype=Object.create(i.prototype)).constructor=h).className="Field";var s,n=r(3),o=r(5),a=r(0),f=/^required|optional|repeated$/;function h(t,e,r,s,n,h,l){if(a.isObject(s)?(l=n,h=s,s=n=void 0):a.isObject(n)&&(l=h,h=n,n=void 0),i.call(this,t,h),!a.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==s&&!f.test(s=s.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==n&&!a.isString(n))throw TypeError("extend must be a string");this.rule=s&&"optional"!==s?s:void 0,this.type=r,this.id=e,this.extend=n||void 0,this.required="required"===s,this.optional=!this.required,this.repeated="repeated"===s,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==o.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=l}h.fromJSON=function(t,e){return new h(t,e.id,e.type,e.rule,e.extend,e.options,e.comment)},h.prototype.setOption=function(t,e,r){return"packed"===t&&(this._packed=null),i.prototype.setOption.call(this,t,e,r)},h.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=o.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof s?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof n&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof n)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var t;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,t=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,t=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=t}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof s&&(this.parent.ctor.prototype[this.name]=this.defaultValue),i.prototype.resolve.call(this)},h._configure=function(t){s=t}},function(t,e,r){"use strict";var i;function s(t,e){this.options=e,this.name=t,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}t.exports=s,s.className="ReflectionObject",s.prototype.onAdd=function(t){this.parent&&this.parent!==t&&this.parent.remove(this),this.parent=t,this.resolved=!1;var e=t.root;e instanceof i&&e._handleAdd(this)},s.prototype.resolve=function(){return this.resolved?this:(this.root instanceof i&&(this.resolved=!0),this)},s.prototype.getOption=function(t){if(this.options)return this.options[t]},s._configure=function(t){i=t}},function(t,e,r){"use strict";t.exports=s;var i=r(2);function s(t,e,r,s,n){if(i.call(this,t,r),e&&"object"!=typeof e)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=s,this.comments=n||{},this.reserved=void 0,e)for(var o=Object.keys(e),a=0;a<o.length;++a)"number"==typeof e[o[a]]&&(this.valuesById[this.values[o[a]]=e[o[a]]]=o[a])}((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum",s.fromJSON=function(t,e){var r=new s(t,e.values,e.options,e.comment,e.comments);return r.reserved=e.reserved,r}},function(t,e,r){"use strict";t.exports=h;var i=r(2);((h.prototype=Object.create(i.prototype)).constructor=h).className="Namespace";var s,n,o,a=r(1),f=r(0);function h(t,e){i.call(this,t,e),this.nested=void 0,this._nestedArray=null}h.fromJSON=function(t,e){return new h(t,e.options).addJSON(e.nested)},h.isReservedId=function(t,e){if(t)for(var r=0;r<t.length;++r)if("string"!=typeof t[r]&&t[r][0]<=e&&t[r][1]>=e)return!0;return!1},h.isReservedName=function(t,e){if(t)for(var r=0;r<t.length;++r)if(t[r]===e)return!0;return!1},Object.defineProperty(h.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=f.toArray(this.nested))}}),h.prototype.addJSON=function(t){if(t)for(var e,r=Object.keys(t),i=0;i<r.length;++i)e=t[r[i]],this.add((void 0!==e.fields?s.fromJSON:void 0!==e.values?o.fromJSON:void 0!==e.methods?n.fromJSON:void 0!==e.id?a.fromJSON:h.fromJSON)(r[i],e));return this},h.prototype.get=function(t){return this.nested&&this.nested[t]||null},h.prototype.add=function(t){if(!(t instanceof a&&void 0!==t.extend||t instanceof s||t instanceof o||t instanceof n||t instanceof h))throw TypeError("object must be a valid nested object");if(this.nested){var e=this.get(t.name);if(e){if(!(e instanceof h&&t instanceof h)||e instanceof s||e instanceof n)throw Error("duplicate name '"+t.name+"' in "+this);for(var r=e.nestedArray,i=0;i<r.length;++i)t.add(r[i]);this.remove(e),this.nested||(this.nested={}),t.setOptions(e.options,!0)}}else this.nested={};return this.nested[t.name]=t,t.onAdd(this),(f=this)._nestedArray=null,f;var f},h.prototype.lookup=function(t,e,r){if("boolean"==typeof e?(r=e,e=void 0):e&&!Array.isArray(e)&&(e=[e]),f.isString(t)&&t.length){if("."===t)return this.root;t=t.split(".")}else if(!t.length)return this;if(""===t[0])return this.root.lookup(t.slice(1),e);var i=this.get(t[0]);if(i){if(1===t.length){if(!e||e.indexOf(i.constructor)>-1)return i}else if(i instanceof h&&(i=i.lookup(t.slice(1),e,!0)))return i}else for(var s=0;s<this.nestedArray.length;++s)if(this._nestedArray[s]instanceof h&&(i=this._nestedArray[s].lookup(t,e,!0)))return i;return null===this.parent||r?null:this.parent.lookup(t,e)},h.prototype.lookupType=function(t){var e=this.lookup(t,[s]);if(!e)throw Error("no such type: "+t);return e},h.prototype.lookupTypeOrEnum=function(t){var e=this.lookup(t,[s,o]);if(!e)throw Error("no such Type or Enum '"+t+"' in "+this);return e},h._configure=function(t,e,r){s=t,n=e,o=r}},function(t,e,r){"use strict";var i=e,s=r(0),n=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function o(t,e){var r=0,i={};for(e|=0;r<t.length;)i[n[r+e]]=t[r++];return i}i.basic=o([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),i.defaults=o([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",s.emptyArray,null]),i.long=o([0,0,0,1,1],7),i.mapKey=o([0,0,0,5,5,0,0,0,1,1,0,2],2),i.packed=o([1,5,0,0,0,5,5,0,0,0,1,1,0])},function(t,e,r){"use strict";var i=e;i.float=r(14),i.utf8=r(15),i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},i.isString=function(t){return"string"==typeof t||t instanceof String},i.isObject=function(t){return t&&"object"==typeof t},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i._configure=function(){var t=i.Buffer;t?(i._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,r){return new t(e,r)},i._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):i._Buffer_from=i._Buffer_allocUnsafe=null}},function(t,e,r){"use strict";t.exports=s;var i=r(4);function s(t,e){i.call(this,t,e),this.methods={},this._methodsArray=null}((s.prototype=Object.create(i.prototype)).constructor=s).className="Service"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(9);var i,s=r(10),n=r(23),o=r(24),a=r(25),f=r(26);self.document?((i=self.SVGAParserMockWorker={}).disableWorker=!0,i.postMessage=function(t){i.onmessageCallback&&i.onmessageCallback(t)}):i=self;var h=s.Root.fromJSON(n.default).lookupType("com.opensource.svga.MovieEntity");i.onmessage=function(t){var e=new o.Zlib.Inflate(new Uint8Array(t.data)).decompress(),r=h.decode(e),s={};for(var n in r.images){var l=r.images[n],u=a.default(l);s[n]=btoa(u)}var p=new f.default(r,s);i.postMessage(p)}},function(t,e,r){"use strict";var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";!self.btoa&&(self.btoa=function(t){for(var e,r,s,n,o="",a=0,f=(t=String(t)).length%3;a<t.length;){if((r=t.charCodeAt(a++))>255||(s=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");o+=i.charAt((e=r<<16|s<<8|n)>>18&63)+i.charAt(e>>12&63)+i.charAt(e>>6&63)+i.charAt(63&e)}return f?o.slice(0,f-3)+"===".substring(f):o})},function(t,e,r){"use strict";t.exports=r(11)},function(t,e,r){"use strict";(t.exports=r(12)).build="full"},function(t,e,r){"use strict";var i=t.exports=r(13);i.build="light",i.ReflectionObject=r(2),i.Namespace=r(4),i.Root=r(17),i.Enum=r(3),i.Type=r(19),i.Field=r(1),i.Service=r(7),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},function(t,e,r){"use strict";e.build="minimal"},function(t,e,r){"use strict";function i(t){return"undefined"!=typeof Float32Array?function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),i=128===r[3];function s(t,i,s){e[0]=t,i[s]=r[0],i[s+1]=r[1],i[s+2]=r[2],i[s+3]=r[3]}function n(t,i,s){e[0]=t,i[s]=r[3],i[s+1]=r[2],i[s+2]=r[1],i[s+3]=r[0]}function o(t,i){return r[0]=t[i],r[1]=t[i+1],r[2]=t[i+2],r[3]=t[i+3],e[0]}function a(t,i){return r[3]=t[i],r[2]=t[i+1],r[1]=t[i+2],r[0]=t[i+3],e[0]}t.writeFloatLE=i?s:n,t.writeFloatBE=i?n:s,t.readFloatLE=i?o:a,t.readFloatBE=i?a:o}():function(){function e(t,e,r,i){var s=e<0?1:0;if(s&&(e=-e),0===e)t(1/e>0?0:2147483648,r,i);else if(isNaN(e))t(2143289344,r,i);else if(e>34028234663852886e22)t((s<<31|2139095040)>>>0,r,i);else if(e<11754943508222875e-54)t((s<<31|Math.round(e/1401298464324817e-60))>>>0,r,i);else{var n=Math.floor(Math.log(e)/Math.LN2);t((s<<31|n+127<<23|8388607&Math.round(e*Math.pow(2,-n)*8388608))>>>0,r,i)}}function r(t,e,r){var i=t(e,r),s=2*(i>>31)+1,n=i>>>23&255,o=8388607&i;return 255===n?o?NaN:s*(1/0):0===n?1401298464324817e-60*s*o:s*Math.pow(2,n-150)*(o+8388608)}t.writeFloatLE=e.bind(null,s),t.writeFloatBE=e.bind(null,n),t.readFloatLE=r.bind(null,o),t.readFloatBE=r.bind(null,a)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),i=128===r[7];function s(t,i,s){e[0]=t,i[s]=r[0],i[s+1]=r[1],i[s+2]=r[2],i[s+3]=r[3],i[s+4]=r[4],i[s+5]=r[5],i[s+6]=r[6],i[s+7]=r[7]}function n(t,i,s){e[0]=t,i[s]=r[7],i[s+1]=r[6],i[s+2]=r[5],i[s+3]=r[4],i[s+4]=r[3],i[s+5]=r[2],i[s+6]=r[1],i[s+7]=r[0]}function o(t,i){return r[0]=t[i],r[1]=t[i+1],r[2]=t[i+2],r[3]=t[i+3],r[4]=t[i+4],r[5]=t[i+5],r[6]=t[i+6],r[7]=t[i+7],e[0]}function a(t,i){return r[7]=t[i],r[6]=t[i+1],r[5]=t[i+2],r[4]=t[i+3],r[3]=t[i+4],r[2]=t[i+5],r[1]=t[i+6],r[0]=t[i+7],e[0]}t.writeDoubleLE=i?s:n,t.writeDoubleBE=i?n:s,t.readDoubleLE=i?o:a,t.readDoubleBE=i?a:o}():function(){function e(t,e,r,i,s,n){var o=i<0?1:0;if(o&&(i=-i),0===i)t(0,s,n+e),t(1/i>0?0:2147483648,s,n+r);else if(isNaN(i))t(0,s,n+e),t(2146959360,s,n+r);else if(i>17976931348623157e292)t(0,s,n+e),t((o<<31|2146435072)>>>0,s,n+r);else{var a;if(i<22250738585072014e-324)t((a=i/5e-324)>>>0,s,n+e),t((o<<31|a/4294967296)>>>0,s,n+r);else{var f=Math.floor(Math.log(i)/Math.LN2);1024===f&&(f=1023),t(4503599627370496*(a=i*Math.pow(2,-f))>>>0,s,n+e),t((o<<31|f+1023<<20|1048576*a&1048575)>>>0,s,n+r)}}}function r(t,e,r,i,s){var n=t(i,s+e),o=t(i,s+r),a=2*(o>>31)+1,f=o>>>20&2047,h=4294967296*(1048575&o)+n;return 2047===f?h?NaN:a*(1/0):0===f?5e-324*a*h:a*Math.pow(2,f-1075)*(h+4503599627370496)}t.writeDoubleLE=e.bind(null,s,0,4),t.writeDoubleBE=e.bind(null,n,4,0),t.readDoubleLE=r.bind(null,o,0,4),t.readDoubleBE=r.bind(null,a,4,0)}(),t}function s(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function n(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function a(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=i(i)},function(t,e,r){"use strict";var i=e;i.length=function(t){for(var e=0,r=0,i=0;i<t.length;++i)(r=t.charCodeAt(i))<128?e+=1:r<2048?e+=2:55296==(64512&r)&&56320==(64512&t.charCodeAt(i+1))?(++i,e+=4):e+=3;return e},i.read=function(t,e,r){if(r-e<1)return"";for(var i,s=null,n=[],o=0;e<r;)(i=t[e++])<128?n[o++]=i:i>191&&i<224?n[o++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,n[o++]=55296+(i>>10),n[o++]=56320+(1023&i)):n[o++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],o>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,n)),o=0);return s?(o&&s.push(String.fromCharCode.apply(String,n.slice(0,o))),s.join("")):String.fromCharCode.apply(String,n.slice(0,o))},i.write=function(t,e,r){for(var i,s,n=r,o=0;o<t.length;++o)(i=t.charCodeAt(o))<128?e[r++]=i:i<2048?(e[r++]=i>>6|192,e[r++]=63&i|128):55296==(64512&i)&&56320==(64512&(s=t.charCodeAt(o+1)))?(i=65536+((1023&i)<<10)+(1023&s),++o,e[r++]=i>>18|240,e[r++]=i>>12&63|128,e[r++]=i>>6&63|128,e[r++]=63&i|128):(e[r++]=i>>12|224,e[r++]=i>>6&63|128,e[r++]=63&i|128);return r-n}},function(t,e,r){"use strict";function i(t,e){"string"==typeof t&&(e=t,t=void 0);var r=[];function s(t){if("string"!=typeof t){var e=n();if(i.verbose&&console.log("codegen: "+e),e="return "+e,t){for(var o=Object.keys(t),a=new Array(o.length+1),f=new Array(o.length),h=0;h<o.length;)a[h]=o[h],f[h]=t[o[h++]];return a[h]=e,Function.apply(null,a).apply(null,f)}return Function(e)()}for(var l=new Array(arguments.length-1),u=0;u<l.length;)l[u]=arguments[++u];if(u=0,t=t.replace(/%([%dfijs])/g,function(t,e){var r=l[u++];switch(e){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}),u!==l.length)throw Error("parameter count mismatch");return r.push(t),s}function n(i){return"function "+(i||e||"")+"("+(t&&t.join(",")||"")+"){\\n "+r.join("\\n ")+"\\n}"}return s.toString=n,s}t.exports=i,i.verbose=!1},function(t,e,r){"use strict";t.exports=f;var i=r(4);((f.prototype=Object.create(i.prototype)).constructor=f).className="Root";var s,n=r(1),o=r(3),a=r(18);function f(t){i.call(this,"",t),this.deferred=[],this.files=[]}f.fromJSON=function(t,e){return e||(e=new f),t.options&&e.setOptions(t.options),e.addJSON(t.nested)};var h=/^[A-Z]/;function l(t,e){var r=e.parent.lookup(e.extend);if(r){var i=new n(e.fullName,e.id,e.type,e.rule,void 0,e.options);return i.declaringField=e,e.extensionField=i,r.add(i),!0}return!1}f.prototype._handleAdd=function(t){if(t instanceof n)void 0===t.extend||t.extensionField||l(0,t)||this.deferred.push(t);else if(t instanceof o)h.test(t.name)&&(t.parent[t.name]=t.values);else if(!(t instanceof a)){if(t instanceof s)for(var e=0;e<this.deferred.length;)l(0,this.deferred[e])?this.deferred.splice(e,1):++e;for(var r=0;r<t.nestedArray.length;++r)this._handleAdd(t._nestedArray[r]);h.test(t.name)&&(t.parent[t.name]=t)}},f._configure=function(t,e,r){s=t,e,r}},function(t,e,r){"use strict";t.exports=o;var i=r(2);((o.prototype=Object.create(i.prototype)).constructor=o).className="OneOf";var s=r(1),n=r(0);function o(t,e,r,s){if(Array.isArray(e)||(r=e,e=void 0),i.call(this,t,r),void 0!==e&&!Array.isArray(e))throw TypeError("fieldNames must be an Array");this.oneof=e||[],this.fieldsArray=[],this.comment=s}function a(t){if(t.parent)for(var e=0;e<t.fieldsArray.length;++e)t.fieldsArray[e].parent||t.parent.add(t.fieldsArray[e])}o.fromJSON=function(t,e){return new o(t,e.oneof,e.options,e.comment)},o.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return n.toObject(["options",this.options,"oneof",this.oneof,"comment",e?this.comment:void 0])},o.prototype.add=function(t){if(!(t instanceof s))throw TypeError("field must be a Field");return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),t.partOf=this,a(this),this},o.prototype.remove=function(t){if(!(t instanceof s))throw TypeError("field must be a Field");var e=this.fieldsArray.indexOf(t);if(e<0)throw Error(t+" is not a member of "+this);return this.fieldsArray.splice(e,1),(e=this.oneof.indexOf(t.name))>-1&&this.oneof.splice(e,1),t.partOf=null,this},o.prototype.onAdd=function(t){i.prototype.onAdd.call(this,t);for(var e=0;e<this.oneof.length;++e){var r=t.get(this.oneof[e]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}a(this)},o.prototype.onRemove=function(t){for(var e,r=0;r<this.fieldsArray.length;++r)(e=this.fieldsArray[r]).parent&&e.parent.remove(e);i.prototype.onRemove.call(this,t)},o.d=function(){for(var t=new Array(arguments.length),e=0;e<arguments.length;)t[e]=arguments[e++];return function(e,r){n.decorateType(e.constructor).add(new o(r,t)),Object.defineProperty(e,r,{get:n.oneOfGetter(t),set:n.oneOfSetter(t)})}}},function(t,e,r){"use strict";t.exports=u;var i=r(4);((u.prototype=Object.create(i.prototype)).constructor=u).className="Type";var s=r(3),n=r(1),o=r(20),a=r(7),f=r(21),h=r(0),l=r(22);function u(t,e){i.call(this,t,e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(u.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var t=Object.keys(this.fields),e=0;e<t.length;++e){var r=this.fields[t[e]],i=r.id;if(this._fieldsById[i])throw Error("duplicate id "+i+" in "+this);this._fieldsById[i]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=h.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=h.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=u.generateConstructor(this)())},set:function(t){t.prototype;t.$type=t.prototype.$type=this,this._ctor=t;for(var e=0;e<this.fieldsArray.length;++e)this._fieldsArray[e].resolve();var r={};for(e=0;e<this.oneofsArray.length;++e)r[this._oneofsArray[e].resolve().name]={get:h.oneOfGetter(this._oneofsArray[e].oneof),set:h.oneOfSetter(this._oneofsArray[e].oneof)};e&&Object.defineProperties(t.prototype,r)}}}),u.generateConstructor=function(t){for(var e,r=h.codegen(["p"],t.name),i=0;i<t.fieldsArray.length;++i)(e=t._fieldsArray[i]).map?r("this%s={}",h.safeProp(e.name)):e.repeated&&r("this%s=[]",h.safeProp(e.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},u.fromJSON=function(t,e){var r=new u(t,e.options);r.extensions=e.extensions,r.reserved=e.reserved;for(var f=Object.keys(e.fields),h=0;h<f.length;++h)r.add((void 0!==e.fields[f[h]].keyType?o.fromJSON:n.fromJSON)(f[h],e.fields[f[h]]));if(e.nested)for(f=Object.keys(e.nested),h=0;h<f.length;++h){var l=e.nested[f[h]];r.add((void 0!==l.id?n.fromJSON:void 0!==l.fields?u.fromJSON:void 0!==l.values?s.fromJSON:void 0!==l.methods?a.fromJSON:i.fromJSON)(f[h],l))}return e.extensions&&e.extensions.length&&(r.extensions=e.extensions),e.reserved&&e.reserved.length&&(r.reserved=e.reserved),e.group&&(r.group=!0),e.comment&&(r.comment=e.comment),r},u.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof n&&void 0===t.extend){if(this._fieldsById?this._fieldsById[t.id]:this.fieldsById[t.id])throw Error("duplicate id "+t.id+" in "+this);if(this.isReservedId(t.id))throw Error("id "+t.id+" is reserved in "+this);if(this.isReservedName(t.name))throw Error("name '"+t.name+"' is reserved in "+this);return t.parent&&t.parent.remove(t),this.fields[t.name]=t,t.message=this,t.onAdd(this),(e=this)._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}var e;return i.prototype.add.call(this,t)},u.prototype.isReservedId=function(t){return i.isReservedId(this.reserved,t)},u.prototype.isReservedName=function(t){return i.isReservedName(this.reserved,t)},u.prototype.setup=function(){this.fullName;for(var t=[],e=0;e<this.fieldsArray.length;++e)t.push(this._fieldsArray[e].resolve().resolvedType);return this.decode=l(this)({Reader:f,types:t,util:h}),this},u.prototype.decode=function(t,e){return this.setup().decode(t,e)}},function(t,e,r){"use strict";t.exports=n;var i=r(1);((n.prototype=Object.create(i.prototype)).constructor=n).className="MapField";r(5);var s=r(0);function n(t,e,r,n,o,a){if(i.call(this,t,e,n,void 0,void 0,o,a),!s.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}n.fromJSON=function(t,e){return new n(t,e.id,e.keyType,e.type,e.options,e.comment)}},function(t,e,r){"use strict";t.exports=o;var i=r(6),s=(i.LongBits,i.utf8);function n(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function o(t){this.buf=t,this.pos=0,this.len=t.length}var a,f="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new o(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new o(t);throw Error("illegal buffer")};function h(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}o.create=i.Buffer?function(t){return(o.create=function(t){return i.Buffer.isBuffer(t)?new(void 0)(t):f(t)})(t)}:f,o.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,o.prototype.uint32=(a=4294967295,function(){if(a=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return a;if((this.pos+=5)>this.len)throw this.pos=this.len,n(this,10);return a}),o.prototype.int32=function(){return 0|this.uint32()},o.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},o.prototype.bool=function(){return 0!==this.uint32()},o.prototype.fixed32=function(){if(this.pos+4>this.len)throw n(this,4);return h(this.buf,this.pos+=4)},o.prototype.sfixed32=function(){if(this.pos+4>this.len)throw n(this,4);return 0|h(this.buf,this.pos+=4)},o.prototype.float=function(){if(this.pos+4>this.len)throw n(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},o.prototype.double=function(){if(this.pos+8>this.len)throw n(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},o.prototype.bytes=function(){var t=this.uint32(),e=this.pos,r=this.pos+t;if(r>this.len)throw n(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,r):e===r?new this.buf.constructor(0):this._slice.call(this.buf,e,r)},o.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},o.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw n(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw n(this)}while(128&this.buf[this.pos++]);return this},o.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this}},function(t,e,r){"use strict";t.exports=function(t){var e=n.codegen(["r","l"],t.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(t.fieldsArray.filter(function(t){return t.map}).length?",k":""))("while(r.pos<c){")("var t=r.uint32()");t.group&&e("if((t&7)===4)")("break");e("switch(t>>>3){");for(var r=0;r<t.fieldsArray.length;++r){var a=t._fieldsArray[r].resolve(),f=a.resolvedType instanceof i?"int32":a.type,h="m"+n.safeProp(a.name);e("case %i:",a.id),a.map?(e("r.skip().pos++")("if(%s===util.emptyObject)",h)("%s={}",h)("k=r.%s()",a.keyType)("r.pos++"),void 0!==s.long[a.keyType]?void 0===s.basic[f]?e('%s[typeof k==="object"?util.longToHash(k):k]=types[%i].decode(r,r.uint32())',h,r):e('%s[typeof k==="object"?util.longToHash(k):k]=r.%s()',h,f):void 0===s.basic[f]?e("%s[k]=types[%i].decode(r,r.uint32())",h,r):e("%s[k]=r.%s()",h,f)):a.repeated?(e("if(!(%s&&%s.length))",h,h)("%s=[]",h),void 0!==s.packed[f]&&e("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",h,f)("}else"),void 0===s.basic[f]?e(a.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",h,r):e("%s.push(r.%s())",h,f)):void 0===s.basic[f]?e(a.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",h,r):e("%s=r.%s()",h,f),e("break")}for(e("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<t._fieldsArray.length;++r){var l=t._fieldsArray[r];l.required&&e("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",o(l))}return e("return m")};var i=r(3),s=r(5),n=r(0);function o(t){return"missing required '"+t.name+"'"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={nested:{com:{nested:{opensource:{nested:{svga:{options:{objc_class_prefix:"SVGAProto",java_package:"com.opensource.svgaplayer"},nested:{MovieParams:{fields:{viewBoxWidth:{type:"float",id:1},viewBoxHeight:{type:"float",id:2},fps:{type:"int32",id:3},frames:{type:"int32",id:4}}},SpriteEntity:{fields:{imageKey:{type:"string",id:1},frames:{rule:"repeated",type:"FrameEntity",id:2}}},Layout:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},width:{type:"float",id:3},height:{type:"float",id:4}}},Transform:{fields:{a:{type:"float",id:1},b:{type:"float",id:2},c:{type:"float",id:3},d:{type:"float",id:4},tx:{type:"float",id:5},ty:{type:"float",id:6}}},ShapeEntity:{oneofs:{args:{oneof:["shape","rect","ellipse"]}},fields:{type:{type:"ShapeType",id:1},shape:{type:"ShapeArgs",id:2},rect:{type:"RectArgs",id:3},ellipse:{type:"EllipseArgs",id:4},styles:{type:"ShapeStyle",id:10},transform:{type:"Transform",id:11}},nested:{ShapeType:{values:{SHAPE:0,RECT:1,ELLIPSE:2,KEEP:3}},ShapeArgs:{fields:{d:{type:"string",id:1}}},RectArgs:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},width:{type:"float",id:3},height:{type:"float",id:4},cornerRadius:{type:"float",id:5}}},EllipseArgs:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},radiusX:{type:"float",id:3},radiusY:{type:"float",id:4}}},ShapeStyle:{fields:{fill:{type:"RGBAColor",id:1},stroke:{type:"RGBAColor",id:2},strokeWidth:{type:"float",id:3},lineCap:{type:"LineCap",id:4},lineJoin:{type:"LineJoin",id:5},miterLimit:{type:"float",id:6},lineDashI:{type:"float",id:7},lineDashII:{type:"float",id:8},lineDashIII:{type:"float",id:9}},nested:{RGBAColor:{fields:{r:{type:"float",id:1},g:{type:"float",id:2},b:{type:"float",id:3},a:{type:"float",id:4}}},LineCap:{values:{LineCap_BUTT:0,LineCap_ROUND:1,LineCap_SQUARE:2}},LineJoin:{values:{LineJoin_MITER:0,LineJoin_ROUND:1,LineJoin_BEVEL:2}}}}}},FrameEntity:{fields:{alpha:{type:"float",id:1},layout:{type:"Layout",id:2},transform:{type:"Transform",id:3},clipPath:{type:"string",id:4},shapes:{rule:"repeated",type:"ShapeEntity",id:5}}},MovieEntity:{fields:{version:{type:"string",id:1},params:{type:"MovieParams",id:2},images:{keyType:"string",type:"bytes",id:3},sprites:{rule:"repeated",type:"SpriteEntity",id:4}}}}}}}}}}}},function(t,e){
|
|
8
|
+
*/(function(module,exports$1){(function(o,m){module.exports=m()})(window,function(){return function(o){var m={};function n(t){if(m[t])return m[t].exports;var r=m[t]={i:t,l:!1,exports:{}};return o[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=o,n.c=m,n.d=function(t,r,u){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:u})},n.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r||4&r&&typeof t=="object"&&t&&t.__esModule)return t;var u=Object.create(null);if(n.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:t}),2&r&&typeof t!="string")for(var a in t)n.d(u,a,(function(s){return t[s]}).bind(null,a));return u},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=1)}([function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=function(r,u,a){this._d=r,this._transform=u,this._styles=a};m.default=t},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=n(2),r=n(3),u=n(4),a={Downloader:t.default,Parser:r.default,Player:u.default};m.default=a},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function r(){this.request=null}return r.prototype.get=function(u){var a=this;if(!u)throw new Error("download link undefined");return new Promise(function(s,v){var h=new XMLHttpRequest;h.open("GET",u,!0),h.responseType="arraybuffer",h.onloadend=function(){!h.response||h.status!==200&&h.status!==304?v(h):s(h.response)},h.onerror=function(){return v(h.response)},h.send(),a.request=h})},r.prototype.cancel=function(){this.request&&this.request.abort()},r.prototype.destroy=function(){this.request&&this.request.abort()},r}();m.default=t},function(module,exports$1,__webpack_require__){Object.defineProperty(exports$1,"__esModule",{value:!0});var WORKER=`!function(t){var e={};function r(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)r.d(i,s,function(e){return t[e]}.bind(null,s));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8)}([function(t,e,r){"use strict";var i=t.exports=r(6);i.codegen=r(16),i.toArray=function(t){if(t){for(var e=Object.keys(t),r=new Array(e.length),i=0;i<e.length;)r[i]=t[e[i++]];return r}return[]};var s=/\\\\/g,n=/"/g;i.isReserved=function(t){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(t)},i.safeProp=function(t){return!/^[$\\w_]+$/.test(t)||i.isReserved(t)?'["'+t.replace(s,"\\\\\\\\").replace(n,'\\\\"')+'"]':"."+t}},function(t,e,r){"use strict";t.exports=h;var i=r(2);((h.prototype=Object.create(i.prototype)).constructor=h).className="Field";var s,n=r(3),o=r(5),a=r(0),f=/^required|optional|repeated$/;function h(t,e,r,s,n,h,l){if(a.isObject(s)?(l=n,h=s,s=n=void 0):a.isObject(n)&&(l=h,h=n,n=void 0),i.call(this,t,h),!a.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==s&&!f.test(s=s.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==n&&!a.isString(n))throw TypeError("extend must be a string");this.rule=s&&"optional"!==s?s:void 0,this.type=r,this.id=e,this.extend=n||void 0,this.required="required"===s,this.optional=!this.required,this.repeated="repeated"===s,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==o.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=l}h.fromJSON=function(t,e){return new h(t,e.id,e.type,e.rule,e.extend,e.options,e.comment)},h.prototype.setOption=function(t,e,r){return"packed"===t&&(this._packed=null),i.prototype.setOption.call(this,t,e,r)},h.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=o.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof s?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof n&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof n)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var t;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,t=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,t=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=t}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof s&&(this.parent.ctor.prototype[this.name]=this.defaultValue),i.prototype.resolve.call(this)},h._configure=function(t){s=t}},function(t,e,r){"use strict";var i;function s(t,e){this.options=e,this.name=t,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}t.exports=s,s.className="ReflectionObject",s.prototype.onAdd=function(t){this.parent&&this.parent!==t&&this.parent.remove(this),this.parent=t,this.resolved=!1;var e=t.root;e instanceof i&&e._handleAdd(this)},s.prototype.resolve=function(){return this.resolved?this:(this.root instanceof i&&(this.resolved=!0),this)},s.prototype.getOption=function(t){if(this.options)return this.options[t]},s._configure=function(t){i=t}},function(t,e,r){"use strict";t.exports=s;var i=r(2);function s(t,e,r,s,n){if(i.call(this,t,r),e&&"object"!=typeof e)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=s,this.comments=n||{},this.reserved=void 0,e)for(var o=Object.keys(e),a=0;a<o.length;++a)"number"==typeof e[o[a]]&&(this.valuesById[this.values[o[a]]=e[o[a]]]=o[a])}((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum",s.fromJSON=function(t,e){var r=new s(t,e.values,e.options,e.comment,e.comments);return r.reserved=e.reserved,r}},function(t,e,r){"use strict";t.exports=h;var i=r(2);((h.prototype=Object.create(i.prototype)).constructor=h).className="Namespace";var s,n,o,a=r(1),f=r(0);function h(t,e){i.call(this,t,e),this.nested=void 0,this._nestedArray=null}h.fromJSON=function(t,e){return new h(t,e.options).addJSON(e.nested)},h.isReservedId=function(t,e){if(t)for(var r=0;r<t.length;++r)if("string"!=typeof t[r]&&t[r][0]<=e&&t[r][1]>=e)return!0;return!1},h.isReservedName=function(t,e){if(t)for(var r=0;r<t.length;++r)if(t[r]===e)return!0;return!1},Object.defineProperty(h.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=f.toArray(this.nested))}}),h.prototype.addJSON=function(t){if(t)for(var e,r=Object.keys(t),i=0;i<r.length;++i)e=t[r[i]],this.add((void 0!==e.fields?s.fromJSON:void 0!==e.values?o.fromJSON:void 0!==e.methods?n.fromJSON:void 0!==e.id?a.fromJSON:h.fromJSON)(r[i],e));return this},h.prototype.get=function(t){return this.nested&&this.nested[t]||null},h.prototype.add=function(t){if(!(t instanceof a&&void 0!==t.extend||t instanceof s||t instanceof o||t instanceof n||t instanceof h))throw TypeError("object must be a valid nested object");if(this.nested){var e=this.get(t.name);if(e){if(!(e instanceof h&&t instanceof h)||e instanceof s||e instanceof n)throw Error("duplicate name '"+t.name+"' in "+this);for(var r=e.nestedArray,i=0;i<r.length;++i)t.add(r[i]);this.remove(e),this.nested||(this.nested={}),t.setOptions(e.options,!0)}}else this.nested={};return this.nested[t.name]=t,t.onAdd(this),(f=this)._nestedArray=null,f;var f},h.prototype.lookup=function(t,e,r){if("boolean"==typeof e?(r=e,e=void 0):e&&!Array.isArray(e)&&(e=[e]),f.isString(t)&&t.length){if("."===t)return this.root;t=t.split(".")}else if(!t.length)return this;if(""===t[0])return this.root.lookup(t.slice(1),e);var i=this.get(t[0]);if(i){if(1===t.length){if(!e||e.indexOf(i.constructor)>-1)return i}else if(i instanceof h&&(i=i.lookup(t.slice(1),e,!0)))return i}else for(var s=0;s<this.nestedArray.length;++s)if(this._nestedArray[s]instanceof h&&(i=this._nestedArray[s].lookup(t,e,!0)))return i;return null===this.parent||r?null:this.parent.lookup(t,e)},h.prototype.lookupType=function(t){var e=this.lookup(t,[s]);if(!e)throw Error("no such type: "+t);return e},h.prototype.lookupTypeOrEnum=function(t){var e=this.lookup(t,[s,o]);if(!e)throw Error("no such Type or Enum '"+t+"' in "+this);return e},h._configure=function(t,e,r){s=t,n=e,o=r}},function(t,e,r){"use strict";var i=e,s=r(0),n=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function o(t,e){var r=0,i={};for(e|=0;r<t.length;)i[n[r+e]]=t[r++];return i}i.basic=o([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),i.defaults=o([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",s.emptyArray,null]),i.long=o([0,0,0,1,1],7),i.mapKey=o([0,0,0,5,5,0,0,0,1,1,0,2],2),i.packed=o([1,5,0,0,0,5,5,0,0,0,1,1,0])},function(t,e,r){"use strict";var i=e;i.float=r(14),i.utf8=r(15),i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},i.isString=function(t){return"string"==typeof t||t instanceof String},i.isObject=function(t){return t&&"object"==typeof t},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i._configure=function(){var t=i.Buffer;t?(i._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,r){return new t(e,r)},i._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):i._Buffer_from=i._Buffer_allocUnsafe=null}},function(t,e,r){"use strict";t.exports=s;var i=r(4);function s(t,e){i.call(this,t,e),this.methods={},this._methodsArray=null}((s.prototype=Object.create(i.prototype)).constructor=s).className="Service"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(9);var i,s=r(10),n=r(23),o=r(24),a=r(25),f=r(26);self.document?((i=self.SVGAParserMockWorker={}).disableWorker=!0,i.postMessage=function(t){i.onmessageCallback&&i.onmessageCallback(t)}):i=self;var h=s.Root.fromJSON(n.default).lookupType("com.opensource.svga.MovieEntity");i.onmessage=function(t){var e=new o.Zlib.Inflate(new Uint8Array(t.data)).decompress(),r=h.decode(e),s={};for(var n in r.images){var l=r.images[n],u=a.default(l);s[n]=btoa(u)}var p=new f.default(r,s);i.postMessage(p)}},function(t,e,r){"use strict";var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";!self.btoa&&(self.btoa=function(t){for(var e,r,s,n,o="",a=0,f=(t=String(t)).length%3;a<t.length;){if((r=t.charCodeAt(a++))>255||(s=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");o+=i.charAt((e=r<<16|s<<8|n)>>18&63)+i.charAt(e>>12&63)+i.charAt(e>>6&63)+i.charAt(63&e)}return f?o.slice(0,f-3)+"===".substring(f):o})},function(t,e,r){"use strict";t.exports=r(11)},function(t,e,r){"use strict";(t.exports=r(12)).build="full"},function(t,e,r){"use strict";var i=t.exports=r(13);i.build="light",i.ReflectionObject=r(2),i.Namespace=r(4),i.Root=r(17),i.Enum=r(3),i.Type=r(19),i.Field=r(1),i.Service=r(7),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},function(t,e,r){"use strict";e.build="minimal"},function(t,e,r){"use strict";function i(t){return"undefined"!=typeof Float32Array?function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),i=128===r[3];function s(t,i,s){e[0]=t,i[s]=r[0],i[s+1]=r[1],i[s+2]=r[2],i[s+3]=r[3]}function n(t,i,s){e[0]=t,i[s]=r[3],i[s+1]=r[2],i[s+2]=r[1],i[s+3]=r[0]}function o(t,i){return r[0]=t[i],r[1]=t[i+1],r[2]=t[i+2],r[3]=t[i+3],e[0]}function a(t,i){return r[3]=t[i],r[2]=t[i+1],r[1]=t[i+2],r[0]=t[i+3],e[0]}t.writeFloatLE=i?s:n,t.writeFloatBE=i?n:s,t.readFloatLE=i?o:a,t.readFloatBE=i?a:o}():function(){function e(t,e,r,i){var s=e<0?1:0;if(s&&(e=-e),0===e)t(1/e>0?0:2147483648,r,i);else if(isNaN(e))t(2143289344,r,i);else if(e>34028234663852886e22)t((s<<31|2139095040)>>>0,r,i);else if(e<11754943508222875e-54)t((s<<31|Math.round(e/1401298464324817e-60))>>>0,r,i);else{var n=Math.floor(Math.log(e)/Math.LN2);t((s<<31|n+127<<23|8388607&Math.round(e*Math.pow(2,-n)*8388608))>>>0,r,i)}}function r(t,e,r){var i=t(e,r),s=2*(i>>31)+1,n=i>>>23&255,o=8388607&i;return 255===n?o?NaN:s*(1/0):0===n?1401298464324817e-60*s*o:s*Math.pow(2,n-150)*(o+8388608)}t.writeFloatLE=e.bind(null,s),t.writeFloatBE=e.bind(null,n),t.readFloatLE=r.bind(null,o),t.readFloatBE=r.bind(null,a)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),i=128===r[7];function s(t,i,s){e[0]=t,i[s]=r[0],i[s+1]=r[1],i[s+2]=r[2],i[s+3]=r[3],i[s+4]=r[4],i[s+5]=r[5],i[s+6]=r[6],i[s+7]=r[7]}function n(t,i,s){e[0]=t,i[s]=r[7],i[s+1]=r[6],i[s+2]=r[5],i[s+3]=r[4],i[s+4]=r[3],i[s+5]=r[2],i[s+6]=r[1],i[s+7]=r[0]}function o(t,i){return r[0]=t[i],r[1]=t[i+1],r[2]=t[i+2],r[3]=t[i+3],r[4]=t[i+4],r[5]=t[i+5],r[6]=t[i+6],r[7]=t[i+7],e[0]}function a(t,i){return r[7]=t[i],r[6]=t[i+1],r[5]=t[i+2],r[4]=t[i+3],r[3]=t[i+4],r[2]=t[i+5],r[1]=t[i+6],r[0]=t[i+7],e[0]}t.writeDoubleLE=i?s:n,t.writeDoubleBE=i?n:s,t.readDoubleLE=i?o:a,t.readDoubleBE=i?a:o}():function(){function e(t,e,r,i,s,n){var o=i<0?1:0;if(o&&(i=-i),0===i)t(0,s,n+e),t(1/i>0?0:2147483648,s,n+r);else if(isNaN(i))t(0,s,n+e),t(2146959360,s,n+r);else if(i>17976931348623157e292)t(0,s,n+e),t((o<<31|2146435072)>>>0,s,n+r);else{var a;if(i<22250738585072014e-324)t((a=i/5e-324)>>>0,s,n+e),t((o<<31|a/4294967296)>>>0,s,n+r);else{var f=Math.floor(Math.log(i)/Math.LN2);1024===f&&(f=1023),t(4503599627370496*(a=i*Math.pow(2,-f))>>>0,s,n+e),t((o<<31|f+1023<<20|1048576*a&1048575)>>>0,s,n+r)}}}function r(t,e,r,i,s){var n=t(i,s+e),o=t(i,s+r),a=2*(o>>31)+1,f=o>>>20&2047,h=4294967296*(1048575&o)+n;return 2047===f?h?NaN:a*(1/0):0===f?5e-324*a*h:a*Math.pow(2,f-1075)*(h+4503599627370496)}t.writeDoubleLE=e.bind(null,s,0,4),t.writeDoubleBE=e.bind(null,n,4,0),t.readDoubleLE=r.bind(null,o,0,4),t.readDoubleBE=r.bind(null,a,4,0)}(),t}function s(t,e,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function n(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function a(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=i(i)},function(t,e,r){"use strict";var i=e;i.length=function(t){for(var e=0,r=0,i=0;i<t.length;++i)(r=t.charCodeAt(i))<128?e+=1:r<2048?e+=2:55296==(64512&r)&&56320==(64512&t.charCodeAt(i+1))?(++i,e+=4):e+=3;return e},i.read=function(t,e,r){if(r-e<1)return"";for(var i,s=null,n=[],o=0;e<r;)(i=t[e++])<128?n[o++]=i:i>191&&i<224?n[o++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,n[o++]=55296+(i>>10),n[o++]=56320+(1023&i)):n[o++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],o>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,n)),o=0);return s?(o&&s.push(String.fromCharCode.apply(String,n.slice(0,o))),s.join("")):String.fromCharCode.apply(String,n.slice(0,o))},i.write=function(t,e,r){for(var i,s,n=r,o=0;o<t.length;++o)(i=t.charCodeAt(o))<128?e[r++]=i:i<2048?(e[r++]=i>>6|192,e[r++]=63&i|128):55296==(64512&i)&&56320==(64512&(s=t.charCodeAt(o+1)))?(i=65536+((1023&i)<<10)+(1023&s),++o,e[r++]=i>>18|240,e[r++]=i>>12&63|128,e[r++]=i>>6&63|128,e[r++]=63&i|128):(e[r++]=i>>12|224,e[r++]=i>>6&63|128,e[r++]=63&i|128);return r-n}},function(t,e,r){"use strict";function i(t,e){"string"==typeof t&&(e=t,t=void 0);var r=[];function s(t){if("string"!=typeof t){var e=n();if(i.verbose&&console.log("codegen: "+e),e="return "+e,t){for(var o=Object.keys(t),a=new Array(o.length+1),f=new Array(o.length),h=0;h<o.length;)a[h]=o[h],f[h]=t[o[h++]];return a[h]=e,Function.apply(null,a).apply(null,f)}return Function(e)()}for(var l=new Array(arguments.length-1),u=0;u<l.length;)l[u]=arguments[++u];if(u=0,t=t.replace(/%([%dfijs])/g,function(t,e){var r=l[u++];switch(e){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"}),u!==l.length)throw Error("parameter count mismatch");return r.push(t),s}function n(i){return"function "+(i||e||"")+"("+(t&&t.join(",")||"")+"){\\n "+r.join("\\n ")+"\\n}"}return s.toString=n,s}t.exports=i,i.verbose=!1},function(t,e,r){"use strict";t.exports=f;var i=r(4);((f.prototype=Object.create(i.prototype)).constructor=f).className="Root";var s,n=r(1),o=r(3),a=r(18);function f(t){i.call(this,"",t),this.deferred=[],this.files=[]}f.fromJSON=function(t,e){return e||(e=new f),t.options&&e.setOptions(t.options),e.addJSON(t.nested)};var h=/^[A-Z]/;function l(t,e){var r=e.parent.lookup(e.extend);if(r){var i=new n(e.fullName,e.id,e.type,e.rule,void 0,e.options);return i.declaringField=e,e.extensionField=i,r.add(i),!0}return!1}f.prototype._handleAdd=function(t){if(t instanceof n)void 0===t.extend||t.extensionField||l(0,t)||this.deferred.push(t);else if(t instanceof o)h.test(t.name)&&(t.parent[t.name]=t.values);else if(!(t instanceof a)){if(t instanceof s)for(var e=0;e<this.deferred.length;)l(0,this.deferred[e])?this.deferred.splice(e,1):++e;for(var r=0;r<t.nestedArray.length;++r)this._handleAdd(t._nestedArray[r]);h.test(t.name)&&(t.parent[t.name]=t)}},f._configure=function(t,e,r){s=t,e,r}},function(t,e,r){"use strict";t.exports=o;var i=r(2);((o.prototype=Object.create(i.prototype)).constructor=o).className="OneOf";var s=r(1),n=r(0);function o(t,e,r,s){if(Array.isArray(e)||(r=e,e=void 0),i.call(this,t,r),void 0!==e&&!Array.isArray(e))throw TypeError("fieldNames must be an Array");this.oneof=e||[],this.fieldsArray=[],this.comment=s}function a(t){if(t.parent)for(var e=0;e<t.fieldsArray.length;++e)t.fieldsArray[e].parent||t.parent.add(t.fieldsArray[e])}o.fromJSON=function(t,e){return new o(t,e.oneof,e.options,e.comment)},o.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return n.toObject(["options",this.options,"oneof",this.oneof,"comment",e?this.comment:void 0])},o.prototype.add=function(t){if(!(t instanceof s))throw TypeError("field must be a Field");return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),t.partOf=this,a(this),this},o.prototype.remove=function(t){if(!(t instanceof s))throw TypeError("field must be a Field");var e=this.fieldsArray.indexOf(t);if(e<0)throw Error(t+" is not a member of "+this);return this.fieldsArray.splice(e,1),(e=this.oneof.indexOf(t.name))>-1&&this.oneof.splice(e,1),t.partOf=null,this},o.prototype.onAdd=function(t){i.prototype.onAdd.call(this,t);for(var e=0;e<this.oneof.length;++e){var r=t.get(this.oneof[e]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}a(this)},o.prototype.onRemove=function(t){for(var e,r=0;r<this.fieldsArray.length;++r)(e=this.fieldsArray[r]).parent&&e.parent.remove(e);i.prototype.onRemove.call(this,t)},o.d=function(){for(var t=new Array(arguments.length),e=0;e<arguments.length;)t[e]=arguments[e++];return function(e,r){n.decorateType(e.constructor).add(new o(r,t)),Object.defineProperty(e,r,{get:n.oneOfGetter(t),set:n.oneOfSetter(t)})}}},function(t,e,r){"use strict";t.exports=u;var i=r(4);((u.prototype=Object.create(i.prototype)).constructor=u).className="Type";var s=r(3),n=r(1),o=r(20),a=r(7),f=r(21),h=r(0),l=r(22);function u(t,e){i.call(this,t,e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(u.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var t=Object.keys(this.fields),e=0;e<t.length;++e){var r=this.fields[t[e]],i=r.id;if(this._fieldsById[i])throw Error("duplicate id "+i+" in "+this);this._fieldsById[i]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=h.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=h.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=u.generateConstructor(this)())},set:function(t){t.prototype;t.$type=t.prototype.$type=this,this._ctor=t;for(var e=0;e<this.fieldsArray.length;++e)this._fieldsArray[e].resolve();var r={};for(e=0;e<this.oneofsArray.length;++e)r[this._oneofsArray[e].resolve().name]={get:h.oneOfGetter(this._oneofsArray[e].oneof),set:h.oneOfSetter(this._oneofsArray[e].oneof)};e&&Object.defineProperties(t.prototype,r)}}}),u.generateConstructor=function(t){for(var e,r=h.codegen(["p"],t.name),i=0;i<t.fieldsArray.length;++i)(e=t._fieldsArray[i]).map?r("this%s={}",h.safeProp(e.name)):e.repeated&&r("this%s=[]",h.safeProp(e.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},u.fromJSON=function(t,e){var r=new u(t,e.options);r.extensions=e.extensions,r.reserved=e.reserved;for(var f=Object.keys(e.fields),h=0;h<f.length;++h)r.add((void 0!==e.fields[f[h]].keyType?o.fromJSON:n.fromJSON)(f[h],e.fields[f[h]]));if(e.nested)for(f=Object.keys(e.nested),h=0;h<f.length;++h){var l=e.nested[f[h]];r.add((void 0!==l.id?n.fromJSON:void 0!==l.fields?u.fromJSON:void 0!==l.values?s.fromJSON:void 0!==l.methods?a.fromJSON:i.fromJSON)(f[h],l))}return e.extensions&&e.extensions.length&&(r.extensions=e.extensions),e.reserved&&e.reserved.length&&(r.reserved=e.reserved),e.group&&(r.group=!0),e.comment&&(r.comment=e.comment),r},u.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof n&&void 0===t.extend){if(this._fieldsById?this._fieldsById[t.id]:this.fieldsById[t.id])throw Error("duplicate id "+t.id+" in "+this);if(this.isReservedId(t.id))throw Error("id "+t.id+" is reserved in "+this);if(this.isReservedName(t.name))throw Error("name '"+t.name+"' is reserved in "+this);return t.parent&&t.parent.remove(t),this.fields[t.name]=t,t.message=this,t.onAdd(this),(e=this)._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}var e;return i.prototype.add.call(this,t)},u.prototype.isReservedId=function(t){return i.isReservedId(this.reserved,t)},u.prototype.isReservedName=function(t){return i.isReservedName(this.reserved,t)},u.prototype.setup=function(){this.fullName;for(var t=[],e=0;e<this.fieldsArray.length;++e)t.push(this._fieldsArray[e].resolve().resolvedType);return this.decode=l(this)({Reader:f,types:t,util:h}),this},u.prototype.decode=function(t,e){return this.setup().decode(t,e)}},function(t,e,r){"use strict";t.exports=n;var i=r(1);((n.prototype=Object.create(i.prototype)).constructor=n).className="MapField";r(5);var s=r(0);function n(t,e,r,n,o,a){if(i.call(this,t,e,n,void 0,void 0,o,a),!s.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}n.fromJSON=function(t,e){return new n(t,e.id,e.keyType,e.type,e.options,e.comment)}},function(t,e,r){"use strict";t.exports=o;var i=r(6),s=(i.LongBits,i.utf8);function n(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function o(t){this.buf=t,this.pos=0,this.len=t.length}var a,f="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new o(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new o(t);throw Error("illegal buffer")};function h(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}o.create=i.Buffer?function(t){return(o.create=function(t){return i.Buffer.isBuffer(t)?new(void 0)(t):f(t)})(t)}:f,o.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,o.prototype.uint32=(a=4294967295,function(){if(a=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return a;if((this.pos+=5)>this.len)throw this.pos=this.len,n(this,10);return a}),o.prototype.int32=function(){return 0|this.uint32()},o.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},o.prototype.bool=function(){return 0!==this.uint32()},o.prototype.fixed32=function(){if(this.pos+4>this.len)throw n(this,4);return h(this.buf,this.pos+=4)},o.prototype.sfixed32=function(){if(this.pos+4>this.len)throw n(this,4);return 0|h(this.buf,this.pos+=4)},o.prototype.float=function(){if(this.pos+4>this.len)throw n(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},o.prototype.double=function(){if(this.pos+8>this.len)throw n(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},o.prototype.bytes=function(){var t=this.uint32(),e=this.pos,r=this.pos+t;if(r>this.len)throw n(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,r):e===r?new this.buf.constructor(0):this._slice.call(this.buf,e,r)},o.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},o.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw n(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw n(this)}while(128&this.buf[this.pos++]);return this},o.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this}},function(t,e,r){"use strict";t.exports=function(t){var e=n.codegen(["r","l"],t.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(t.fieldsArray.filter(function(t){return t.map}).length?",k":""))("while(r.pos<c){")("var t=r.uint32()");t.group&&e("if((t&7)===4)")("break");e("switch(t>>>3){");for(var r=0;r<t.fieldsArray.length;++r){var a=t._fieldsArray[r].resolve(),f=a.resolvedType instanceof i?"int32":a.type,h="m"+n.safeProp(a.name);e("case %i:",a.id),a.map?(e("r.skip().pos++")("if(%s===util.emptyObject)",h)("%s={}",h)("k=r.%s()",a.keyType)("r.pos++"),void 0!==s.long[a.keyType]?void 0===s.basic[f]?e('%s[typeof k==="object"?util.longToHash(k):k]=types[%i].decode(r,r.uint32())',h,r):e('%s[typeof k==="object"?util.longToHash(k):k]=r.%s()',h,f):void 0===s.basic[f]?e("%s[k]=types[%i].decode(r,r.uint32())",h,r):e("%s[k]=r.%s()",h,f)):a.repeated?(e("if(!(%s&&%s.length))",h,h)("%s=[]",h),void 0!==s.packed[f]&&e("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",h,f)("}else"),void 0===s.basic[f]?e(a.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",h,r):e("%s.push(r.%s())",h,f)):void 0===s.basic[f]?e(a.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",h,r):e("%s=r.%s()",h,f),e("break")}for(e("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<t._fieldsArray.length;++r){var l=t._fieldsArray[r];l.required&&e("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",o(l))}return e("return m")};var i=r(3),s=r(5),n=r(0);function o(t){return"missing required '"+t.name+"'"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={nested:{com:{nested:{opensource:{nested:{svga:{options:{objc_class_prefix:"SVGAProto",java_package:"com.opensource.svgaplayer"},nested:{MovieParams:{fields:{viewBoxWidth:{type:"float",id:1},viewBoxHeight:{type:"float",id:2},fps:{type:"int32",id:3},frames:{type:"int32",id:4}}},SpriteEntity:{fields:{imageKey:{type:"string",id:1},frames:{rule:"repeated",type:"FrameEntity",id:2}}},Layout:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},width:{type:"float",id:3},height:{type:"float",id:4}}},Transform:{fields:{a:{type:"float",id:1},b:{type:"float",id:2},c:{type:"float",id:3},d:{type:"float",id:4},tx:{type:"float",id:5},ty:{type:"float",id:6}}},ShapeEntity:{oneofs:{args:{oneof:["shape","rect","ellipse"]}},fields:{type:{type:"ShapeType",id:1},shape:{type:"ShapeArgs",id:2},rect:{type:"RectArgs",id:3},ellipse:{type:"EllipseArgs",id:4},styles:{type:"ShapeStyle",id:10},transform:{type:"Transform",id:11}},nested:{ShapeType:{values:{SHAPE:0,RECT:1,ELLIPSE:2,KEEP:3}},ShapeArgs:{fields:{d:{type:"string",id:1}}},RectArgs:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},width:{type:"float",id:3},height:{type:"float",id:4},cornerRadius:{type:"float",id:5}}},EllipseArgs:{fields:{x:{type:"float",id:1},y:{type:"float",id:2},radiusX:{type:"float",id:3},radiusY:{type:"float",id:4}}},ShapeStyle:{fields:{fill:{type:"RGBAColor",id:1},stroke:{type:"RGBAColor",id:2},strokeWidth:{type:"float",id:3},lineCap:{type:"LineCap",id:4},lineJoin:{type:"LineJoin",id:5},miterLimit:{type:"float",id:6},lineDashI:{type:"float",id:7},lineDashII:{type:"float",id:8},lineDashIII:{type:"float",id:9}},nested:{RGBAColor:{fields:{r:{type:"float",id:1},g:{type:"float",id:2},b:{type:"float",id:3},a:{type:"float",id:4}}},LineCap:{values:{LineCap_BUTT:0,LineCap_ROUND:1,LineCap_SQUARE:2}},LineJoin:{values:{LineJoin_MITER:0,LineJoin_ROUND:1,LineJoin_BEVEL:2}}}}}},FrameEntity:{fields:{alpha:{type:"float",id:1},layout:{type:"Layout",id:2},transform:{type:"Transform",id:3},clipPath:{type:"string",id:4},shapes:{rule:"repeated",type:"ShapeEntity",id:5}}},MovieEntity:{fields:{version:{type:"string",id:1},params:{type:"MovieParams",id:2},images:{keyType:"string",type:"bytes",id:3},sprites:{rule:"repeated",type:"SpriteEntity",id:4}}}}}}}}}}}},function(t,e){
|
|
9
9
|
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
|
|
10
|
-
(function(){"use strict";var t=void 0,e=this;function r(r,i){var s,n=r.split("."),o=e;!(n[0]in o)&&o.execScript&&o.execScript("var "+n[0]);for(;n.length&&(s=n.shift());)n.length||i===t?o=o[s]?o[s]:o[s]={}:o[s]=i}var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function s(t){var e,r,s,n,o,a,f,h,l,u,p=t.length,d=0,c=Number.POSITIVE_INFINITY;for(h=0;h<p;++h)t[h]>d&&(d=t[h]),t[h]<c&&(c=t[h]);for(e=1<<d,r=new(i?Uint32Array:Array)(e),s=1,n=0,o=2;s<=d;){for(h=0;h<p;++h)if(t[h]===s){for(a=0,f=n,l=0;l<s;++l)a=a<<1|1&f,f>>=1;for(u=s<<16|h,l=a;l<e;l+=o)r[l]=u;++n}++s,n<<=1,o<<=1}return[r,d,c]}function n(t,e){switch(this.g=[],this.h=32768,this.d=this.f=this.a=this.l=0,this.input=i?new Uint8Array(t):t,this.m=!1,this.i=a,this.r=!1,!e&&(e={})||(e.index&&(this.a=e.index),e.bufferSize&&(this.h=e.bufferSize),e.bufferType&&(this.i=e.bufferType),e.resize&&(this.r=e.resize)),this.i){case o:this.b=32768,this.c=new(i?Uint8Array:Array)(32768+this.h+258);break;case a:this.b=0,this.c=new(i?Uint8Array:Array)(this.h),this.e=this.z,this.n=this.v,this.j=this.w;break;default:throw Error("invalid inflate mode")}}var o=0,a=1,f={t:o,s:a};n.prototype.k=function(){for(;!this.m;){var e=S(this,3);switch(1&e&&(this.m=!0),e>>>=1){case 0:var r=this.input,n=this.a,f=this.c,h=this.b,l=r.length,u=t,d=f.length,c=t;if(this.d=this.f=0,n+1>=l)throw Error("invalid uncompressed block header: LEN");if(u=r[n++]|r[n++]<<8,n+1>=l)throw Error("invalid uncompressed block header: NLEN");if(u===~(r[n++]|r[n++]<<8))throw Error("invalid uncompressed block header: length verify");if(n+u>r.length)throw Error("input buffer is broken");switch(this.i){case o:for(;h+u>f.length;){if(u-=c=d-h,i)f.set(r.subarray(n,n+c),h),h+=c,n+=c;else for(;c--;)f[h++]=r[n++];this.b=h,f=this.e(),h=this.b}break;case a:for(;h+u>f.length;)f=this.e({p:2});break;default:throw Error("invalid inflate mode")}if(i)f.set(r.subarray(n,n+u),h),h+=u,n+=u;else for(;u--;)f[h++]=r[n++];this.a=n,this.b=h,this.c=f;break;case 1:this.j(_,x);break;case 2:var y,v,m,b,g=S(this,5)+257,A=S(this,5)+1,w=S(this,4)+4,k=new(i?Uint8Array:Array)(p.length),O=t,E=t,T=t,N=t,I=t;for(I=0;I<w;++I)k[p[I]]=S(this,3);if(!i)for(I=w,w=k.length;I<w;++I)k[p[I]]=0;for(y=s(k),O=new(i?Uint8Array:Array)(g+A),I=0,b=g+A;I<b;)switch(E=j(this,y),E){case 16:for(N=3+S(this,2);N--;)O[I++]=T;break;case 17:for(N=3+S(this,3);N--;)O[I++]=0;T=0;break;case 18:for(N=11+S(this,7);N--;)O[I++]=0;T=0;break;default:T=O[I++]=E}v=s(i?O.subarray(0,g):O.slice(0,g)),m=s(i?O.subarray(g):O.slice(g)),this.j(v,m);break;default:throw Error("unknown BTYPE: "+e)}}return this.n()};var h,l,u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=i?new Uint16Array(u):u,d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],c=i?new Uint16Array(d):d,y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],v=i?new Uint8Array(y):y,m=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],b=i?new Uint16Array(m):m,g=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=i?new Uint8Array(g):g,w=new(i?Uint8Array:Array)(288);for(h=0,l=w.length;h<l;++h)w[h]=143>=h?8:255>=h?9:279>=h?7:8;var k,O,_=s(w),E=new(i?Uint8Array:Array)(30);for(k=0,O=E.length;k<O;++k)E[k]=5;var x=s(E);function S(t,e){for(var r,i=t.f,s=t.d,n=t.input,o=t.a,a=n.length;s<e;){if(o>=a)throw Error("input buffer is broken");i|=n[o++]<<s,s+=8}return r=i&(1<<e)-1,t.f=i>>>e,t.d=s-e,t.a=o,r}function j(t,e){for(var r,i,s=t.f,n=t.d,o=t.input,a=t.a,f=o.length,h=e[0],l=e[1];n<l&&!(a>=f);)s|=o[a++]<<n,n+=8;if((i=(r=h[s&(1<<l)-1])>>>16)>n)throw Error("invalid code length: "+i);return t.f=s>>i,t.d=n-i,t.a=a,65535&r}function T(t,e){var r,i;switch(this.input=t,this.a=0,!e&&(e={})||(e.index&&(this.a=e.index),e.verify&&(this.A=e.verify)),r=t[this.a++],i=t[this.a++],15&r){case N:this.method=N;break;default:throw Error("unsupported compression method")}if(0!=((r<<8)+i)%31)throw Error("invalid fcheck flag:"+((r<<8)+i)%31);if(32&i)throw Error("fdict flag is not supported");this.q=new n(t,{index:this.a,bufferSize:e.bufferSize,bufferType:e.bufferType,resize:e.resize})}n.prototype.j=function(t,e){var r=this.c,i=this.b;this.o=t;for(var s,n,o,a,f=r.length-258;256!==(s=j(this,t));)if(256>s)i>=f&&(this.b=i,r=this.e(),i=this.b),r[i++]=s;else for(a=c[n=s-257],0<v[n]&&(a+=S(this,v[n])),s=j(this,e),o=b[s],0<A[s]&&(o+=S(this,A[s])),i>=f&&(this.b=i,r=this.e(),i=this.b);a--;)r[i]=r[i++-o];for(;8<=this.d;)this.d-=8,this.a--;this.b=i},n.prototype.w=function(t,e){var r=this.c,i=this.b;this.o=t;for(var s,n,o,a,f=r.length;256!==(s=j(this,t));)if(256>s)i>=f&&(f=(r=this.e()).length),r[i++]=s;else for(a=c[n=s-257],0<v[n]&&(a+=S(this,v[n])),s=j(this,e),o=b[s],0<A[s]&&(o+=S(this,A[s])),i+a>f&&(f=(r=this.e()).length);a--;)r[i]=r[i++-o];for(;8<=this.d;)this.d-=8,this.a--;this.b=i},n.prototype.e=function(){var t,e,r=new(i?Uint8Array:Array)(this.b-32768),s=this.b-32768,n=this.c;if(i)r.set(n.subarray(32768,r.length));else for(t=0,e=r.length;t<e;++t)r[t]=n[t+32768];if(this.g.push(r),this.l+=r.length,i)n.set(n.subarray(s,s+32768));else for(t=0;32768>t;++t)n[t]=n[s+t];return this.b=32768,n},n.prototype.z=function(t){var e,r,s,n=this.input.length/this.a+1|0,o=this.input,a=this.c;return t&&("number"==typeof t.p&&(n=t.p),"number"==typeof t.u&&(n+=t.u)),2>n?r=(s=(o.length-this.a)/this.o[2]/2*258|0)<a.length?a.length+s:a.length<<1:r=a.length*n,i?(e=new Uint8Array(r)).set(a):e=a,this.c=e},n.prototype.n=function(){var t,e,r,s,n,o=0,a=this.c,f=this.g,h=new(i?Uint8Array:Array)(this.l+(this.b-32768));if(0===f.length)return i?this.c.subarray(32768,this.b):this.c.slice(32768,this.b);for(e=0,r=f.length;e<r;++e)for(s=0,n=(t=f[e]).length;s<n;++s)h[o++]=t[s];for(e=32768,r=this.b;e<r;++e)h[o++]=a[e];return this.g=[],this.buffer=h},n.prototype.v=function(){var t,e=this.b;return i?this.r?(t=new Uint8Array(e)).set(this.c.subarray(0,e)):t=this.c.subarray(0,e):(this.c.length>e&&(this.c.length=e),t=this.c),this.buffer=t},T.prototype.k=function(){var t,e,r=this.input;if(t=this.q.k(),this.a=this.q.a,this.A){e=(r[this.a++]<<24|r[this.a++]<<16|r[this.a++]<<8|r[this.a++])>>>0;var i=t;if("string"==typeof i){var s,n,o=i.split("");for(s=0,n=o.length;s<n;s++)o[s]=(255&o[s].charCodeAt(0))>>>0;i=o}for(var a,f=1,h=0,l=i.length,u=0;0<l;){l-=a=1024<l?1024:l;do{h+=f+=i[u++]}while(--a);f%=65521,h%=65521}if(e!==(h<<16|f)>>>0)throw Error("invalid adler-32 checksum")}return t};var N=8;r("Zlib.Inflate",T),r("Zlib.Inflate.prototype.decompress",T.prototype.k);var I,B,F,D,M={ADAPTIVE:f.s,BLOCK:f.t};if(Object.keys)I=Object.keys(M);else for(B in I=[],F=0,M)I[F++]=B;for(F=0,D=I.length;F<D;++F)r("Zlib.Inflate.BufferType."+(B=I[F]),M[B])}).call(this)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=[],r=0;r<t.length;r+=32768)e.push(String.fromCharCode.apply(null,t.subarray(r,r+32768)));return e.join("")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(27),s=function(t,e){this.videoSize={width:0,height:0},this.images={},this.dynamicElements={},this.sprites=[],this.version=t.version,this.videoSize.width=t.params.viewBoxWidth||0,this.videoSize.height=t.params.viewBoxHeight||0,this.FPS=t.params.fps||20,this.frames=t.params.frames||0,t.sprites instanceof Array&&(this.sprites=t.sprites.map(function(t){return new i.default(t)})),e&&(this.images=e)};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(28),s=function(t){this.frames=[],this.imageKey=t.imageKey,t.frames&&(this.frames=t.frames.map(function(t){return new i.default(t)}))};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(29),s=function(t,e,r,i,s,n){return{a:t,b:e,c:r,d:i,tx:s,ty:n}},n=function(t,e,r,i){return{x:t,y:e,width:r,height:i}},o=function(){function t(e){this.alpha=0,this.transform=s(1,0,0,1,0,0),this.nx=0,this.ny=0,this.layout=n(0,0,0,0),this.shapes=[],this.alpha=parseFloat(e.alpha)||0,e.layout&&(this.layout=n(parseFloat(e.layout.x)||0,parseFloat(e.layout.y)||0,parseFloat(e.layout.width)||0,parseFloat(e.layout.height)||0)),e.transform&&(this.transform=s(parseFloat(e.transform.a)||1,parseFloat(e.transform.b)||0,parseFloat(e.transform.c)||0,parseFloat(e.transform.d)||1,parseFloat(e.transform.tx)||0,parseFloat(e.transform.ty)||0)),e.clipPath&&e.clipPath.length>0&&(this.maskPath=new i.default(e.clipPath,void 0,{fill:"#000000"})),e.shapes&&(e.shapes instanceof Array&&e.shapes.forEach(function(t){switch(t.pathArgs=t.args,t.type){case 0:t.type="shape",t.pathArgs=t.shape;break;case 1:t.type="rect",t.pathArgs=t.rect;break;case 2:t.type="ellipse",t.pathArgs=t.ellipse;break;case 3:t.type="keep"}if(t.styles){t.styles.fill&&("number"==typeof t.styles.fill.r&&(t.styles.fill[0]=t.styles.fill.r),"number"==typeof t.styles.fill.g&&(t.styles.fill[1]=t.styles.fill.g),"number"==typeof t.styles.fill.b&&(t.styles.fill[2]=t.styles.fill.b),"number"==typeof t.styles.fill.a&&(t.styles.fill[3]=t.styles.fill.a)),t.styles.stroke&&("number"==typeof t.styles.stroke.r&&(t.styles.stroke[0]=t.styles.stroke.r),"number"==typeof t.styles.stroke.g&&(t.styles.stroke[1]=t.styles.stroke.g),"number"==typeof t.styles.stroke.b&&(t.styles.stroke[2]=t.styles.stroke.b),"number"==typeof t.styles.stroke.a&&(t.styles.stroke[3]=t.styles.stroke.a));var e=t.styles.lineDash||[];switch(t.styles.lineDashI>0&&e.push(t.styles.lineDashI),t.styles.lineDashII>0&&(e.length<1&&e.push(0),e.push(t.styles.lineDashII),e.push(0)),t.styles.lineDashIII>0&&(e.length<2&&(e.push(0),e.push(0)),e[2]=t.styles.lineDashIII),t.styles.lineDash=e,t.styles.lineJoin){case 0:t.styles.lineJoin="miter";break;case 1:t.styles.lineJoin="round";break;case 2:t.styles.lineJoin="bevel"}switch(t.styles.lineCap){case 0:t.styles.lineCap="butt";break;case 1:t.styles.lineCap="round";break;case 2:t.styles.lineCap="square"}}}),e.shapes[0]&&"keep"===e.shapes[0].type?this.shapes=t.lastShapes:(t.lastShapes=e.shapes,this.shapes=e.shapes));var r=this.transform.a*this.layout.x+this.transform.c*this.layout.y+this.transform.tx,o=this.transform.a*(this.layout.x+this.layout.width)+this.transform.c*this.layout.y+this.transform.tx,a=this.transform.a*this.layout.x+this.transform.c*(this.layout.y+this.layout.height)+this.transform.tx,f=this.transform.a*(this.layout.x+this.layout.width)+this.transform.c*(this.layout.y+this.layout.height)+this.transform.tx,h=this.transform.b*this.layout.x+this.transform.d*this.layout.y+this.transform.ty,l=this.transform.b*(this.layout.x+this.layout.width)+this.transform.d*this.layout.y+this.transform.ty,u=this.transform.b*this.layout.x+this.transform.d*(this.layout.y+this.layout.height)+this.transform.ty,p=this.transform.b*(this.layout.x+this.layout.width)+this.transform.d*(this.layout.y+this.layout.height)+this.transform.ty;this.nx=Math.min(Math.min(a,f),Math.min(r,o)),this.ny=Math.min(Math.min(u,p),Math.min(h,l))}return t.lastShapes="",t}();e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,r){this._d=t,this._transform=e,this._styles=r};e.default=i}]);`,Parser=function(){function Parser(_a){var disableWorker=(_a===void 0?{disableWorker:!1}:_a).disableWorker;disableWorker?(eval(WORKER),this.worker=window.SVGAParserMockWorker):this.worker=new Worker(window.URL.createObjectURL(new Blob([WORKER])))}return Parser.prototype.do=function(s){var m=this,n=new Uint8Array(s,0,4);if(n[0]==80&&n[1]==75&&n[2]==3&&n[3]==4)throw"this parser not support version@1.x of svga.";if(!s)throw new Error("Parser Data not found");if(!this.worker)throw new Error("Parser Worker not found");return new Promise(function(t,r){var u;m.worker.disableWorker?((u=m.worker).onmessageCallback=function(a){t(a)},u.onmessage({data:s})):((u=m.worker).postMessage(s),u.onmessage=function(a){var o=a.data;t(o)})})},Parser.prototype.destroy=function(){var s=this.worker;s.terminate&&s.terminate()},Parser}();exports$1.default=Parser},function(s,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t,r,u,a=n(5),o=n(9);(function(l){l.START="start",l.RESUME="resume",l.PROCESS="process",l.PAUSE="pause",l.STOP="stop",l.END="end",l.CLEAR="clear"})(t||(t={})),function(l){l.FORWARDS="forwards",l.BACKWARDS="backwards"}(r||(r={})),function(l){l.FORWARDS="forwards",l.FALLBACKS="fallbacks"}(u||(u={}));var h=typeof window<"u"&&"IntersectionObserver"in window,d=function(){function l(i,p,c){if(this.videoItem=p,this.loop=!0,this.fillMode=r.FORWARDS,this.playMode=u.FORWARDS,this.progress=0,this.currentFrame=0,this.totalFramesCount=0,this.startFrame=0,this.endFrame=0,this.cacheFrames=!1,this.intersectionObserverRender=!1,this.intersectionObserverRenderShow=!0,this._intersectionObserver=null,this.$onEvent={start:function(){},resume:function(){},process:function(){},pause:function(){},stop:function(){},end:function(){},clear:function(){}},this.container=typeof i=="string"?document.body.querySelector(i):i,!this.container)throw new Error("container undefined.");if(!this.container.getContext)throw new Error("container should be HTMLCanvasElement.");this._renderer=new a.default(this),this._animator=new o.default,this.videoItem&&this.mount(p),c&&this.set(c)}return l.prototype.set=function(i){var p=this;i.loop!==void 0&&(this.loop=i.loop),i.fillMode&&(this.fillMode=i.fillMode),i.playMode&&(this.playMode=i.playMode),i.cacheFrames!==void 0&&(this.cacheFrames=i.cacheFrames),this.startFrame=i.startFrame?i.startFrame:this.startFrame,this.endFrame=i.endFrame?i.endFrame:this.endFrame,i.intersectionObserverRender!==void 0&&(this.intersectionObserverRender=i.intersectionObserverRender),h&&this.intersectionObserverRender?(this._intersectionObserver=new IntersectionObserver(function(c){c[0].intersectionRatio<=0?p.intersectionObserverRenderShow&&(p.intersectionObserverRenderShow=!1):!p.intersectionObserverRenderShow&&(p.intersectionObserverRenderShow=!0)},{rootMargin:"0px",threshold:[0,.5,1]}),this._intersectionObserver.observe(this.container)):(this._intersectionObserver&&this._intersectionObserver.disconnect(),this.intersectionObserverRender=!1,this.intersectionObserverRenderShow=!0),this._animator.noExecutionDelay=i.noExecutionDelay},l.prototype.mount=function(i){var p=this;return new Promise(function(c,b){p.currentFrame=0,p.progress=0,p.totalFramesCount=i.frames-1,p.videoItem=i,p._renderer.prepare().then(c),p._renderer.clear(),p._setSize()})},l.prototype.start=function(){if(!this.videoItem)throw new Error("video item undefined.");this._renderer.clear(),this._startAnimation(),this.$onEvent.start()},l.prototype.resume=function(){if(!this.videoItem)throw new Error("video item undefined.");this._startAnimation(),this.$onEvent.resume()},l.prototype.pause=function(){this._animator&&this._animator.stop(),this.$onEvent.pause()},l.prototype.stop=function(){this._animator&&this._animator.stop(),this.currentFrame=0,this._renderer.drawFrame(this.currentFrame),this.$onEvent.stop()},l.prototype.clear=function(){this._animator&&this._animator.stop(),this._renderer.clear(),this.$onEvent.clear()},l.prototype.destroy=function(){this._animator&&this._animator.stop(),this._renderer.clear(),this._animator=null,this._renderer=null,this.videoItem=null},l.prototype.$on=function(i,p){var c=this;return this.$onEvent[i]=p,i==="end"&&(this._animator.onEnd=function(){return c.$onEvent.end()}),this},l.prototype._startAnimation=function(){var i=this,p=this,c=p.playMode,b=p.totalFramesCount,_=p.startFrame,f=p.endFrame,v=p.videoItem;this.currentFrame===b&&(this.currentFrame=_||0),this._animator.startValue=c==="fallbacks"?f||b:_||0,this._animator.endValue=c==="fallbacks"?_||0:f||b;var e=v.frames;f>0&&f>_?e=f-_:f<=0&&_>0&&(e=v.frames-_),this._animator.duration=e*(1/v.FPS)*1e3,this._animator.loop=this.loop===!0||this.loop<=0?1/0:this.loop===!1?1:this.loop,this._animator.fillRule=this.fillMode==="backwards"?1:0,this._animator.onUpdate=function(x){x=Math.floor(x),i.currentFrame!==x&&(i.currentFrame=x,i.progress=parseFloat((x+1).toString())/parseFloat(v.frames.toString())*100,i._renderer.drawFrame(i.currentFrame),i.$onEvent.process())},this._animator.start(this.currentFrame)},l.prototype._setSize=function(){var i=this.videoItem.videoSize;this.container.width=i.width,this.container.height=i.height},l}();m.default=d},function(s,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=n(6),r=function(){function u(a){this._bitmapCache={},this._dynamicElements={},this._frames={},this._player=a;var o=this._player.container;this._ofsCanvas=window.OffscreenCanvas?new window.OffscreenCanvas(o.width,o.height):document.createElement("canvas")}return u.prototype.prepare=function(){var a=this;return new Promise(function(o,h){if(a._bitmapCache={},a._player.videoItem.images&&Object.keys(a._player.videoItem.images).length!=0){a._player.videoItem.dynamicElements&&(a._dynamicElements=a._player.videoItem.dynamicElements);var d=0,l=0;for(var i in a._player.videoItem.images){var p=a._player.videoItem.images[i];if(typeof p!="string"||p.indexOf("iVBO")!==0&&p.indexOf("/9j/2w")!==0)a._bitmapCache[i]=p;else{d++;var c=document.createElement("img");c.src="data:image/png;base64,"+p,a._bitmapCache[i]=c,c.onload=function(){++l===d&&o()}}}}else o()})},u.prototype.clear=function(){this._player.container.width=this._player.container.width},u.prototype.drawFrame=function(a){var o=this._player;if(!o.intersectionObserverRender||o.intersectionObserverRenderShow){this.clear();var h=o.container.getContext("2d");if(this._player.cacheFrames&&this._frames[a]){var d=this._frames[a];h.drawImage(d,0,0,d.width,d.height,0,0,d.width,d.height)}else{var l=this._ofsCanvas;if(l.width=this._player.container.width,l.height=this._player.container.height,t.default(l,this._bitmapCache,this._dynamicElements,this._player.videoItem,this._player.currentFrame),h.drawImage(l,0,0,l.width,l.height,0,0,l.width,l.height),this._player.cacheFrames)if("toDataURL"in l){var i=l.toDataURL(),p=new Image;p.src=i,this._frames[a]=p}else this._frames[a]=l.transferToImageBitmap()}}},u}();m.default=r},function(s,m,n){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var t=a(n(0)),r=a(n(7)),u=a(n(8));function a(i){return i&&i.__esModule?i:{default:i}}var o="MLHVCSQRZmlhvcsqrz";function h(i,p){var c=p._styles;c!==void 0&&(c&&c.stroke?i.strokeStyle="rgba(".concat(parseInt((255*c.stroke[0]).toString()),", ").concat(parseInt((255*c.stroke[1]).toString()),", ").concat(parseInt((255*c.stroke[2]).toString()),", ").concat(c.stroke[3],")"):i.strokeStyle="transparent",c&&(i.lineWidth=c.strokeWidth||void 0,i.lineCap=c.lineCap||void 0,i.lineJoin=c.lineJoin||void 0,i.miterLimit=c.miterLimit||void 0),c&&c.fill?i.fillStyle="rgba(".concat(parseInt((255*c.fill[0]).toString()),", ").concat(parseInt((255*c.fill[1]).toString()),", ").concat(parseInt((255*c.fill[2]).toString()),", ").concat(c.fill[3],")"):i.fillStyle="transparent",c&&c.lineDash&&i.setLineDash(c.lineDash))}function d(i,p){i.save(),h(i,p),p._transform!==void 0&&p._transform!==null&&i.transform(p._transform.a||1,p._transform.b||0,p._transform.c||0,p._transform.d||1,p._transform.tx||0,p._transform.ty||0);var c={x:0,y:0,x1:0,y1:0,x2:0,y2:0};i.beginPath(),p._d.replace(/([a-zA-Z])/g,"|||$1 ").replace(/,/g," ").split("|||").forEach(function(b){if(b.length!=0){var _=b.substr(0,1);if(o.indexOf(_)>=0){var f=b.substr(1).trim().split(" ");(function(v,e,x,y){switch(x){case"M":e.x=Number(y[0]),e.y=Number(y[1]),v.moveTo(e.x,e.y);break;case"m":e.x+=Number(y[0]),e.y+=Number(y[1]),v.moveTo(e.x,e.y);break;case"L":e.x=Number(y[0]),e.y=Number(y[1]),v.lineTo(e.x,e.y);break;case"l":e.x+=Number(y[0]),e.y+=Number(y[1]),v.lineTo(e.x,e.y);break;case"H":e.x=Number(y[0]),v.lineTo(e.x,e.y);break;case"h":e.x+=Number(y[0]),v.lineTo(e.x,e.y);break;case"V":e.y=Number(y[0]),v.lineTo(e.x,e.y);break;case"v":e.y+=Number(y[0]),v.lineTo(e.x,e.y);break;case"C":e.x1=Number(y[0]),e.y1=Number(y[1]),e.x2=Number(y[2]),e.y2=Number(y[3]),e.x=Number(y[4]),e.y=Number(y[5]),v.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y);break;case"c":e.x1=e.x+Number(y[0]),e.y1=e.y+Number(y[1]),e.x2=e.x+Number(y[2]),e.y2=e.y+Number(y[3]),e.x+=Number(y[4]),e.y+=Number(y[5]),v.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y);break;case"S":e.x1&&e.y1&&e.x2&&e.y2?(e.x1=e.x-e.x2+e.x,e.y1=e.y-e.y2+e.y,e.x2=Number(y[0]),e.y2=Number(y[1]),e.x=Number(y[2]),e.y=Number(y[3]),v.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y)):(e.x1=Number(y[0]),e.y1=Number(y[1]),e.x=Number(y[2]),e.y=Number(y[3]),v.quadraticCurveTo(e.x1,e.y1,e.x,e.y));break;case"s":e.x1&&e.y1&&e.x2&&e.y2?(e.x1=e.x-e.x2+e.x,e.y1=e.y-e.y2+e.y,e.x2=e.x+Number(y[0]),e.y2=e.y+Number(y[1]),e.x+=Number(y[2]),e.y+=Number(y[3]),v.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y)):(e.x1=e.x+Number(y[0]),e.y1=e.y+Number(y[1]),e.x+=Number(y[2]),e.y+=Number(y[3]),v.quadraticCurveTo(e.x1,e.y1,e.x,e.y));break;case"Q":e.x1=Number(y[0]),e.y1=Number(y[1]),e.x=Number(y[2]),e.y=Number(y[3]),v.quadraticCurveTo(e.x1,e.y1,e.x,e.y);break;case"q":e.x1=e.x+Number(y[0]),e.y1=e.y+Number(y[1]),e.x+=Number(y[2]),e.y+=Number(y[3]),v.quadraticCurveTo(e.x1,e.y1,e.x,e.y);break;case"A":case"a":break;case"Z":case"z":v.closePath()}})(i,c,_,f)}}}),p._styles&&p._styles.fill?i.fill():p._styles&&p._styles.stroke&&i.stroke(),i.restore()}var l=function(i,p,c,b,_){var f=i.getContext("2d");return b.sprites.forEach(function(v){var e=v.frames[_];if(!(e.alpha<.05)){f.save(),f.globalAlpha=e.alpha,f.transform(e.transform.a||1,e.transform.b||0,e.transform.c||0,e.transform.d||1,e.transform.tx||0,e.transform.ty||0);var x=p[v.imageKey];x&&(e.maskPath!==void 0&&e.maskPath!==null&&(e.maskPath._styles=void 0,d(f,e.maskPath),f.clip()),f.drawImage(x,0,0));var y=c[v.imageKey];y&&f.drawImage(y,(e.layout.width-y.width)/2,(e.layout.height-y.height)/2),e.shapes&&e.shapes.forEach(function(w){w.type==="shape"&&w.pathArgs&&w.pathArgs.d?d(f,new t.default(w.pathArgs.d,w.transform,w.styles)):w.type==="ellipse"&&w.pathArgs?function(N,S){N.save(),h(N,S),S._transform!==void 0&&S._transform!==null&&N.transform(S._transform.a||1,S._transform.b||0,S._transform.c||0,S._transform.d||1,S._transform.tx||0,S._transform.ty||0);var C=S._x-S._radiusX,$=S._y-S._radiusY,M=2*S._radiusX,F=2*S._radiusY,D=M/2*.5522848,E=F/2*.5522848,A=C+M,V=$+F,O=C+M/2,I=$+F/2;N.beginPath(),N.moveTo(C,I),N.bezierCurveTo(C,I-E,O-D,$,O,$),N.bezierCurveTo(O+D,$,A,I-E,A,I),N.bezierCurveTo(A,I+E,O+D,V,O,V),N.bezierCurveTo(O-D,V,C,I+E,C,I),S._styles&&S._styles.fill?N.fill():S._styles&&S._styles.stroke&&N.stroke(),N.restore()}(f,new r.default(parseFloat(w.pathArgs.x)||0,parseFloat(w.pathArgs.y)||0,parseFloat(w.pathArgs.radiusX)||0,parseFloat(w.pathArgs.radiusY)||0,w.transform,w.styles)):w.type==="rect"&&w.pathArgs&&function(N,S){N.save(),h(N,S),S._transform!==void 0&&S._transform!==null&&N.transform(S._transform.a||1,S._transform.b||0,S._transform.c||0,S._transform.d||1,S._transform.tx||0,S._transform.ty||0);var C=S._x,$=S._y,M=S._width,F=S._height,D=S._cornerRadius;M<2*D&&(D=M/2),F<2*D&&(D=F/2),N.beginPath(),N.moveTo(C+D,$),N.arcTo(C+M,$,C+M,$+F,D),N.arcTo(C+M,$+F,C,$+F,D),N.arcTo(C,$+F,C,$,D),N.arcTo(C,$,C+M,$,D),N.closePath(),S._styles&&S._styles.fill?N.fill():S._styles&&S._styles.stroke&&N.stroke(),N.restore()}(f,new u.default(parseFloat(w.pathArgs.x)||0,parseFloat(w.pathArgs.y)||0,parseFloat(w.pathArgs.width)||0,parseFloat(w.pathArgs.height)||0,parseFloat(w.pathArgs.cornerRadius)||0,w.transform,w.styles))}),f.restore()}}),i};m.default=l},function(s,m,n){var t,r=(t=function(a,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var l in d)Object.prototype.hasOwnProperty.call(d,l)&&(h[l]=d[l])})(a,o)},function(a,o){function h(){this.constructor=a}t(a,o),a.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)});Object.defineProperty(m,"__esModule",{value:!0});var u=function(a){function o(h,d,l,i,p,c){var b=a.call(this)||this;return b._x=h,b._y=d,b._radiusX=l,b._radiusY=i,b._transform=p,b._styles=c,b}return r(o,a),o}(n(0).default);m.default=u},function(s,m,n){var t,r=(t=function(a,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var l in d)Object.prototype.hasOwnProperty.call(d,l)&&(h[l]=d[l])})(a,o)},function(a,o){function h(){this.constructor=a}t(a,o),a.prototype=o===null?Object.create(o):(h.prototype=o.prototype,new h)});Object.defineProperty(m,"__esModule",{value:!0});var u=function(a){function o(h,d,l,i,p,c,b){var _=a.call(this)||this;return _._x=h,_._y=d,_._width=l,_._height=i,_._cornerRadius=p,_._transform=c,_._styles=b,_}return r(o,a),o}(n(0).default);m.default=u},function(s,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function r(){this._currentTimeMillsecond=function(){return typeof performance>"u"?new Date().getTime():performance.now()},this.noExecutionDelay=!1,this.startValue=0,this.endValue=0,this.duration=0,this.loop=1,this.fillRule=0,this.onStart=function(){},this.onUpdate=function(){},this.onEnd=function(){},this._isRunning=!1,this._mStartTime=0,this._currentFrication=0,this._worker=null}return r.prototype.start=function(u){this.doStart(u)},r.prototype.stop=function(){this._doStop()},Object.defineProperty(r.prototype,"animatedValue",{get:function(){return(this.endValue-this.startValue)*this._currentFrication+this.startValue},enumerable:!1,configurable:!0}),r.prototype.doStart=function(u){this._isRunning=!0,this._mStartTime=this._currentTimeMillsecond(),u&&(this._mStartTime-=u/(this.endValue-this.startValue)*this.duration),this._currentFrication=0,this.noExecutionDelay&&this._worker===null&&(this._worker=new Worker(window.URL.createObjectURL(new Blob([`onmessage = function () {
|
|
10
|
+
(function(){"use strict";var t=void 0,e=this;function r(r,i){var s,n=r.split("."),o=e;!(n[0]in o)&&o.execScript&&o.execScript("var "+n[0]);for(;n.length&&(s=n.shift());)n.length||i===t?o=o[s]?o[s]:o[s]={}:o[s]=i}var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function s(t){var e,r,s,n,o,a,f,h,l,u,p=t.length,d=0,c=Number.POSITIVE_INFINITY;for(h=0;h<p;++h)t[h]>d&&(d=t[h]),t[h]<c&&(c=t[h]);for(e=1<<d,r=new(i?Uint32Array:Array)(e),s=1,n=0,o=2;s<=d;){for(h=0;h<p;++h)if(t[h]===s){for(a=0,f=n,l=0;l<s;++l)a=a<<1|1&f,f>>=1;for(u=s<<16|h,l=a;l<e;l+=o)r[l]=u;++n}++s,n<<=1,o<<=1}return[r,d,c]}function n(t,e){switch(this.g=[],this.h=32768,this.d=this.f=this.a=this.l=0,this.input=i?new Uint8Array(t):t,this.m=!1,this.i=a,this.r=!1,!e&&(e={})||(e.index&&(this.a=e.index),e.bufferSize&&(this.h=e.bufferSize),e.bufferType&&(this.i=e.bufferType),e.resize&&(this.r=e.resize)),this.i){case o:this.b=32768,this.c=new(i?Uint8Array:Array)(32768+this.h+258);break;case a:this.b=0,this.c=new(i?Uint8Array:Array)(this.h),this.e=this.z,this.n=this.v,this.j=this.w;break;default:throw Error("invalid inflate mode")}}var o=0,a=1,f={t:o,s:a};n.prototype.k=function(){for(;!this.m;){var e=S(this,3);switch(1&e&&(this.m=!0),e>>>=1){case 0:var r=this.input,n=this.a,f=this.c,h=this.b,l=r.length,u=t,d=f.length,c=t;if(this.d=this.f=0,n+1>=l)throw Error("invalid uncompressed block header: LEN");if(u=r[n++]|r[n++]<<8,n+1>=l)throw Error("invalid uncompressed block header: NLEN");if(u===~(r[n++]|r[n++]<<8))throw Error("invalid uncompressed block header: length verify");if(n+u>r.length)throw Error("input buffer is broken");switch(this.i){case o:for(;h+u>f.length;){if(u-=c=d-h,i)f.set(r.subarray(n,n+c),h),h+=c,n+=c;else for(;c--;)f[h++]=r[n++];this.b=h,f=this.e(),h=this.b}break;case a:for(;h+u>f.length;)f=this.e({p:2});break;default:throw Error("invalid inflate mode")}if(i)f.set(r.subarray(n,n+u),h),h+=u,n+=u;else for(;u--;)f[h++]=r[n++];this.a=n,this.b=h,this.c=f;break;case 1:this.j(_,x);break;case 2:var y,v,m,b,g=S(this,5)+257,A=S(this,5)+1,w=S(this,4)+4,k=new(i?Uint8Array:Array)(p.length),O=t,E=t,T=t,N=t,I=t;for(I=0;I<w;++I)k[p[I]]=S(this,3);if(!i)for(I=w,w=k.length;I<w;++I)k[p[I]]=0;for(y=s(k),O=new(i?Uint8Array:Array)(g+A),I=0,b=g+A;I<b;)switch(E=j(this,y),E){case 16:for(N=3+S(this,2);N--;)O[I++]=T;break;case 17:for(N=3+S(this,3);N--;)O[I++]=0;T=0;break;case 18:for(N=11+S(this,7);N--;)O[I++]=0;T=0;break;default:T=O[I++]=E}v=s(i?O.subarray(0,g):O.slice(0,g)),m=s(i?O.subarray(g):O.slice(g)),this.j(v,m);break;default:throw Error("unknown BTYPE: "+e)}}return this.n()};var h,l,u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=i?new Uint16Array(u):u,d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],c=i?new Uint16Array(d):d,y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],v=i?new Uint8Array(y):y,m=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],b=i?new Uint16Array(m):m,g=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=i?new Uint8Array(g):g,w=new(i?Uint8Array:Array)(288);for(h=0,l=w.length;h<l;++h)w[h]=143>=h?8:255>=h?9:279>=h?7:8;var k,O,_=s(w),E=new(i?Uint8Array:Array)(30);for(k=0,O=E.length;k<O;++k)E[k]=5;var x=s(E);function S(t,e){for(var r,i=t.f,s=t.d,n=t.input,o=t.a,a=n.length;s<e;){if(o>=a)throw Error("input buffer is broken");i|=n[o++]<<s,s+=8}return r=i&(1<<e)-1,t.f=i>>>e,t.d=s-e,t.a=o,r}function j(t,e){for(var r,i,s=t.f,n=t.d,o=t.input,a=t.a,f=o.length,h=e[0],l=e[1];n<l&&!(a>=f);)s|=o[a++]<<n,n+=8;if((i=(r=h[s&(1<<l)-1])>>>16)>n)throw Error("invalid code length: "+i);return t.f=s>>i,t.d=n-i,t.a=a,65535&r}function T(t,e){var r,i;switch(this.input=t,this.a=0,!e&&(e={})||(e.index&&(this.a=e.index),e.verify&&(this.A=e.verify)),r=t[this.a++],i=t[this.a++],15&r){case N:this.method=N;break;default:throw Error("unsupported compression method")}if(0!=((r<<8)+i)%31)throw Error("invalid fcheck flag:"+((r<<8)+i)%31);if(32&i)throw Error("fdict flag is not supported");this.q=new n(t,{index:this.a,bufferSize:e.bufferSize,bufferType:e.bufferType,resize:e.resize})}n.prototype.j=function(t,e){var r=this.c,i=this.b;this.o=t;for(var s,n,o,a,f=r.length-258;256!==(s=j(this,t));)if(256>s)i>=f&&(this.b=i,r=this.e(),i=this.b),r[i++]=s;else for(a=c[n=s-257],0<v[n]&&(a+=S(this,v[n])),s=j(this,e),o=b[s],0<A[s]&&(o+=S(this,A[s])),i>=f&&(this.b=i,r=this.e(),i=this.b);a--;)r[i]=r[i++-o];for(;8<=this.d;)this.d-=8,this.a--;this.b=i},n.prototype.w=function(t,e){var r=this.c,i=this.b;this.o=t;for(var s,n,o,a,f=r.length;256!==(s=j(this,t));)if(256>s)i>=f&&(f=(r=this.e()).length),r[i++]=s;else for(a=c[n=s-257],0<v[n]&&(a+=S(this,v[n])),s=j(this,e),o=b[s],0<A[s]&&(o+=S(this,A[s])),i+a>f&&(f=(r=this.e()).length);a--;)r[i]=r[i++-o];for(;8<=this.d;)this.d-=8,this.a--;this.b=i},n.prototype.e=function(){var t,e,r=new(i?Uint8Array:Array)(this.b-32768),s=this.b-32768,n=this.c;if(i)r.set(n.subarray(32768,r.length));else for(t=0,e=r.length;t<e;++t)r[t]=n[t+32768];if(this.g.push(r),this.l+=r.length,i)n.set(n.subarray(s,s+32768));else for(t=0;32768>t;++t)n[t]=n[s+t];return this.b=32768,n},n.prototype.z=function(t){var e,r,s,n=this.input.length/this.a+1|0,o=this.input,a=this.c;return t&&("number"==typeof t.p&&(n=t.p),"number"==typeof t.u&&(n+=t.u)),2>n?r=(s=(o.length-this.a)/this.o[2]/2*258|0)<a.length?a.length+s:a.length<<1:r=a.length*n,i?(e=new Uint8Array(r)).set(a):e=a,this.c=e},n.prototype.n=function(){var t,e,r,s,n,o=0,a=this.c,f=this.g,h=new(i?Uint8Array:Array)(this.l+(this.b-32768));if(0===f.length)return i?this.c.subarray(32768,this.b):this.c.slice(32768,this.b);for(e=0,r=f.length;e<r;++e)for(s=0,n=(t=f[e]).length;s<n;++s)h[o++]=t[s];for(e=32768,r=this.b;e<r;++e)h[o++]=a[e];return this.g=[],this.buffer=h},n.prototype.v=function(){var t,e=this.b;return i?this.r?(t=new Uint8Array(e)).set(this.c.subarray(0,e)):t=this.c.subarray(0,e):(this.c.length>e&&(this.c.length=e),t=this.c),this.buffer=t},T.prototype.k=function(){var t,e,r=this.input;if(t=this.q.k(),this.a=this.q.a,this.A){e=(r[this.a++]<<24|r[this.a++]<<16|r[this.a++]<<8|r[this.a++])>>>0;var i=t;if("string"==typeof i){var s,n,o=i.split("");for(s=0,n=o.length;s<n;s++)o[s]=(255&o[s].charCodeAt(0))>>>0;i=o}for(var a,f=1,h=0,l=i.length,u=0;0<l;){l-=a=1024<l?1024:l;do{h+=f+=i[u++]}while(--a);f%=65521,h%=65521}if(e!==(h<<16|f)>>>0)throw Error("invalid adler-32 checksum")}return t};var N=8;r("Zlib.Inflate",T),r("Zlib.Inflate.prototype.decompress",T.prototype.k);var I,B,F,D,M={ADAPTIVE:f.s,BLOCK:f.t};if(Object.keys)I=Object.keys(M);else for(B in I=[],F=0,M)I[F++]=B;for(F=0,D=I.length;F<D;++F)r("Zlib.Inflate.BufferType."+(B=I[F]),M[B])}).call(this)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=[],r=0;r<t.length;r+=32768)e.push(String.fromCharCode.apply(null,t.subarray(r,r+32768)));return e.join("")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(27),s=function(t,e){this.videoSize={width:0,height:0},this.images={},this.dynamicElements={},this.sprites=[],this.version=t.version,this.videoSize.width=t.params.viewBoxWidth||0,this.videoSize.height=t.params.viewBoxHeight||0,this.FPS=t.params.fps||20,this.frames=t.params.frames||0,t.sprites instanceof Array&&(this.sprites=t.sprites.map(function(t){return new i.default(t)})),e&&(this.images=e)};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(28),s=function(t){this.frames=[],this.imageKey=t.imageKey,t.frames&&(this.frames=t.frames.map(function(t){return new i.default(t)}))};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(29),s=function(t,e,r,i,s,n){return{a:t,b:e,c:r,d:i,tx:s,ty:n}},n=function(t,e,r,i){return{x:t,y:e,width:r,height:i}},o=function(){function t(e){this.alpha=0,this.transform=s(1,0,0,1,0,0),this.nx=0,this.ny=0,this.layout=n(0,0,0,0),this.shapes=[],this.alpha=parseFloat(e.alpha)||0,e.layout&&(this.layout=n(parseFloat(e.layout.x)||0,parseFloat(e.layout.y)||0,parseFloat(e.layout.width)||0,parseFloat(e.layout.height)||0)),e.transform&&(this.transform=s(parseFloat(e.transform.a)||1,parseFloat(e.transform.b)||0,parseFloat(e.transform.c)||0,parseFloat(e.transform.d)||1,parseFloat(e.transform.tx)||0,parseFloat(e.transform.ty)||0)),e.clipPath&&e.clipPath.length>0&&(this.maskPath=new i.default(e.clipPath,void 0,{fill:"#000000"})),e.shapes&&(e.shapes instanceof Array&&e.shapes.forEach(function(t){switch(t.pathArgs=t.args,t.type){case 0:t.type="shape",t.pathArgs=t.shape;break;case 1:t.type="rect",t.pathArgs=t.rect;break;case 2:t.type="ellipse",t.pathArgs=t.ellipse;break;case 3:t.type="keep"}if(t.styles){t.styles.fill&&("number"==typeof t.styles.fill.r&&(t.styles.fill[0]=t.styles.fill.r),"number"==typeof t.styles.fill.g&&(t.styles.fill[1]=t.styles.fill.g),"number"==typeof t.styles.fill.b&&(t.styles.fill[2]=t.styles.fill.b),"number"==typeof t.styles.fill.a&&(t.styles.fill[3]=t.styles.fill.a)),t.styles.stroke&&("number"==typeof t.styles.stroke.r&&(t.styles.stroke[0]=t.styles.stroke.r),"number"==typeof t.styles.stroke.g&&(t.styles.stroke[1]=t.styles.stroke.g),"number"==typeof t.styles.stroke.b&&(t.styles.stroke[2]=t.styles.stroke.b),"number"==typeof t.styles.stroke.a&&(t.styles.stroke[3]=t.styles.stroke.a));var e=t.styles.lineDash||[];switch(t.styles.lineDashI>0&&e.push(t.styles.lineDashI),t.styles.lineDashII>0&&(e.length<1&&e.push(0),e.push(t.styles.lineDashII),e.push(0)),t.styles.lineDashIII>0&&(e.length<2&&(e.push(0),e.push(0)),e[2]=t.styles.lineDashIII),t.styles.lineDash=e,t.styles.lineJoin){case 0:t.styles.lineJoin="miter";break;case 1:t.styles.lineJoin="round";break;case 2:t.styles.lineJoin="bevel"}switch(t.styles.lineCap){case 0:t.styles.lineCap="butt";break;case 1:t.styles.lineCap="round";break;case 2:t.styles.lineCap="square"}}}),e.shapes[0]&&"keep"===e.shapes[0].type?this.shapes=t.lastShapes:(t.lastShapes=e.shapes,this.shapes=e.shapes));var r=this.transform.a*this.layout.x+this.transform.c*this.layout.y+this.transform.tx,o=this.transform.a*(this.layout.x+this.layout.width)+this.transform.c*this.layout.y+this.transform.tx,a=this.transform.a*this.layout.x+this.transform.c*(this.layout.y+this.layout.height)+this.transform.tx,f=this.transform.a*(this.layout.x+this.layout.width)+this.transform.c*(this.layout.y+this.layout.height)+this.transform.tx,h=this.transform.b*this.layout.x+this.transform.d*this.layout.y+this.transform.ty,l=this.transform.b*(this.layout.x+this.layout.width)+this.transform.d*this.layout.y+this.transform.ty,u=this.transform.b*this.layout.x+this.transform.d*(this.layout.y+this.layout.height)+this.transform.ty,p=this.transform.b*(this.layout.x+this.layout.width)+this.transform.d*(this.layout.y+this.layout.height)+this.transform.ty;this.nx=Math.min(Math.min(a,f),Math.min(r,o)),this.ny=Math.min(Math.min(u,p),Math.min(h,l))}return t.lastShapes="",t}();e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,r){this._d=t,this._transform=e,this._styles=r};e.default=i}]);`,Parser=function(){function Parser(_a){var disableWorker=(_a===void 0?{disableWorker:!1}:_a).disableWorker;disableWorker?(eval(WORKER),this.worker=window.SVGAParserMockWorker):this.worker=new Worker(window.URL.createObjectURL(new Blob([WORKER])))}return Parser.prototype.do=function(o){var m=this,n=new Uint8Array(o,0,4);if(n[0]==80&&n[1]==75&&n[2]==3&&n[3]==4)throw"this parser not support version@1.x of svga.";if(!o)throw new Error("Parser Data not found");if(!this.worker)throw new Error("Parser Worker not found");return new Promise(function(t,r){var u;m.worker.disableWorker?((u=m.worker).onmessageCallback=function(a){t(a)},u.onmessage({data:o})):((u=m.worker).postMessage(o),u.onmessage=function(a){var s=a.data;t(s)})})},Parser.prototype.destroy=function(){var o=this.worker;o.terminate&&o.terminate()},Parser}();exports$1.default=Parser},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t,r,u,a=n(5),s=n(9);(function(l){l.START="start",l.RESUME="resume",l.PROCESS="process",l.PAUSE="pause",l.STOP="stop",l.END="end",l.CLEAR="clear"})(t||(t={})),function(l){l.FORWARDS="forwards",l.BACKWARDS="backwards"}(r||(r={})),function(l){l.FORWARDS="forwards",l.FALLBACKS="fallbacks"}(u||(u={}));var v=typeof window<"u"&&"IntersectionObserver"in window,h=function(){function l(i,f,c){if(this.videoItem=f,this.loop=!0,this.fillMode=r.FORWARDS,this.playMode=u.FORWARDS,this.progress=0,this.currentFrame=0,this.totalFramesCount=0,this.startFrame=0,this.endFrame=0,this.cacheFrames=!1,this.intersectionObserverRender=!1,this.intersectionObserverRenderShow=!0,this._intersectionObserver=null,this.$onEvent={start:function(){},resume:function(){},process:function(){},pause:function(){},stop:function(){},end:function(){},clear:function(){}},this.container=typeof i=="string"?document.body.querySelector(i):i,!this.container)throw new Error("container undefined.");if(!this.container.getContext)throw new Error("container should be HTMLCanvasElement.");this._renderer=new a.default(this),this._animator=new s.default,this.videoItem&&this.mount(f),c&&this.set(c)}return l.prototype.set=function(i){var f=this;i.loop!==void 0&&(this.loop=i.loop),i.fillMode&&(this.fillMode=i.fillMode),i.playMode&&(this.playMode=i.playMode),i.cacheFrames!==void 0&&(this.cacheFrames=i.cacheFrames),this.startFrame=i.startFrame?i.startFrame:this.startFrame,this.endFrame=i.endFrame?i.endFrame:this.endFrame,i.intersectionObserverRender!==void 0&&(this.intersectionObserverRender=i.intersectionObserverRender),v&&this.intersectionObserverRender?(this._intersectionObserver=new IntersectionObserver(function(c){c[0].intersectionRatio<=0?f.intersectionObserverRenderShow&&(f.intersectionObserverRenderShow=!1):!f.intersectionObserverRenderShow&&(f.intersectionObserverRenderShow=!0)},{rootMargin:"0px",threshold:[0,.5,1]}),this._intersectionObserver.observe(this.container)):(this._intersectionObserver&&this._intersectionObserver.disconnect(),this.intersectionObserverRender=!1,this.intersectionObserverRenderShow=!0),this._animator.noExecutionDelay=i.noExecutionDelay},l.prototype.mount=function(i){var f=this;return new Promise(function(c,_){f.currentFrame=0,f.progress=0,f.totalFramesCount=i.frames-1,f.videoItem=i,f._renderer.prepare().then(c),f._renderer.clear(),f._setSize()})},l.prototype.start=function(){if(!this.videoItem)throw new Error("video item undefined.");this._renderer.clear(),this._startAnimation(),this.$onEvent.start()},l.prototype.resume=function(){if(!this.videoItem)throw new Error("video item undefined.");this._startAnimation(),this.$onEvent.resume()},l.prototype.pause=function(){this._animator&&this._animator.stop(),this.$onEvent.pause()},l.prototype.stop=function(){this._animator&&this._animator.stop(),this.currentFrame=0,this._renderer.drawFrame(this.currentFrame),this.$onEvent.stop()},l.prototype.clear=function(){this._animator&&this._animator.stop(),this._renderer.clear(),this.$onEvent.clear()},l.prototype.destroy=function(){this._animator&&this._animator.stop(),this._renderer.clear(),this._animator=null,this._renderer=null,this.videoItem=null},l.prototype.$on=function(i,f){var c=this;return this.$onEvent[i]=f,i==="end"&&(this._animator.onEnd=function(){return c.$onEvent.end()}),this},l.prototype._startAnimation=function(){var i=this,f=this,c=f.playMode,_=f.totalFramesCount,y=f.startFrame,d=f.endFrame,p=f.videoItem;this.currentFrame===_&&(this.currentFrame=y||0),this._animator.startValue=c==="fallbacks"?d||_:y||0,this._animator.endValue=c==="fallbacks"?y||0:d||_;var e=p.frames;d>0&&d>y?e=d-y:d<=0&&y>0&&(e=p.frames-y),this._animator.duration=e*(1/p.FPS)*1e3,this._animator.loop=this.loop===!0||this.loop<=0?1/0:this.loop===!1?1:this.loop,this._animator.fillRule=this.fillMode==="backwards"?1:0,this._animator.onUpdate=function(x){x=Math.floor(x),i.currentFrame!==x&&(i.currentFrame=x,i.progress=parseFloat((x+1).toString())/parseFloat(p.frames.toString())*100,i._renderer.drawFrame(i.currentFrame),i.$onEvent.process())},this._animator.start(this.currentFrame)},l.prototype._setSize=function(){var i=this.videoItem.videoSize;this.container.width=i.width,this.container.height=i.height},l}();m.default=h},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=n(6),r=function(){function u(a){this._bitmapCache={},this._dynamicElements={},this._frames={},this._player=a;var s=this._player.container;this._ofsCanvas=window.OffscreenCanvas?new window.OffscreenCanvas(s.width,s.height):document.createElement("canvas")}return u.prototype.prepare=function(){var a=this;return new Promise(function(s,v){if(a._bitmapCache={},a._player.videoItem.images&&Object.keys(a._player.videoItem.images).length!=0){a._player.videoItem.dynamicElements&&(a._dynamicElements=a._player.videoItem.dynamicElements);var h=0,l=0;for(var i in a._player.videoItem.images){var f=a._player.videoItem.images[i];if(typeof f!="string"||f.indexOf("iVBO")!==0&&f.indexOf("/9j/2w")!==0)a._bitmapCache[i]=f;else{h++;var c=document.createElement("img");c.src="data:image/png;base64,"+f,a._bitmapCache[i]=c,c.onload=function(){++l===h&&s()}}}}else s()})},u.prototype.clear=function(){this._player.container.width=this._player.container.width},u.prototype.drawFrame=function(a){var s=this._player;if(!s.intersectionObserverRender||s.intersectionObserverRenderShow){this.clear();var v=s.container.getContext("2d");if(this._player.cacheFrames&&this._frames[a]){var h=this._frames[a];v.drawImage(h,0,0,h.width,h.height,0,0,h.width,h.height)}else{var l=this._ofsCanvas;if(l.width=this._player.container.width,l.height=this._player.container.height,t.default(l,this._bitmapCache,this._dynamicElements,this._player.videoItem,this._player.currentFrame),v.drawImage(l,0,0,l.width,l.height,0,0,l.width,l.height),this._player.cacheFrames)if("toDataURL"in l){var i=l.toDataURL(),f=new Image;f.src=i,this._frames[a]=f}else this._frames[a]=l.transferToImageBitmap()}}},u}();m.default=r},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var t=a(n(0)),r=a(n(7)),u=a(n(8));function a(i){return i&&i.__esModule?i:{default:i}}var s="MLHVCSQRZmlhvcsqrz";function v(i,f){var c=f._styles;c!==void 0&&(c&&c.stroke?i.strokeStyle="rgba(".concat(parseInt((255*c.stroke[0]).toString()),", ").concat(parseInt((255*c.stroke[1]).toString()),", ").concat(parseInt((255*c.stroke[2]).toString()),", ").concat(c.stroke[3],")"):i.strokeStyle="transparent",c&&(i.lineWidth=c.strokeWidth||void 0,i.lineCap=c.lineCap||void 0,i.lineJoin=c.lineJoin||void 0,i.miterLimit=c.miterLimit||void 0),c&&c.fill?i.fillStyle="rgba(".concat(parseInt((255*c.fill[0]).toString()),", ").concat(parseInt((255*c.fill[1]).toString()),", ").concat(parseInt((255*c.fill[2]).toString()),", ").concat(c.fill[3],")"):i.fillStyle="transparent",c&&c.lineDash&&i.setLineDash(c.lineDash))}function h(i,f){i.save(),v(i,f),f._transform!==void 0&&f._transform!==null&&i.transform(f._transform.a||1,f._transform.b||0,f._transform.c||0,f._transform.d||1,f._transform.tx||0,f._transform.ty||0);var c={x:0,y:0,x1:0,y1:0,x2:0,y2:0};i.beginPath(),f._d.replace(/([a-zA-Z])/g,"|||$1 ").replace(/,/g," ").split("|||").forEach(function(_){if(_.length!=0){var y=_.substr(0,1);if(s.indexOf(y)>=0){var d=_.substr(1).trim().split(" ");(function(p,e,x,g){switch(x){case"M":e.x=Number(g[0]),e.y=Number(g[1]),p.moveTo(e.x,e.y);break;case"m":e.x+=Number(g[0]),e.y+=Number(g[1]),p.moveTo(e.x,e.y);break;case"L":e.x=Number(g[0]),e.y=Number(g[1]),p.lineTo(e.x,e.y);break;case"l":e.x+=Number(g[0]),e.y+=Number(g[1]),p.lineTo(e.x,e.y);break;case"H":e.x=Number(g[0]),p.lineTo(e.x,e.y);break;case"h":e.x+=Number(g[0]),p.lineTo(e.x,e.y);break;case"V":e.y=Number(g[0]),p.lineTo(e.x,e.y);break;case"v":e.y+=Number(g[0]),p.lineTo(e.x,e.y);break;case"C":e.x1=Number(g[0]),e.y1=Number(g[1]),e.x2=Number(g[2]),e.y2=Number(g[3]),e.x=Number(g[4]),e.y=Number(g[5]),p.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y);break;case"c":e.x1=e.x+Number(g[0]),e.y1=e.y+Number(g[1]),e.x2=e.x+Number(g[2]),e.y2=e.y+Number(g[3]),e.x+=Number(g[4]),e.y+=Number(g[5]),p.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y);break;case"S":e.x1&&e.y1&&e.x2&&e.y2?(e.x1=e.x-e.x2+e.x,e.y1=e.y-e.y2+e.y,e.x2=Number(g[0]),e.y2=Number(g[1]),e.x=Number(g[2]),e.y=Number(g[3]),p.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y)):(e.x1=Number(g[0]),e.y1=Number(g[1]),e.x=Number(g[2]),e.y=Number(g[3]),p.quadraticCurveTo(e.x1,e.y1,e.x,e.y));break;case"s":e.x1&&e.y1&&e.x2&&e.y2?(e.x1=e.x-e.x2+e.x,e.y1=e.y-e.y2+e.y,e.x2=e.x+Number(g[0]),e.y2=e.y+Number(g[1]),e.x+=Number(g[2]),e.y+=Number(g[3]),p.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y)):(e.x1=e.x+Number(g[0]),e.y1=e.y+Number(g[1]),e.x+=Number(g[2]),e.y+=Number(g[3]),p.quadraticCurveTo(e.x1,e.y1,e.x,e.y));break;case"Q":e.x1=Number(g[0]),e.y1=Number(g[1]),e.x=Number(g[2]),e.y=Number(g[3]),p.quadraticCurveTo(e.x1,e.y1,e.x,e.y);break;case"q":e.x1=e.x+Number(g[0]),e.y1=e.y+Number(g[1]),e.x+=Number(g[2]),e.y+=Number(g[3]),p.quadraticCurveTo(e.x1,e.y1,e.x,e.y);break;case"A":case"a":break;case"Z":case"z":p.closePath()}})(i,c,y,d)}}}),f._styles&&f._styles.fill?i.fill():f._styles&&f._styles.stroke&&i.stroke(),i.restore()}var l=function(i,f,c,_,y){var d=i.getContext("2d");return _.sprites.forEach(function(p){var e=p.frames[y];if(!(e.alpha<.05)){d.save(),d.globalAlpha=e.alpha,d.transform(e.transform.a||1,e.transform.b||0,e.transform.c||0,e.transform.d||1,e.transform.tx||0,e.transform.ty||0);var x=f[p.imageKey];x&&(e.maskPath!==void 0&&e.maskPath!==null&&(e.maskPath._styles=void 0,h(d,e.maskPath),d.clip()),d.drawImage(x,0,0));var g=c[p.imageKey];g&&d.drawImage(g,(e.layout.width-g.width)/2,(e.layout.height-g.height)/2),e.shapes&&e.shapes.forEach(function(w){w.type==="shape"&&w.pathArgs&&w.pathArgs.d?h(d,new t.default(w.pathArgs.d,w.transform,w.styles)):w.type==="ellipse"&&w.pathArgs?function(N,S){N.save(),v(N,S),S._transform!==void 0&&S._transform!==null&&N.transform(S._transform.a||1,S._transform.b||0,S._transform.c||0,S._transform.d||1,S._transform.tx||0,S._transform.ty||0);var T=S._x-S._radiusX,O=S._y-S._radiusY,M=2*S._radiusX,F=2*S._radiusY,D=M/2*.5522848,E=F/2*.5522848,C=T+M,V=O+F,$=T+M/2,I=O+F/2;N.beginPath(),N.moveTo(T,I),N.bezierCurveTo(T,I-E,$-D,O,$,O),N.bezierCurveTo($+D,O,C,I-E,C,I),N.bezierCurveTo(C,I+E,$+D,V,$,V),N.bezierCurveTo($-D,V,T,I+E,T,I),S._styles&&S._styles.fill?N.fill():S._styles&&S._styles.stroke&&N.stroke(),N.restore()}(d,new r.default(parseFloat(w.pathArgs.x)||0,parseFloat(w.pathArgs.y)||0,parseFloat(w.pathArgs.radiusX)||0,parseFloat(w.pathArgs.radiusY)||0,w.transform,w.styles)):w.type==="rect"&&w.pathArgs&&function(N,S){N.save(),v(N,S),S._transform!==void 0&&S._transform!==null&&N.transform(S._transform.a||1,S._transform.b||0,S._transform.c||0,S._transform.d||1,S._transform.tx||0,S._transform.ty||0);var T=S._x,O=S._y,M=S._width,F=S._height,D=S._cornerRadius;M<2*D&&(D=M/2),F<2*D&&(D=F/2),N.beginPath(),N.moveTo(T+D,O),N.arcTo(T+M,O,T+M,O+F,D),N.arcTo(T+M,O+F,T,O+F,D),N.arcTo(T,O+F,T,O,D),N.arcTo(T,O,T+M,O,D),N.closePath(),S._styles&&S._styles.fill?N.fill():S._styles&&S._styles.stroke&&N.stroke(),N.restore()}(d,new u.default(parseFloat(w.pathArgs.x)||0,parseFloat(w.pathArgs.y)||0,parseFloat(w.pathArgs.width)||0,parseFloat(w.pathArgs.height)||0,parseFloat(w.pathArgs.cornerRadius)||0,w.transform,w.styles))}),d.restore()}}),i};m.default=l},function(o,m,n){var t,r=(t=function(a,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var l in h)Object.prototype.hasOwnProperty.call(h,l)&&(v[l]=h[l])})(a,s)},function(a,s){function v(){this.constructor=a}t(a,s),a.prototype=s===null?Object.create(s):(v.prototype=s.prototype,new v)});Object.defineProperty(m,"__esModule",{value:!0});var u=function(a){function s(v,h,l,i,f,c){var _=a.call(this)||this;return _._x=v,_._y=h,_._radiusX=l,_._radiusY=i,_._transform=f,_._styles=c,_}return r(s,a),s}(n(0).default);m.default=u},function(o,m,n){var t,r=(t=function(a,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var l in h)Object.prototype.hasOwnProperty.call(h,l)&&(v[l]=h[l])})(a,s)},function(a,s){function v(){this.constructor=a}t(a,s),a.prototype=s===null?Object.create(s):(v.prototype=s.prototype,new v)});Object.defineProperty(m,"__esModule",{value:!0});var u=function(a){function s(v,h,l,i,f,c,_){var y=a.call(this)||this;return y._x=v,y._y=h,y._width=l,y._height=i,y._cornerRadius=f,y._transform=c,y._styles=_,y}return r(s,a),s}(n(0).default);m.default=u},function(o,m,n){Object.defineProperty(m,"__esModule",{value:!0});var t=function(){function r(){this._currentTimeMillsecond=function(){return typeof performance>"u"?new Date().getTime():performance.now()},this.noExecutionDelay=!1,this.startValue=0,this.endValue=0,this.duration=0,this.loop=1,this.fillRule=0,this.onStart=function(){},this.onUpdate=function(){},this.onEnd=function(){},this._isRunning=!1,this._mStartTime=0,this._currentFrication=0,this._worker=null}return r.prototype.start=function(u){this.doStart(u)},r.prototype.stop=function(){this._doStop()},Object.defineProperty(r.prototype,"animatedValue",{get:function(){return(this.endValue-this.startValue)*this._currentFrication+this.startValue},enumerable:!1,configurable:!0}),r.prototype.doStart=function(u){this._isRunning=!0,this._mStartTime=this._currentTimeMillsecond(),u&&(this._mStartTime-=u/(this.endValue-this.startValue)*this.duration),this._currentFrication=0,this.noExecutionDelay&&this._worker===null&&(this._worker=new Worker(window.URL.createObjectURL(new Blob([`onmessage = function () {
|
|
11
11
|
setTimeout(function() {postMessage(null)}, 1 / 60)
|
|
12
|
-
}`])))),this.onStart(),this._doFrame()},r.prototype._doStop=function(){this._isRunning=!1,this._worker!==null&&(this._worker.terminate(),this._worker=null)},r.prototype._doFrame=function(){this._isRunning&&(this._doDeltaTime(this._currentTimeMillsecond()-this._mStartTime),this._isRunning&&(this._worker?(this._worker.onmessage=this._doFrame.bind(this),this._worker.postMessage(null)):window.requestAnimationFrame(this._doFrame.bind(this))))},r.prototype._doDeltaTime=function(u){u>=this.duration*this.loop?(this._currentFrication=this.fillRule===1?0:1,this._isRunning=!1):this._currentFrication=u%this.duration/this.duration,this.onUpdate(this.animatedValue),this._isRunning===!1&&(this._worker!==null&&(this._worker.terminate(),this._worker=null),this.onEnd())},r}();m.default=t}]).default})})(svga_lite_min);var svga_lite_minExports=svga_lite_min.exports;const _sfc_main$5={__name:"hbis-svgaPlayer",props:{src:{type:String,required:!0},autoplay:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},progress:{type:Number,default:0},speed:{type:Number,default:1},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"}},emits:["loaded","play","pause","ended","progress","error"],setup(s,{expose:m,emit:n}){vue.useCssVars(e=>({v404d30eb:s.width,a0ec1abc:s.height}));const t=s,r=n,u=vue.ref(null),a=vue.ref(null);let o=null,h=null,d=null;const l=async()=>{try{o=new svga_lite_minExports.Parser,d=await o.load(t.src),h=new svga_lite_minExports.Player(a.value),h.loop=t.loop,h.speed=t.speed,h.onStart=()=>r("play"),h.onPause=()=>r("pause"),h.onEnd=()=>r("ended"),h.onFrame=()=>r("progress",h.progress),await h.setAnimationData(d),t.progress>0&&(h.progress=t.progress),t.autoplay&&h.start(),r("loaded")}catch(e){console.error("SVGA 加载失败:",e),r("error",e)}},i=()=>{h&&h.start()},p=()=>{h&&h.pause()},c=()=>{h&&h.stop()},b=()=>{h&&(h.stop(),h.start())},_=e=>{h&&(h.progress=e)},f=e=>{h&&(h.speed=e)},v=e=>{h&&(h.loop=e)};return m({play:i,pause:p,stop:c,restart:b,setProgress:_,setSpeed:f,setLoop:v}),vue.watch(()=>t.src,async e=>{e&&await l()}),vue.watch(()=>t.loop,e=>{v(e)}),vue.watch(()=>t.speed,e=>{f(e)}),vue.watch(()=>t.progress,e=>{_(e)}),vue.onMounted(async()=>{await vue.nextTick(),await l()}),vue.onUnmounted(()=>{h&&(h.stop(),h=null),o&&(o=null),d=null}),(e,x)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"containerRef",ref:u,class:"svga-player-container"},[vue.createElementVNode("canvas",{ref_key:"canvasRef",ref:a,class:"svga-player-canvas"},null,512)],512))}},HbisSvgaPlayer=_export_sfc(_sfc_main$5,[["__scopeId","data-v-94c319f8"]]),_hoisted_1$4={class:"search-dropdown"},_hoisted_2$4=["placeholder"],_hoisted_3$2=["onClick"],_hoisted_4$2={class:"item-text"},_sfc_main$4={__name:"hbis-search-input",props:{list:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词搜索"},defaultValue:{type:String,default:""},maxHeight:{type:Number,default:200},showClear:{type:Boolean,default:!0},onFocusShowList:{type:Boolean,default:!0},enterSearch:{type:Boolean,default:!1}},emits:["clearIcon","search","select"],setup(s,{emit:m}){const n=s,t=m,r=vue.ref(n.defaultValue),u=vue.ref(!1),a=vue.ref(!1),o=vue.ref([]);function h(){r.value="",o.value=[],a.value=!1,t("clearIcon","",[])}function d(){if(!n.enterSearch)return;const b=r.value;o.value=n.list.filter(_=>_.label&&_.label.includes(b)),a.value=o.value.length>0,t("search",b,o.value)}function l(){if(n.enterSearch)return;const b=r.value;o.value=n.list.filter(_=>_.label&&_.label.includes(b)),a.value=o.value.length>0,t("search",b,o.value)}function i(){n.onFocusShowList&&(o.value=n.list.filter(b=>b.label&&b.label.includes(r.value)),a.value=!0),u.value=!0}function p(){setTimeout(()=>{u.value=!1,a.value=!1},150)}function c(b){r.value=b.label,a.value=!1,t("select",b)}return vue.onMounted(()=>{n.defaultValue&&(r.value=n.defaultValue)}),(b,_)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$4,[vue.createElementVNode("div",{class:vue.normalizeClass(["input-wrapper",{focus:u.value}])},[vue.withDirectives(vue.createElementVNode("input",{class:"search-input",placeholder:s.placeholder,"onUpdate:modelValue":_[0]||(_[0]=f=>r.value=f),onInput:l,onFocus:i,onBlur:p,onKeyup:vue.withKeys(d,["enter"])},null,40,_hoisted_2$4),[[vue.vModelText,r.value]]),r.value&&s.showClear?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"clear-icon",onClick:h},"×")):vue.createCommentVNode("",!0)],2),a.value&&o.value.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"dropdown-list",style:vue.normalizeStyle({maxHeight:s.maxHeight+"px"})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.value,(f,v)=>(vue.openBlock(),vue.createElementBlock("div",{key:v,class:"dropdown-item",onClick:e=>c(f)},[vue.createElementVNode("span",_hoisted_4$2,vue.toDisplayString(f.label),1)],8,_hoisted_3$2))),128))],4)):vue.createCommentVNode("",!0)]))}},_hoisted_1$3=["src","alt"],_hoisted_2$3=["onClick"],_sfc_main$3={__name:"hbis-swiper",props:{data:{type:Array,default:()=>[]},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},duration:{type:Number,default:500},direction:{type:String,default:"horizontal",validator:s=>["horizontal","vertical"].includes(s)},showIndicators:{type:Boolean,default:!0},indicatorType:{type:String,default:"dots",validator:s=>["dots","numbers","none"].includes(s)},indicatorPosition:{type:String,default:"bottom",validator:s=>["top","bottom","left","right"].includes(s)},showArrows:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},height:{type:[String,Number],default:"300px"},width:{type:[String,Number],default:"100%"},slideWidth:{type:[String,Number],default:"100%"},slideHeight:{type:[String,Number],default:"100%"},indicatorColor:{type:String,default:"#ffffff"},indicatorActiveColor:{type:String,default:"#ffffff"},indicatorSize:{type:[String,Number],default:8},touchRatio:{type:Number,default:.5},threshold:{type:Number,default:50}},emits:["change","transition-start","transition-end"],setup(s,{expose:m,emit:n}){const t=s,r=n,u=vue.ref(null),a=vue.ref(0),o=vue.ref(!1),h=vue.ref(!1),d=vue.ref(0),l=vue.ref(0),i=vue.ref(0),p=vue.ref(null);vue.ref(!1);const c=vue.computed(()=>!t.loop||t.data.length<=1?t.data:[t.data[t.data.length-1],...t.data,t.data[0]]),b=vue.computed(()=>({width:typeof t.width=="number"?`${t.width}px`:t.width,height:typeof t.height=="number"?`${t.height}px`:t.height,position:"relative",overflow:"hidden"})),_=vue.computed(()=>({transform:`translate(${t.direction==="horizontal"?`${i.value}px, 0`:`0, ${i.value}px`})`,transition:o.value?`transform ${t.duration}ms ease`:"none",display:"flex",flexDirection:t.direction==="horizontal"?"row":"column",width:t.direction==="horizontal"?"100%":"auto",height:t.direction==="horizontal"?"100%":"auto"})),f=vue.computed(()=>({width:typeof t.slideWidth=="number"?`${t.slideWidth}px`:t.slideWidth,height:typeof t.slideHeight=="number"?`${t.slideHeight}px`:t.slideHeight,flexShrink:0,overflow:"hidden"})),v=vue.computed(()=>({backgroundColor:t.indicatorColor,width:t.indicatorType==="numbers"?"24px":`${t.indicatorSize}px`,height:`${t.indicatorSize}px`,borderRadius:t.indicatorType==="numbers"?"4px":"50%"})),e=vue.computed(()=>!t.loop||t.data.length<=1?a.value:(a.value-1+t.data.length)%t.data.length),x=()=>{if(!u.value)return;const E=t.direction==="horizontal"?u.value.offsetWidth:u.value.offsetHeight;E&&(i.value=-a.value*E)},y=E=>{o.value||h.value||E<0||E>=c.value.length||(o.value=!0,a.value=E,r("change",e.value))},w=()=>{o.value||h.value||(o.value=!0,a.value++,r("change",e.value))},N=()=>{o.value||h.value||(o.value=!0,a.value--,r("change",e.value))},S=()=>{o.value=!1,r("transition-end",e.value),t.loop&&t.data.length>1&&(a.value===0?(o.value=!0,a.value=c.value.length-2,setTimeout(()=>{o.value=!1},0)):a.value===c.value.length-1&&(o.value=!0,a.value=1,setTimeout(()=>{o.value=!1},0)))},C=()=>{$(),t.autoplay&&t.data.length>1&&(p.value=setInterval(()=>{w()},t.interval))},$=()=>{p.value&&(clearInterval(p.value),p.value=null)},M=E=>{var O,I;if(E.touches.length!==1)return;$(),h.value=!0;const A=E.touches[0];d.value=A.clientX||A.pageX,l.value=A.clientY||A.pageY;const V=t.direction==="horizontal"?(O=u.value)==null?void 0:O.offsetWidth:(I=u.value)==null?void 0:I.offsetHeight;i.value=-a.value*(V||0)},F=E=>{var T,B;if(!h.value)return;const A=E.touches[0],V=A.clientX||A.pageX,O=A.clientY||A.pageY,I=V-d.value,R=O-l.value,g=t.direction==="horizontal"?(T=u.value)==null?void 0:T.offsetWidth:(B=u.value)==null?void 0:B.offsetHeight,k=t.direction==="horizontal"?I:R;i.value=-a.value*(g||0)+k*t.touchRatio},D=()=>{var O,I;if(!h.value)return;h.value=!1;const E=t.direction==="horizontal"?(O=u.value)==null?void 0:O.offsetWidth:(I=u.value)==null?void 0:I.offsetHeight,A=-a.value*(E||0),V=i.value-A;Math.abs(V)>t.threshold?V>0?N():w():(o.value=!0,i.value=A,setTimeout(()=>{o.value=!1},t.duration)),C()};return vue.watch(()=>t.data,()=>{a.value=t.loop?1:0,x()},{immediate:!0}),vue.watch(()=>t.autoplay,E=>{E?C():$()}),vue.watch(a,()=>{x()}),vue.onMounted(()=>{var A;x(),C();const E=(A=u.value)==null?void 0:A.parentElement;E&&(E.addEventListener("touchstart",M,{passive:!0}),E.addEventListener("touchmove",F,{passive:!0}),E.addEventListener("touchend",D,{passive:!0})),window.addEventListener("resize",x)}),vue.onUnmounted(()=>{var A;$();const E=(A=u.value)==null?void 0:A.parentElement;E&&(E.removeEventListener("touchstart",M),E.removeEventListener("touchmove",F),E.removeEventListener("touchend",D)),window.removeEventListener("resize",x)}),m({next:w,prev:N,goToSlide:y,startAutoplay:C,stopAutoplay:$}),(E,A)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-swiper",{"is-vertical":s.direction==="vertical"}]),style:vue.normalizeStyle(b.value)},[vue.createElementVNode("div",{class:"swiper-wrapper",ref_key:"wrapperRef",ref:u,style:vue.normalizeStyle(_.value),onTransitionend:S},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value,(V,O)=>(vue.openBlock(),vue.createElementBlock("div",{class:"swiper-slide",key:O,style:vue.normalizeStyle(f.value)},[vue.renderSlot(E.$slots,"default",{item:V,index:O},()=>[vue.createElementVNode("img",{src:V,alt:`slide-${O}`,class:"swiper-image"},null,8,_hoisted_1$3)],!0)],4))),128))],36),s.showIndicators&&c.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["swiper-indicators",s.indicatorPosition])},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value,(V,O)=>(vue.openBlock(),vue.createElementBlock("span",{key:O,class:vue.normalizeClass(["indicator",{active:a.value===O,"is-dots":s.indicatorType==="dots","is-numbers":s.indicatorType==="numbers"}]),style:vue.normalizeStyle(v.value),onClick:I=>y(O)},[s.indicatorType==="numbers"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(O+1),1)],64)):vue.createCommentVNode("",!0)],14,_hoisted_2$3))),128))],2)):vue.createCommentVNode("",!0),s.showArrows&&c.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"swiper-arrow swiper-arrow-prev",onClick:N},[vue.renderSlot(E.$slots,"arrow-prev",{},()=>[A[0]||(A[0]=vue.createElementVNode("span",{class:"arrow-icon"},"‹",-1))],!0)])):vue.createCommentVNode("",!0),s.showArrows&&c.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:"swiper-arrow swiper-arrow-next",onClick:w},[vue.renderSlot(E.$slots,"arrow-next",{},()=>[A[1]||(A[1]=vue.createElementVNode("span",{class:"arrow-icon"},"›",-1))],!0)])):vue.createCommentVNode("",!0)],6))}},hbisSwiper=_export_sfc(_sfc_main$3,[["__scopeId","data-v-61e2df95"]]),_hoisted_1$2={class:"dropdown-filter"},_hoisted_2$2={class:"filter-container"},_hoisted_3$1=["onClick"],_hoisted_4$1={class:"filter-label"},_hoisted_5$1={class:"filter-value-group"},_hoisted_6$1={class:"filter-value"},_hoisted_7$1=["onClick"],_sfc_main$2={__name:"hbis-dropdown-select",props:{options:{type:Array,default:()=>[]},modelValue:{type:Object,default:()=>({})},showArrow:{type:Boolean,default:!0},listHeight:{type:Number,default:0},chosenColor:{type:String,default:"#ee0a24"},unChosenColor:{type:String,default:"#000"},showScrollBar:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(s,{emit:m}){const n=s,t=m,r=vue.ref(-1),u=vue.ref(n.options),a=l=>{r.value===l?r.value=-1:r.value=l},o=(l,i,p)=>{const c={...n.modelValue};c[l.key]=i.value,t("update:modelValue",c),t("change",{item:l,option:i,index:p}),r.value=-1},h=l=>{const i=n.modelValue[l.key];if(i!==void 0){const p=l.options.find(c=>c.value===i);return p?p.label:"请选择"}return"请选择"},d=(l,i)=>n.modelValue[l.key]===i.value;return(l,i)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("div",_hoisted_2$2,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(u.value,(p,c)=>(vue.openBlock(),vue.createElementBlock("div",{key:c,class:vue.normalizeClass(["filter-item",{active:r.value===c}])},[vue.createElementVNode("div",{class:"filter-header",onClick:b=>a(c)},[vue.createElementVNode("span",_hoisted_4$1,vue.toDisplayString(p.label),1),vue.createElementVNode("div",_hoisted_5$1,[vue.createElementVNode("span",_hoisted_6$1,vue.toDisplayString(h(p)),1),n.showArrow?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["arrow",{up:r.value===c}])},null,2)):vue.createCommentVNode("",!0)])],8,_hoisted_3$1),r.value===c?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass([n.showScrollBar?"dropdown-menu-show":"dropdown-menu-hide"]),style:vue.normalizeStyle(n.listHeight?`height: ${n.listHeight}px;`:`height: ${p.options.length*40}px;`)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p.options,(b,_)=>(vue.openBlock(),vue.createElementBlock("div",{key:_,class:vue.normalizeClass(["dropdown-item",{selected:d(p,b)}]),onClick:f=>o(p,b,c)},[vue.createElementVNode("span",{style:vue.normalizeStyle(d(p,b)?`color: ${n.chosenColor};`:`color: ${n.unChosenColor};`)},vue.toDisplayString(b.label),5)],10,_hoisted_7$1))),128))],6)):vue.createCommentVNode("",!0)],2))),128))])]))}},hbisDropdownSelect=_export_sfc(_sfc_main$2,[["__scopeId","data-v-be095d5d"]]),_hoisted_1$1={key:0,class:"hbis-password-input"},_hoisted_2$1={class:"password-dialog"},_hoisted_3={class:"password-header"},_hoisted_4={class:"password-title"},_hoisted_5={class:"password-body"},_hoisted_6={class:"password-input-container"},_hoisted_7={key:0,class:"password-visible"},_hoisted_8={key:1,class:"password-hidden"},_hoisted_9={class:"password-keyboard"},_hoisted_10=["onClick"],_hoisted_11={class:"password-footer"},_sfc_main$1={__name:"hbis-password-input",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"请输入密码"},confirmText:{type:String,default:"确定"},maxLength:{type:Number,default:6},showPassword:{type:Boolean,default:!1},keyboardLayout:{type:Array,default:()=>[["1","2","3"],["4","5","6"],["7","8","9"],["清除","0","删除"]]}},emits:["complete","close","confirm"],setup(s,{emit:m}){const n=s,t=m,r=vue.ref([]),u=l=>["清除","删除"].includes(l);vue.watch(r,l=>{if(l.length===n.maxLength){const i=l.join("");t("complete",i)}},{deep:!0});const a=l=>{l==="清除"?r.value=[]:l==="删除"?r.value=r.value.slice(0,-1):/^[0-9]$/.test(l)&&r.value.length<n.maxLength&&r.value.push(l)},o=()=>{},h=()=>{t("close"),t("update:visible",!1)},d=()=>{const l=r.value.join("");t("confirm",l)};return vue.onMounted(()=>{r.value=[]}),vue.watch(()=>n.visible,l=>{l&&(r.value=[])}),(l,i)=>s.visible?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1,[vue.createElementVNode("div",{class:"password-overlay",onClick:o}),vue.createElementVNode("div",_hoisted_2$1,[vue.createElementVNode("div",_hoisted_3,[vue.createElementVNode("h3",_hoisted_4,vue.toDisplayString(s.title),1),vue.createElementVNode("button",{class:"password-close",onClick:h},"×")]),vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("div",_hoisted_6,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.maxLength,(p,c)=>(vue.openBlock(),vue.createElementBlock("div",{key:c,class:"password-input-item"},[s.showPassword?(vue.openBlock(),vue.createElementBlock("span",_hoisted_7,vue.toDisplayString(r.value[c]||""),1)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_8,vue.toDisplayString(r.value[c]?"●":""),1))]))),128))]),vue.createElementVNode("div",_hoisted_9,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.keyboardLayout,(p,c)=>(vue.openBlock(),vue.createElementBlock("div",{key:c,class:"keyboard-row"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p,(b,_)=>(vue.openBlock(),vue.createElementBlock("button",{key:_,class:vue.normalizeClass(["keyboard-key",{"keyboard-key-action":u(b)}]),onClick:f=>a(b)},vue.toDisplayString(b),11,_hoisted_10))),128))]))),128))])]),vue.createElementVNode("div",_hoisted_11,[vue.createElementVNode("button",{class:"password-cancel",onClick:h},"取消"),vue.createElementVNode("button",{class:"password-confirm",onClick:d},vue.toDisplayString(s.confirmText),1)])])])):vue.createCommentVNode("",!0)}},hbisPasswordInput=_export_sfc(_sfc_main$1,[["__scopeId","data-v-69d6c0db"]]),_hoisted_1={class:"hbis-empty-content"},_hoisted_2=["src"],_sfc_main={__name:"hbis-empty",props:{visible:{type:Boolean,default:!0},text:{type:String,default:"暂无数据"},showIcon:{type:Boolean,default:!0},showText:{type:Boolean,default:!0},icon:{type:String,default:""},iconWidth:{type:[String,Number],default:200},iconHeight:{type:[String,Number],default:200},textColor:{type:String,default:"#999999"},textFontSize:{type:[String,Number],default:14},containerStyle:{type:Object,default:()=>({})}},setup(s){const m=s,n={width:typeof m.iconWidth=="number"?`${m.iconWidth}px`:m.iconWidth,height:typeof m.iconHeight=="number"?`${m.iconHeight}px`:m.iconHeight},t={color:m.textColor,fontSize:typeof m.textFontSize=="number"?`${m.textFontSize}px`:m.textFontSize};return(r,u)=>s.visible?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-empty-container",style:vue.normalizeStyle(s.containerStyle)},[vue.renderSlot(r.$slots,"default",{},()=>[vue.createElementVNode("div",_hoisted_1,[s.showIcon?(vue.openBlock(),vue.createElementBlock("image",{key:0,src:s.icon,style:n,class:"hbis-empty-image",mode:"aspectFit"},null,8,_hoisted_2)):vue.createCommentVNode("",!0),s.showText?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:t,class:"hbis-empty-text"},vue.toDisplayString(s.text),1)):vue.createCommentVNode("",!0)])],!0)],4)):vue.createCommentVNode("",!0)}},hbisEmpty=_export_sfc(_sfc_main,[["__scopeId","data-v-230efa74"]]);exports.C1=C1;exports.C2=C2;exports.HbisAutoScrollList=HbisAutoScrollList;exports.HbisSmsInput=HbisSmsInput;exports.HbisSvgaPlayer=HbisSvgaPlayer;exports.HbisWaterfall=HbisWaterfall;exports.hbisAutoScrollList=HbisAutoScrollList;exports.hbisDateStrip=hbisDateStrip;exports.hbisDropDownSelect=hbisDropdownSelect;exports.hbisEmpty=hbisEmpty;exports.hbisLoading=hbisLoading;exports.hbisPasswordInput=hbisPasswordInput;exports.hbisPreviewImage=_sfc_main$a;exports.hbisSearchInput=_sfc_main$4;exports.hbisSmsInput=HbisSmsInput;exports.hbisSvgaPlayer=HbisSvgaPlayer;exports.hbisSwiper=hbisSwiper;exports.hbisWaterfall=HbisWaterfall;
|
|
12
|
+
}`])))),this.onStart(),this._doFrame()},r.prototype._doStop=function(){this._isRunning=!1,this._worker!==null&&(this._worker.terminate(),this._worker=null)},r.prototype._doFrame=function(){this._isRunning&&(this._doDeltaTime(this._currentTimeMillsecond()-this._mStartTime),this._isRunning&&(this._worker?(this._worker.onmessage=this._doFrame.bind(this),this._worker.postMessage(null)):window.requestAnimationFrame(this._doFrame.bind(this))))},r.prototype._doDeltaTime=function(u){u>=this.duration*this.loop?(this._currentFrication=this.fillRule===1?0:1,this._isRunning=!1):this._currentFrication=u%this.duration/this.duration,this.onUpdate(this.animatedValue),this._isRunning===!1&&(this._worker!==null&&(this._worker.terminate(),this._worker=null),this.onEnd())},r}();m.default=t}]).default})})(svga_lite_min);var svga_lite_minExports=svga_lite_min.exports;const _sfc_main$6={__name:"hbis-svgaPlayer",props:{src:{type:String,required:!0},autoplay:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},progress:{type:Number,default:0},speed:{type:Number,default:1},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"}},emits:["loaded","play","pause","ended","progress","error"],setup(o,{expose:m,emit:n}){vue.useCssVars(e=>({v5ce75b7f:o.width,v26351a8e:o.height}));const t=o,r=n,u=vue.ref(null),a=vue.ref(null);let s=null,v=null,h=null;const l=async()=>{try{s=new svga_lite_minExports.Parser,h=await s.load(t.src),v=new svga_lite_minExports.Player(a.value),v.loop=t.loop,v.speed=t.speed,v.onStart=()=>r("play"),v.onPause=()=>r("pause"),v.onEnd=()=>r("ended"),v.onFrame=()=>r("progress",v.progress),await v.setAnimationData(h),t.progress>0&&(v.progress=t.progress),t.autoplay&&v.start(),r("loaded")}catch(e){console.error("SVGA 加载失败:",e),r("error",e)}},i=()=>{v&&v.start()},f=()=>{v&&v.pause()},c=()=>{v&&v.stop()},_=()=>{v&&(v.stop(),v.start())},y=e=>{v&&(v.progress=e)},d=e=>{v&&(v.speed=e)},p=e=>{v&&(v.loop=e)};return m({play:i,pause:f,stop:c,restart:_,setProgress:y,setSpeed:d,setLoop:p}),vue.watch(()=>t.src,async e=>{e&&await l()}),vue.watch(()=>t.loop,e=>{p(e)}),vue.watch(()=>t.speed,e=>{d(e)}),vue.watch(()=>t.progress,e=>{y(e)}),vue.onMounted(async()=>{await vue.nextTick(),await l()}),vue.onUnmounted(()=>{v&&(v.stop(),v=null),s&&(s=null),h=null}),(e,x)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"containerRef",ref:u,class:"svga-player-container"},[vue.createElementVNode("canvas",{ref_key:"canvasRef",ref:a,class:"svga-player-canvas"},null,512)],512))}},HbisSvgaPlayer=_export_sfc(_sfc_main$6,[["__scopeId","data-v-6b83dcf1"]]),_hoisted_1$5={class:"search-dropdown"},_hoisted_2$5=["placeholder"],_hoisted_3$3=["onClick"],_hoisted_4$2={class:"item-text"},_sfc_main$5={__name:"hbis-search-input",props:{list:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词搜索"},defaultValue:{type:String,default:""},maxHeight:{type:Number,default:200},showClear:{type:Boolean,default:!0},onFocusShowList:{type:Boolean,default:!0},enterSearch:{type:Boolean,default:!1}},emits:["clearIcon","search","select"],setup(o,{emit:m}){const n=o,t=m,r=vue.ref(n.defaultValue),u=vue.ref(!1),a=vue.ref(!1),s=vue.ref([]);function v(){r.value="",s.value=[],a.value=!1,t("clearIcon","",[])}function h(){if(!n.enterSearch)return;const _=r.value;s.value=n.list.filter(y=>y.label&&y.label.includes(_)),a.value=s.value.length>0,t("search",_,s.value)}function l(){if(n.enterSearch)return;const _=r.value;s.value=n.list.filter(y=>y.label&&y.label.includes(_)),a.value=s.value.length>0,t("search",_,s.value)}function i(){n.onFocusShowList&&(s.value=n.list.filter(_=>_.label&&_.label.includes(r.value)),a.value=!0),u.value=!0}function f(){setTimeout(()=>{u.value=!1,a.value=!1},150)}function c(_){r.value=_.label,a.value=!1,t("select",_)}return vue.onMounted(()=>{n.defaultValue&&(r.value=n.defaultValue)}),(_,y)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[vue.createElementVNode("div",{class:vue.normalizeClass(["input-wrapper",{focus:u.value}])},[vue.withDirectives(vue.createElementVNode("input",{class:"search-input",placeholder:o.placeholder,"onUpdate:modelValue":y[0]||(y[0]=d=>r.value=d),onInput:l,onFocus:i,onBlur:f,onKeyup:vue.withKeys(h,["enter"])},null,40,_hoisted_2$5),[[vue.vModelText,r.value]]),r.value&&o.showClear?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"clear-icon",onClick:v},"×")):vue.createCommentVNode("",!0)],2),a.value&&s.value.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"dropdown-list",style:vue.normalizeStyle({maxHeight:o.maxHeight+"px"})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.value,(d,p)=>(vue.openBlock(),vue.createElementBlock("div",{key:p,class:"dropdown-item",onClick:e=>c(d)},[vue.createElementVNode("span",_hoisted_4$2,vue.toDisplayString(d.label),1)],8,_hoisted_3$3))),128))],4)):vue.createCommentVNode("",!0)]))}},_hoisted_1$4=["src","alt"],_hoisted_2$4=["onClick"],_sfc_main$4={__name:"hbis-swiper",props:{data:{type:Array,default:()=>[]},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},duration:{type:Number,default:500},direction:{type:String,default:"horizontal",validator:o=>["horizontal","vertical"].includes(o)},showIndicators:{type:Boolean,default:!0},indicatorType:{type:String,default:"dots",validator:o=>["dots","numbers","none"].includes(o)},indicatorPosition:{type:String,default:"bottom",validator:o=>["top","bottom","left","right"].includes(o)},showArrows:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},height:{type:[String,Number],default:"300px"},width:{type:[String,Number],default:"100%"},slideWidth:{type:[String,Number],default:"100%"},slideHeight:{type:[String,Number],default:"100%"},indicatorColor:{type:String,default:"#ffffff"},indicatorActiveColor:{type:String,default:"#ffffff"},indicatorSize:{type:[String,Number],default:8},touchRatio:{type:Number,default:.5},threshold:{type:Number,default:50}},emits:["change","transition-start","transition-end"],setup(o,{expose:m,emit:n}){const t=o,r=n,u=vue.ref(null),a=vue.ref(0),s=vue.ref(!1),v=vue.ref(!1),h=vue.ref(0),l=vue.ref(0),i=vue.ref(0),f=vue.ref(null);vue.ref(!1);const c=vue.computed(()=>!t.loop||t.data.length<=1?t.data:[t.data[t.data.length-1],...t.data,t.data[0]]),_=vue.computed(()=>({width:typeof t.width=="number"?`${t.width}px`:t.width,height:typeof t.height=="number"?`${t.height}px`:t.height,position:"relative",overflow:"hidden"})),y=vue.computed(()=>({transform:`translate(${t.direction==="horizontal"?`${i.value}px, 0`:`0, ${i.value}px`})`,transition:s.value?`transform ${t.duration}ms ease`:"none",display:"flex",flexDirection:t.direction==="horizontal"?"row":"column",width:t.direction==="horizontal"?"100%":"auto",height:t.direction==="horizontal"?"100%":"auto"})),d=vue.computed(()=>({width:typeof t.slideWidth=="number"?`${t.slideWidth}px`:t.slideWidth,height:typeof t.slideHeight=="number"?`${t.slideHeight}px`:t.slideHeight,flexShrink:0,overflow:"hidden"})),p=vue.computed(()=>({backgroundColor:t.indicatorColor,width:t.indicatorType==="numbers"?"24px":`${t.indicatorSize}px`,height:`${t.indicatorSize}px`,borderRadius:t.indicatorType==="numbers"?"4px":"50%"})),e=vue.computed(()=>!t.loop||t.data.length<=1?a.value:(a.value-1+t.data.length)%t.data.length),x=()=>{if(!u.value)return;const E=t.direction==="horizontal"?u.value.offsetWidth:u.value.offsetHeight;E&&(i.value=-a.value*E)},g=E=>{s.value||v.value||E<0||E>=c.value.length||(s.value=!0,a.value=E,r("change",e.value))},w=()=>{s.value||v.value||(s.value=!0,a.value++,r("change",e.value))},N=()=>{s.value||v.value||(s.value=!0,a.value--,r("change",e.value))},S=()=>{s.value=!1,r("transition-end",e.value),t.loop&&t.data.length>1&&(a.value===0?(s.value=!0,a.value=c.value.length-2,setTimeout(()=>{s.value=!1},0)):a.value===c.value.length-1&&(s.value=!0,a.value=1,setTimeout(()=>{s.value=!1},0)))},T=()=>{O(),t.autoplay&&t.data.length>1&&(f.value=setInterval(()=>{w()},t.interval))},O=()=>{f.value&&(clearInterval(f.value),f.value=null)},M=E=>{var $,I;if(E.touches.length!==1)return;O(),v.value=!0;const C=E.touches[0];h.value=C.clientX||C.pageX,l.value=C.clientY||C.pageY;const V=t.direction==="horizontal"?($=u.value)==null?void 0:$.offsetWidth:(I=u.value)==null?void 0:I.offsetHeight;i.value=-a.value*(V||0)},F=E=>{var A,B;if(!v.value)return;const C=E.touches[0],V=C.clientX||C.pageX,$=C.clientY||C.pageY,I=V-h.value,R=$-l.value,b=t.direction==="horizontal"?(A=u.value)==null?void 0:A.offsetWidth:(B=u.value)==null?void 0:B.offsetHeight,k=t.direction==="horizontal"?I:R;i.value=-a.value*(b||0)+k*t.touchRatio},D=()=>{var $,I;if(!v.value)return;v.value=!1;const E=t.direction==="horizontal"?($=u.value)==null?void 0:$.offsetWidth:(I=u.value)==null?void 0:I.offsetHeight,C=-a.value*(E||0),V=i.value-C;Math.abs(V)>t.threshold?V>0?N():w():(s.value=!0,i.value=C,setTimeout(()=>{s.value=!1},t.duration)),T()};return vue.watch(()=>t.data,()=>{a.value=t.loop?1:0,x()},{immediate:!0}),vue.watch(()=>t.autoplay,E=>{E?T():O()}),vue.watch(a,()=>{x()}),vue.onMounted(()=>{var C;x(),T();const E=(C=u.value)==null?void 0:C.parentElement;E&&(E.addEventListener("touchstart",M,{passive:!0}),E.addEventListener("touchmove",F,{passive:!0}),E.addEventListener("touchend",D,{passive:!0})),window.addEventListener("resize",x)}),vue.onUnmounted(()=>{var C;O();const E=(C=u.value)==null?void 0:C.parentElement;E&&(E.removeEventListener("touchstart",M),E.removeEventListener("touchmove",F),E.removeEventListener("touchend",D)),window.removeEventListener("resize",x)}),m({next:w,prev:N,goToSlide:g,startAutoplay:T,stopAutoplay:O}),(E,C)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["hbis-swiper",{"is-vertical":o.direction==="vertical"}]),style:vue.normalizeStyle(_.value)},[vue.createElementVNode("div",{class:"swiper-wrapper",ref_key:"wrapperRef",ref:u,style:vue.normalizeStyle(y.value),onTransitionend:S},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value,(V,$)=>(vue.openBlock(),vue.createElementBlock("div",{class:"swiper-slide",key:$,style:vue.normalizeStyle(d.value)},[vue.renderSlot(E.$slots,"default",{item:V,index:$},()=>[vue.createElementVNode("img",{src:V,alt:`slide-${$}`,class:"swiper-image"},null,8,_hoisted_1$4)],!0)],4))),128))],36),o.showIndicators&&c.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["swiper-indicators",o.indicatorPosition])},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.value,(V,$)=>(vue.openBlock(),vue.createElementBlock("span",{key:$,class:vue.normalizeClass(["indicator",{active:a.value===$,"is-dots":o.indicatorType==="dots","is-numbers":o.indicatorType==="numbers"}]),style:vue.normalizeStyle(p.value),onClick:I=>g($)},[o.indicatorType==="numbers"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString($+1),1)],64)):vue.createCommentVNode("",!0)],14,_hoisted_2$4))),128))],2)):vue.createCommentVNode("",!0),o.showArrows&&c.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"swiper-arrow swiper-arrow-prev",onClick:N},[vue.renderSlot(E.$slots,"arrow-prev",{},()=>[C[0]||(C[0]=vue.createElementVNode("span",{class:"arrow-icon"},"‹",-1))],!0)])):vue.createCommentVNode("",!0),o.showArrows&&c.value.length>1?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:"swiper-arrow swiper-arrow-next",onClick:w},[vue.renderSlot(E.$slots,"arrow-next",{},()=>[C[1]||(C[1]=vue.createElementVNode("span",{class:"arrow-icon"},"›",-1))],!0)])):vue.createCommentVNode("",!0)],6))}},hbisSwiper=_export_sfc(_sfc_main$4,[["__scopeId","data-v-61e2df95"]]),_hoisted_1$3={class:"dropdown-filter"},_hoisted_2$3={class:"filter-container"},_hoisted_3$2=["onClick"],_hoisted_4$1={class:"filter-label"},_hoisted_5$1={class:"filter-value-group"},_hoisted_6$1={class:"filter-value"},_hoisted_7$1=["onClick"],_sfc_main$3={__name:"hbis-dropdown-select",props:{options:{type:Array,default:()=>[]},modelValue:{type:Object,default:()=>({})},showArrow:{type:Boolean,default:!0},listHeight:{type:Number,default:0},chosenColor:{type:String,default:"#ee0a24"},unChosenColor:{type:String,default:"#000"},showScrollBar:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(o,{emit:m}){const n=o,t=m,r=vue.ref(-1),u=vue.ref(n.options),a=l=>{r.value===l?r.value=-1:r.value=l},s=(l,i,f)=>{const c={...n.modelValue};c[l.key]=i.value,t("update:modelValue",c),t("change",{item:l,option:i,index:f}),r.value=-1},v=l=>{const i=n.modelValue[l.key];if(i!==void 0){const f=l.options.find(c=>c.value===i);return f?f.label:"请选择"}return"请选择"},h=(l,i)=>n.modelValue[l.key]===i.value;return(l,i)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[vue.createElementVNode("div",_hoisted_2$3,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(u.value,(f,c)=>(vue.openBlock(),vue.createElementBlock("div",{key:c,class:vue.normalizeClass(["filter-item",{active:r.value===c}])},[vue.createElementVNode("div",{class:"filter-header",onClick:_=>a(c)},[vue.createElementVNode("span",_hoisted_4$1,vue.toDisplayString(f.label),1),vue.createElementVNode("div",_hoisted_5$1,[vue.createElementVNode("span",_hoisted_6$1,vue.toDisplayString(v(f)),1),n.showArrow?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["arrow",{up:r.value===c}])},null,2)):vue.createCommentVNode("",!0)])],8,_hoisted_3$2),r.value===c?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass([n.showScrollBar?"dropdown-menu-show":"dropdown-menu-hide"]),style:vue.normalizeStyle(n.listHeight?`height: ${n.listHeight}px;`:`height: ${f.options.length*40}px;`)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(f.options,(_,y)=>(vue.openBlock(),vue.createElementBlock("div",{key:y,class:vue.normalizeClass(["dropdown-item",{selected:h(f,_)}]),onClick:d=>s(f,_,c)},[vue.createElementVNode("span",{style:vue.normalizeStyle(h(f,_)?`color: ${n.chosenColor};`:`color: ${n.unChosenColor};`)},vue.toDisplayString(_.label),5)],10,_hoisted_7$1))),128))],6)):vue.createCommentVNode("",!0)],2))),128))])]))}},hbisDropdownSelect=_export_sfc(_sfc_main$3,[["__scopeId","data-v-1a98ef80"]]),_hoisted_1$2={key:0,class:"hbis-password-input"},_hoisted_2$2={class:"password-dialog"},_hoisted_3$1={class:"password-header"},_hoisted_4={class:"password-title"},_hoisted_5={class:"password-body"},_hoisted_6={class:"password-input-container"},_hoisted_7={key:0,class:"password-visible"},_hoisted_8={key:1,class:"password-hidden"},_hoisted_9={class:"password-keyboard"},_hoisted_10=["onClick"],_hoisted_11={class:"password-footer"},_sfc_main$2={__name:"hbis-password-input",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"请输入密码"},confirmText:{type:String,default:"确定"},maxLength:{type:Number,default:6},showPassword:{type:Boolean,default:!1},keyboardLayout:{type:Array,default:()=>[["1","2","3"],["4","5","6"],["7","8","9"],["清除","0","删除"]]}},emits:["complete","close","confirm"],setup(o,{emit:m}){const n=o,t=m,r=vue.ref([]),u=l=>["清除","删除"].includes(l);vue.watch(r,l=>{if(l.length===n.maxLength){const i=l.join("");t("complete",i)}},{deep:!0});const a=l=>{l==="清除"?r.value=[]:l==="删除"?r.value=r.value.slice(0,-1):/^[0-9]$/.test(l)&&r.value.length<n.maxLength&&r.value.push(l)},s=()=>{},v=()=>{t("close"),t("update:visible",!1)},h=()=>{const l=r.value.join("");t("confirm",l)};return vue.onMounted(()=>{r.value=[]}),vue.watch(()=>n.visible,l=>{l&&(r.value=[])}),(l,i)=>o.visible?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("div",{class:"password-overlay",onClick:s}),vue.createElementVNode("div",_hoisted_2$2,[vue.createElementVNode("div",_hoisted_3$1,[vue.createElementVNode("h3",_hoisted_4,vue.toDisplayString(o.title),1),vue.createElementVNode("button",{class:"password-close",onClick:v},"×")]),vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("div",_hoisted_6,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.maxLength,(f,c)=>(vue.openBlock(),vue.createElementBlock("div",{key:c,class:"password-input-item"},[o.showPassword?(vue.openBlock(),vue.createElementBlock("span",_hoisted_7,vue.toDisplayString(r.value[c]||""),1)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_8,vue.toDisplayString(r.value[c]?"●":""),1))]))),128))]),vue.createElementVNode("div",_hoisted_9,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.keyboardLayout,(f,c)=>(vue.openBlock(),vue.createElementBlock("div",{key:c,class:"keyboard-row"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(f,(_,y)=>(vue.openBlock(),vue.createElementBlock("button",{key:y,class:vue.normalizeClass(["keyboard-key",{"keyboard-key-action":u(_)}]),onClick:d=>a(_)},vue.toDisplayString(_),11,_hoisted_10))),128))]))),128))])]),vue.createElementVNode("div",_hoisted_11,[vue.createElementVNode("button",{class:"password-cancel",onClick:v},"取消"),vue.createElementVNode("button",{class:"password-confirm",onClick:h},vue.toDisplayString(o.confirmText),1)])])])):vue.createCommentVNode("",!0)}},hbisPasswordInput=_export_sfc(_sfc_main$2,[["__scopeId","data-v-32ee9eeb"]]),_hoisted_1$1={class:"hbis-empty-content"},_hoisted_2$1=["src"],_sfc_main$1={__name:"hbis-empty",props:{visible:{type:Boolean,default:!0},text:{type:String,default:"暂无数据"},showIcon:{type:Boolean,default:!0},showText:{type:Boolean,default:!0},icon:{type:String,default:""},iconWidth:{type:[String,Number],default:200},iconHeight:{type:[String,Number],default:200},textColor:{type:String,default:"#999999"},textFontSize:{type:[String,Number],default:14},containerStyle:{type:Object,default:()=>({})}},setup(o){const m=o,n={width:typeof m.iconWidth=="number"?`${m.iconWidth}px`:m.iconWidth,height:typeof m.iconHeight=="number"?`${m.iconHeight}px`:m.iconHeight},t={color:m.textColor,fontSize:typeof m.textFontSize=="number"?`${m.textFontSize}px`:m.textFontSize};return(r,u)=>o.visible?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"hbis-empty-container",style:vue.normalizeStyle(o.containerStyle)},[vue.renderSlot(r.$slots,"default",{},()=>[vue.createElementVNode("div",_hoisted_1$1,[o.showIcon?(vue.openBlock(),vue.createElementBlock("image",{key:0,src:o.icon,style:n,class:"hbis-empty-image",mode:"aspectFit"},null,8,_hoisted_2$1)):vue.createCommentVNode("",!0),o.showText?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:t,class:"hbis-empty-text"},vue.toDisplayString(o.text),1)):vue.createCommentVNode("",!0)])],!0)],4)):vue.createCommentVNode("",!0)}},hbisEmpty=_export_sfc(_sfc_main$1,[["__scopeId","data-v-27a2026a"]]),_hoisted_1=["onClick"],_hoisted_2=["src"],_hoisted_3={class:"hbis-bubble-option-text"},_sfc_main={__name:"hbis-bubble-box",props:{options:{type:Array,default:()=>[]},position:{type:String,default:"top",validator:o=>["top","bottom","left","right"].includes(o)},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:280},height:{type:[String,Number],default:""},bgColor:{type:String,default:"#ffffff"},textColor:{type:String,default:"#333333"},optionItemPadding:{type:String,default:"20rpx 30rpx"},disabled:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},zIndex:{type:Number,default:1002}},emits:["open","close","click"],setup(o,{expose:m,emit:n}){const t=o,r=n,u=vue.ref(!1),a=vue.ref(null),s=vue.computed(()=>{const y={zIndex:t.zIndex,backgroundColor:t.bgColor};return t.width&&(y.width=typeof t.width=="number"?`${t.width}rpx`:t.width),t.minWidth&&(y.minWidth=typeof t.minWidth=="number"?`${t.minWidth}rpx`:t.minWidth),t.height&&(y.height=typeof t.height=="number"?`${t.height}rpx`:t.height),y}),v=vue.computed(()=>{const y={};return t.height&&(y.maxHeight=typeof t.height=="number"?`${t.height}rpx`:t.height,y.overflowY="auto"),y}),h=y=>{const d={};return y.textColor?d.color=y.textColor:t.textColor&&(d.color=t.textColor),d},l=()=>{u.value?f():i()},i=()=>{u.value=!0,r("open"),setTimeout(()=>{document.addEventListener("click",_)},0)},f=()=>{u.value=!1,r("close"),document.removeEventListener("click",_)},c=(y,d)=>{d.disabled||t.disabled||(r("click",y),t.autoClose&&f())},_=y=>{a.value&&!a.value.contains(y.target)&&f()};return vue.onUnmounted(()=>{document.removeEventListener("click",_)}),m({open:i,close:f}),(y,d)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"bubbleRef",ref:a,class:"hbis-bubble-box"},[vue.createElementVNode("div",{class:"hbis-bubble-trigger",onClick:l},[vue.renderSlot(y.$slots,"default",{},void 0,!0)]),u.value?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["hbis-bubble-popup",[`position-${o.position}`,{"auto-close":o.autoClose}]]),style:vue.normalizeStyle(s.value),onClick:d[0]||(d[0]=vue.withModifiers(()=>{},["stop"]))},[vue.createElementVNode("div",{class:"hbis-bubble-options",style:vue.normalizeStyle(v.value)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(o.options,(p,e)=>(vue.openBlock(),vue.createElementBlock("div",{key:e,class:vue.normalizeClass(["hbis-bubble-option",{disabled:p.disabled||o.disabled}]),style:vue.normalizeStyle(h(p)),onClick:x=>c(e,p)},[p.icon?(vue.openBlock(),vue.createElementBlock("image",{key:0,src:p.icon,class:"hbis-bubble-option-icon",mode:"aspectFit"},null,8,_hoisted_2)):vue.createCommentVNode("",!0),vue.createElementVNode("text",_hoisted_3,vue.toDisplayString(p.text),1)],14,_hoisted_1))),128))],4),vue.createElementVNode("div",{class:vue.normalizeClass(["hbis-bubble-arrow",`arrow-${o.position}`])},null,2)],6)):vue.createCommentVNode("",!0)],512))}},hbisBubbleBox=_export_sfc(_sfc_main,[["__scopeId","data-v-f7ba99b3"]]);exports.C1=C1;exports.C2=C2;exports.HbisAutoScrollList=HbisAutoScrollList;exports.HbisSmsInput=HbisSmsInput;exports.HbisSvgaPlayer=HbisSvgaPlayer;exports.HbisWaterfall=HbisWaterfall;exports.hbisAutoScrollList=HbisAutoScrollList;exports.hbisBubbleBox=hbisBubbleBox;exports.hbisDateStrip=hbisDateStrip;exports.hbisDropDownSelect=hbisDropdownSelect;exports.hbisEmpty=hbisEmpty;exports.hbisLoading=hbisLoading;exports.hbisPasswordInput=hbisPasswordInput;exports.hbisPreviewImage=_sfc_main$b;exports.hbisSearchInput=_sfc_main$5;exports.hbisSmsInput=HbisSmsInput;exports.hbisSvgaPlayer=HbisSvgaPlayer;exports.hbisSwiper=hbisSwiper;exports.hbisWaterfall=HbisWaterfall;
|
|
13
13
|
//# sourceMappingURL=index.cjs.js.map
|