index-58a771d5.js 919 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. import{c as createNamespace,b as makeNumericProp,n as numericProp,d as defineComponent,r as ref,u as useTouch,e as computed,o as addUnit,a3 as useCustomFieldValue,Z as useEventListener,a as createVNode,aS as isSameValue,_ as useRect,s as stopPropagation,aT as addNumber,p as preventDefault,aU as getSizeStyle,$ as clamp,k as withInstall,aB as inject,aF as provide,aw as onBeforeUnmount,aV as onBeforeUpdate,aE as toRef,w as watch,ay as h$1,T as Transition,z as nextTick,R as browser,U as useRoute,G as storage,J as ACCESS_TOKEN,W as queryString,am as listenerMessage,M as state,V as Popup,a6 as postMessage,D as request,aj as commonjsGlobal,ai as getDefaultExportFromCjs,y as onMounted,aW as openBlock,aX as createElementBlock,aI as normalizeStyle,aY as toRefs,x as reactive,aZ as getSecondRPM,A as createTextVNode,F as Fragment,E as showToast,a2 as isVNode,a_ as usePageVisibility,a8 as onUnmounted,I as Icon,a$ as closeToast}from"./index-5e5e4ebc.js";/* empty css */import{T as TheVip}from"./index-cba960e7.js";import{S as Skeleton}from"./index-cceb0595.js";import{a7 as createInjectionKey,G as commonLight,F as c,E as cB,I as cM,J as cE,a8 as fadeInScaleUpTransition,ab as insideModal,ac as insidePopover,L as useConfig,K as useTheme,_ as useMergedState,N as useThemeClass,Z as isMounted,V as useAdjustedTo,a2 as VBinder,a1 as VTarget,ad as resolveSlot,W as VFollower,o as on,a as off,a4 as call}from"./fade-in-scale-up.cssr-b7c54253.js";import{C as Collapse,a as CollapseItem}from"./index-798043e9.js";import{I as Image$1}from"./index-fa23aaeb.js";import{h as api_classLessonCoursewareDetail,i as api_lessonCoursewareDetail}from"./api-078ceffd.js";import"./index-4bcfa431.js";const[name,bem]=createNamespace("slider"),sliderProps$1={min:makeNumericProp(0),max:makeNumericProp(100),step:makeNumericProp(1),range:Boolean,reverse:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:numericProp,buttonSize:numericProp,activeColor:String,inactiveColor:String,modelValue:{type:[Number,Array],default:0}};var stdin_default=defineComponent({name,props:sliderProps$1,emits:["change","dragEnd","dragStart","update:modelValue"],setup(e,{emit:t,slots:r}){let n,s,a;const l=ref(),u=[ref(),ref()],p=ref(),d=useTouch(),f=computed(()=>Number(e.max)-Number(e.min)),_=computed(()=>{const j=e.vertical?"width":"height";return{background:e.inactiveColor,[j]:addUnit(e.barHeight)}}),y=j=>e.range&&Array.isArray(j),b=()=>{const{modelValue:j,min:V}=e;return y(j)?`${(j[1]-j[0])*100/f.value}%`:`${(j-Number(V))*100/f.value}%`},g=()=>{const{modelValue:j,min:V}=e;return y(j)?`${(j[0]-Number(V))*100/f.value}%`:"0%"},m=computed(()=>{const V={[e.vertical?"height":"width"]:b(),background:e.activeColor};p.value&&(V.transition="none");const z=()=>e.vertical?e.reverse?"bottom":"top":e.reverse?"right":"left";return V[z()]=g(),V}),C=j=>{const V=+e.min,z=+e.max,q=+e.step;j=clamp(j,V,z);const H=Math.round((j-V)/q)*q;return addNumber(V,H)},S=()=>{const j=e.modelValue;y(j)?a=j.map(C):a=C(j)},P=j=>{var V,z;const q=(V=j[0])!=null?V:Number(e.min),H=(z=j[1])!=null?z:Number(e.max);return q>H?[H,q]:[q,H]},A=(j,V)=>{y(j)?j=P(j).map(C):j=C(j),isSameValue(j,e.modelValue)||t("update:modelValue",j),V&&!isSameValue(j,a)&&t("change",j)},x=j=>{if(j.stopPropagation(),e.disabled||e.readonly)return;S();const{min:V,reverse:z,vertical:q,modelValue:H}=e,L=useRect(l),B=()=>q?z?L.bottom-j.clientY:j.clientY-L.top:z?L.right-j.clientX:j.clientX-L.left,M=q?L.height:L.width,D=Number(V)+B()/M*f.value;if(y(H)){const[N,F]=H,U=(N+F)/2;D<=U?A([D,F],!0):A([N,D],!0)}else A(D,!0)},R=j=>{e.disabled||e.readonly||(d.start(j),s=e.modelValue,S(),p.value="start")},E=j=>{if(e.disabled||e.readonly)return;p.value==="start"&&t("dragStart",j),preventDefault(j,!0),d.move(j),p.value="dragging";const V=useRect(l),z=e.vertical?d.deltaY.value:d.deltaX.value,q=e.vertical?V.height:V.width;let H=z/q*f.value;if(e.reverse&&(H=-H),y(a)){const L=e.reverse?1-n:n;s[L]=a[L]+H}else s=a+H;A(s)},k=j=>{e.disabled||e.readonly||(p.value==="dragging"&&(A(s,!0),t("dragEnd",j)),p.value="")},I=j=>typeof j=="number"?bem("button-wrapper",["left","right"][j]):bem("button-wrapper",e.reverse?"left":"right"),O=(j,V)=>{const z=p.value==="dragging";if(typeof V=="number"){const q=r[V===0?"left-button":"right-button"];let H;if(z&&Array.isArray(s)&&(H=s[0]>s[1]?n^1:n),q)return q({value:j,dragging:z,dragIndex:H})}return r.button?r.button({value:j,dragging:z}):createVNode("div",{class:bem("button"),style:getSizeStyle(e.buttonSize)},null)},G=j=>{const V=typeof j=="number"?e.modelValue[j]:e.modelValue;return createVNode("div",{ref:u[j!=null?j:0],role:"slider",class:I(j),tabindex:e.disabled?void 0:0,"aria-valuemin":e.min,"aria-valuenow":V,"aria-valuemax":e.max,"aria-disabled":e.disabled||void 0,"aria-readonly":e.readonly||void 0,"aria-orientation":e.vertical?"vertical":"horizontal",onTouchstartPassive:z=>{typeof j=="number"&&(n=j),R(z)},onTouchend:k,onTouchcancel:k,onClick:stopPropagation},[O(V,j)])};return A(e.modelValue),useCustomFieldValue(()=>e.modelValue),u.forEach(j=>{useEventListener("touchmove",E,{target:j})}),()=>createVNode("div",{ref:l,style:_.value,class:bem({vertical:e.vertical,disabled:e.disabled}),onClick:x},[createVNode("div",{class:bem("bar"),style:m.value},[e.range?[G(0),G(1)]:G()])])}});const Slider=withInstall(stdin_default),formItemInjectionKey=createInjectionKey("n-form-item");function useFormItem(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:n}={}){const s=inject(formItemInjectionKey,null);provide(formItemInjectionKey,null);const a=computed(r?()=>r(s):()=>{const{size:p}=e;if(p)return p;if(s){const{mergedSize:d}=s;if(d.value!==void 0)return d.value}return t}),l=computed(n?()=>n(s):()=>{const{disabled:p}=e;return p!==void 0?p:s?s.disabled.value:!1}),u=computed(()=>{const{status:p}=e;return p||(s==null?void 0:s.mergedValidationStatus.value)});return onBeforeUnmount(()=>{s&&s.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:u,nTriggerFormBlur(){s&&s.handleContentBlur()},nTriggerFormChange(){s&&s.handleContentChange()},nTriggerFormFocus(){s&&s.handleContentFocus()},nTriggerFormInput(){s&&s.handleContentInput()}}}const sizeVariables={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},self$1=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,primaryColor:s,baseColor:a,cardColor:l,modalColor:u,popoverColor:p,borderRadius:d,fontSize:f,opacityDisabled:_}=e;return Object.assign(Object.assign({},sizeVariables),{fontSize:f,markFontSize:f,railColor:n,railColorHover:n,fillColor:s,fillColorHover:s,opacityDisabled:_,handleColor:"#FFF",dotColor:l,dotColorModal:u,dotColorPopover:p,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:r,indicatorTextColor:a,indicatorBorderRadius:d,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${s}`,dotBoxShadow:""})},sliderLight={name:"Slider",common:commonLight,self:self$1},sliderLight$1=sliderLight;function isTouchEvent(e){return window.TouchEvent&&e instanceof window.TouchEvent}function useRefs(){const e=ref(new Map),t=r=>n=>{e.value.set(r,n)};return onBeforeUpdate(()=>{e.value.clear()}),[e,t]}const style=c([cB("slider",`
  2. display: block;
  3. padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
  4. position: relative;
  5. z-index: 0;
  6. width: 100%;
  7. cursor: pointer;
  8. user-select: none;
  9. -webkit-user-select: none;
  10. `,[cM("reverse",[cB("slider-handles",[cB("slider-handle-wrapper",`
  11. transform: translate(50%, -50%);
  12. `)]),cB("slider-dots",[cB("slider-dot",`
  13. transform: translateX(50%, -50%);
  14. `)]),cM("vertical",[cB("slider-handles",[cB("slider-handle-wrapper",`
  15. transform: translate(-50%, -50%);
  16. `)]),cB("slider-marks",[cB("slider-mark",`
  17. transform: translateY(calc(-50% + var(--n-dot-height) / 2));
  18. `)]),cB("slider-dots",[cB("slider-dot",`
  19. transform: translateX(-50%) translateY(0);
  20. `)])])]),cM("vertical",`
  21. padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
  22. width: var(--n-rail-width-vertical);
  23. height: 100%;
  24. `,[cB("slider-handles",`
  25. top: calc(var(--n-handle-size) / 2);
  26. right: 0;
  27. bottom: calc(var(--n-handle-size) / 2);
  28. left: 0;
  29. `,[cB("slider-handle-wrapper",`
  30. top: unset;
  31. left: 50%;
  32. transform: translate(-50%, 50%);
  33. `)]),cB("slider-rail",`
  34. height: 100%;
  35. `,[cE("fill",`
  36. top: unset;
  37. right: 0;
  38. bottom: unset;
  39. left: 0;
  40. `)]),cM("with-mark",`
  41. width: var(--n-rail-width-vertical);
  42. margin: 0 32px 0 8px;
  43. `),cB("slider-marks",`
  44. top: calc(var(--n-handle-size) / 2);
  45. right: unset;
  46. bottom: calc(var(--n-handle-size) / 2);
  47. left: 22px;
  48. font-size: var(--n-mark-font-size);
  49. `,[cB("slider-mark",`
  50. transform: translateY(50%);
  51. white-space: nowrap;
  52. `)]),cB("slider-dots",`
  53. top: calc(var(--n-handle-size) / 2);
  54. right: unset;
  55. bottom: calc(var(--n-handle-size) / 2);
  56. left: 50%;
  57. `,[cB("slider-dot",`
  58. transform: translateX(-50%) translateY(50%);
  59. `)])]),cM("disabled",`
  60. cursor: not-allowed;
  61. opacity: var(--n-opacity-disabled);
  62. `,[cB("slider-handle",`
  63. cursor: not-allowed;
  64. `)]),cM("with-mark",`
  65. width: 100%;
  66. margin: 8px 0 32px 0;
  67. `),c("&:hover",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cM("active",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cB("slider-marks",`
  68. position: absolute;
  69. top: 18px;
  70. left: calc(var(--n-handle-size) / 2);
  71. right: calc(var(--n-handle-size) / 2);
  72. `,[cB("slider-mark",`
  73. position: absolute;
  74. transform: translateX(-50%);
  75. white-space: nowrap;
  76. `)]),cB("slider-rail",`
  77. width: 100%;
  78. position: relative;
  79. height: var(--n-rail-height);
  80. background-color: var(--n-rail-color);
  81. transition: background-color .3s var(--n-bezier);
  82. border-radius: calc(var(--n-rail-height) / 2);
  83. `,[cE("fill",`
  84. position: absolute;
  85. top: 0;
  86. bottom: 0;
  87. border-radius: calc(var(--n-rail-height) / 2);
  88. transition: background-color .3s var(--n-bezier);
  89. background-color: var(--n-fill-color);
  90. `)]),cB("slider-handles",`
  91. position: absolute;
  92. top: 0;
  93. right: calc(var(--n-handle-size) / 2);
  94. bottom: 0;
  95. left: calc(var(--n-handle-size) / 2);
  96. `,[cB("slider-handle-wrapper",`
  97. outline: none;
  98. position: absolute;
  99. top: 50%;
  100. transform: translate(-50%, -50%);
  101. cursor: pointer;
  102. display: flex;
  103. `,[cB("slider-handle",`
  104. height: var(--n-handle-size);
  105. width: var(--n-handle-size);
  106. border-radius: 50%;
  107. overflow: hidden;
  108. transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier);
  109. background-color: var(--n-handle-color);
  110. box-shadow: var(--n-handle-box-shadow);
  111. `,[c("&:hover",`
  112. box-shadow: var(--n-handle-box-shadow-hover);
  113. `)]),c("&:focus",[cB("slider-handle",`
  114. box-shadow: var(--n-handle-box-shadow-focus);
  115. `,[c("&:hover",`
  116. box-shadow: var(--n-handle-box-shadow-active);
  117. `)])])])]),cB("slider-dots",`
  118. position: absolute;
  119. top: 50%;
  120. left: calc(var(--n-handle-size) / 2);
  121. right: calc(var(--n-handle-size) / 2);
  122. `,[cM("transition-disabled",[cB("slider-dot","transition: none;")]),cB("slider-dot",`
  123. transition:
  124. border-color .3s var(--n-bezier),
  125. box-shadow .3s var(--n-bezier),
  126. background-color .3s var(--n-bezier);
  127. position: absolute;
  128. transform: translate(-50%, -50%);
  129. height: var(--n-dot-height);
  130. width: var(--n-dot-width);
  131. border-radius: var(--n-dot-border-radius);
  132. overflow: hidden;
  133. box-sizing: border-box;
  134. border: var(--n-dot-border);
  135. background-color: var(--n-dot-color);
  136. `,[cM("active","border: var(--n-dot-border-active);")])])]),cB("slider-handle-indicator",`
  137. font-size: var(--n-font-size);
  138. padding: 6px 10px;
  139. border-radius: var(--n-indicator-border-radius);
  140. color: var(--n-indicator-text-color);
  141. background-color: var(--n-indicator-color);
  142. box-shadow: var(--n-indicator-box-shadow);
  143. `,[fadeInScaleUpTransition()]),cB("slider-handle-indicator",`
  144. font-size: var(--n-font-size);
  145. padding: 6px 10px;
  146. border-radius: var(--n-indicator-border-radius);
  147. color: var(--n-indicator-text-color);
  148. background-color: var(--n-indicator-color);
  149. box-shadow: var(--n-indicator-box-shadow);
  150. `,[cM("top",`
  151. margin-bottom: 12px;
  152. `),cM("right",`
  153. margin-left: 12px;
  154. `),cM("bottom",`
  155. margin-top: 12px;
  156. `),cM("left",`
  157. margin-right: 12px;
  158. `),fadeInScaleUpTransition()]),insideModal(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-modal);")])),insidePopover(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-popover);")]))]),eventButtonLeft=0,sliderProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),NSlider=defineComponent({name:"Slider",props:sliderProps,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:n}=useConfig(e),s=useTheme("Slider","-slider",style,sliderLight$1,e,t),a=ref(null),[l,u]=useRefs(),[p,d]=useRefs(),f=ref(new Set),_=useFormItem(e),{mergedDisabledRef:y}=_,b=computed(()=>{const{step:K}=e;if(Number(K)<=0||K==="mark")return 0;const Y=K.toString();let J=0;return Y.includes(".")&&(J=Y.length-Y.indexOf(".")-1),J}),g=ref(e.defaultValue),m=toRef(e,"value"),C=useMergedState(m,g),S=computed(()=>{const{value:K}=C;return(e.range?K:[K]).map(U)}),P=computed(()=>S.value.length>2),A=computed(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),x=computed(()=>{const{marks:K}=e;return K?Object.keys(K).map(parseFloat):null}),R=ref(-1),E=ref(-1),k=ref(-1),I=ref(!1),O=ref(!1),G=computed(()=>{const{vertical:K,reverse:Y}=e;return K?Y?"top":"bottom":Y?"right":"left"}),j=computed(()=>{if(P.value)return;const K=S.value,Y=W(e.range?Math.min(...K):e.min),J=W(e.range?Math.max(...K):K[0]),{value:ee}=G;return e.vertical?{[ee]:`${Y}%`,height:`${J-Y}%`}:{[ee]:`${Y}%`,width:`${J-Y}%`}}),V=computed(()=>{const K=[],{marks:Y}=e;if(Y){const J=S.value.slice();J.sort((fe,be)=>fe-be);const{value:ee}=G,{value:se}=P,{range:pe}=e,ve=se?()=>!1:fe=>pe?fe>=J[0]&&fe<=J[J.length-1]:fe<=J[0];for(const fe of Object.keys(Y)){const be=Number(fe);K.push({active:ve(be),label:Y[fe],style:{[ee]:`${W(be)}%`}})}}return K});function z(K,Y){const J=W(K),{value:ee}=G;return{[ee]:`${J}%`,zIndex:Y===R.value?1:0}}function q(K){return e.showTooltip||k.value===K||R.value===K&&I.value}function H(K){return I.value?!(R.value===K&&E.value===K):!0}function L(K){var Y;~K&&(R.value=K,(Y=l.value.get(K))===null||Y===void 0||Y.focus())}function B(){p.value.forEach((K,Y)=>{q(Y)&&K.syncPosition()})}function M(K){const{"onUpdate:value":Y,onUpdateValue:J}=e,{nTriggerFormInput:ee,nTriggerFormChange:se}=_;J&&call(J,K),Y&&call(Y,K),g.value=K,ee(),se()}function D(K){const{range:Y}=e;if(Y){if(Array.isArray(K)){const{value:J}=S;K.join()!==J.join()&&M(K)}}else Array.isArray(K)||S.value[0]!==K&&M(K)}function N(K,Y){if(e.range){const J=S.value.slice();J.splice(Y,1,K),D(J)}else D(K)}function F(K,Y,J){const ee=J!==void 0;J||(J=K-Y>0?1:-1);const se=x.value||[],{step:pe}=e;if(pe==="mark"){const be=re(K,se.concat(Y),ee?J:void 0);return be?be.value:Y}if(pe<=0)return Y;const{value:ve}=b;let fe;if(ee){const be=Number((Y/pe).toFixed(ve)),Te=Math.floor(be),Ce=be>Te?Te:Te-1,Ee=be<Te?Te:Te+1;fe=re(Y,[Number((Ce*pe).toFixed(ve)),Number((Ee*pe).toFixed(ve)),...se],J)}else{const be=Z(K);fe=re(K,[...se,be])}return fe?U(fe.value):Y}function U(K){return Math.min(e.max,Math.max(e.min,K))}function W(K){const{max:Y,min:J}=e;return(K-J)/(Y-J)*100}function Q(K){const{max:Y,min:J}=e;return J+(Y-J)*K}function Z(K){const{step:Y,min:J}=e;if(Number(Y)<=0||Y==="mark")return K;const ee=Math.round((K-J)/Y)*Y+J;return Number(ee.toFixed(b.value))}function re(K,Y=x.value,J){if(!(Y!=null&&Y.length))return null;let ee=null,se=-1;for(;++se<Y.length;){const pe=Y[se]-K,ve=Math.abs(pe);(J===void 0||pe*J>0)&&(ee===null||ve<ee.distance)&&(ee={index:se,distance:ve,value:Y[se]})}return ee}function ne(K){const Y=a.value;if(!Y)return;const J=isTouchEvent(K)?K.touches[0]:K,ee=Y.getBoundingClientRect();let se;return e.vertical?se=(ee.bottom-J.clientY)/ee.height:se=(J.clientX-ee.left)/ee.width,e.reverse&&(se=1-se),Q(se)}function ie(K){if(y.value||!e.keyboard)return;const{vertical:Y,reverse:J}=e;switch(K.key){case"ArrowUp":K.preventDefault(),le(Y&&J?-1:1);break;case"ArrowRight":K.preventDefault(),le(!Y&&J?-1:1);break;case"ArrowDown":K.preventDefault(),le(Y&&J?1:-1);break;case"ArrowLeft":K.preventDefault(),le(!Y&&J?1:-1);break}}function le(K){const Y=R.value;if(Y===-1)return;const{step:J}=e,ee=S.value[Y],se=Number(J)<=0||J==="mark"?ee:ee+J*K;N(F(se,ee,K>0?1:-1),Y)}function oe(K){var Y,J;if(y.value||!isTouchEvent(K)&&K.button!==eventButtonLeft)return;const ee=ne(K);if(ee===void 0)return;const se=S.value.slice(),pe=e.range?(J=(Y=re(ee,se))===null||Y===void 0?void 0:Y.index)!==null&&J!==void 0?J:-1:0;pe!==-1&&(K.preventDefault(),L(pe),ce(),N(F(ee,S.value[pe]),pe))}function ce(){I.value||(I.value=!0,on("touchend",document,X),on("mouseup",document,X),on("touchmove",document,te),on("mousemove",document,te))}function he(){I.value&&(I.value=!1,off("touchend",document,X),off("mouseup",document,X),off("touchmove",document,te),off("mousemove",document,te))}function te(K){const{value:Y}=R;if(!I.value||Y===-1){he();return}const J=ne(K);N(F(J,S.value[Y]),Y)}function X(){he()}function de(K){R.value=K,y.value||(k.value=K)}function ae(K){R.value===K&&(R.value=-1,he()),k.value===K&&(k.value=-1)}function ue(K){k.value=K}function _e(K){k.value===K&&(k.value=-1)}watch(R,(K,Y)=>void nextTick(()=>E.value=Y)),watch(C,()=>{if(e.marks){if(O.value)return;O.value=!0,nextTick(()=>{O.value=!1})}nextTick(B)}),onBeforeUnmount(()=>{he()});const Se=computed(()=>{const{self:{markFontSize:K,railColor:Y,railColorHover:J,fillColor:ee,fillColorHover:se,handleColor:pe,opacityDisabled:ve,dotColor:fe,dotColorModal:be,handleBoxShadow:Te,handleBoxShadowHover:Ce,handleBoxShadowActive:Ee,handleBoxShadowFocus:we,dotBorder:Ae,dotBoxShadow:Pe,railHeight:ke,railWidthVertical:xe,handleSize:Ie,dotHeight:Me,dotWidth:Re,dotBorderRadius:De,fontSize:Oe,dotBorderActive:Le,dotColorPopover:Be},common:{cubicBezierEaseInOut:Fe}}=s.value;return{"--n-bezier":Fe,"--n-dot-border":Ae,"--n-dot-border-active":Le,"--n-dot-border-radius":De,"--n-dot-box-shadow":Pe,"--n-dot-color":fe,"--n-dot-color-modal":be,"--n-dot-color-popover":Be,"--n-dot-height":Me,"--n-dot-width":Re,"--n-fill-color":ee,"--n-fill-color-hover":se,"--n-font-size":Oe,"--n-handle-box-shadow":Te,"--n-handle-box-shadow-active":Ee,"--n-handle-box-shadow-focus":we,"--n-handle-box-shadow-hover":Ce,"--n-handle-color":pe,"--n-handle-size":Ie,"--n-opacity-disabled":ve,"--n-rail-color":Y,"--n-rail-color-hover":J,"--n-rail-height":ke,"--n-rail-width-vertical":xe,"--n-mark-font-size":K}}),ge=n?useThemeClass("slider",void 0,Se,e):void 0,me=computed(()=>{const{self:{fontSize:K,indicatorColor:Y,indicatorBoxShadow:J,indicatorTextColor:ee,indicatorBorderRadius:se}}=s.value;return{"--n-font-size":K,"--n-indicator-border-radius":se,"--n-indicator-box-shadow":J,"--n-indicator-color":Y,"--n-indicator-text-color":ee}}),ye=n?useThemeClass("slider-indicator",void 0,me,e):void 0;return{mergedClsPrefix:t,namespace:r,uncontrolledValue:g,mergedValue:C,mergedDisabled:y,mergedPlacement:A,isMounted:isMounted(),adjustedTo:useAdjustedTo(e),dotTransitionDisabled:O,markInfos:V,isShowTooltip:q,shouldKeepTooltipTransition:H,handleRailRef:a,setHandleRefs:u,setFollowerRefs:d,fillStyle:j,getHandleStyle:z,activeIndex:R,arrifiedValues:S,followerEnabledIndexSet:f,handleRailMouseDown:oe,handleHandleFocus:de,handleHandleBlur:ae,handleHandleMouseEnter:ue,handleHandleMouseLeave:_e,handleRailKeyDown:ie,indicatorCssVars:n?void 0:me,indicatorThemeClass:ye==null?void 0:ye.themeClass,indicatorOnRender:ye==null?void 0:ye.onRender,cssVars:n?void 0:Se,themeClass:ge==null?void 0:ge.themeClass,onRender:ge==null?void 0:ge.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:r,formatTooltip:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),h$1("div",{class:[`${t}-slider`,r,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},h$1("div",{class:`${t}-slider-rail`},h$1("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?h$1("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(s=>h$1("div",{key:s.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:s.active}],style:s.style}))):null,h$1("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((s,a)=>{const l=this.isShowTooltip(a);return h$1(VBinder,null,{default:()=>[h$1(VTarget,null,{default:()=>h$1("div",{ref:this.setHandleRefs(a),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(s,a),onFocus:()=>{this.handleHandleFocus(a)},onBlur:()=>{this.handleHandleBlur(a)},onMouseenter:()=>{this.handleHandleMouseEnter(a)},onMouseleave:()=>{this.handleHandleMouseLeave(a)}},resolveSlot(this.$slots.thumb,()=>[h$1("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&h$1(VFollower,{ref:this.setFollowerRefs(a),show:l,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(a),teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>h$1(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(a),onEnter:()=>{this.followerEnabledIndexSet.add(a)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(a)}},{default:()=>{var u;return l?((u=this.indicatorOnRender)===null||u===void 0||u.call(this),h$1("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof n=="function"?n(s):s)):null}})})]})})),this.marks?h$1("div",{class:`${t}-slider-marks`},this.markInfos.map(s=>h$1("div",{key:s.label,class:`${t}-slider-mark`,style:s.style},s.label))):null))}}),iconBack=""+new URL("back-137ab198.svg",import.meta.url).href,playContent="_playContent_3dolj_1",coursewarePlay="_coursewarePlay_3dolj_9",playModel="_playModel_3dolj_15",headerContainer="_headerContainer_3dolj_24",backBtn="_backBtn_3dolj_42",headRight="_headRight_3dolj_55",rightBtn="_rightBtn_3dolj_64",menu="_menu_3dolj_76",tabsContent="_tabsContent_3dolj_86",wraps="_wraps_3dolj_97",itemDiv="_itemDiv_3dolj_104",itemActive$2="_itemActive_3dolj_117",acitveAnimation="_acitveAnimation_3dolj_120",show="_show_3dolj_123",hide$2="_hide_3dolj_126",rightFixedBtns="_rightFixedBtns_3dolj_139",fullBtn="_fullBtn_3dolj_146",btnsDisabled="_btnsDisabled_3dolj_165",popup="_popup_3dolj_169",overlayClass="_overlayClass_3dolj_173",loadWrap="_loadWrap_3dolj_201",styles$5={playContent,coursewarePlay,playModel,headerContainer,backBtn,headRight,rightBtn,menu,tabsContent,wraps,itemDiv,itemActive:itemActive$2,acitveAnimation,show,hide:hide$2,rightFixedBtns,fullBtn,btnsDisabled,popup,overlayClass,loadWrap},musicScore="_musicScore_18k28_1",container$2="_container_18k28_8",musicModel="_musicModel_18k28_16",errorModel="_errorModel_18k28_23",startBtn="_startBtn_18k28_35",loading="_loading_18k28_44",skeletonWrap="_skeletonWrap_18k28_50",skeleton="_skeleton_18k28_50",styles$4={musicScore,container:container$2,musicModel,errorModel,startBtn,loading,skeletonWrap,skeleton},iconStart=""+new URL("icon-start-4118ae28.svg",import.meta.url).href,MusicScore=defineComponent({name:"musicScore",props:{pageVisibility:{type:String,default:""},show:{type:Boolean,default:!1},music:{type:Object,default:()=>{}},activeModel:{type:Boolean}},emits:["setIframe"],setup(e,{emit:t}){const r=browser();useRoute();const n=ref(!1);watch(()=>e.pageVisibility,m=>{var C,S;m=="hidden"&&(n.value=!1),m=="hidden"&&e.show&&((S=(C=s.value)==null?void 0:C.contentWindow)==null||S.postMessage({api:"setPlayState"},"*"))}),watch(()=>e.show,m=>{var C,S;m||(S=(C=s.value)==null?void 0:C.contentWindow)==null||S.postMessage({api:"setPlayState"},"*")});const s=ref(),a=ref(!1),l=ref(!1),u=ref(!1),p=ref(!1),d=storage.get(ACCESS_TOKEN),f=/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn":location.origin;let _=queryString.stringifyUrl({url:f+"/instrument",query:{id:e.music.content,modelType:"practise",Authorization:d,showGuide:!0,iscurseplay:"play"}});const y=()=>{fetch(_).then(()=>{u.value=!0,l.value=!1}).catch(m=>{l.value=!0})};watch(e.music,()=>{u.value||(l.value=!1,e.music.display&&y())});const b=()=>{var P;if(!((P=state.user.data)!=null&&P.vipMember)||n.value)return;r.ios||(n.value=!0);const m=storage.get(ACCESS_TOKEN),C=/(localhost|192)/.test(location.host)?"https://test.lexiaoya.cn":location.origin;let S=queryString.stringifyUrl({url:C+"/instrument",query:{id:e.music.content,Authorization:m,showGuide:!0}});postMessage({api:"openAccompanyWebView",content:{url:S,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0,c_orientation:0}},()=>{r.ios&&(n.value=!0)})},g=async()=>{const m=await request.get("/edu-app/user/getUserInfo",{initRequest:!0,requestType:"form",hideLoading:!0});(m==null?void 0:m.code)===200&&(state.user.data.vipMember=m.data.vipMember)};return listenerMessage("webViewOnResume",()=>{n.value=!1,g()}),()=>{var m;return createVNode("div",{class:styles$4.musicScore},[createVNode("iframe",{ref:s,onLoad:C=>{t("setIframe",s.value),a.value=!0},class:[styles$4.container,"musicIframe"],frameborder:"0",src:_},null),a.value&&createVNode("div",{style:{display:e.activeModel||!((m=state.user.data)!=null&&m.vipMember)?"":"none"},class:styles$4.startBtn,onClick:C=>{C.stopPropagation(),b()}},[createVNode("img",{src:iconStart},null)]),createVNode("div",{class:styles$4.skeletonWrap},[createVNode(Skeleton,{class:styles$4.skeleton,row:8},null)]),createVNode(Popup,{teleport:"body",class:"popup-custom van-scale",transition:"van-scale",closeOnClickOverlay:!1,show:p.value,"onUpdate:show":C=>p.value=C},{default:()=>[createVNode(TheVip,{onClose:C=>{C&&postMessage({api:"openWebView",content:{url:`${location.origin}${location.pathname}#/member-center`,orientation:1}}),p.value=!1}},null)]})])}}}),iconMenu=""+new URL("icon-menu-107c1ebd.svg",import.meta.url).href,iconChange=""+new URL("icon-change-4e3ae26f.svg",import.meta.url).href,iconUp=""+new URL("icon-up-44f779eb.svg",import.meta.url).href,iconDown=""+new URL("icon-down-254707d8.svg",import.meta.url).href,container$1="_container_eyzhy_1",pointHead$1="_pointHead_eyzhy_12",content$3="_content_eyzhy_24",item$1="_item_eyzhy_34",cover="_cover_eyzhy_41",title="_title_eyzhy_50",tag="_tag_eyzhy_59",itemActive$1="_itemActive_eyzhy_75",styles$3={container:container$1,pointHead:pointHead$1,content:content$3,item:item$1,cover,title,tag,itemActive:itemActive$1},iconMulv=""+new URL("icon-mulv-62ebfce7.svg",import.meta.url).href,Points=defineComponent({name:"points",props:{data:{type:Array,default:()=>[]},itemActive:{type:String,default:""},itemName:{type:String,default:""}},emits:["handleSelect"],setup(e,{emit:t}){useRoute();const r={SONG:"音频",VIDEO:"视频",IMG:"图片",MUSIC:"乐谱"};return()=>createVNode("div",{class:styles$3.container},[createVNode("div",{class:styles$3.pointHead},[createVNode("img",{src:iconMulv},null),e.itemName]),createVNode("div",{class:styles$3.content},[e.data.map((n,s)=>createVNode("div",{class:[styles$3.item,e.itemActive==n.id?styles$3.itemActive:""],onClick:()=>{t("handleSelect",{itemActive:n.id})}},[createVNode("div",{class:styles$3.cover},[createVNode("img",{src:n.url},null)]),createVNode("div",{class:styles$3.title},[createVNode("div",{class:styles$3.tag},[r[n.type]]),createVNode("div",null,[n.name])])]))])])}});var lottie={exports:{}};(function(module,exports){typeof navigator<"u"&&function(e,t){module.exports=t()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,n=e.length,s;for(r=0;r<n;r+=1){s=e[r].prototype;for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t.prototype[a]=s[a])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,n=this.audios.length;for(r=0;r<n;r+=1)this.audios[r].pause()},resume:function(){var r,n=this.audios.length;for(r=0;r<n;r+=1)this.audios[r].resume()},setRate:function(r){var n,s=this.audios.length;for(n=0;n<s;n+=1)this.audios[n].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,n=this.audios.length;for(r=0;r<n;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(r,n){var s=0,a=[],l;switch(r){case"int16":case"uint8c":l=1;break;default:l=1.1;break}for(s=0;s<n;s+=1)a.push(l);return a}function t(r,n){return r==="float32"?new Float32Array(n):r==="int16"?new Int16Array(n):r==="uint8c"?new Uint8ClampedArray(n):e(r,n)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(r){return typeof r}:_typeof$6=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var r=createSizedArray(e.length),n,s=e.length;for(n=0;n<s;n+=1)r[n]=Math.abs(e[n]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,t,r){var n,s,a,l,u,p,d,f;switch(l=Math.floor(e*6),u=e*6-l,p=r*(1-t),d=r*(1-u*t),f=r*(1-(1-u)*t),l%6){case 0:n=r,s=f,a=p;break;case 1:n=d,s=r,a=p;break;case 2:n=p,s=r,a=f;break;case 3:n=p,s=d,a=r;break;case 4:n=f,s=p,a=r;break;case 5:n=r,s=p,a=d;break}return[n,s,a]}function RGBtoHSV(e,t,r){var n=Math.max(e,t,r),s=Math.min(e,t,r),a=n-s,l,u=n===0?0:a/n,p=n/255;switch(n){case s:l=0;break;case e:l=t-r+a*(t<r?6:0),l/=6*a;break;case t:l=r-e+a*2,l/=6*a;break;case r:l=e-t+a*4,l/=6*a;break}return[l,u,p]}function addSaturationToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e=[],t,r;for(t=0;t<256;t+=1)r=t.toString(16),e[t]=r.length===1?"0"+r:r;return function(n,s,a){return n<0&&(n=0),s<0&&(s=0),a<0&&(a=0),"#"+e[n]+e[s]+e[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(e)}var dataManager=function(){var e=1,t=[],r,n,s={onmessage:function(){},postMessage:function(b){r({data:b})}},a={postMessage:function(b){s.onmessage({data:b})}};function l(y){if(window.Worker&&window.Blob&&getWebWorker()){var b=new Blob(["var _workerSelf = self; self.onmessage = ",y.toString()],{type:"text/javascript"}),g=URL.createObjectURL(b);return new Worker(g)}return r=y,s}function u(){n||(n=l(function(b){function g(){function C(H,L){var B,M,D=H.length,N,F,U,W;for(M=0;M<D;M+=1)if(B=H[M],"ks"in B&&!B.completed){if(B.completed=!0,B.hasMask){var Q=B.masksProperties;for(F=Q.length,N=0;N<F;N+=1)if(Q[N].pt.k.i)R(Q[N].pt.k);else for(W=Q[N].pt.k.length,U=0;U<W;U+=1)Q[N].pt.k[U].s&&R(Q[N].pt.k[U].s[0]),Q[N].pt.k[U].e&&R(Q[N].pt.k[U].e[0])}B.ty===0?(B.layers=A(B.refId,L),C(B.layers,L)):B.ty===4?x(B.shapes):B.ty===5&&z(B)}}function S(H,L){if(H){var B=0,M=H.length;for(B=0;B<M;B+=1)H[B].t===1&&(H[B].data.layers=A(H[B].data.refId,L),C(H[B].data.layers,L))}}function P(H,L){for(var B=0,M=L.length;B<M;){if(L[B].id===H)return L[B];B+=1}return null}function A(H,L){var B=P(H,L);return B?B.layers.__used?JSON.parse(JSON.stringify(B.layers)):(B.layers.__used=!0,B.layers):null}function x(H){var L,B=H.length,M,D;for(L=B-1;L>=0;L-=1)if(H[L].ty==="sh")if(H[L].ks.k.i)R(H[L].ks.k);else for(D=H[L].ks.k.length,M=0;M<D;M+=1)H[L].ks.k[M].s&&R(H[L].ks.k[M].s[0]),H[L].ks.k[M].e&&R(H[L].ks.k[M].e[0]);else H[L].ty==="gr"&&x(H[L].it)}function R(H){var L,B=H.i.length;for(L=0;L<B;L+=1)H.i[L][0]+=H.v[L][0],H.i[L][1]+=H.v[L][1],H.o[L][0]+=H.v[L][0],H.o[L][1]+=H.v[L][1]}function E(H,L){var B=L?L.split("."):[100,100,100];return H[0]>B[0]?!0:B[0]>H[0]?!1:H[1]>B[1]?!0:B[1]>H[1]?!1:H[2]>B[2]?!0:B[2]>H[2]?!1:null}var k=function(){var H=[4,4,14];function L(M){var D=M.t.d;M.t.d={k:[{s:D,t:0}]}}function B(M){var D,N=M.length;for(D=0;D<N;D+=1)M[D].ty===5&&L(M[D])}return function(M){if(E(H,M.v)&&(B(M.layers),M.assets)){var D,N=M.assets.length;for(D=0;D<N;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}(),I=function(){var H=[4,7,99];return function(L){if(L.chars&&!E(H,L.v)){var B,M=L.chars.length;for(B=0;B<M;B+=1){var D=L.chars[B];D.data&&D.data.shapes&&(x(D.data.shapes),D.data.ip=0,D.data.op=99999,D.data.st=0,D.data.sr=1,D.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},L.chars[B].t||(D.data.shapes.push({ty:"no"}),D.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),O=function(){var H=[5,7,15];function L(M){var D=M.t.p;typeof D.a=="number"&&(D.a={a:0,k:D.a}),typeof D.p=="number"&&(D.p={a:0,k:D.p}),typeof D.r=="number"&&(D.r={a:0,k:D.r})}function B(M){var D,N=M.length;for(D=0;D<N;D+=1)M[D].ty===5&&L(M[D])}return function(M){if(E(H,M.v)&&(B(M.layers),M.assets)){var D,N=M.assets.length;for(D=0;D<N;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}(),G=function(){var H=[4,1,9];function L(M){var D,N=M.length,F,U;for(D=0;D<N;D+=1)if(M[D].ty==="gr")L(M[D].it);else if(M[D].ty==="fl"||M[D].ty==="st")if(M[D].c.k&&M[D].c.k[0].i)for(U=M[D].c.k.length,F=0;F<U;F+=1)M[D].c.k[F].s&&(M[D].c.k[F].s[0]/=255,M[D].c.k[F].s[1]/=255,M[D].c.k[F].s[2]/=255,M[D].c.k[F].s[3]/=255),M[D].c.k[F].e&&(M[D].c.k[F].e[0]/=255,M[D].c.k[F].e[1]/=255,M[D].c.k[F].e[2]/=255,M[D].c.k[F].e[3]/=255);else M[D].c.k[0]/=255,M[D].c.k[1]/=255,M[D].c.k[2]/=255,M[D].c.k[3]/=255}function B(M){var D,N=M.length;for(D=0;D<N;D+=1)M[D].ty===4&&L(M[D].shapes)}return function(M){if(E(H,M.v)&&(B(M.layers),M.assets)){var D,N=M.assets.length;for(D=0;D<N;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}(),j=function(){var H=[4,4,18];function L(M){var D,N=M.length,F,U;for(D=N-1;D>=0;D-=1)if(M[D].ty==="sh")if(M[D].ks.k.i)M[D].ks.k.c=M[D].closed;else for(U=M[D].ks.k.length,F=0;F<U;F+=1)M[D].ks.k[F].s&&(M[D].ks.k[F].s[0].c=M[D].closed),M[D].ks.k[F].e&&(M[D].ks.k[F].e[0].c=M[D].closed);else M[D].ty==="gr"&&L(M[D].it)}function B(M){var D,N,F=M.length,U,W,Q,Z;for(N=0;N<F;N+=1){if(D=M[N],D.hasMask){var re=D.masksProperties;for(W=re.length,U=0;U<W;U+=1)if(re[U].pt.k.i)re[U].pt.k.c=re[U].cl;else for(Z=re[U].pt.k.length,Q=0;Q<Z;Q+=1)re[U].pt.k[Q].s&&(re[U].pt.k[Q].s[0].c=re[U].cl),re[U].pt.k[Q].e&&(re[U].pt.k[Q].e[0].c=re[U].cl)}D.ty===4&&L(D.shapes)}}return function(M){if(E(H,M.v)&&(B(M.layers),M.assets)){var D,N=M.assets.length;for(D=0;D<N;D+=1)M.assets[D].layers&&B(M.assets[D].layers)}}}();function V(H){H.__complete||(G(H),k(H),I(H),O(H),j(H),C(H.layers,H.assets),S(H.chars,H.assets),H.__complete=!0)}function z(H){H.t.a.length===0&&"m"in H.t.p}var q={};return q.completeData=V,q.checkColors=G,q.checkChars=I,q.checkPathProperties=O,q.checkShapes=j,q.completeLayers=C,q}if(a.dataManager||(a.dataManager=g()),a.assetLoader||(a.assetLoader=function(){function C(P){var A=P.getResponseHeader("content-type");return A&&P.responseType==="json"&&A.indexOf("json")!==-1||P.response&&_typeof$5(P.response)==="object"?P.response:P.response&&typeof P.response=="string"?JSON.parse(P.response):P.responseText?JSON.parse(P.responseText):null}function S(P,A,x,R){var E,k=new XMLHttpRequest;try{k.responseType="json"}catch(I){}k.onreadystatechange=function(){if(k.readyState===4)if(k.status===200)E=C(k),x(E);else try{E=C(k),x(E)}catch(I){R&&R(I)}};try{k.open(["G","E","T"].join(""),P,!0)}catch(I){k.open(["G","E","T"].join(""),A+"/"+P,!0)}k.send()}return{load:S}}()),b.data.type==="loadAnimation")a.assetLoader.load(b.data.path,b.data.fullPath,function(C){a.dataManager.completeData(C),a.postMessage({id:b.data.id,payload:C,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})});else if(b.data.type==="complete"){var m=b.data.animation;a.dataManager.completeData(m),a.postMessage({id:b.data.id,payload:m,status:"success"})}else b.data.type==="loadData"&&a.assetLoader.load(b.data.path,b.data.fullPath,function(C){a.postMessage({id:b.data.id,payload:C,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})})}),n.onmessage=function(y){var b=y.data,g=b.id,m=t[g];t[g]=null,b.status==="success"?m.onComplete(b.payload):m.onError&&m.onError()})}function p(y,b){e+=1;var g="processId_"+e;return t[g]={onComplete:y,onError:b},g}function d(y,b,g){u();var m=p(b,g);n.postMessage({type:"loadAnimation",path:y,fullPath:window.location.origin+window.location.pathname,id:m})}function f(y,b,g){u();var m=p(b,g);n.postMessage({type:"loadData",path:y,fullPath:window.location.origin+window.location.pathname,id:m})}function _(y,b,g){u();var m=p(b,g);n.postMessage({type:"complete",animation:y,id:m})}return{loadAnimation:d,loadData:f,completeAnimation:_}}(),ImagePreloader=function(){var e=function(){var S=createTag("canvas");S.width=1,S.height=1;var P=S.getContext("2d");return P.fillStyle="rgba(0,0,0,0)",P.fillRect(0,0,1,1),S}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(S,P,A){var x="";if(S.e)x=S.p;else if(P){var R=S.p;R.indexOf("images/")!==-1&&(R=R.split("/")[1]),x=P+R}else x=A,x+=S.u?S.u:"",x+=S.p;return x}function s(S){var P=0,A=setInterval(function(){var x=S.getBBox();(x.width||P>500)&&(this._imageLoaded(),clearInterval(A)),P+=1}.bind(this),50)}function a(S){var P=n(S,this.assetsPath,this.path),A=createNS("image");isSafari?this.testImageLoaded(A):A.addEventListener("load",this._imageLoaded,!1),A.addEventListener("error",function(){x.img=e,this._imageLoaded()}.bind(this),!1),A.setAttributeNS("http://www.w3.org/1999/xlink","href",P),this._elementHelper.append?this._elementHelper.append(A):this._elementHelper.appendChild(A);var x={img:A,assetData:S};return x}function l(S){var P=n(S,this.assetsPath,this.path),A=createTag("img");A.crossOrigin="anonymous",A.addEventListener("load",this._imageLoaded,!1),A.addEventListener("error",function(){x.img=e,this._imageLoaded()}.bind(this),!1),A.src=P;var x={img:A,assetData:S};return x}function u(S){var P={assetData:S},A=n(S,this.assetsPath,this.path);return dataManager.loadData(A,function(x){P.img=x,this._footageLoaded()}.bind(this),function(){P.img={},this._footageLoaded()}.bind(this)),P}function p(S,P){this.imagesLoadedCb=P;var A,x=S.length;for(A=0;A<x;A+=1)S[A].layers||(!S[A].t||S[A].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(S[A]))):S[A].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(S[A]))))}function d(S){this.path=S||""}function f(S){this.assetsPath=S||""}function _(S){for(var P=0,A=this.images.length;P<A;){if(this.images[P].assetData===S)return this.images[P].img;P+=1}return null}function y(){this.imagesLoadedCb=null,this.images.length=0}function b(){return this.totalImages===this.loadedAssets}function g(){return this.totalFootages===this.loadedFootagesCount}function m(S,P){S==="svg"?(this._elementHelper=P,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function C(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=u.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return C.prototype={loadAssets:p,setAssetsPath:f,setPath:d,loadedImages:b,loadedFootages:g,destroy:y,getAsset:_,createImgData:l,createImageData:a,imageLoaded:t,footageLoaded:r,setCacheType:m},C}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,r){if(this._cbs[t])for(var n=this._cbs[t],s=0;s<n.length;s+=1)n[s](r)},addEventListener:function(t,r){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(r),function(){this.removeEventListener(t,r)}.bind(this)},removeEventListener:function(t,r){if(!r)this._cbs[t]=null;else if(this._cbs[t]){for(var n=0,s=this._cbs[t].length;n<s;)this._cbs[t][n]===r&&(this._cbs[t].splice(n,1),n-=1,s-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=function(){function e(t){for(var r=t.split(`\r
  159. `),n={},s,a=0,l=0;l<r.length;l+=1)s=r[l].split(":"),s.length===2&&(n[s[0]]=s[1].trim(),a+=1);if(a===0)throw new Error;return n}return function(t){for(var r=[],n=0;n<t.length;n+=1){var s=t[n],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(t[n].cm)}catch(l){try{a.payload=e(t[n].cm)}catch(u){a.payload={name:t[n].cm}}}r.push(a)}return r}}(),ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(r){for(var n=0,s=this.compositions.length;n<s;){if(this.compositions[n].data&&this.compositions[n].data.nm===r)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(t,r){renderers[t]=r};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(r){return typeof r}:_typeof$4=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";s==="false"?r.loop=!1:s==="true"?r.loop=!0:s!==""&&(r.loop=parseInt(s,10));var a=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:n.getNamedItem("bm-autoplay")?n.getNamedItem("bm-autoplay").value:!0;r.autoplay=a!=="false",r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var l=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";l==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,r,n=t.length,s=e.layers,a,l=s.length;for(a=0;a<l;a+=1)for(r=0;r<n;){if(t[r].id===s[a].id){t[r]=s[a];break}r+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(n=e.assets.length,r=0;r<n;r+=1)this.animationData.assets.push(e.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r=typeof e=="number"?e:void 0,n=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if(t=this.markers[r],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!(r&&this.name!==r)){var n=Number(e);if(isNaN(n)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!(r&&this.name!==r)){var n=Number(e);if(isNaN(n)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(n,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,t=0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,n=e.length;for(r=0;r<n;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{var n=this.renderer.getElementByPath(e);n.updateDocumentData(t,r)}catch(s){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,n=0,s=0,a=!0,l=!1;function u(L){for(var B=0,M=L.target;B<n;)t[B].animation===M&&(t.splice(B,1),B-=1,n-=1,M.isPaused||_()),B+=1}function p(L,B){if(!L)return null;for(var M=0;M<n;){if(t[M].elem===L&&t[M].elem!==null)return t[M].animation;M+=1}var D=new AnimationItem;return y(D,L),D.setData(L,B),D}function d(){var L,B=t.length,M=[];for(L=0;L<B;L+=1)M.push(t[L].animation);return M}function f(){s+=1,G()}function _(){s-=1}function y(L,B){L.addEventListener("destroy",u),L.addEventListener("_active",f),L.addEventListener("_idle",_),t.push({elem:B,animation:L}),n+=1}function b(L){var B=new AnimationItem;return y(B,null),B.setParams(L),B}function g(L,B){var M;for(M=0;M<n;M+=1)t[M].animation.setSpeed(L,B)}function m(L,B){var M;for(M=0;M<n;M+=1)t[M].animation.setDirection(L,B)}function C(L){var B;for(B=0;B<n;B+=1)t[B].animation.play(L)}function S(L){var B=L-r,M;for(M=0;M<n;M+=1)t[M].animation.advanceTime(B);r=L,s&&!l?window.requestAnimationFrame(S):a=!0}function P(L){r=L,window.requestAnimationFrame(S)}function A(L){var B;for(B=0;B<n;B+=1)t[B].animation.pause(L)}function x(L,B,M){var D;for(D=0;D<n;D+=1)t[D].animation.goToAndStop(L,B,M)}function R(L){var B;for(B=0;B<n;B+=1)t[B].animation.stop(L)}function E(L){var B;for(B=0;B<n;B+=1)t[B].animation.togglePause(L)}function k(L){var B;for(B=n-1;B>=0;B-=1)t[B].animation.destroy(L)}function I(L,B,M){var D=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),N,F=D.length;for(N=0;N<F;N+=1)M&&D[N].setAttribute("data-bm-type",M),p(D[N],L);if(B&&F===0){M||(M="svg");var U=document.getElementsByTagName("body")[0];U.innerText="";var W=createTag("div");W.style.width="100%",W.style.height="100%",W.setAttribute("data-bm-type",M),U.appendChild(W),p(W,L)}}function O(){var L;for(L=0;L<n;L+=1)t[L].animation.resize()}function G(){!l&&s&&a&&(window.requestAnimationFrame(P),a=!1)}function j(){l=!0}function V(){l=!1,G()}function z(L,B){var M;for(M=0;M<n;M+=1)t[M].animation.setVolume(L,B)}function q(L){var B;for(B=0;B<n;B+=1)t[B].animation.mute(L)}function H(L){var B;for(B=0;B<n;B+=1)t[B].animation.unmute(L)}return e.registerAnimation=p,e.loadAnimation=b,e.setSpeed=g,e.setDirection=m,e.play=C,e.pause=A,e.stop=R,e.togglePause=E,e.searchAnimations=I,e.resize=O,e.goToAndStop=x,e.destroy=k,e.freeze=j,e.unfreeze=V,e.setVolume=z,e.mute=q,e.unmute=H,e.getRegisteredAnimations=d,e}(),BezierFactory=function(){var e={};e.getBezierEasing=r;var t={};function r(P,A,x,R,E){var k=E||("bez_"+P+"_"+A+"_"+x+"_"+R).replace(/\./g,"p");if(t[k])return t[k];var I=new S([P,A,x,R]);return t[k]=I,I}var n=4,s=.001,a=1e-7,l=10,u=11,p=1/(u-1),d=typeof Float32Array=="function";function f(P,A){return 1-3*A+3*P}function _(P,A){return 3*A-6*P}function y(P){return 3*P}function b(P,A,x){return((f(A,x)*P+_(A,x))*P+y(A))*P}function g(P,A,x){return 3*f(A,x)*P*P+2*_(A,x)*P+y(A)}function m(P,A,x,R,E){var k,I,O=0;do I=A+(x-A)/2,k=b(I,R,E)-P,k>0?x=I:A=I;while(Math.abs(k)>a&&++O<l);return I}function C(P,A,x,R){for(var E=0;E<n;++E){var k=g(A,x,R);if(k===0)return A;var I=b(A,x,R)-P;A-=I/k}return A}function S(P){this._p=P,this._mSampleValues=d?new Float32Array(u):new Array(u),this._precomputed=!1,this.get=this.get.bind(this)}return S.prototype={get:function(A){var x=this._p[0],R=this._p[1],E=this._p[2],k=this._p[3];return this._precomputed||this._precompute(),x===R&&E===k?A:A===0?0:A===1?1:b(this._getTForX(A),R,k)},_precompute:function(){var A=this._p[0],x=this._p[1],R=this._p[2],E=this._p[3];this._precomputed=!0,(A!==x||R!==E)&&this._calcSampleValues()},_calcSampleValues:function(){for(var A=this._p[0],x=this._p[2],R=0;R<u;++R)this._mSampleValues[R]=b(R*p,A,x)},_getTForX:function(A){for(var x=this._p[0],R=this._p[2],E=this._mSampleValues,k=0,I=1,O=u-1;I!==O&&E[I]<=A;++I)k+=p;--I;var G=(A-E[I])/(E[I+1]-E[I]),j=k+G*p,V=g(j,x,R);return V>=s?C(A,j,x,R):V===0?j:m(A,k,k+p,x,R)}},e}(),pooling=function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}}(),poolFactory=function(){return function(e,t,r){var n=0,s=e,a=createSizedArray(s),l={newElement:u,release:p};function u(){var d;return n?(n-=1,d=a[n]):d=t(),d}function p(d){n===s&&(a=pooling.double(a),s*=2),r&&r(d),a[n]=d,n+=1}return l}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function t(r){var n,s=r.lengths.length;for(n=0;n<s;n+=1)bezierLengthPool.release(r.lengths[n]);r.lengths.length=0}return poolFactory(8,e,t)}();function bezFunction(){var e=Math;function t(y,b,g,m,C,S){var P=y*m+b*C+g*S-C*m-S*y-g*b;return P>-.001&&P<.001}function r(y,b,g,m,C,S,P,A,x){if(g===0&&S===0&&x===0)return t(y,b,m,C,P,A);var R=e.sqrt(e.pow(m-y,2)+e.pow(C-b,2)+e.pow(S-g,2)),E=e.sqrt(e.pow(P-y,2)+e.pow(A-b,2)+e.pow(x-g,2)),k=e.sqrt(e.pow(P-m,2)+e.pow(A-C,2)+e.pow(x-S,2)),I;return R>E?R>k?I=R-E-k:I=k-E-R:k>E?I=k-E-R:I=E-R-k,I>-1e-4&&I<1e-4}var n=function(){return function(y,b,g,m){var C=getDefaultCurveSegments(),S,P,A,x,R,E=0,k,I=[],O=[],G=bezierLengthPool.newElement();for(A=g.length,S=0;S<C;S+=1){for(R=S/(C-1),k=0,P=0;P<A;P+=1)x=bmPow(1-R,3)*y[P]+3*bmPow(1-R,2)*R*g[P]+3*(1-R)*bmPow(R,2)*m[P]+bmPow(R,3)*b[P],I[P]=x,O[P]!==null&&(k+=bmPow(I[P]-O[P],2)),O[P]=I[P];k&&(k=bmSqrt(k),E+=k),G.percents[S]=R,G.lengths[S]=E}return G.addedLength=E,G}}();function s(y){var b=segmentsLengthPool.newElement(),g=y.c,m=y.v,C=y.o,S=y.i,P,A=y._length,x=b.lengths,R=0;for(P=0;P<A-1;P+=1)x[P]=n(m[P],m[P+1],C[P],S[P+1]),R+=x[P].addedLength;return g&&A&&(x[P]=n(m[P],m[0],C[P],S[0]),R+=x[P].addedLength),b.totalLength=R,b}function a(y){this.segmentLength=0,this.points=new Array(y)}function l(y,b){this.partialLength=y,this.point=b}var u=function(){var y={};return function(b,g,m,C){var S=(b[0]+"_"+b[1]+"_"+g[0]+"_"+g[1]+"_"+m[0]+"_"+m[1]+"_"+C[0]+"_"+C[1]).replace(/\./g,"p");if(!y[S]){var P=getDefaultCurveSegments(),A,x,R,E,k,I=0,O,G,j=null;b.length===2&&(b[0]!==g[0]||b[1]!==g[1])&&t(b[0],b[1],g[0],g[1],b[0]+m[0],b[1]+m[1])&&t(b[0],b[1],g[0],g[1],g[0]+C[0],g[1]+C[1])&&(P=2);var V=new a(P);for(R=m.length,A=0;A<P;A+=1){for(G=createSizedArray(R),k=A/(P-1),O=0,x=0;x<R;x+=1)E=bmPow(1-k,3)*b[x]+3*bmPow(1-k,2)*k*(b[x]+m[x])+3*(1-k)*bmPow(k,2)*(g[x]+C[x])+bmPow(k,3)*g[x],G[x]=E,j!==null&&(O+=bmPow(G[x]-j[x],2));O=bmSqrt(O),I+=O,V.points[A]=new l(O,G),j=G}V.segmentLength=I,y[S]=V}return y[S]}}();function p(y,b){var g=b.percents,m=b.lengths,C=g.length,S=bmFloor((C-1)*y),P=y*b.addedLength,A=0;if(S===C-1||S===0||P===m[S])return g[S];for(var x=m[S]>P?-1:1,R=!0;R;)if(m[S]<=P&&m[S+1]>P?(A=(P-m[S])/(m[S+1]-m[S]),R=!1):S+=x,S<0||S>=C-1){if(S===C-1)return g[S];R=!1}return g[S]+(g[S+1]-g[S])*A}function d(y,b,g,m,C,S){var P=p(C,S),A=1-P,x=e.round((A*A*A*y[0]+(P*A*A+A*P*A+A*A*P)*g[0]+(P*P*A+A*P*P+P*A*P)*m[0]+P*P*P*b[0])*1e3)/1e3,R=e.round((A*A*A*y[1]+(P*A*A+A*P*A+A*A*P)*g[1]+(P*P*A+A*P*P+P*A*P)*m[1]+P*P*P*b[1])*1e3)/1e3;return[x,R]}var f=createTypedArray("float32",8);function _(y,b,g,m,C,S,P){C<0?C=0:C>1&&(C=1);var A=p(C,P);S=S>1?1:S;var x=p(S,P),R,E=y.length,k=1-A,I=1-x,O=k*k*k,G=A*k*k*3,j=A*A*k*3,V=A*A*A,z=k*k*I,q=A*k*I+k*A*I+k*k*x,H=A*A*I+k*A*x+A*k*x,L=A*A*x,B=k*I*I,M=A*I*I+k*x*I+k*I*x,D=A*x*I+k*x*x+A*I*x,N=A*x*x,F=I*I*I,U=x*I*I+I*x*I+I*I*x,W=x*x*I+I*x*x+x*I*x,Q=x*x*x;for(R=0;R<E;R+=1)f[R*4]=e.round((O*y[R]+G*g[R]+j*m[R]+V*b[R])*1e3)/1e3,f[R*4+1]=e.round((z*y[R]+q*g[R]+H*m[R]+L*b[R])*1e3)/1e3,f[R*4+2]=e.round((B*y[R]+M*g[R]+D*m[R]+N*b[R])*1e3)/1e3,f[R*4+3]=e.round((F*y[R]+U*g[R]+W*m[R]+Q*b[R])*1e3)/1e3;return f}return{getSegmentsLength:s,getNewSegment:_,getPointInSegment:d,buildBezierData:u,pointOnLine2D:t,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r=this.offsetTime,n;this.propType==="multidimensional"&&(n=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,a=s,l=this.keyframes.length-1,u=!0,p,d,f;u;){if(p=this.keyframes[a],d=this.keyframes[a+1],a===l-1&&e>=d.t-r){p.h&&(p=d),s=0;break}if(d.t-r>e){s=a;break}a<l-1?a+=1:(s=0,u=!1)}f=this.keyframesMetadata[a]||{};var _,y,b,g,m,C,S=d.t-r,P=p.t-r,A;if(p.to){f.bezierData||(f.bezierData=bez.buildBezierData(p.s,d.s||p.e,p.to,p.ti));var x=f.bezierData;if(e>=S||e<P){var R=e>=S?x.points.length-1:0;for(y=x.points[R].point.length,_=0;_<y;_+=1)n[_]=x.points[R].point[_]}else{f.__fnct?C=f.__fnct:(C=BezierFactory.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y,p.n).get,f.__fnct=C),b=C((e-P)/(S-P));var E=x.segmentLength*b,k,I=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastAddedLength:0;for(m=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastPoint:0,u=!0,g=x.points.length;u;){if(I+=x.points[m].partialLength,E===0||b===0||m===x.points.length-1){for(y=x.points[m].point.length,_=0;_<y;_+=1)n[_]=x.points[m].point[_];break}else if(E>=I&&E<I+x.points[m+1].partialLength){for(k=(E-I)/x.points[m+1].partialLength,y=x.points[m].point.length,_=0;_<y;_+=1)n[_]=x.points[m].point[_]+(x.points[m+1].point[_]-x.points[m].point[_])*k;break}m<g-1?m+=1:u=!1}t._lastPoint=m,t._lastAddedLength=I-x.points[m].partialLength,t._lastKeyframeIndex=a}}else{var O,G,j,V,z;if(l=p.s.length,A=d.s||p.e,this.sh&&p.h!==1)if(e>=S)n[0]=A[0],n[1]=A[1],n[2]=A[2];else if(e<=P)n[0]=p.s[0],n[1]=p.s[1],n[2]=p.s[2];else{var q=createQuaternion(p.s),H=createQuaternion(A),L=(e-P)/(S-P);quaternionToEuler(n,slerp(q,H,L))}else for(a=0;a<l;a+=1)p.h!==1&&(e>=S?b=1:e<P?b=0:(p.o.x.constructor===Array?(f.__fnct||(f.__fnct=[]),f.__fnct[a]?C=f.__fnct[a]:(O=p.o.x[a]===void 0?p.o.x[0]:p.o.x[a],G=p.o.y[a]===void 0?p.o.y[0]:p.o.y[a],j=p.i.x[a]===void 0?p.i.x[0]:p.i.x[a],V=p.i.y[a]===void 0?p.i.y[0]:p.i.y[a],C=BezierFactory.getBezierEasing(O,G,j,V).get,f.__fnct[a]=C)):f.__fnct?C=f.__fnct:(O=p.o.x,G=p.o.y,j=p.i.x,V=p.i.y,C=BezierFactory.getBezierEasing(O,G,j,V).get,p.keyframeMetadata=C),b=C((e-P)/(S-P)))),A=d.s||p.e,z=p.h===1?p.s[a]:p.s[a]+(A[a]-p.s[a])*b,this.propType==="multidimensional"?n[a]=z:n=z}return t.lastIndex=s,n}function slerp(e,t,r){var n=[],s=e[0],a=e[1],l=e[2],u=e[3],p=t[0],d=t[1],f=t[2],_=t[3],y,b,g,m,C;return b=s*p+a*d+l*f+u*_,b<0&&(b=-b,p=-p,d=-d,f=-f,_=-_),1-b>1e-6?(y=Math.acos(b),g=Math.sin(y),m=Math.sin((1-r)*y)/g,C=Math.sin(r*y)/g):(m=1-r,C=r),n[0]=m*s+C*p,n[1]=m*a+C*d,n[2]=m*l+C*f,n[3]=m*u+C*_,n}function quaternionToEuler(e,t){var r=t[0],n=t[1],s=t[2],a=t[3],l=Math.atan2(2*n*a-2*r*s,1-2*n*n-2*s*s),u=Math.asin(2*r*n+2*s*a),p=Math.atan2(2*r*a-2*n*s,1-2*r*r-2*s*s);e[0]=l/degToRads,e[1]=u/degToRads,e[2]=p/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,s=Math.cos(t/2),a=Math.cos(r/2),l=Math.cos(n/2),u=Math.sin(t/2),p=Math.sin(r/2),d=Math.sin(n/2),f=s*a*l-u*p*d,_=u*p*l+s*a*d,y=u*a*l+s*p*d,b=s*p*l-u*a*d;return[_,y,b,f]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,n){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,n){this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,n){this.propType="multidimensional";var s,a=t.k.length,l,u,p,d;for(s=0;s<a-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(l=t.k[s].s,u=t.k[s+1].s,p=t.k[s].to,d=t.k[s].ti,(l.length===2&&!(l[0]===u[0]&&l[1]===u[1])&&bez.pointOnLine2D(l[0],l[1],u[0],u[1],l[0]+p[0],l[1]+p[1])&&bez.pointOnLine2D(l[0],l[1],u[0],u[1],u[0]+d[0],u[1]+d[1])||l.length===3&&!(l[0]===u[0]&&l[1]===u[1]&&l[2]===u[2])&&bez.pointOnLine3D(l[0],l[1],l[2],u[0],u[1],u[2],l[0]+p[0],l[1]+p[1],l[2]+p[2])&&bez.pointOnLine3D(l[0],l[1],l[2],u[0],u[1],u[2],u[0]+d[0],u[1]+d[1],u[2]+d[2]))&&(t.k[s].to=null,t.k[s].ti=null),l[0]===u[0]&&l[1]===u[1]&&p[0]===0&&p[1]===0&&d[0]===0&&d[1]===0&&(l.length===2||l[2]===u[2]&&p[2]===0&&d[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var f=t.k[0].s.length;for(this.v=createTypedArray("float32",f),this.pv=createTypedArray("float32",f),s=0;s<f;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",f)},this.addEffect=addEffect}var PropertyFactory=function(){function e(r,n,s,a,l){n.sid&&(n=r.globalData.slotManager.getProp(n));var u;if(!n.k.length)u=new ValueProperty(r,n,a,l);else if(typeof n.k[0]=="number")u=new MultiDimensionalProperty(r,n,a,l);else switch(s){case 0:u=new KeyframedValueProperty(r,n,a,l);break;case 1:u=new KeyframedMultidimensionalProperty(r,n,a,l);break}return u.effectsSequence.length&&l.addDynamicProperty(u),u}var t={getProp:e};return t}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,r=this.dynamicProperties.length;for(t=0;t<r;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,n,s){var a;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[n]||a[n]&&!s)&&(a[n]=pointPool.newElement()),a[n][0]=e,a[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,s,a,l,u){this.setXYAt(e,t,"v",l,u),this.setXYAt(r,n,"o",l,u),this.setXYAt(s,a,"i",l,u)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),s=1);var a=this._length-1,l=this._length,u;for(u=s;u<l;u+=1)e.setTripleAt(t[a][0],t[a][1],n[a][0],n[a][1],r[a][0],r[a][1],u,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function t(s){var a=s._length,l;for(l=0;l<a;l+=1)pointPool.release(s.v[l]),pointPool.release(s.i[l]),pointPool.release(s.o[l]),s.v[l]=null,s.i[l]=null,s.o[l]=null;s._length=0,s.c=!1}function r(s){var a=n.newElement(),l,u=s._length===void 0?s.v.length:s._length;for(a.setLength(u),a.c=s.c,l=0;l<u;l+=1)a.setTripleAt(s.v[l][0],s.v[l][1],s.o[l][0],s.o[l][1],s.i[l][0],s.i[l][1],l);return a}var n=poolFactory(4,e,t);return n.clone=r,n}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:s,release:a},t=0,r=4,n=createSizedArray(r);function s(){var l;return t?(t-=1,l=n[t]):l=new ShapeCollection,l}function a(l){var u,p=l._length;for(u=0;u<p;u+=1)shapePool.release(l.shapes[u]);l._length=0,t===r&&(n=pooling.double(n),r*=2),n[t]=l,t+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function t(S,P,A){var x=A.lastIndex,R,E,k,I,O,G,j,V,z,q=this.keyframes;if(S<q[0].t-this.offsetTime)R=q[0].s[0],k=!0,x=0;else if(S>=q[q.length-1].t-this.offsetTime)R=q[q.length-1].s?q[q.length-1].s[0]:q[q.length-2].e[0],k=!0;else{for(var H=x,L=q.length-1,B=!0,M,D,N;B&&(M=q[H],D=q[H+1],!(D.t-this.offsetTime>S));)H<L-1?H+=1:B=!1;if(N=this.keyframesMetadata[H]||{},k=M.h===1,x=H,!k){if(S>=D.t-this.offsetTime)V=1;else if(S<M.t-this.offsetTime)V=0;else{var F;N.__fnct?F=N.__fnct:(F=BezierFactory.getBezierEasing(M.o.x,M.o.y,M.i.x,M.i.y).get,N.__fnct=F),V=F((S-(M.t-this.offsetTime))/(D.t-this.offsetTime-(M.t-this.offsetTime)))}E=D.s?D.s[0]:M.e[0]}R=M.s[0]}for(G=P._length,j=R.i[0].length,A.lastIndex=x,I=0;I<G;I+=1)for(O=0;O<j;O+=1)z=k?R.i[I][O]:R.i[I][O]+(E.i[I][O]-R.i[I][O])*V,P.i[I][O]=z,z=k?R.o[I][O]:R.o[I][O]+(E.o[I][O]-R.o[I][O])*V,P.o[I][O]=z,z=k?R.v[I][O]:R.v[I][O]+(E.v[I][O]-R.v[I][O])*V,P.v[I][O]=z}function r(){var S=this.comp.renderedFrame-this.offsetTime,P=this.keyframes[0].t-this.offsetTime,A=this.keyframes[this.keyframes.length-1].t-this.offsetTime,x=this._caching.lastFrame;return x!==e&&(x<P&&S<P||x>A&&S>A)||(this._caching.lastIndex=x<S?this._caching.lastIndex:0,this.interpolateShape(S,this.pv,this._caching)),this._caching.lastFrame=S,this.pv}function n(){this.paths=this.localShapeCollection}function s(S,P){if(S._length!==P._length||S.c!==P.c)return!1;var A,x=S._length;for(A=0;A<x;A+=1)if(S.v[A][0]!==P.v[A][0]||S.v[A][1]!==P.v[A][1]||S.o[A][0]!==P.o[A][0]||S.o[A][1]!==P.o[A][1]||S.i[A][0]!==P.i[A][0]||S.i[A][1]!==P.i[A][1])return!1;return!0}function a(S){s(this.v,S)||(this.v=shapePool.clone(S),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function l(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var S;this.kf?S=this.pv:this.data.ks?S=this.data.ks.k:S=this.data.pt.k;var P,A=this.effectsSequence.length;for(P=0;P<A;P+=1)S=this.effectsSequence[P](S);this.setVValue(S),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function u(S,P,A){this.propType="shape",this.comp=S.comp,this.container=S,this.elem=S,this.data=P,this.k=!1,this.kf=!1,this._mdf=!1;var x=A===3?P.pt.k:P.ks.k;this.v=shapePool.clone(x),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function p(S){this.effectsSequence.push(S),this.container.addDynamicProperty(this)}u.prototype.interpolateShape=t,u.prototype.getValue=l,u.prototype.setVValue=a,u.prototype.addEffect=p;function d(S,P,A){this.propType="shape",this.comp=S.comp,this.elem=S,this.container=S,this.offsetTime=S.data.st,this.keyframes=A===3?P.pt.k:P.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var x=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,x),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}d.prototype.getValue=l,d.prototype.interpolateShape=t,d.prototype.setVValue=a,d.prototype.addEffect=p;var f=function(){var S=roundCorner;function P(A,x){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=x.d,this.elem=A,this.comp=A.comp,this.frameId=-1,this.initDynamicPropertyContainer(A),this.p=PropertyFactory.getProp(A,x.p,1,0,this),this.s=PropertyFactory.getProp(A,x.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return P.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var x=this.p.v[0],R=this.p.v[1],E=this.s.v[0]/2,k=this.s.v[1]/2,I=this.d!==3,O=this.v;O.v[0][0]=x,O.v[0][1]=R-k,O.v[1][0]=I?x+E:x-E,O.v[1][1]=R,O.v[2][0]=x,O.v[2][1]=R+k,O.v[3][0]=I?x-E:x+E,O.v[3][1]=R,O.i[0][0]=I?x-E*S:x+E*S,O.i[0][1]=R-k,O.i[1][0]=I?x+E:x-E,O.i[1][1]=R-k*S,O.i[2][0]=I?x+E*S:x-E*S,O.i[2][1]=R+k,O.i[3][0]=I?x-E:x+E,O.i[3][1]=R+k*S,O.o[0][0]=I?x+E*S:x-E*S,O.o[0][1]=R-k,O.o[1][0]=I?x+E:x-E,O.o[1][1]=R+k*S,O.o[2][0]=I?x-E*S:x+E*S,O.o[2][1]=R+k,O.o[3][0]=I?x-E:x+E,O.o[3][1]=R-k*S}},extendPrototype([DynamicPropertyContainer],P),P}(),_=function(){function S(P,A){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=P,this.comp=P.comp,this.data=A,this.frameId=-1,this.d=A.d,this.initDynamicPropertyContainer(P),A.sy===1?(this.ir=PropertyFactory.getProp(P,A.ir,0,0,this),this.is=PropertyFactory.getProp(P,A.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(P,A.pt,0,0,this),this.p=PropertyFactory.getProp(P,A.p,1,0,this),this.r=PropertyFactory.getProp(P,A.r,0,degToRads,this),this.or=PropertyFactory.getProp(P,A.or,0,0,this),this.os=PropertyFactory.getProp(P,A.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return S.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var A=Math.floor(this.pt.v)*2,x=Math.PI*2/A,R=!0,E=this.or.v,k=this.ir.v,I=this.os.v,O=this.is.v,G=2*Math.PI*E/(A*2),j=2*Math.PI*k/(A*2),V,z,q,H,L=-Math.PI/2;L+=this.r.v;var B=this.data.d===3?-1:1;for(this.v._length=0,V=0;V<A;V+=1){z=R?E:k,q=R?I:O,H=R?G:j;var M=z*Math.cos(L),D=z*Math.sin(L),N=M===0&&D===0?0:D/Math.sqrt(M*M+D*D),F=M===0&&D===0?0:-M/Math.sqrt(M*M+D*D);M+=+this.p.v[0],D+=+this.p.v[1],this.v.setTripleAt(M,D,M-N*H*q*B,D-F*H*q*B,M+N*H*q*B,D+F*H*q*B,V,!0),R=!R,L+=x*B}},convertPolygonToPath:function(){var A=Math.floor(this.pt.v),x=Math.PI*2/A,R=this.or.v,E=this.os.v,k=2*Math.PI*R/(A*4),I,O=-Math.PI*.5,G=this.data.d===3?-1:1;for(O+=this.r.v,this.v._length=0,I=0;I<A;I+=1){var j=R*Math.cos(O),V=R*Math.sin(O),z=j===0&&V===0?0:V/Math.sqrt(j*j+V*V),q=j===0&&V===0?0:-j/Math.sqrt(j*j+V*V);j+=+this.p.v[0],V+=+this.p.v[1],this.v.setTripleAt(j,V,j-z*k*E*G,V-q*k*E*G,j+z*k*E*G,V+q*k*E*G,I,!0),O+=x*G}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],S),S}(),y=function(){function S(P,A){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=P,this.comp=P.comp,this.frameId=-1,this.d=A.d,this.initDynamicPropertyContainer(P),this.p=PropertyFactory.getProp(P,A.p,1,0,this),this.s=PropertyFactory.getProp(P,A.s,1,0,this),this.r=PropertyFactory.getProp(P,A.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return S.prototype={convertRectToPath:function(){var A=this.p.v[0],x=this.p.v[1],R=this.s.v[0]/2,E=this.s.v[1]/2,k=bmMin(R,E,this.r.v),I=k*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(A+R,x-E+k,A+R,x-E+k,A+R,x-E+I,0,!0),this.v.setTripleAt(A+R,x+E-k,A+R,x+E-I,A+R,x+E-k,1,!0),k!==0?(this.v.setTripleAt(A+R-k,x+E,A+R-k,x+E,A+R-I,x+E,2,!0),this.v.setTripleAt(A-R+k,x+E,A-R+I,x+E,A-R+k,x+E,3,!0),this.v.setTripleAt(A-R,x+E-k,A-R,x+E-k,A-R,x+E-I,4,!0),this.v.setTripleAt(A-R,x-E+k,A-R,x-E+I,A-R,x-E+k,5,!0),this.v.setTripleAt(A-R+k,x-E,A-R+k,x-E,A-R+I,x-E,6,!0),this.v.setTripleAt(A+R-k,x-E,A+R-I,x-E,A+R-k,x-E,7,!0)):(this.v.setTripleAt(A-R,x+E,A-R+I,x+E,A-R,x+E,2),this.v.setTripleAt(A-R,x-E,A-R,x-E+I,A-R,x-E,3))):(this.v.setTripleAt(A+R,x-E+k,A+R,x-E+I,A+R,x-E+k,0,!0),k!==0?(this.v.setTripleAt(A+R-k,x-E,A+R-k,x-E,A+R-I,x-E,1,!0),this.v.setTripleAt(A-R+k,x-E,A-R+I,x-E,A-R+k,x-E,2,!0),this.v.setTripleAt(A-R,x-E+k,A-R,x-E+k,A-R,x-E+I,3,!0),this.v.setTripleAt(A-R,x+E-k,A-R,x+E-I,A-R,x+E-k,4,!0),this.v.setTripleAt(A-R+k,x+E,A-R+k,x+E,A-R+I,x+E,5,!0),this.v.setTripleAt(A+R-k,x+E,A+R-I,x+E,A+R-k,x+E,6,!0),this.v.setTripleAt(A+R,x+E-k,A+R,x+E-k,A+R,x+E-I,7,!0)):(this.v.setTripleAt(A-R,x-E,A-R+I,x-E,A-R,x-E,1,!0),this.v.setTripleAt(A-R,x+E,A-R,x+E-I,A-R,x+E,2,!0),this.v.setTripleAt(A+R,x+E,A+R-I,x+E,A+R,x+E,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],S),S}();function b(S,P,A){var x;if(A===3||A===4){var R=A===3?P.pt:P.ks,E=R.k;E.length?x=new d(S,P,A):x=new u(S,P,A)}else A===5?x=new y(S,P):A===6?x=new f(S,P):A===7&&(x=new _(S,P));return x.k&&S.addDynamicProperty(x),x}function g(){return u}function m(){return d}var C={};return C.getShapeProp=b,C.getConstructorFunction=g,C.getKeyframedConstructorFunction=m,C}();/*!
  160. Transformation Matrix v2.0
  161. (c) Epistemex 2014-2015
  162. www.epistemex.com
  163. By Ken Fyrstenberg
  164. Contributions by leeoniya.
  165. License: MIT, header required.
  166. */var Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(M){if(M===0)return this;var D=e(M),N=t(M);return this._t(D,-N,0,0,N,D,0,0,0,0,1,0,0,0,0,1)}function l(M){if(M===0)return this;var D=e(M),N=t(M);return this._t(1,0,0,0,0,D,-N,0,0,N,D,0,0,0,0,1)}function u(M){if(M===0)return this;var D=e(M),N=t(M);return this._t(D,0,N,0,0,1,0,0,-N,0,D,0,0,0,0,1)}function p(M){if(M===0)return this;var D=e(M),N=t(M);return this._t(D,-N,0,0,N,D,0,0,0,0,1,0,0,0,0,1)}function d(M,D){return this._t(1,D,M,1,0,0)}function f(M,D){return this.shear(r(M),r(D))}function _(M,D){var N=e(D),F=t(D);return this._t(N,F,0,0,-F,N,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(M),1,0,0,0,0,1,0,0,0,0,1)._t(N,-F,0,0,F,N,0,0,0,0,1,0,0,0,0,1)}function y(M,D,N){return!N&&N!==0&&(N=1),M===1&&D===1&&N===1?this:this._t(M,0,0,0,0,D,0,0,0,0,N,0,0,0,0,1)}function b(M,D,N,F,U,W,Q,Z,re,ne,ie,le,oe,ce,he,te){return this.props[0]=M,this.props[1]=D,this.props[2]=N,this.props[3]=F,this.props[4]=U,this.props[5]=W,this.props[6]=Q,this.props[7]=Z,this.props[8]=re,this.props[9]=ne,this.props[10]=ie,this.props[11]=le,this.props[12]=oe,this.props[13]=ce,this.props[14]=he,this.props[15]=te,this}function g(M,D,N){return N=N||0,M!==0||D!==0||N!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,M,D,N,1):this}function m(M,D,N,F,U,W,Q,Z,re,ne,ie,le,oe,ce,he,te){var X=this.props;if(M===1&&D===0&&N===0&&F===0&&U===0&&W===1&&Q===0&&Z===0&&re===0&&ne===0&&ie===1&&le===0)return X[12]=X[12]*M+X[15]*oe,X[13]=X[13]*W+X[15]*ce,X[14]=X[14]*ie+X[15]*he,X[15]*=te,this._identityCalculated=!1,this;var de=X[0],ae=X[1],ue=X[2],_e=X[3],Se=X[4],ge=X[5],me=X[6],ye=X[7],K=X[8],Y=X[9],J=X[10],ee=X[11],se=X[12],pe=X[13],ve=X[14],fe=X[15];return X[0]=de*M+ae*U+ue*re+_e*oe,X[1]=de*D+ae*W+ue*ne+_e*ce,X[2]=de*N+ae*Q+ue*ie+_e*he,X[3]=de*F+ae*Z+ue*le+_e*te,X[4]=Se*M+ge*U+me*re+ye*oe,X[5]=Se*D+ge*W+me*ne+ye*ce,X[6]=Se*N+ge*Q+me*ie+ye*he,X[7]=Se*F+ge*Z+me*le+ye*te,X[8]=K*M+Y*U+J*re+ee*oe,X[9]=K*D+Y*W+J*ne+ee*ce,X[10]=K*N+Y*Q+J*ie+ee*he,X[11]=K*F+Y*Z+J*le+ee*te,X[12]=se*M+pe*U+ve*re+fe*oe,X[13]=se*D+pe*W+ve*ne+fe*ce,X[14]=se*N+pe*Q+ve*ie+fe*he,X[15]=se*F+pe*Z+ve*le+fe*te,this._identityCalculated=!1,this}function C(M){var D=M.props;return this.transform(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15])}function S(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function P(M){for(var D=0;D<16;){if(M.props[D]!==this.props[D])return!1;D+=1}return!0}function A(M){var D;for(D=0;D<16;D+=1)M.props[D]=this.props[D];return M}function x(M){var D;for(D=0;D<16;D+=1)this.props[D]=M[D]}function R(M,D,N){return{x:M*this.props[0]+D*this.props[4]+N*this.props[8]+this.props[12],y:M*this.props[1]+D*this.props[5]+N*this.props[9]+this.props[13],z:M*this.props[2]+D*this.props[6]+N*this.props[10]+this.props[14]}}function E(M,D,N){return M*this.props[0]+D*this.props[4]+N*this.props[8]+this.props[12]}function k(M,D,N){return M*this.props[1]+D*this.props[5]+N*this.props[9]+this.props[13]}function I(M,D,N){return M*this.props[2]+D*this.props[6]+N*this.props[10]+this.props[14]}function O(){var M=this.props[0]*this.props[5]-this.props[1]*this.props[4],D=this.props[5]/M,N=-this.props[1]/M,F=-this.props[4]/M,U=this.props[0]/M,W=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/M,Q=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/M,Z=new Matrix;return Z.props[0]=D,Z.props[1]=N,Z.props[4]=F,Z.props[5]=U,Z.props[12]=W,Z.props[13]=Q,Z}function G(M){var D=this.getInverseMatrix();return D.applyToPointArray(M[0],M[1],M[2]||0)}function j(M){var D,N=M.length,F=[];for(D=0;D<N;D+=1)F[D]=G(M[D]);return F}function V(M,D,N){var F=createTypedArray("float32",6);if(this.isIdentity())F[0]=M[0],F[1]=M[1],F[2]=D[0],F[3]=D[1],F[4]=N[0],F[5]=N[1];else{var U=this.props[0],W=this.props[1],Q=this.props[4],Z=this.props[5],re=this.props[12],ne=this.props[13];F[0]=M[0]*U+M[1]*Q+re,F[1]=M[0]*W+M[1]*Z+ne,F[2]=D[0]*U+D[1]*Q+re,F[3]=D[0]*W+D[1]*Z+ne,F[4]=N[0]*U+N[1]*Q+re,F[5]=N[0]*W+N[1]*Z+ne}return F}function z(M,D,N){var F;return this.isIdentity()?F=[M,D,N]:F=[M*this.props[0]+D*this.props[4]+N*this.props[8]+this.props[12],M*this.props[1]+D*this.props[5]+N*this.props[9]+this.props[13],M*this.props[2]+D*this.props[6]+N*this.props[10]+this.props[14]],F}function q(M,D){if(this.isIdentity())return M+","+D;var N=this.props;return Math.round((M*N[0]+D*N[4]+N[12])*100)/100+","+Math.round((M*N[1]+D*N[5]+N[13])*100)/100}function H(){for(var M=0,D=this.props,N="matrix3d(",F=1e4;M<16;)N+=n(D[M]*F)/F,N+=M===15?")":",",M+=1;return N}function L(M){var D=1e4;return M<1e-6&&M>0||M>-1e-6&&M<0?n(M*D)/D:M}function B(){var M=this.props,D=L(M[0]),N=L(M[1]),F=L(M[4]),U=L(M[5]),W=L(M[12]),Q=L(M[13]);return"matrix("+D+","+N+","+F+","+U+","+W+","+Q+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=l,this.rotateY=u,this.rotateZ=p,this.skew=f,this.skewFromAxis=_,this.shear=d,this.scale=y,this.setTransform=b,this.translate=g,this.transform=m,this.multiply=C,this.applyToPoint=R,this.applyToX=E,this.applyToY=k,this.applyToZ=I,this.applyToPointArray=z,this.applyToTriplePoints=V,this.applyToPointStringified=q,this.toCSS=H,this.to2dCSS=B,this.clone=A,this.cloneFromProps=x,this.equals=P,this.inversePoints=j,this.inversePoint=G,this.getInverseMatrix=O,this._t=this.transform,this.isIdentity=S,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(r){return typeof r}:_typeof$3=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};e.registerModifier=r,e.getModifier=n;function r(s,a){t[s]||(t[s]=a)}function n(s,a,l){return new t[s](a,l)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,n,s){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var l=[],u,p=a.length,d;for(u=0;u<p;u+=1)if(d=a[u],!(d.e*s<n||d.s*s>n+r)){var f,_;d.s*s<=n?f=0:f=(d.s*s-n)/r,d.e*s>=n+r?_=1:_=(d.e*s-n)/r,l.push([f,_])}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?t=1+n:this.s.v<0?t=0+n:t=this.s.v+n,this.e.v>1?r=1+n:this.e.v<0?r=0+n:r=this.e.v+n,t>r){var s=t;t=r,r=s}t=Math.round(t*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var a,l,u=this.shapes.length,p,d,f,_,y,b=0;if(r===t)for(l=0;l<u;l+=1)this.shapes[l].localShapeCollection.releaseShapes(),this.shapes[l].shape._mdf=!0,this.shapes[l].shape.paths=this.shapes[l].localShapeCollection,this._mdf&&(this.shapes[l].pathsData.length=0);else if(r===1&&t===0||r===0&&t===1){if(this._mdf)for(l=0;l<u;l+=1)this.shapes[l].pathsData.length=0,this.shapes[l].shape._mdf=!0}else{var g=[],m,C;for(l=0;l<u;l+=1)if(m=this.shapes[l],!m.shape._mdf&&!this._mdf&&!e&&this.m!==2)m.shape.paths=m.localShapeCollection;else{if(a=m.shape.paths,d=a._length,y=0,!m.shape._mdf&&m.pathsData.length)y=m.totalShapeLength;else{for(f=this.releasePathsData(m.pathsData),p=0;p<d;p+=1)_=bez.getSegmentsLength(a.shapes[p]),f.push(_),y+=_.totalLength;m.totalShapeLength=y,m.pathsData=f}b+=y,m.shape._mdf=!0}var S=t,P=r,A=0,x;for(l=u-1;l>=0;l-=1)if(m=this.shapes[l],m.shape._mdf){for(C=m.localShapeCollection,C.releaseShapes(),this.m===2&&u>1?(x=this.calculateShapeEdges(t,r,m.totalShapeLength,A,b),A+=m.totalShapeLength):x=[[S,P]],d=x.length,p=0;p<d;p+=1){S=x[p][0],P=x[p][1],g.length=0,P<=1?g.push({s:m.totalShapeLength*S,e:m.totalShapeLength*P}):S>=1?g.push({s:m.totalShapeLength*(S-1),e:m.totalShapeLength*(P-1)}):(g.push({s:m.totalShapeLength*S,e:m.totalShapeLength}),g.push({s:0,e:m.totalShapeLength*(P-1)}));var R=this.addShapes(m,g[0]);if(g[0].s!==g[0].e){if(g.length>1){var E=m.shape.paths.shapes[m.shape.paths._length-1];if(E.c){var k=R.pop();this.addPaths(R,C),R=this.addShapes(m,g[1],k)}else this.addPaths(R,C),R=this.addShapes(m,g[1])}this.addPaths(R,C)}}m.shape.paths=C}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,s,a,l){s.setXYAt(t[0],t[1],"o",a),s.setXYAt(r[0],r[1],"i",a+1),l&&s.setXYAt(e[0],e[1],"v",a),s.setXYAt(n[0],n[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var n=e.pathsData,s=e.shape.paths.shapes,a,l=e.shape.paths._length,u,p,d=0,f,_,y,b,g=[],m,C=!0;for(r?(_=r._length,m=r._length):(r=shapePool.newElement(),_=0,m=0),g.push(r),a=0;a<l;a+=1){for(y=n[a].lengths,r.c=s[a].c,p=s[a].c?y.length:y.length+1,u=1;u<p;u+=1)if(f=y[u-1],d+f.addedLength<t.s)d+=f.addedLength,r.c=!1;else if(d>t.e){r.c=!1;break}else t.s<=d&&t.e>=d+f.addedLength?(this.addSegment(s[a].v[u-1],s[a].o[u-1],s[a].i[u],s[a].v[u],r,_,C),C=!1):(b=bez.getNewSegment(s[a].v[u-1],s[a].v[u],s[a].o[u-1],s[a].i[u],(t.s-d)/f.addedLength,(t.e-d)/f.addedLength,y[u-1]),this.addSegmentFromArray(b,r,_,C),C=!1,r.c=!1),d+=f.addedLength,_+=1;if(s[a].c&&y.length){if(f=y[u-1],d<=t.e){var S=y[u-1].addedLength;t.s<=d&&t.e>=d+S?(this.addSegment(s[a].v[u-1],s[a].o[u-1],s[a].i[0],s[a].v[0],r,_,C),C=!1):(b=bez.getNewSegment(s[a].v[u-1],s[a].v[0],s[a].o[u-1],s[a].i[0],(t.s-d)/S,(t.e-d)/S,y[u-1]),this.addSegmentFromArray(b,r,_,C),C=!1,r.c=!1)}else r.c=!1;d+=f.addedLength,_+=1}if(r._length&&(r.setXYAt(r.v[m][0],r.v[m][1],"i",m),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>t.e)break;a<l-1&&(r=shapePool.newElement(),C=!0,g.push(r),_=0)}return g};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,n=[0,0],s=e._length,a=0;for(a=0;a<s;a+=1)n[0]+=e.v[a][0],n[1]+=e.v[a][1];n[0]/=s,n[1]/=s;var l=shapePool.newElement();l.c=e.c;var u,p,d,f,_,y;for(a=0;a<s;a+=1)u=e.v[a][0]+(n[0]-e.v[a][0])*r,p=e.v[a][1]+(n[1]-e.v[a][1])*r,d=e.o[a][0]+(n[0]-e.o[a][0])*-r,f=e.o[a][1]+(n[1]-e.o[a][1])*-r,_=e.i[a][0]+(n[0]-e.i[a][0])*-r,y=e.i[a][1]+(n[1]-e.i[a][1])*-r,l.setTripleAt(u,p,d,f,_,y,a);return l},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n=this.shapes.length,s,a,l=this.amount.v;if(l!==0){var u,p;for(r=0;r<n;r+=1){if(u=this.shapes[r],p=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(p.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)p.addShape(this.processPath(t[s],l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(p){var d=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||d,this.a&&p.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&p.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&p.skewFromAxis(-this.sk.v,this.sa.v),this.r?p.rotate(-this.r.v):p.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?p.translate(this.px.v,this.py.v,-this.pz.v):p.translate(this.px.v,this.py.v,0):p.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(p){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||p){var d;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var f,_;if(d=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(f=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/d,0),_=this.p.getValueAtTime(this.p.keyframes[0].t/d,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(f=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/d,0),_=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/d,0)):(f=this.p.pv,_=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/d,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){f=[],_=[];var y=this.px,b=this.py;y._caching.lastFrame+y.offsetTime<=y.keyframes[0].t?(f[0]=y.getValueAtTime((y.keyframes[0].t+.01)/d,0),f[1]=b.getValueAtTime((b.keyframes[0].t+.01)/d,0),_[0]=y.getValueAtTime(y.keyframes[0].t/d,0),_[1]=b.getValueAtTime(b.keyframes[0].t/d,0)):y._caching.lastFrame+y.offsetTime>=y.keyframes[y.keyframes.length-1].t?(f[0]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/d,0),f[1]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/d,0),_[0]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/d,0),_[1]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/d,0)):(f=[y.pv,b.pv],_[0]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/d,y.offsetTime),_[1]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/d,b.offsetTime))}else _=e,f=_;this.v.rotate(-Math.atan2(f[1]-_[1],f[0]-_[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function a(p){this._addDynamicProperty(p),this.elem.addDynamicProperty(p),this._isDirty=!0}function l(p,d,f){if(this.elem=p,this.frameId=-1,this.propType="transform",this.data=d,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(f||p),d.p&&d.p.s?(this.px=PropertyFactory.getProp(p,d.p.x,0,0,this),this.py=PropertyFactory.getProp(p,d.p.y,0,0,this),d.p.z&&(this.pz=PropertyFactory.getProp(p,d.p.z,0,0,this))):this.p=PropertyFactory.getProp(p,d.p||{k:[0,0,0]},1,0,this),d.rx){if(this.rx=PropertyFactory.getProp(p,d.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(p,d.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(p,d.rz,0,degToRads,this),d.or.k[0].ti){var _,y=d.or.k.length;for(_=0;_<y;_+=1)d.or.k[_].to=null,d.or.k[_].ti=null}this.or=PropertyFactory.getProp(p,d.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(p,d.r||{k:0},0,degToRads,this);d.sk&&(this.sk=PropertyFactory.getProp(p,d.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(p,d.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(p,d.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(p,d.s||{k:[100,100,100]},1,.01,this),d.o?this.o=PropertyFactory.getProp(p,d.o,0,.01,p):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}l.prototype={applyToMatrix:t,getValue:r,precalculateMatrix:n,autoOrient:s},extendPrototype([DynamicPropertyContainer],l),l.prototype.addDynamicProperty=a,l.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function u(p,d,f){return new l(p,d,f)}return{getTransformProperty:u}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,n,s,a){var l=a?-1:1,u=n.s.v[0]+(1-n.s.v[0])*(1-s),p=n.s.v[1]+(1-n.s.v[1])*(1-s);e.translate(n.p.v[0]*l*s,n.p.v[1]*l*s,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*l*s),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(a?1/u:u,a?1/p:p),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,s,a,l=!1;if(this._mdf||e){var u=Math.ceil(this.c.v);if(this._groups.length<u){for(;this._groups.length<u;){var p={it:this.cloneElements(this._elements),ty:"gr"};p.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,p),this._groups.splice(0,0,p),this._currentCopies+=1}this.elem.reloadShapes(),l=!0}a=0;var d;for(n=0;n<=this._groups.length-1;n+=1){if(d=a<u,this._groups[n]._render=d,this.changeGroupRender(this._groups[n].it,d),!d){var f=this.elemsData[n].it,_=f[f.length-1];_.transform.op.v!==0?(_.transform.op._mdf=!0,_.transform.op.v=0):_.transform.op._mdf=!1}a+=1}this._currentCopies=u;var y=this.o.v,b=y%1,g=y>0?Math.floor(y):Math.ceil(y),m=this.pMatrix.props,C=this.rMatrix.props,S=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var P=0;if(y>0){for(;P<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),P+=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,b,!1),P+=b)}else if(y<0){for(;P>g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),P-=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-b,!0),P-=b)}n=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var A,x;a;){if(t=this.elemsData[n].it,r=t[t.length-1].transform.mProps.v.props,x=r.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),P!==0){for((n!==0&&s===1||n!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),this.matrix.transform(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),A=0;A<x;A+=1)r[A]=this.matrix.props[A];this.matrix.reset()}else for(this.matrix.reset(),A=0;A<x;A+=1)r[A]=this.matrix.props[A];P+=1,a-=1,n+=s}}else for(a=this._currentCopies,n=0,s=1;a;)t=this.elemsData[n].it,r=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,n+=s;return l},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r=shapePool.newElement();r.c=e.c;var n,s=e._length,a,l,u,p,d,f,_=0,y,b,g,m,C,S;for(n=0;n<s;n+=1)a=e.v[n],u=e.o[n],l=e.i[n],a[0]===u[0]&&a[1]===u[1]&&a[0]===l[0]&&a[1]===l[1]?(n===0||n===s-1)&&!e.c?(r.setTripleAt(a[0],a[1],u[0],u[1],l[0],l[1],_),_+=1):(n===0?p=e.v[s-1]:p=e.v[n-1],d=Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2)),f=d?Math.min(d/2,t)/d:0,C=a[0]+(p[0]-a[0])*f,y=C,S=a[1]-(a[1]-p[1])*f,b=S,g=y-(y-a[0])*roundCorner,m=b-(b-a[1])*roundCorner,r.setTripleAt(y,b,g,m,C,S,_),_+=1,n===s-1?p=e.v[0]:p=e.v[n+1],d=Math.sqrt(Math.pow(a[0]-p[0],2)+Math.pow(a[1]-p[1],2)),f=d?Math.min(d/2,t)/d:0,g=a[0]+(p[0]-a[0])*f,y=g,m=a[1]+(p[1]-a[1])*f,b=m,C=y-(y-a[0])*roundCorner,S=b-(b-a[1])*roundCorner,r.setTripleAt(y,b,g,m,C,S,_),_+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],_),_+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n=this.shapes.length,s,a,l=this.rd.v;if(l!==0){var u,p;for(r=0;r<n;r+=1){if(u=this.shapes[r],p=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(p.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)p.addShape(this.processPath(t[s],l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(e===0)return[];var n=t*t-4*e*r;if(n<0)return[];var s=-t/(2*e);if(n===0)return[s];var a=Math.sqrt(n)/(2*e);return[s-a,s+a]}function polynomialCoefficients(e,t,r,n){return[-e+3*t-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),s&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var a=polynomialCoefficients(e[0],t[0],r[0],n[0]),l=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[a[0],l[0]],this.b=[a[1],l[1]],this.c=[a[2],l[2]],this.d=[a[3],l[3]],this.points=[e,t,r,n]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,r,e),a=lerpPoint(r,n,e),l=lerpPoint(s,a,e);return[new PolynomialBezier(this.points[0],t,s,l,!0),new PolynomialBezier(l,a,n,this.points[3],!0)]};function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var s=n;n=r,r=s}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),l=0;l<a.length;l+=1)if(a[l]>0&&a[l]<1){var u=e.point(a[l])[t];u<r?r=u:u>n&&(n=u)}return{min:r,max:n}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,r,n,s,a){if(boxIntersect(e,t)){if(r>=a||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n){s.push([e.t,t.t]);return}var l=splitData(e),u=splitData(t);intersectsImpl(l[0],u[0],r+1,n,s,a),intersectsImpl(l[0],u[1],r+1,n,s,a),intersectsImpl(l[1],u[0],r+1,n,s,a),intersectsImpl(l[1],u[1],r+1,n,s,a)}}PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var s=[e[0],e[1],1],a=[t[0],t[1],1],l=[r[0],r[1],1],u=[n[0],n[1],1],p=crossProduct(crossProduct(s,a),crossProduct(l,u));return floatZero(p[2])?null:[p[0]/p[2],p[1]/p[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,r,n,s,a,l){var u=r-Math.PI/2,p=r+Math.PI/2,d=t[0]+Math.cos(r)*n*s,f=t[1]-Math.sin(r)*n*s;e.setTripleAt(d,f,d+Math.cos(u)*a,f-Math.sin(u)*a,d+Math.cos(p)*l,f-Math.sin(p)*l,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=-Math.PI*.5,s=[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]];return s}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,n=(t+1)%e.length(),s=e.v[r],a=e.v[n],l=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(l[1],l[0])}function zigZagCorner(e,t,r,n,s,a,l){var u=getProjectingAngle(t,r),p=t.v[r%t._length],d=t.v[r===0?t._length-1:r-1],f=t.v[(r+1)%t._length],_=a===2?Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)):0,y=a===2?Math.sqrt(Math.pow(p[0]-f[0],2)+Math.pow(p[1]-f[1],2)):0;setPoint(e,t.v[r%t._length],u,l,n,y/((s+1)*2),_/((s+1)*2))}function zigZagSegment(e,t,r,n,s,a){for(var l=0;l<n;l+=1){var u=(l+1)/(n+1),p=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,d=t.normalAngle(u),f=t.point(u);setPoint(e,f,d,a,r,p/((n+1)*2),p/((n+1)*2)),a=-a}return a}ZigZagModifier.prototype.processPath=function(e,t,r,n){var s=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(s-=1),s===0)return a;var l=-1,u=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,r,n,l);for(var p=0;p<s;p+=1)l=zigZagSegment(a,u,t,r,n,-l),p===s-1&&!e.c?u=null:u=PolynomialBezier.shapeSegment(e,(p+1)%s),zigZagCorner(a,e,p+1,t,r,n,l);return a},ZigZagModifier.prototype.processShapes=function(e){var t,r,n=this.shapes.length,s,a,l=this.amplitude.v,u=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(l!==0){var d,f;for(r=0;r<n;r+=1){if(d=this.shapes[r],f=d.localShapeCollection,!(!d.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),d.shape._mdf=!0,t=d.shape.paths.shapes,a=d.shape.paths._length,s=0;s<a;s+=1)f.addShape(this.processPath(t[s],l,u,p));d.shape.paths=d.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,s,a,l,u,p;p=linearOffset(e.points[0],e.points[1],t),r=p[0],n=p[1],p=linearOffset(e.points[1],e.points[2],t),s=p[0],a=p[1],p=linearOffset(e.points[2],e.points[3],t),l=p[0],u=p[1];var d=lineIntersection(r,n,s,a);d===null&&(d=n);var f=lineIntersection(l,u,s,a);return f===null&&(f=l),new PolynomialBezier(r,d,f,u)}function joinLines(e,t,r,n,s){var a=t.points[3],l=r.points[0];if(n===3||pointEqual(a,l))return a;if(n===2){var u=-t.tangentAngle(1),p=-r.tangentAngle(0)+Math.PI,d=lineIntersection(a,polarOffset(a,u+Math.PI/2,100),l,polarOffset(l,u+Math.PI/2,100)),f=d?pointDistance(d,a):pointDistance(a,l)/2,_=polarOffset(a,u,2*f*roundCorner);return e.setXYAt(_[0],_[1],"o",e.length()-1),_=polarOffset(l,p,2*f*roundCorner),e.setTripleAt(l[0],l[1],l[0],l[1],_[0],_[1],e.length()),l}var y=pointEqual(a,t.points[2])?t.points[0]:t.points[2],b=pointEqual(l,r.points[1])?r.points[3]:r.points[1],g=lineIntersection(y,a,l,b);return g&&pointDistance(g,a)<s?(e.setTripleAt(g[0],g[1],g[0],g[1],g[0],g[1],e.length()),g):a}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),n=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(r[e.length-1]=e[e.length-1].split(s[0])[0],n[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r=e.inflectionPoints(),n,s,a,l;if(r.length===0)return[offsetSegment(e,t)];if(r.length===1||floatEqual(r[1],1))return a=e.split(r[0]),n=a[0],s=a[1],[offsetSegment(n,t),offsetSegment(s,t)];a=e.split(r[0]),n=a[0];var u=(r[1]-r[0])/(1-r[0]);return a=a[1].split(u),l=a[0],s=a[1],[offsetSegment(n,t),offsetSegment(l,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,r,n){var s=shapePool.newElement();s.c=e.c;var a=e.length();e.c||(a-=1);var l,u,p,d=[];for(l=0;l<a;l+=1)p=PolynomialBezier.shapeSegment(e,l),d.push(offsetSegmentSplit(p,t));if(!e.c)for(l=a-1;l>=0;l-=1)p=PolynomialBezier.shapeSegmentInverted(e,l),d.push(offsetSegmentSplit(p,t));d=pruneIntersections(d);var f=null,_=null;for(l=0;l<d.length;l+=1){var y=d[l];for(_&&(f=joinLines(s,_,y[0],r,n)),_=y[y.length-1],u=0;u<y.length;u+=1)p=y[u],f&&pointEqual(p.points[0],f)?s.setXYAt(p.points[1][0],p.points[1][1],"o",s.length()-1):s.setTripleAt(p.points[0][0],p.points[0][1],p.points[1][0],p.points[1][1],p.points[0][0],p.points[0][1],s.length()),s.setTripleAt(p.points[3][0],p.points[3][1],p.points[3][0],p.points[3][1],p.points[2][0],p.points[2][1],s.length()),f=p.points[3]}return d.length&&joinLines(s,_,d[0][0],r,n),s},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n=this.shapes.length,s,a,l=this.amount.v,u=this.miterLimit.v,p=this.lineJoin;if(l!==0){var d,f;for(r=0;r<n;r+=1){if(d=this.shapes[r],f=d.localShapeCollection,!(!d.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),d.shape._mdf=!0,t=d.shape.paths.shapes,a=d.shape.paths._length,s=0;s<a;s+=1)f.addShape(this.processPath(t[s],l,p,u));d.shape.paths=d.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",s=t.length,a,l=0;l<s;l+=1)switch(a=t[l].toLowerCase(),a){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break}return{style:n,weight:e.fWeight||r}}var FontManager=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,s=917631,a=917601,l=917626,u=65039,p=8205,d=127462,f=127487,_=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function y(L){var B=L.split(","),M,D=B.length,N=[];for(M=0;M<D;M+=1)B[M]!=="sans-serif"&&B[M]!=="monospace"&&N.push(B[M]);return N.join(",")}function b(L,B){var M=createTag("span");M.setAttribute("aria-hidden",!0),M.style.fontFamily=B;var D=createTag("span");D.innerText="giItT1WQy@!-/#",M.style.position="absolute",M.style.left="-10000px",M.style.top="-10000px",M.style.fontSize="300px",M.style.fontVariant="normal",M.style.fontStyle="normal",M.style.fontWeight="normal",M.style.letterSpacing="0",M.appendChild(D),document.body.appendChild(M);var N=D.offsetWidth;return D.style.fontFamily=y(L)+", "+B,{node:D,w:N,parent:M}}function g(){var L,B=this.fonts.length,M,D,N=B;for(L=0;L<B;L+=1)this.fonts[L].loaded?N-=1:this.fonts[L].fOrigin==="n"||this.fonts[L].origin===0?this.fonts[L].loaded=!0:(M=this.fonts[L].monoCase.node,D=this.fonts[L].monoCase.w,M.offsetWidth!==D?(N-=1,this.fonts[L].loaded=!0):(M=this.fonts[L].sansCase.node,D=this.fonts[L].sansCase.w,M.offsetWidth!==D&&(N-=1,this.fonts[L].loaded=!0)),this.fonts[L].loaded&&(this.fonts[L].sansCase.parent.parentNode.removeChild(this.fonts[L].sansCase.parent),this.fonts[L].monoCase.parent.parentNode.removeChild(this.fonts[L].monoCase.parent)));N!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function m(L,B){var M=document.body&&B?"svg":"canvas",D,N=getFontProperties(L);if(M==="svg"){var F=createNS("text");F.style.fontSize="100px",F.setAttribute("font-family",L.fFamily),F.setAttribute("font-style",N.style),F.setAttribute("font-weight",N.weight),F.textContent="1",L.fClass?(F.style.fontFamily="inherit",F.setAttribute("class",L.fClass)):F.style.fontFamily=L.fFamily,B.appendChild(F),D=F}else{var U=new OffscreenCanvas(500,500).getContext("2d");U.font=N.style+" "+N.weight+" 100px "+L.fFamily,D=U}function W(Q){return M==="svg"?(D.textContent=Q,D.getComputedTextLength()):D.measureText(Q).width}return{measureText:W}}function C(L,B){if(!L){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=L.list;return}if(!document.body){this.isLoaded=!0,L.list.forEach(function(ie){ie.helper=m(ie),ie.cache={}}),this.fonts=L.list;return}var M=L.list,D,N=M.length,F=N;for(D=0;D<N;D+=1){var U=!0,W,Q;if(M[D].loaded=!1,M[D].monoCase=b(M[D].fFamily,"monospace"),M[D].sansCase=b(M[D].fFamily,"sans-serif"),!M[D].fPath)M[D].loaded=!0,F-=1;else if(M[D].fOrigin==="p"||M[D].origin===3){if(W=document.querySelectorAll('style[f-forigin="p"][f-family="'+M[D].fFamily+'"], style[f-origin="3"][f-family="'+M[D].fFamily+'"]'),W.length>0&&(U=!1),U){var Z=createTag("style");Z.setAttribute("f-forigin",M[D].fOrigin),Z.setAttribute("f-origin",M[D].origin),Z.setAttribute("f-family",M[D].fFamily),Z.type="text/css",Z.innerText="@font-face {font-family: "+M[D].fFamily+"; font-style: normal; src: url('"+M[D].fPath+"');}",B.appendChild(Z)}}else if(M[D].fOrigin==="g"||M[D].origin===1){for(W=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Q=0;Q<W.length;Q+=1)W[Q].href.indexOf(M[D].fPath)!==-1&&(U=!1);if(U){var re=createTag("link");re.setAttribute("f-forigin",M[D].fOrigin),re.setAttribute("f-origin",M[D].origin),re.type="text/css",re.rel="stylesheet",re.href=M[D].fPath,document.body.appendChild(re)}}else if(M[D].fOrigin==="t"||M[D].origin===2){for(W=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Q=0;Q<W.length;Q+=1)M[D].fPath===W[Q].src&&(U=!1);if(U){var ne=createTag("link");ne.setAttribute("f-forigin",M[D].fOrigin),ne.setAttribute("f-origin",M[D].origin),ne.setAttribute("rel","stylesheet"),ne.setAttribute("href",M[D].fPath),B.appendChild(ne)}}M[D].helper=m(M[D],B),M[D].cache={},this.fonts.push(M[D])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function S(L){if(L){this.chars||(this.chars=[]);var B,M=L.length,D,N=this.chars.length,F;for(B=0;B<M;B+=1){for(D=0,F=!1;D<N;)this.chars[D].style===L[B].style&&this.chars[D].fFamily===L[B].fFamily&&this.chars[D].ch===L[B].ch&&(F=!0),D+=1;F||(this.chars.push(L[B]),N+=1)}}}function P(L,B,M){for(var D=0,N=this.chars.length;D<N;){if(this.chars[D].ch===L&&this.chars[D].style===B&&this.chars[D].fFamily===M)return this.chars[D];D+=1}return(typeof L=="string"&&L.charCodeAt(0)!==13||!L)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",L,B,M)),t}function A(L,B,M){var D=this.getFontByName(B),N=L;if(!D.cache[N]){var F=D.helper;if(L===" "){var U=F.measureText("|"+L+"|"),W=F.measureText("||");D.cache[N]=(U-W)/100}else D.cache[N]=F.measureText(L)/100}return D.cache[N]*M}function x(L){for(var B=0,M=this.fonts.length;B<M;){if(this.fonts[B].fName===L)return this.fonts[B];B+=1}return this.fonts[0]}function R(L){var B=0,M=L.charCodeAt(0);if(M>=55296&&M<=56319){var D=L.charCodeAt(1);D>=56320&&D<=57343&&(B=(M-55296)*1024+D-56320+65536)}return B}function E(L,B){var M=L.toString(16)+B.toString(16);return _.indexOf(M)!==-1}function k(L){return L===p}function I(L){return L===u}function O(L){var B=R(L);return B>=d&&B<=f}function G(L){return O(L.substr(0,2))&&O(L.substr(2,2))}function j(L){return r.indexOf(L)!==-1}function V(L,B){var M=R(L.substr(B,2));if(M!==n)return!1;var D=0;for(B+=2;D<5;){if(M=R(L.substr(B,2)),M<a||M>l)return!1;D+=1,B+=2}return R(L.substr(B,2))===s}function z(){this.isLoaded=!0}var q=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};q.isModifier=E,q.isZeroWidthJoiner=k,q.isFlagEmoji=G,q.isRegionalCode=O,q.isCombinedCharacter=j,q.isRegionalFlag=V,q.isVariationSelector=I,q.BLACK_FLAG_CODE_POINT=n;var H={addChars:S,addFonts:C,getCharData:P,getFontByName:x,measureText:A,checkLoadedFonts:g,setIsLoaded:z};return q.prototype=H,q}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,r=this.renderableComponents.length;for(t=0;t<r;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r=e.ef||[];this.effectElements=[];var n,s=r.length,a;for(n=0;n<s;n+=1)a=new GroupEffect(r[n],t),this.effectElements.push(a)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,n=this.data.ef.length,s,a=this.data.ef;for(r=0;r<n;r+=1){switch(s=null,a[r].ty){case 0:s=new SliderEffect(a[r],t,this);break;case 1:s=new AngleEffect(a[r],t,this);break;case 2:s=new ColorEffect(a[r],t,this);break;case 3:s=new PointEffect(a[r],t,this);break;case 4:case 7:s=new CheckboxEffect(a[r],t,this);break;case 10:s=new LayerIndexEffect(a[r],t,this);break;case 11:s=new MaskIndexEffect(a[r],t,this);break;case 5:s=new EffectsManager(a[r],t);break;default:s=new NoValueEffect(a[r]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,r=this.data.masksProperties.length;t<r;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var r=t("layer"),n=t("effects"),s=t("shape"),a=t("text"),l=t("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var u=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(u),this.data.ty===0||this.data.xt?this.compInterface=l(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=t},initBaseData:function(t,r,n){this.globalData=r,this.comp=n,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,r){var n,s=this.dynamicProperties.length;for(n=0;n<s;n+=1)(r||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,r=this.layers.length,n;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t],n.ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,r=e.length,n,s=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<s;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var n=this.elements,s=this.layers,a=0,l=s.length;a<l;)s[a].ind==t&&(!n[a]||n[a]===!0?(this.buildItem(a),this.addPendingElement(e)):(r.push(n[a]),n[a].setAsParent(),s[a].parent!==void 0?this.buildElementParenting(e,s[a].parent,r):e.setHierarchy(r))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),r;if(typeof t=="number")r=this.elements[t];else{var n,s=this.elements.length;for(n=0;n<s;n+=1)if(this.elements[n].data.nm===t){r=this.elements[n];break}}return e.length===0?r:r.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,r=this.finalTransform.mat,n=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<s;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,r.cloneFromProps(t),n=0;n<s;n+=1)r.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<r;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),t=1;t<r;t+=1){var s=this.localTransforms[t].matrix;n.multiply(s)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(t=0;t<r;t+=1)a*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,n=t.length;for(r=0;r<n;r+=1)this.localTransforms.push(t[r])}}},globalToLocal:function(t){var r=[];r.push(this.finalTransform);for(var n=!0,s=this.comp;n;)s.finalTransform?(s.data.hasMask&&r.splice(0,0,s.finalTransform),s=s.comp):n=!1;var a,l=r.length,u;for(a=0;a<l;a+=1)u=r[a].mat.applyToPointArray(0,0,0),t=[t[0]-u[0],t[1]-u[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n=this.globalData.defs,s,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var l,u=this.masksProperties,p=0,d=[],f,_,y=createElementID(),b,g,m,C,S="clipPath",P="clip-path";for(s=0;s<a;s+=1)if((u[s].mode!=="a"&&u[s].mode!=="n"||u[s].inv||u[s].o.k!==100||u[s].o.x)&&(S="mask",P="mask"),(u[s].mode==="s"||u[s].mode==="i")&&p===0?(b=createNS("rect"),b.setAttribute("fill","#ffffff"),b.setAttribute("width",this.element.comp.data.w||0),b.setAttribute("height",this.element.comp.data.h||0),d.push(b)):b=null,l=createNS("path"),u[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,u[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[s],3),elem:l,lastPath:""},n.appendChild(l);else{p+=1,l.setAttribute("fill",u[s].mode==="s"?"#000000":"#ffffff"),l.setAttribute("clip-rule","nonzero");var A;if(u[s].x.k!==0?(S="mask",P="mask",C=PropertyFactory.getProp(this.element,u[s].x,0,null,this.element),A=createElementID(),g=createNS("filter"),g.setAttribute("id",A),m=createNS("feMorphology"),m.setAttribute("operator","erode"),m.setAttribute("in","SourceGraphic"),m.setAttribute("radius","0"),g.appendChild(m),n.appendChild(g),l.setAttribute("stroke",u[s].mode==="s"?"#000000":"#ffffff")):(m=null,C=null),this.storedData[s]={elem:l,x:C,expan:m,lastPath:"",lastOperator:"",filterId:A,lastRadius:0},u[s].mode==="i"){_=d.length;var x=createNS("g");for(f=0;f<_;f+=1)x.appendChild(d[f]);var R=createNS("mask");R.setAttribute("mask-type","alpha"),R.setAttribute("id",y+"_"+p),R.appendChild(l),n.appendChild(R),x.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+p+")"),d.length=0,d.push(x)}else d.push(l);u[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:l,lastPath:"",op:PropertyFactory.getProp(this.element,u[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[s],3),invRect:b},this.viewData[s].prop.k||this.drawPath(u[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(S),a=d.length,s=0;s<a;s+=1)this.maskElement.appendChild(d[s]);p>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(P,"url("+getLocationHref()+"#"+y+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,r,n=this.masksProperties.length;for(r=0;r<n;r+=1)if((this.viewData[r].prop._mdf||e)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||e)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[r].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||e))){var s=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),s.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,r){var n=" M"+t.v[0][0]+","+t.v[0][1],s,a;for(a=t._length,s=1;s<a;s+=1)n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&a>1&&(n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==n){var l="";r.elem&&(t.c&&(l=e.inv?this.solidPath+n:n),r.elem.setAttribute("d",l)),r.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=r;function t(n,s){var a=createNS("filter");return a.setAttribute("id",n),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function r(){var n=createNS("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),n}return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r="SourceGraphic",n=e.data.ef?e.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),l=0;this.filters=[];var u;for(t=0;t<n;t+=1){u=null;var p=e.data.ef[t].ty;if(registeredEffects$1[p]){var d=registeredEffects$1[p].effect;u=new d(a,e.effectsManager.effectElements[t],e,idPrefix+l,r),r=idPrefix+l,registeredEffects$1[p].countsAsEffect&&(l+=1)}u&&this.filters.push(u)}l&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n};function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),t=r,this.globalData.defs.appendChild(r)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var n=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(n.setAttribute("id",a),n.appendChild(s),this.globalData.defs.appendChild(n),this.checkMasks()){var l=createNS("g");l.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),l.appendChild(this.layerElement),this.transformedElement=l,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var r=this.layerId+"_"+t,n,s,a,l;if(t===1||t===3){var u=createNS("mask");u.setAttribute("id",r),u.setAttribute("mask-type",t===3?"luminance":"alpha"),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(a),this.globalData.defs.appendChild(u),!featureSupport.maskType&&t===1&&(u.setAttribute("mask-type","luminance"),n=createElementID(),s=filtersFactory.createFilter(n),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),l=createNS("g"),l.appendChild(a),u.appendChild(l),l.setAttribute("filter","url("+getLocationHref()+"#"+n+")"))}else if(t===2){var p=createNS("mask");p.setAttribute("id",r),p.setAttribute("mask-type","alpha");var d=createNS("g");p.appendChild(d),n=createElementID(),s=filtersFactory.createFilter(n);var f=createNS("feComponentTransfer");f.setAttribute("in","SourceGraphic"),s.appendChild(f);var _=createNS("feFuncA");_.setAttribute("type","table"),_.setAttribute("tableValues","1.0 0.0"),f.appendChild(_),this.globalData.defs.appendChild(s);var y=createNS("rect");y.setAttribute("width",this.comp.data.w),y.setAttribute("height",this.comp.data.h),y.setAttribute("x","0"),y.setAttribute("y","0"),y.setAttribute("fill","#ffffff"),y.setAttribute("opacity","0"),d.setAttribute("filter","url("+getLocationHref()+"#"+n+")"),d.appendChild(y),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),d.appendChild(a),featureSupport.maskType||(p.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),l=createNS("g"),d.appendChild(y),l.appendChild(this.layerElement),d.appendChild(l)),this.globalData.defs.appendChild(p)}this.matteMasks[t]=r}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(r,n,s){this.initFrame(),this.initBaseData(r,n,s),this.initTransform(r,n,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var r,n=this.shapeModifiers.length;for(r=0;r<n;r+=1)this.shapeModifiers[r].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var r=0,n=this.shapeModifiers.length;r<n;)if(this.shapeModifiers[r].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,r=this.shapes.length;for(t=0;t<r;t+=1)this.shapes[t].sh.reset();r=this.shapeModifiers.length;var n;for(t=r-1;t>=0&&(n=this.shapeModifiers[t].processShapes(this._isFirstFrame),!n);t-=1);}},searchProcessedElement:function(t){for(var r=this.processedElements,n=0,s=r.length;n<s;){if(r[n].elem===t)return r[n].pos;n+=1}return 0},addProcessedElement:function(t,r){for(var n=this.processedElements,s=n.length;s;)if(s-=1,n[s].elem===t){n[s].pos=r;return}n.push(new ProcessedElement(t,r))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var n=0,s=e.length;n<s;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,r,n){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var s,a=t.length||0,l;for(s=0;s<a;s+=1)l=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=l.k||this.k,this.dataProps[s]={n:t[s].n,p:l};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<r;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var n=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,n=this.o.length/2,s;r<n;){if(s=Math.abs(e[r*4]-e[t*4+r*2]),s>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r=this.data.p*4,n,s;for(t=0;t<r;t+=1)n=t%4===0?100:255,s=Math.round(this.prop.v[t]*n),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=this.data.p*4;t<r;t+=1)n=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),n=createNS(t.t===1?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var s=[],a,l,u;for(u=t.g.p*4,l=0;l<u;l+=4)a=createNS("stop"),n.appendChild(a),s.push(a);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,s,a=createNS("mask"),l=createNS("path");a.appendChild(l);var u=createElementID(),p=createElementID();a.setAttribute("id",p);var d=createNS(e.t===1?"linearGradient":"radialGradient");d.setAttribute("id",u),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var f=this.stops;for(n=e.g.p*4;n<s;n+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),d.appendChild(r),f.push(r);l.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+u+")"),e.ty==="gs"&&(l.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),l.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&l.setAttribute("stroke-miterlimit",e.ml)),this.of=d,this.ms=a,this.ost=f,this.maskId=p,t.msElem=l}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,r,n,s){if(r===0)return"";var a=t.o,l=t.i,u=t.v,p,d=" M"+s.applyToPointStringified(u[0][0],u[0][1]);for(p=1;p<r;p+=1)d+=" C"+s.applyToPointStringified(a[p-1][0],a[p-1][1])+" "+s.applyToPointStringified(l[p][0],l[p][1])+" "+s.applyToPointStringified(u[p][0],u[p][1]);return n&&r&&(d+=" C"+s.applyToPointStringified(a[p-1][0],a[p-1][1])+" "+s.applyToPointStringified(l[0][0],l[0][1])+" "+s.applyToPointStringified(u[0][0],u[0][1]),d+="z"),d},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:n};function n(_){switch(_.ty){case"fl":return u;case"gf":return d;case"gs":return p;case"st":return f;case"sh":case"el":case"rc":case"sr":return l;case"tr":return s;case"no":return a;default:return null}}function s(_,y,b){(b||y.transform.op._mdf)&&y.transform.container.setAttribute("opacity",y.transform.op.v),(b||y.transform.mProps._mdf)&&y.transform.container.setAttribute("transform",y.transform.mProps.v.to2dCSS())}function a(){}function l(_,y,b){var g,m,C,S,P,A,x=y.styles.length,R=y.lvl,E,k,I,O;for(A=0;A<x;A+=1){if(S=y.sh._mdf||b,y.styles[A].lvl<R){for(k=t.reset(),I=R-y.styles[A].lvl,O=y.transformers.length-1;!S&&I>0;)S=y.transformers[O].mProps._mdf||S,I-=1,O-=1;if(S)for(I=R-y.styles[A].lvl,O=y.transformers.length-1;I>0;)k.multiply(y.transformers[O].mProps.v),I-=1,O-=1}else k=e;if(E=y.sh.paths,m=E._length,S){for(C="",g=0;g<m;g+=1)P=E.shapes[g],P&&P._length&&(C+=buildShapeString(P,P._length,P.c,k));y.caches[A]=C}else C=y.caches[A];y.styles[A].d+=_.hd===!0?"":C,y.styles[A]._mdf=S||y.styles[A]._mdf}}function u(_,y,b){var g=y.style;(y.c._mdf||b)&&g.pElem.setAttribute("fill","rgb("+bmFloor(y.c.v[0])+","+bmFloor(y.c.v[1])+","+bmFloor(y.c.v[2])+")"),(y.o._mdf||b)&&g.pElem.setAttribute("fill-opacity",y.o.v)}function p(_,y,b){d(_,y,b),f(_,y,b)}function d(_,y,b){var g=y.gf,m=y.g._hasOpacity,C=y.s.v,S=y.e.v;if(y.o._mdf||b){var P=_.ty==="gf"?"fill-opacity":"stroke-opacity";y.style.pElem.setAttribute(P,y.o.v)}if(y.s._mdf||b){var A=_.t===1?"x1":"cx",x=A==="x1"?"y1":"cy";g.setAttribute(A,C[0]),g.setAttribute(x,C[1]),m&&!y.g._collapsable&&(y.of.setAttribute(A,C[0]),y.of.setAttribute(x,C[1]))}var R,E,k,I;if(y.g._cmdf||b){R=y.cst;var O=y.g.c;for(k=R.length,E=0;E<k;E+=1)I=R[E],I.setAttribute("offset",O[E*4]+"%"),I.setAttribute("stop-color","rgb("+O[E*4+1]+","+O[E*4+2]+","+O[E*4+3]+")")}if(m&&(y.g._omdf||b)){var G=y.g.o;for(y.g._collapsable?R=y.cst:R=y.ost,k=R.length,E=0;E<k;E+=1)I=R[E],y.g._collapsable||I.setAttribute("offset",G[E*2]+"%"),I.setAttribute("stop-opacity",G[E*2+1])}if(_.t===1)(y.e._mdf||b)&&(g.setAttribute("x2",S[0]),g.setAttribute("y2",S[1]),m&&!y.g._collapsable&&(y.of.setAttribute("x2",S[0]),y.of.setAttribute("y2",S[1])));else{var j;if((y.s._mdf||y.e._mdf||b)&&(j=Math.sqrt(Math.pow(C[0]-S[0],2)+Math.pow(C[1]-S[1],2)),g.setAttribute("r",j),m&&!y.g._collapsable&&y.of.setAttribute("r",j)),y.e._mdf||y.h._mdf||y.a._mdf||b){j||(j=Math.sqrt(Math.pow(C[0]-S[0],2)+Math.pow(C[1]-S[1],2)));var V=Math.atan2(S[1]-C[1],S[0]-C[0]),z=y.h.v;z>=1?z=.99:z<=-1&&(z=-.99);var q=j*z,H=Math.cos(V+y.a.v)*q+C[0],L=Math.sin(V+y.a.v)*q+C[1];g.setAttribute("fx",H),g.setAttribute("fy",L),m&&!y.g._collapsable&&(y.of.setAttribute("fx",H),y.of.setAttribute("fy",L))}}}function f(_,y,b){var g=y.style,m=y.d;m&&(m._mdf||b)&&m.dashStr&&(g.pElem.setAttribute("stroke-dasharray",m.dashStr),g.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),y.c&&(y.c._mdf||b)&&g.pElem.setAttribute("stroke","rgb("+bmFloor(y.c.v[0])+","+bmFloor(y.c.v[1])+","+bmFloor(y.c.v[2])+")"),(y.o._mdf||b)&&g.pElem.setAttribute("stroke-opacity",y.o.v),(y.w._mdf||b)&&(g.pElem.setAttribute("stroke-width",y.w.v),g.msElem&&g.msElem.setAttribute("stroke-width",y.w.v))}return r}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,r,n,s=this.stylesList.length,a,l=[],u=!1;for(n=0;n<s;n+=1){for(a=this.stylesList[n],u=!1,l.length=0,e=0;e<t;e+=1)r=this.shapes[e],r.styles.indexOf(a)!==-1&&(l.push(r),u=r._isAnimated||u);l.length>1&&u&&this.setShapesAsAnimated(l)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,n=new SVGStyleData(e,t),s=n.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,n);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,n);else if(e.ty==="gf"||e.ty==="gs"){var a=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new a(this,e,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,n));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;e.ty==="rc"?n=5:e.ty==="el"?n=6:e.ty==="sr"&&(n=7);var s=ShapePropertyFactory.getShapeProp(this,e,n,this),a=new SVGShapeData(t,r,s);return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,r,n=this.stylesList.length;for(r=0;r<n;r+=1)this.stylesList[r].closed||t.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,n,s,a,l){var u=[].concat(a),p,d=e.length-1,f,_,y=[],b=[],g,m,C;for(p=d;p>=0;p-=1){if(C=this.searchProcessedElement(e[p]),C?t[p]=r[C-1]:e[p]._render=l,e[p].ty==="fl"||e[p].ty==="st"||e[p].ty==="gf"||e[p].ty==="gs"||e[p].ty==="no")C?t[p].style.closed=!1:t[p]=this.createStyleElement(e[p],s),e[p]._render&&t[p].style.pElem.parentNode!==n&&n.appendChild(t[p].style.pElem),y.push(t[p].style);else if(e[p].ty==="gr"){if(!C)t[p]=this.createGroupElement(e[p]);else for(_=t[p].it.length,f=0;f<_;f+=1)t[p].prevViewData[f]=t[p].it[f];this.searchShapes(e[p].it,t[p].it,t[p].prevViewData,t[p].gr,s+1,u,l),e[p]._render&&t[p].gr.parentNode!==n&&n.appendChild(t[p].gr)}else e[p].ty==="tr"?(C||(t[p]=this.createTransformElement(e[p],n)),g=t[p].transform,u.push(g)):e[p].ty==="sh"||e[p].ty==="rc"||e[p].ty==="el"||e[p].ty==="sr"?(C||(t[p]=this.createShapeElement(e[p],u,s)),this.setElementStyles(t[p])):e[p].ty==="tm"||e[p].ty==="rd"||e[p].ty==="ms"||e[p].ty==="pb"||e[p].ty==="zz"||e[p].ty==="op"?(C?(m=t[p],m.closed=!1):(m=ShapeModifiers.getModifier(e[p].ty),m.init(this,e[p]),t[p]=m,this.shapeModifiers.push(m)),b.push(m)):e[p].ty==="rp"&&(C?(m=t[p],m.closed=!0):(m=ShapeModifiers.getModifier(e[p].ty),t[p]=m,m.init(this,e,p,t),this.shapeModifiers.push(m),l=!1),b.push(m));this.addProcessedElement(e[p],p+1)}for(d=y.length,p=0;p<d;p+=1)y[p].closed=!0;for(d=b.length,p=0;p<d;p+=1)b[p].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,r;for(e=0;e<t;e+=1)r=this.animatedContents[e],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,r,n,s,a){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=s,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,r,n,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var l=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,l=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,l=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,l=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,l=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,l=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,l=!0),l};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n,s=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(n=0;n<s;n+=1)r!==this.keysIndex?a=this.effectsSequence[n](a,a.t):a=this.effectsSequence[n](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,n=e.length;r<=n-1&&!(r===n-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],r=0,n=e.length,s,a,l=!1,u=!1,p="";r<n;)l=u,u=!1,s=e.charCodeAt(r),p=e.charAt(r),FontManager.isCombinedCharacter(s)?l=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,r)?p=e.substr(r,14):(a=e.charCodeAt(r+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(p=e.substr(r,2),l=!0):FontManager.isFlagEmoji(e.substr(r,4))?p=e.substr(r,4):p=e.substr(r,2))):s>56319?(a=e.charCodeAt(r+1),FontManager.isVariationSelector(s)&&(l=!0)):FontManager.isZeroWidthJoiner(s)&&(l=!0,u=!0),l?(t[t.length-1]+=p,l=!1):t.push(p),r+=p.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,r=this.data,n=[],s,a,l,u=0,p,d=r.m.g,f=0,_=0,y=0,b=[],g=0,m=0,C,S,P=t.getFontByName(e.f),A,x=0,R=getFontProperties(P);e.fWeight=R.weight,e.fStyle=R.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var E=e.tr/1e3*e.finalSize,k;if(e.sz)for(var I=!0,O=e.sz[0],G=e.sz[1],j,V;I;){V=this.buildFinalText(e.t),j=0,g=0,a=V.length,E=e.tr/1e3*e.finalSize;var z=-1;for(s=0;s<a;s+=1)k=V[s].charCodeAt(0),l=!1,V[s]===" "?z=s:(k===13||k===3)&&(g=0,l=!0,j+=e.finalLineHeight||e.finalSize*1.2),t.chars?(A=t.getCharData(V[s],P.fStyle,P.fFamily),x=l?0:A.w*e.finalSize/100):x=t.measureText(V[s],e.f,e.finalSize),g+x>O&&V[s]!==" "?(z===-1?a+=1:s=z,j+=e.finalLineHeight||e.finalSize*1.2,V.splice(s,z===s?1:0,"\r"),z=-1,g=0):(g+=x,g+=E);j+=P.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&G<j?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=V,a=e.finalText.length,I=!1)}g=-E,x=0;var q=0,H;for(s=0;s<a;s+=1)if(l=!1,H=e.finalText[s],k=H.charCodeAt(0),k===13||k===3?(q=0,b.push(g),m=g>m?g:m,g=-2*E,p="",l=!0,y+=1):p=H,t.chars?(A=t.getCharData(H,P.fStyle,t.getFontByName(e.f).fFamily),x=l?0:A.w*e.finalSize/100):x=t.measureText(p,e.f,e.finalSize),H===" "?q+=x+E:(g+=x+E+q,q=0),n.push({l:x,an:x,add:f,n:l,anIndexes:[],val:p,line:y,animatorJustifyOffset:0}),d==2){if(f+=x,p===""||p===" "||s===a-1){for((p===""||p===" ")&&(f-=x);_<=s;)n[_].an=f,n[_].ind=u,n[_].extra=x,_+=1;u+=1,f=0}}else if(d==3){if(f+=x,p===""||s===a-1){for(p===""&&(f-=x);_<=s;)n[_].an=f,n[_].ind=u,n[_].extra=x,_+=1;f=0,u+=1}}else n[u].ind=u,n[u].extra=0,u+=1;if(e.l=n,m=g>m?g:m,b.push(g),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=m,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=b;var L=r.a,B,M;S=L.length;var D,N,F=[];for(C=0;C<S;C+=1){for(B=L[C],B.a.sc&&(e.strokeColorAnim=!0),B.a.sw&&(e.strokeWidthAnim=!0),(B.a.fc||B.a.fh||B.a.fs||B.a.fb)&&(e.fillColorAnim=!0),N=0,D=B.s.b,s=0;s<a;s+=1)M=n[s],M.anIndexes[C]=N,(D==1&&M.val!==""||D==2&&M.val!==""&&M.val!==" "||D==3&&(M.n||M.val==" "||s==a-1)||D==4&&(M.n||s==a-1))&&(B.s.rn===1&&F.push(N),N+=1);r.a[C].s.totalChars=N;var U=-1,W;if(B.s.rn===1)for(s=0;s<a;s+=1)M=n[s],U!=M.anIndexes[C]&&(U=M.anIndexes[C],W=F.splice(Math.floor(Math.random()*F.length),1)[0]),M.anIndexes[C]=W}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=P.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function n(a,l){this._currentTextLength=-1,this.k=!1,this.data=l,this.elem=a,this.comp=a.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(a),this.s=PropertyFactory.getProp(a,l.s||{k:0},0,0,this),"e"in l?this.e=PropertyFactory.getProp(a,l.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(a,l.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(a,l.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(a,l.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(a,l.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(a,l.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(l){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var u=0,p=0,d=1,f=1;this.ne.v>0?u=this.ne.v/100:p=-this.ne.v/100,this.xe.v>0?d=1-this.xe.v/100:f=1+this.xe.v/100;var _=BezierFactory.getBezierEasing(u,p,d,f).get,y=0,b=this.finalS,g=this.finalE,m=this.data.sh;if(m===2)g===b?y=l>=g?1:0:y=e(0,t(.5/(g-b)+(l-b)/(g-b),1)),y=_(y);else if(m===3)g===b?y=l>=g?0:1:y=1-e(0,t(.5/(g-b)+(l-b)/(g-b),1)),y=_(y);else if(m===4)g===b?y=0:(y=e(0,t(.5/(g-b)+(l-b)/(g-b),1)),y<.5?y*=2:y=1-2*(y-.5)),y=_(y);else if(m===5){if(g===b)y=0;else{var C=g-b;l=t(e(0,l+.5-b),g-b);var S=-C/2+l,P=C/2;y=Math.sqrt(1-S*S/(P*P))}y=_(y)}else m===6?(g===b?y=0:(l=t(e(0,l+.5-b),g-b),y=(1+Math.cos(Math.PI+Math.PI*2*l/(g-b)))/2),y=_(y)):(l>=r(b)&&(l-b<0?y=e(0,t(t(g,1)-(b-l),1)):y=e(0,t(g-l,1))),y=_(y));if(this.sm.v!==100){var A=this.sm.v*.01;A===0&&(A=1e-8);var x=.5-A*.5;y<x?y=0:(y=(y-x)/A,y>1&&(y=1))}return y*this.a.v},getValue:function(l){this.iterateDynamicProperties(),this._mdf=l||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,l&&this.data.r===2&&(this.e.v=this._currentTextLength);var u=this.data.r===2?1:100/this.data.totalChars,p=this.o.v/u,d=this.s.v/u+p,f=this.e.v/u+p;if(d>f){var _=d;d=f,f=_}this.finalS=d,this.finalE=f}},extendPrototype([DynamicPropertyContainer],n);function s(a,l,u){return new n(a,l)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},s=PropertyFactory.getProp,a=t.a;this.a={r:a.r?s(e,a.r,0,degToRads,r):n,rx:a.rx?s(e,a.rx,0,degToRads,r):n,ry:a.ry?s(e,a.ry,0,degToRads,r):n,sk:a.sk?s(e,a.sk,0,degToRads,r):n,sa:a.sa?s(e,a.sa,0,degToRads,r):n,s:a.s?s(e,a.s,1,.01,r):n,a:a.a?s(e,a.a,1,0,r):n,o:a.o?s(e,a.o,0,.01,r):n,p:a.p?s(e,a.p,1,0,r):n,sw:a.sw?s(e,a.sw,0,0,r):n,sc:a.sc?s(e,a.sc,1,0,r):n,fc:a.fc?s(e,a.fc,1,0,r):n,fh:a.fh?s(e,a.fh,0,0,r):n,fs:a.fs?s(e,a.fs,0,.01,r):n,fb:a.fb?s(e,a.fb,0,.01,r):n,t:a.t?s(e,a.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,r,n=PropertyFactory.getProp;for(e=0;e<t;e+=1)r=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,r,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,n=this._animatorsData,s=this._textData,a=this.mHelper,l=this._renderType,u=this.renderedLetters.length,p,d,f,_,y=e.l,b,g,m,C,S,P,A,x,R,E,k,I,O,G,j;if(this._hasMaskedPath){if(j=this._pathData.m,!this._pathData.n||this._pathData._mdf){var V=j.v;this._pathData.r.v&&(V=V.reverse()),b={tLength:0,segments:[]},_=V._length-1;var z;for(I=0,f=0;f<_;f+=1)z=bez.buildBezierData(V.v[f],V.v[f+1],[V.o[f][0]-V.v[f][0],V.o[f][1]-V.v[f][1]],[V.i[f+1][0]-V.v[f+1][0],V.i[f+1][1]-V.v[f+1][1]]),b.tLength+=z.segmentLength,b.segments.push(z),I+=z.segmentLength;f=_,j.v.c&&(z=bez.buildBezierData(V.v[f],V.v[0],[V.o[f][0]-V.v[f][0],V.o[f][1]-V.v[f][1]],[V.i[0][0]-V.v[0][0],V.i[0][1]-V.v[0][1]]),b.tLength+=z.segmentLength,b.segments.push(z),I+=z.segmentLength),this._pathData.pi=b}if(b=this._pathData.pi,g=this._pathData.f.v,A=0,P=1,C=0,S=!0,E=b.segments,g<0&&j.v.c)for(b.tLength<Math.abs(g)&&(g=-Math.abs(g)%b.tLength),A=E.length-1,R=E[A].points,P=R.length-1;g<0;)g+=R[P].partialLength,P-=1,P<0&&(A-=1,R=E[A].points,P=R.length-1);R=E[A].points,x=R[P-1],m=R[P],k=m.partialLength}_=y.length,p=0,d=0;var q=e.finalSize*1.2*.714,H=!0,L,B,M,D,N;D=n.length;var F,U=-1,W,Q,Z,re=g,ne=A,ie=P,le=-1,oe,ce,he,te,X,de,ae,ue,_e="",Se=this.defaultPropsArray,ge;if(e.j===2||e.j===1){var me=0,ye=0,K=e.j===2?-.5:-1,Y=0,J=!0;for(f=0;f<_;f+=1)if(y[f].n){for(me&&(me+=ye);Y<f;)y[Y].animatorJustifyOffset=me,Y+=1;me=0,J=!0}else{for(M=0;M<D;M+=1)L=n[M].a,L.t.propType&&(J&&e.j===2&&(ye+=L.t.v*K),B=n[M].s,F=B.getMult(y[f].anIndexes[M],s.a[M].s.totalChars),F.length?me+=L.t.v*F[0]*K:me+=L.t.v*F*K);J=!1}for(me&&(me+=ye);Y<f;)y[Y].animatorJustifyOffset=me,Y+=1}for(f=0;f<_;f+=1){if(a.reset(),oe=1,y[f].n)p=0,d+=e.yOffset,d+=H?1:0,g=re,H=!1,this._hasMaskedPath&&(A=ne,P=ie,R=E[A].points,x=R[P-1],m=R[P],k=m.partialLength,C=0),_e="",ue="",de="",ge="",Se=this.defaultPropsArray;else{if(this._hasMaskedPath){if(le!==y[f].line){switch(e.j){case 1:g+=I-e.lineWidths[y[f].line];break;case 2:g+=(I-e.lineWidths[y[f].line])/2;break}le=y[f].line}U!==y[f].ind&&(y[U]&&(g+=y[U].extra),g+=y[f].an/2,U=y[f].ind),g+=r[0]*y[f].an*.005;var ee=0;for(M=0;M<D;M+=1)L=n[M].a,L.p.propType&&(B=n[M].s,F=B.getMult(y[f].anIndexes[M],s.a[M].s.totalChars),F.length?ee+=L.p.v[0]*F[0]:ee+=L.p.v[0]*F),L.a.propType&&(B=n[M].s,F=B.getMult(y[f].anIndexes[M],s.a[M].s.totalChars),F.length?ee+=L.a.v[0]*F[0]:ee+=L.a.v[0]*F);for(S=!0,this._pathData.a.v&&(g=y[0].an*.5+(I-this._pathData.f.v-y[0].an*.5-y[y.length-1].an*.5)*U/(_-1),g+=this._pathData.f.v);S;)C+k>=g+ee||!R?(O=(g+ee-C)/m.partialLength,Q=x.point[0]+(m.point[0]-x.point[0])*O,Z=x.point[1]+(m.point[1]-x.point[1])*O,a.translate(-r[0]*y[f].an*.005,-(r[1]*q)*.01),S=!1):R&&(C+=m.partialLength,P+=1,P>=R.length&&(P=0,A+=1,E[A]?R=E[A].points:j.v.c?(P=0,A=0,R=E[A].points):(C-=m.partialLength,R=null)),R&&(x=m,m=R[P],k=m.partialLength));W=y[f].an/2-y[f].add,a.translate(-W,0,0)}else W=y[f].an/2-y[f].add,a.translate(-W,0,0),a.translate(-r[0]*y[f].an*.005,-r[1]*q*.01,0);for(M=0;M<D;M+=1)L=n[M].a,L.t.propType&&(B=n[M].s,F=B.getMult(y[f].anIndexes[M],s.a[M].s.totalChars),(p!==0||e.j!==0)&&(this._hasMaskedPath?F.length?g+=L.t.v*F[0]:g+=L.t.v*F:F.length?p+=L.t.v*F[0]:p+=L.t.v*F));for(e.strokeWidthAnim&&(he=e.sw||0),e.strokeColorAnim&&(e.sc?ce=[e.sc[0],e.sc[1],e.sc[2]]:ce=[0,0,0]),e.fillColorAnim&&e.fc&&(te=[e.fc[0],e.fc[1],e.fc[2]]),M=0;M<D;M+=1)L=n[M].a,L.a.propType&&(B=n[M].s,F=B.getMult(y[f].anIndexes[M],s.a[M].s.totalChars),F.length?a.translate(-L.a.v[0]*F[0],-L.a.v[1]*F[1],L.a.v[2]*F[2]):a.translate(-L.a.v[0]*F,-L.a.v[1]*F,L.a.v[2]*F));for(M=0;M<D;M+=1)L=n[M].a,L.s.propType&&(B=n[M].s,F=B.getMult(y[f].anIndexes[M],s.a[M].s.totalChars),F.length?a.scale(1+(L.s.v[0]-1)*F[0],1+(L.s.v[1]-1)*F[1],1):a.scale(1+(L.s.v[0]-1)*F,1+(L.s.v[1]-1)*F,1));for(M=0;M<D;M+=1){if(L=n[M].a,B=n[M].s,F=B.getMult(y[f].anIndexes[M],s.a[M].s.totalChars),L.sk.propType&&(F.length?a.skewFromAxis(-L.sk.v*F[0],L.sa.v*F[1]):a.skewFromAxis(-L.sk.v*F,L.sa.v*F)),L.r.propType&&(F.length?a.rotateZ(-L.r.v*F[2]):a.rotateZ(-L.r.v*F)),L.ry.propType&&(F.length?a.rotateY(L.ry.v*F[1]):a.rotateY(L.ry.v*F)),L.rx.propType&&(F.length?a.rotateX(L.rx.v*F[0]):a.rotateX(L.rx.v*F)),L.o.propType&&(F.length?oe+=(L.o.v*F[0]-oe)*F[0]:oe+=(L.o.v*F-oe)*F),e.strokeWidthAnim&&L.sw.propType&&(F.length?he+=L.sw.v*F[0]:he+=L.sw.v*F),e.strokeColorAnim&&L.sc.propType)for(X=0;X<3;X+=1)F.length?ce[X]+=(L.sc.v[X]-ce[X])*F[0]:ce[X]+=(L.sc.v[X]-ce[X])*F;if(e.fillColorAnim&&e.fc){if(L.fc.propType)for(X=0;X<3;X+=1)F.length?te[X]+=(L.fc.v[X]-te[X])*F[0]:te[X]+=(L.fc.v[X]-te[X])*F;L.fh.propType&&(F.length?te=addHueToRGB(te,L.fh.v*F[0]):te=addHueToRGB(te,L.fh.v*F)),L.fs.propType&&(F.length?te=addSaturationToRGB(te,L.fs.v*F[0]):te=addSaturationToRGB(te,L.fs.v*F)),L.fb.propType&&(F.length?te=addBrightnessToRGB(te,L.fb.v*F[0]):te=addBrightnessToRGB(te,L.fb.v*F))}}for(M=0;M<D;M+=1)L=n[M].a,L.p.propType&&(B=n[M].s,F=B.getMult(y[f].anIndexes[M],s.a[M].s.totalChars),this._hasMaskedPath?F.length?a.translate(0,L.p.v[1]*F[0],-L.p.v[2]*F[1]):a.translate(0,L.p.v[1]*F,-L.p.v[2]*F):F.length?a.translate(L.p.v[0]*F[0],L.p.v[1]*F[1],-L.p.v[2]*F[2]):a.translate(L.p.v[0]*F,L.p.v[1]*F,-L.p.v[2]*F));if(e.strokeWidthAnim&&(de=he<0?0:he),e.strokeColorAnim&&(ae="rgb("+Math.round(ce[0]*255)+","+Math.round(ce[1]*255)+","+Math.round(ce[2]*255)+")"),e.fillColorAnim&&e.fc&&(ue="rgb("+Math.round(te[0]*255)+","+Math.round(te[1]*255)+","+Math.round(te[2]*255)+")"),this._hasMaskedPath){if(a.translate(0,-e.ls),a.translate(0,r[1]*q*.01+d,0),this._pathData.p.v){G=(m.point[1]-x.point[1])/(m.point[0]-x.point[0]);var se=Math.atan(G)*180/Math.PI;m.point[0]<x.point[0]&&(se+=180),a.rotate(-se*Math.PI/180)}a.translate(Q,Z,0),g-=r[0]*y[f].an*.005,y[f+1]&&U!==y[f+1].ind&&(g+=y[f].an/2,g+=e.tr*.001*e.finalSize)}else{switch(a.translate(p,d,0),e.ps&&a.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:a.translate(y[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[y[f].line]),0,0);break;case 2:a.translate(y[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[y[f].line])/2,0,0);break}a.translate(0,-e.ls),a.translate(W,0,0),a.translate(r[0]*y[f].an*.005,r[1]*q*.01,0),p+=y[f].l+e.tr*.001*e.finalSize}l==="html"?_e=a.toCSS():l==="svg"?_e=a.to2dCSS():Se=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],ge=oe}u<=f?(N=new LetterProps(ge,de,ae,ue,_e,Se),this.renderedLetters.push(N),u+=1,this.lettersChangedFlag=!0):(N=this.renderedLetters[f],this.lettersChangedFlag=N.update(ge,de,ae,ue,_e,Se)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,n=t.length,s,a="";for(r=0;r<n;r+=1)t[r].ty==="sh"&&(s=t[r].ks.k,a+=buildShapeString(s,s.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,n,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0);break}t.translate(n,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,n=[],s="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(n.push(s),s=""):s+=e[t],t+=1;return n.push(s),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var s=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",r.t);var l=r.l||[],u=!!this.globalData.fontManager.chars;t=l.length;var p,d=this.mHelper,f="",_=this.data.singleShape,y=0,b=0,g=!0,m=r.tr*.001*r.finalSize;if(_&&!u&&!r.sz){var C=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start";break}C.setAttribute("text-anchor",S),C.setAttribute("letter-spacing",m);var P=this.buildTextContents(r.finalText);for(t=P.length,b=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)p=this.textSpans[e].span||createNS("tspan"),p.textContent=P[e],p.setAttribute("x",0),p.setAttribute("y",b),p.style.display="inherit",C.appendChild(p),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=p,b+=r.finalLineHeight;this.layerElement.appendChild(C)}else{var A=this.textSpans.length,x;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!u||!_||e===0){if(p=A>e?this.textSpans[e].span:createNS(u?"g":"text"),A<=e){if(p.setAttribute("stroke-linecap","butt"),p.setAttribute("stroke-linejoin","round"),p.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=p,u){var R=createNS("g");p.appendChild(R),this.textSpans[e].childSpan=R}this.textSpans[e].span=p,this.layerElement.appendChild(p)}p.style.display="inherit"}if(d.reset(),_&&(l[e].n&&(y=-m,b+=r.yOffset,b+=g?1:0,g=!1),this.applyTextPropertiesToMatrix(r,d,l[e].line,y,b),y+=l[e].l||0,y+=m),u){x=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var E;if(x.t===1)E=new SVGCompElement(x.data,this.globalData,this);else{var k=emptyShapeData;x.data&&x.data.shapes&&(k=this.buildShapeData(x.data,r.finalSize)),E=new SVGShapeElement(k,this.globalData,this)}if(this.textSpans[e].glyph){var I=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(I.layerElement),I.destroy()}this.textSpans[e].glyph=E,E._debug=!0,E.prepareFrame(0),E.renderFrame(),this.textSpans[e].childSpan.appendChild(E.layerElement),x.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else _&&p.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),p.textContent=l[e].val,p.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}_&&p&&p.setAttribute("d",f)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)r=this.textSpans[e].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,r=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;t=n.length;var s,a,l;for(e=0;e<t;e+=1)n[e].n||(s=r[e],a=this.textSpans[e].span,l=this.textSpans[e].glyph,l&&l.renderFrame(),s._mdf.m&&a.setAttribute("transform",s.m),s._mdf.o&&a.setAttribute("opacity",s.o),s._mdf.sw&&a.setAttribute("stroke-width",s.sw),s._mdf.sc&&a.setAttribute("stroke",s.sc),s._mdf.fc&&a.setAttribute("fill",s.fc))}};function ISolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var s=createElementID();r.setAttribute("id",s),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(r);else{var s=t[n],a=s.getMatte(this.layers[e].tt);r.setMatte(a)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[n],a=s.getMatte(this.layers[t].tt);e.setMatte(a);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var n=0,s;n<t;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(s=this.elements[n].getBaseElement()),n+=1;s?this.layerElement.insertBefore(r,s):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var n=createNS("title"),s=createElementID();n.setAttribute("id",s),n.textContent=t.title,this.svgElement.appendChild(n),r+=s}if(t&&t.description){var a=createNS("desc"),l=createElementID();a.setAttribute("id",l),a.textContent=t.description,this.svgElement.appendChild(a),r+=" "+l}r&&this.svgElement.setAttribute("aria-labelledby",r);var u=createNS("defs");this.svgElement.appendChild(u);var p=createNS("g");this.svgElement.appendChild(p),this.layerElement=p,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:u,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var r,n=t.length,s="_";for(r=0;r<n;r+=1)s+=t[r].transform.key+"_";var a=this.sequences[s];return a||(a={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=a,this.sequenceList.push(a)),a},processSequence:function(t,r){for(var n=0,s=t.transforms.length,a=r;n<s&&!r;){if(t.transforms[n].transform.mProps._mdf){a=!0;break}n+=1}if(a)for(t.finalTransform.reset(),n=s-1;n>=0;n-=1)t.finalTransform.multiply(t.transforms[n].transform.mProps.v);t._mdf=a},processSequences:function(t){var r,n=this.sequenceList.length;for(r=0;r<n;r+=1)this.processSequence(this.sequenceList[r],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",r=null,n=null,s=null;function a(){var p=createNS("svg"),d=createNS("filter"),f=createNS("feColorMatrix");return d.setAttribute("id",t),f.setAttribute("type","matrix"),f.setAttribute("color-interpolation-filters","sRGB"),f.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),d.appendChild(f),p.appendChild(d),p.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(p.style.display="none"),p}function l(){r||(s=a(),document.body.appendChild(s),r=createTag("canvas"),n=r.getContext("2d"),n.filter="url(#"+t+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}function u(p){return r||l(),r.width=p.width,r.height=p.height,n.filter="url(#"+t+")",r}return{load:l,get:u}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var t,r=e.data.ef?e.data.ef.length:0;this.filters=[];var n;for(t=0;t<r;t+=1){n=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var a=registeredEffects[s].effect;n=new a(e.effectsManager.effectElements[t],e)}n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,n=this.masksProperties.length,s=!1;for(r=0;r<n;r+=1)this.masksProperties[r].mode!=="n"&&(s=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,r,n=this.masksProperties.length,s,a,l;for(t.beginPath(),r=0;r<n;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),l=this.viewData[r].v,s=e.applyToPointArray(l.v[0][0],l.v[0][1],0),t.moveTo(s[0],s[1]);var u,p=l._length;for(u=1;u<p;u+=1)a=e.applyToTriplePoints(l.o[u-1],l.i[u],l.v[u]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=e.applyToTriplePoints(l.o[u-1],l.i[0],l.v[0]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r);var n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=r}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var n=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(n.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var a,l=r.length,u;for(a=0;a<l;a+=1)r[a].closed||(u={transforms:n.addTransformSequence(r[a].transforms),trNodes:[]},this.styledShapes.push(u),r[a].elements.push(u))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},n={};if(e.ty==="fl"||e.ty==="st"?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],e.lj==1&&(r.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);n.d=s,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,n,s){var a,l=e.length-1,u,p,d=[],f=[],_,y,b,g=[].concat(s);for(a=l;a>=0;a-=1){if(_=this.searchProcessedElement(e[a]),_?t[a]=r[_-1]:e[a]._shouldRender=n,e[a].ty==="fl"||e[a].ty==="st"||e[a].ty==="gf"||e[a].ty==="gs")_?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],g),d.push(t[a].style);else if(e[a].ty==="gr"){if(!_)t[a]=this.createGroupElement(e[a]);else for(p=t[a].it.length,u=0;u<p;u+=1)t[a].prevViewData[u]=t[a].it[u];this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,n,g)}else e[a].ty==="tr"?(_||(b=this.createTransformElement(e[a]),t[a]=b),g.push(t[a]),this.addTransformToStyleList(t[a])):e[a].ty==="sh"||e[a].ty==="rc"||e[a].ty==="el"||e[a].ty==="sr"?_||(t[a]=this.createShapeElement(e[a])):e[a].ty==="tm"||e[a].ty==="rd"||e[a].ty==="pb"||e[a].ty==="zz"||e[a].ty==="op"?(_?(y=t[a],y.closed=!1):(y=ShapeModifiers.getModifier(e[a].ty),y.init(this,e[a]),t[a]=y,this.shapeModifiers.push(y)),f.push(y)):e[a].ty==="rp"&&(_?(y=t[a],y.closed=!0):(y=ShapeModifiers.getModifier(e[a].ty),t[a]=y,y.init(this,e,a,t),this.shapeModifiers.push(y),n=!1),f.push(y));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),l=f.length,a=0;a<l;a+=1)f[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,r,n,s,a,l,u,p=this.globalData.renderer,d=this.globalData.canvasContext,f,_;for(e=0;e<t;e+=1)if(_=this.stylesList[e],f=_.type,!((f==="st"||f==="gs")&&_.wi===0||!_.data._shouldRender||_.coOp===0||this.globalData.currentGlobalAlpha===0)){for(p.save(),l=_.elements,f==="st"||f==="gs"?(p.ctxStrokeStyle(f==="st"?_.co:_.grd),p.ctxLineWidth(_.wi),p.ctxLineCap(_.lc),p.ctxLineJoin(_.lj),p.ctxMiterLimit(_.ml||0)):p.ctxFillStyle(f==="fl"?_.co:_.grd),p.ctxOpacity(_.coOp),f!=="st"&&f!=="gs"&&d.beginPath(),p.ctxTransform(_.preTransforms.finalTransform.props),n=l.length,r=0;r<n;r+=1){for((f==="st"||f==="gs")&&(d.beginPath(),_.da&&(d.setLineDash(_.da),d.lineDashOffset=_.do)),u=l[r].trNodes,a=u.length,s=0;s<a;s+=1)u[s].t==="m"?d.moveTo(u[s].p[0],u[s].p[1]):u[s].t==="c"?d.bezierCurveTo(u[s].pts[0],u[s].pts[1],u[s].pts[2],u[s].pts[3],u[s].pts[4],u[s].pts[5]):d.closePath();(f==="st"||f==="gs")&&(p.ctxStroke(),_.da&&d.setLineDash(this.dashResetter))}f!=="st"&&f!=="gs"&&this.globalData.renderer.ctxFill(_.r),p.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var s,a=t.length-1,l;for(l=e,s=a;s>=0;s-=1)t[s].ty==="tr"?(l=r[s].transform,this.renderShapeTransform(e,l)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],r[s]):t[s].ty==="fl"?this.renderFill(t[s],r[s],l):t[s].ty==="st"?this.renderStroke(t[s],r[s],l):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],r[s],l):t[s].ty==="gr"?this.renderShape(l,t[s].it,r[s].it):t[s].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r=e.trNodes,n=t.paths,s,a,l,u=n._length;r.length=0;var p=e.transforms.finalTransform;for(l=0;l<u;l+=1){var d=n.shapes[l];if(d&&d.v){for(a=d._length,s=1;s<a;s+=1)s===1&&r.push({t:"m",p:p.applyToPointArray(d.v[0][0],d.v[0][1],0)}),r.push({t:"c",pts:p.applyToTriplePoints(d.o[s-1],d.i[s],d.v[s])});a===1&&r.push({t:"m",p:p.applyToPointArray(d.v[0][0],d.v[0][1],0)}),d.c&&a&&(r.push({t:"c",pts:p.applyToTriplePoints(d.o[s-1],d.i[0],d.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n=t.style,s;if(!n.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var a=this.globalData.canvasContext,l=t.s.v,u=t.e.v;if(e.t===1)s=a.createLinearGradient(l[0],l[1],u[0],u[1]);else{var p=Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)),d=Math.atan2(u[1]-l[1],u[0]-l[0]),f=t.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var _=p*f,y=Math.cos(d+t.a.v)*_+l[0],b=Math.sin(d+t.a.v)*_+l[1];s=a.createRadialGradient(y,b,0,l[0],l[1],p)}var g,m=e.g.p,C=t.g.c,S=1;for(g=0;g<m;g+=1)t.g._hasOpacity&&t.g._collapsable&&(S=t.g.o[g*2+1]),s.addColorStop(C[g*4]/100,"rgba("+C[g*4+1]+","+C[g*4+2]+","+C[g*4+3]+","+S+")");n.grd=s}n.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(n.da=s.dashArray,n.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n=this.globalData.fontManager.getFontByName(e.f),s,a,l=e.l,u=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var p,d,f,_,y,b,g,m,C,S,P=this.data.singleShape,A=e.tr*.001*e.finalSize,x=0,R=0,E=!0,k=0;for(s=0;s<a;s+=1){p=this.globalData.fontManager.getCharData(e.finalText[s],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),d=p&&p.data||{},u.reset(),P&&l[s].n&&(x=-A,R+=e.yOffset,R+=E?1:0,E=!1),y=d.shapes?d.shapes[0].it:[],g=y.length,u.scale(e.finalSize/100,e.finalSize/100),P&&this.applyTextPropertiesToMatrix(e,u,l[s].line,x,R),C=createSizedArray(g-1);var I=0;for(b=0;b<g;b+=1)if(y[b].ty==="sh"){for(_=y[b].ks.k.i.length,m=y[b].ks.k,S=[],f=1;f<_;f+=1)f===1&&S.push(u.applyToX(m.v[0][0],m.v[0][1],0),u.applyToY(m.v[0][0],m.v[0][1],0)),S.push(u.applyToX(m.o[f-1][0],m.o[f-1][1],0),u.applyToY(m.o[f-1][0],m.o[f-1][1],0),u.applyToX(m.i[f][0],m.i[f][1],0),u.applyToY(m.i[f][0],m.i[f][1],0),u.applyToX(m.v[f][0],m.v[f][1],0),u.applyToY(m.v[f][0],m.v[f][1],0));S.push(u.applyToX(m.o[f-1][0],m.o[f-1][1],0),u.applyToY(m.o[f-1][0],m.o[f-1][1],0),u.applyToX(m.i[0][0],m.i[0][1],0),u.applyToY(m.i[0][0],m.i[0][1],0),u.applyToX(m.v[0][0],m.v[0][1],0),u.applyToY(m.v[0][0],m.v[0][1],0)),C[I]=S,I+=1}P&&(x+=l[s].l,x+=A),this.textSpans[k]?this.textSpans[k].elem=C:this.textSpans[k]={elem:C},k+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,r,n,s,a,l,u=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;r=p.length;var d,f=null,_=null,y=null,b,g,m=this.globalData.renderer;for(t=0;t<r;t+=1)if(!p[t].n){if(d=u[t],d&&(m.save(),m.ctxTransform(d.p),m.ctxOpacity(d.o)),this.fill){for(d&&d.fc?f!==d.fc&&(m.ctxFillStyle(d.fc),f=d.fc):f!==this.values.fill&&(f=this.values.fill,m.ctxFillStyle(this.values.fill)),b=this.textSpans[t].elem,s=b.length,this.globalData.canvasContext.beginPath(),n=0;n<s;n+=1)for(g=b[n],l=g.length,this.globalData.canvasContext.moveTo(g[0],g[1]),a=2;a<l;a+=6)this.globalData.canvasContext.bezierCurveTo(g[a],g[a+1],g[a+2],g[a+3],g[a+4],g[a+5]);this.globalData.canvasContext.closePath(),m.ctxFill()}if(this.stroke){for(d&&d.sw?y!==d.sw&&(y=d.sw,m.ctxLineWidth(d.sw)):y!==this.values.sWidth&&(y=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),d&&d.sc?_!==d.sc&&(_=d.sc,m.ctxStrokeStyle(d.sc)):_!==this.values.stroke&&(_=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),b=this.textSpans[t].elem,s=b.length,this.globalData.canvasContext.beginPath(),n=0;n<s;n+=1)for(g=b[n],l=g.length,this.globalData.canvasContext.moveTo(g[0],g[1]),a=2;a<l;a+=6)this.globalData.canvasContext.bezierCurveTo(g[a],g[a+1],g[a+2],g[a+3],g[a+4],g[a+5]);this.globalData.canvasContext.closePath(),m.ctxStroke()}d&&this.globalData.renderer.restore()}};function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),r=this.img.width,n=this.img.height,s=r/n,a=this.assetData.w/this.assetData.h,l,u,p=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>a&&p==="xMidYMid slice"||s<a&&p!=="xMidYMid slice"?(u=n,l=u*a):(l=r,u=l/a),t.drawImage(this.img,(r-l)/2,(n-u)/2,l,u,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,n){this.canvasContext.fillRect(e,t,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var r,n;e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr);var s,a;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var l=this.renderConfig.preserveAspectRatio.split(" "),u=l[1]||"meet",p=l[0]||"xMidYMid",d=p.substr(0,4),f=p.substr(4);s=r/n,a=this.transformCanvas.w/this.transformCanvas.h,a>s&&u==="meet"||a<s&&u==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),d==="xMid"&&(a<s&&u==="meet"||a>s&&u==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:d==="xMax"&&(a<s&&u==="meet"||a>s&&u==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,f==="YMid"&&(a>s&&u==="meet"||a<s&&u==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:f==="YMax"&&(a>s&&u==="meet"||a<s&&u==="slice")?this.transformCanvas.ty=(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var r=new CanvasContext;this.stack[e]=r}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],r=t.transform,n,s=this.cTr.props;for(n=0;n<16;n+=1)s[n]=r[n];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],n;for(n=0;n<16;n+=1)r.transform[n]=t[n];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=r.opacity,s.fillStyle=r.fillStyle,s.strokeStyle=r.strokeStyle,s.lineWidth=r.lineWidth,s.lineCap=r.lineCap,s.lineJoin=r.lineJoin,s.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,r=this.layers.length;for(t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();t.transform=r,t.webkitTransform=r}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r=e.sh.v,n=e.transformers,s,a=r._length,l,u,p,d;if(!(a<=1)){for(s=0;s<a-1;s+=1)l=this.getTransformedPoint(n,r.v[s]),u=this.getTransformedPoint(n,r.o[s]),p=this.getTransformedPoint(n,r.i[s+1]),d=this.getTransformedPoint(n,r.v[s+1]),this.checkBounds(l,u,p,d,t);r.c&&(l=this.getTransformedPoint(n,r.v[s]),u=this.getTransformedPoint(n,r.o[s]),p=this.getTransformedPoint(n,r.i[0]),d=this.getTransformedPoint(n,r.v[0]),this.checkBounds(l,u,p,d,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,s){this.getBoundsOfCurve(e,t,r,n);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,n){for(var s=[[e[0],n[0]],[e[1],n[1]]],a,l,u,p,d,f,_,y=0;y<2;++y)l=6*e[y]-12*t[y]+6*r[y],a=-3*e[y]+9*t[y]-9*r[y]+3*n[y],u=3*t[y]-3*e[y],l|=0,a|=0,u|=0,a===0&&l===0||(a===0?(p=-u/l,p>0&&p<1&&s[y].push(this.calculateF(p,e,t,r,n,y))):(d=l*l-4*u*a,d>=0&&(f=(-l+bmSqrt(d))/(2*a),f>0&&f<1&&s[y].push(this.calculateF(f,e,t,r,n,y)),_=(-l-bmSqrt(d))/(2*a),_>0&&_<1&&s[y].push(this.calculateF(_,e,t,r,n,y)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,s,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*r[a]+3*(1-e)*bmPow(e,2)*n[a]+bmPow(e,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var s=e.keyframes[n].s;s>r&&(r=s)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=s,n.webkitTransform=s}}};function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var s=e.fWeight,a=e.fStyle;t.fontStyle=a,t.fontWeight=s}var l,u,p=e.l;u=p.length;var d,f,_,y=this.mHelper,b,g="",m=0;for(l=0;l<u;l+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?d=this.textPaths[m]:(d=createNS("path"),d.setAttribute("stroke-linecap",lineCapEnum[1]),d.setAttribute("stroke-linejoin",lineJoinEnum[2]),d.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?(f=this.textSpans[m],_=f.children[0]):(f=createTag("div"),f.style.lineHeight=0,_=createNS("svg"),_.appendChild(d),styleDiv(f)))):this.isMasked?d=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(f=this.textSpans[m],d=this.textPaths[m]):(f=createTag("span"),styleDiv(f),d=createTag("span"),styleDiv(d),f.appendChild(d)),this.globalData.fontManager.chars){var C=this.globalData.fontManager.getCharData(e.finalText[l],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),S;if(C?S=C.data:S=null,y.reset(),S&&S.shapes&&S.shapes.length&&(b=S.shapes[0].it,y.scale(e.finalSize/100,e.finalSize/100),g=this.createPathShape(y,b),d.setAttribute("d",g)),this.isMasked)this.innerElem.appendChild(d);else{if(this.innerElem.appendChild(f),S&&S.shapes){document.body.appendChild(_);var P=_.getBBox();_.setAttribute("width",P.width+2),_.setAttribute("height",P.height+2),_.setAttribute("viewBox",P.x-1+" "+(P.y-1)+" "+(P.width+2)+" "+(P.height+2));var A=_.style,x="translate("+(P.x-1)+"px,"+(P.y-1)+"px)";A.transform=x,A.webkitTransform=x,p[l].yOffset=P.y-1}else _.setAttribute("width",1),_.setAttribute("height",1);f.appendChild(_)}}else if(d.textContent=p[l].val,d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(d);else{this.innerElem.appendChild(f);var R=d.style,E="translate3d(0,"+-e.finalSize/1.2+"px,0)";R.transform=E,R.webkitTransform=E}this.isMasked?this.textSpans[m]=d:this.textSpans[m]=f,this.textSpans[m].style.display="block",this.textPaths[m]=d,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,n,s=0,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;n=l.length;var u,p,d;for(r=0;r<n;r+=1)l[r].n?s+=1:(p=this.textSpans[r],d=this.textPaths[r],u=a[s],s+=1,u._mdf.m&&(this.isMasked?p.setAttribute("transform",u.m):(p.style.webkitTransform=u.m,p.style.transform=u.m)),p.style.opacity=u.o,u.sw&&u._mdf.sw&&d.setAttribute("stroke-width",u.sw),u.sc&&u._mdf.sc&&d.setAttribute("stroke",u.sc),u.fc&&u._mdf.fc&&(d.setAttribute("fill",u.fc),d.style.color=u.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var f=this.innerElem.getBBox();this.currentBBox.w!==f.width&&(this.currentBBox.w=f.width,this.svgElement.setAttribute("width",f.width)),this.currentBBox.h!==f.height&&(this.currentBBox.h=f.height,this.svgElement.setAttribute("height",f.height));var _=1;if(this.currentBBox.w!==f.width+_*2||this.currentBBox.h!==f.height+_*2||this.currentBBox.x!==f.x-_||this.currentBBox.y!==f.y-_){this.currentBBox.w=f.width+_*2,this.currentBBox.h=f.height+_*2,this.currentBBox.x=f.x-_,this.currentBBox.y=f.y-_,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var y="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=y,e.webkitTransform=y}}}};function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,a=e.ks.or.k.length;for(s=0;s<a;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,r,n,s;for(e=0;e<t;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){n=r.perspectiveElem.style,s=r.container.style;var a=this.pe.v+"px",l="0px 0px 0px",u="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=a,n.webkitPerspective=a,s.transformOrigin=l,s.mozTransformOrigin=l,s.webkitTransformOrigin=l,n.transform=u,n.webkitTransform=u}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,r;if(this.hierarchy)for(r=this.hierarchy.length,t=0;t<r;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(r=this.hierarchy.length-1,t=r;t>=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),l=[s[0]/a,s[1]/a,s[2]/a],u=Math.sqrt(l[2]*l[2]+l[0]*l[0]),p=Math.atan2(l[1],u),d=Math.atan2(l[0],-l[2]);this.mat.rotateY(d).rotateX(-p)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var f=!this._prevMat.equals(this.mat);if((f||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var _,y,b;for(t=0;t<r;t+=1)if(_=this.comp.threeDElements[t],_.type==="3d"){if(f){var g=this.mat.toCSS();b=_.container.style,b.transform=g,b.webkitTransform=g}this.pe._mdf&&(y=_.perspectiveElem.style,y.perspective=this.pe.v+"px",y.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var n=this.layers[t];if(!n.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var s=0,a,l,u;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(l=this.elements[s],u=this.layers[s].ddd?this.getThreeDContainerByPos(s):l.getBaseElement(),a=u||a),s+=1;a?(!n.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,a):(!n.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r=createTag("div"),n,s;styleDiv(r);var a=createTag("div");if(styleDiv(a),t==="3d"){n=r.style,n.width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var l="50% 50%";n.webkitTransformOrigin=l,n.mozTransformOrigin=l,n.transformOrigin=l,s=a.style;var u="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=u,s.webkitTransform=u}r.appendChild(a);var p={container:a,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(p),p},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,r,n="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(n!=="3d"&&(n="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(n!=="2d"&&(n="2d",r=this.createThreeDContainer(e,"2d")),r.endPos=Math.max(r.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var s=this.threeDElements[r].startPos,a;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s].getBaseElement()),s+=1;a?this.threeDElements[r].container.insertBefore(e,a):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,r=e/t,n=this.globalData.compSize.w/this.globalData.compSize.h,s,a,l,u;n>r?(s=e/this.globalData.compSize.w,a=e/this.globalData.compSize.w,l=0,u=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,a=t/this.globalData.compSize.h,l=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,u=0);var p=this.resizerElem.style;p.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+l+","+u+",0,1)",p.transform=p.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,r,n=this.threeDElements.length;for(r=0;r<n;r+=1){var s=this.threeDElements[r].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var s=this.createComp(e[t],n,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r=0,n;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function t(r){for(var n=0,s=e.layers.length;n<s;){if(e.layers[n].nm===r||e.layers[n].ind===r)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(r){return typeof r}:_typeof$2=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$2(e)}function seedRandom(e,t){var r=this,n=256,s=6,a=52,l="random",u=t.pow(n,s),p=t.pow(2,a),d=p*2,f=n-1,_;function y(A,x,R){var E=[];x=x===!0?{entropy:!0}:x||{};var k=C(m(x.entropy?[A,P(e)]:A===null?S():A,3),E),I=new b(E),O=function(){for(var j=I.g(s),V=u,z=0;j<p;)j=(j+z)*n,V*=n,z=I.g(1);for(;j>=d;)j/=2,V/=2,z>>>=1;return(j+z)/V};return O.int32=function(){return I.g(4)|0},O.quick=function(){return I.g(4)/4294967296},O.double=O,C(P(I.S),e),(x.pass||R||function(G,j,V,z){return z&&(z.S&&g(z,I),G.state=function(){return g(I,{})}),V?(t[l]=G,j):G})(O,k,"global"in x?x.global:this==t,x.state)}t["seed"+l]=y;function b(A){var x,R=A.length,E=this,k=0,I=E.i=E.j=0,O=E.S=[];for(R||(A=[R++]);k<n;)O[k]=k++;for(k=0;k<n;k++)O[k]=O[I=f&I+A[k%R]+(x=O[k])],O[I]=x;E.g=function(G){for(var j,V=0,z=E.i,q=E.j,H=E.S;G--;)j=H[z=f&z+1],V=V*n+H[f&(H[z]=H[q=f&q+j])+(H[q]=j)];return E.i=z,E.j=q,V}}function g(A,x){return x.i=A.i,x.j=A.j,x.S=A.S.slice(),x}function m(A,x){var R=[],E=_typeof$2(A),k;if(x&&E=="object")for(k in A)try{R.push(m(A[k],x-1))}catch(I){}return R.length?R:E=="string"?A:A+"\0"}function C(A,x){for(var R=A+"",E,k=0;k<R.length;)x[f&k]=f&(E^=x[f&k]*19)+R.charCodeAt(k++);return P(x)}function S(){try{var A=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(A),P(A)}catch(E){var x=r.navigator,R=x&&x.plugins;return[+new Date,r,R,r.screen,P(e)]}}function P(A){return String.fromCharCode.apply(0,A)}C(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(r){return typeof r}:_typeof$1=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,n=e.length,s=[];for(r=0;r<n;r+=1)s[r]=-e[r];return s}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||r==="string"||n==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,l=t.length,u=[];s<a||s<l;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?u[s]=e[s]+t[s]:u[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return u}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return r==="string"&&(e=parseInt(e,10)),n==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,l=t.length,u=[];s<a||s<l;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?u[s]=e[s]-t[s]:u[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return u}return 0}function mul(e,t){var r=_typeof$1(e),n=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(n,t))return e*t;var a,l;if($bm_isInstanceOfArray(e)&&isNumerable(n,t)){for(l=e.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e[a]*t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(l=t.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e*t[a];return s}return 0}function div(e,t){var r=_typeof$1(e),n=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(n,t))return e/t;var a,l;if($bm_isInstanceOfArray(e)&&isNumerable(n,t)){for(l=e.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e[a]/t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(l=t.length,s=createTypedArray("float32",l),a=0;a<l;a+=1)s[a]=e/t[a];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var n=r;r=t,t=n}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var r,n=Math.min(e.length,t.length),s=0;for(r=0;r<n;r+=1)s+=Math.pow(t[r]-e[r],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],r=e[1],n=e[2],s=Math.max(t,r,n),a=Math.min(t,r,n),l,u,p=(s+a)/2;if(s===a)l=0,u=0;else{var d=s-a;switch(u=p>.5?d/(2-s-a):d/(s+a),s){case t:l=(r-n)/d+(r<n?6:0);break;case r:l=(n-t)/d+2;break;case n:l=(t-r)/d+4;break}l/=6}return[l,u,p,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t=e[0],r=e[1],n=e[2],s,a,l;if(r===0)s=n,l=n,a=n;else{var u=n<.5?n*(1+r):n+r-n*r,p=2*n-u;s=hue2rgb(p,u,t+1/3),a=hue2rgb(p,u,t),l=hue2rgb(p,u,t-1/3)}return[s,a,l,e[3]]}function linear(e,t,r,n,s){if((n===void 0||s===void 0)&&(n=t,s=r,t=0,r=1),r<t){var a=r;r=t,t=a}if(e<=t)return n;if(e>=r)return s;var l=r===t?0:(e-t)/(r-t);if(!n.length)return n+(s-n)*l;var u,p=n.length,d=createTypedArray("float32",p);for(u=0;u<p;u+=1)d[u]=n[u]+(s[u]-n[u])*l;return d}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var s=createTypedArray("float32",n),a=BMMath.random();for(r=0;r<n;r+=1)s[r]=e[r]+a*(t[r]-e[r]);return s}e===void 0&&(e=0);var l=BMMath.random();return e+l*(t-e)}function createPath(e,t,r,n){var s,a=e.length,l=shapePool.newElement();l.setPathData(!!n,a);var u=[0,0],p,d;for(s=0;s<a;s+=1)p=t&&t[s]?t[s]:u,d=r&&r[s]?r[s]:u,l.setTripleAt(e[s][0],e[s][1],d[0]+e[s][0],d[1]+e[s][1],p[0]+e[s][0],p[1]+e[s][1],s,!0);return l}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function e(t,r){var n,s,a=this.pv.length?this.pv.length:1,l=createTypedArray("float32",a);t=5;var u=Math.floor(time*t);for(n=0,s=0;n<u;){for(s=0;s<a;s+=1)l[s]+=-r+r*2*BMMath.random();n+=1}var p=time*t,d=p-Math.floor(p),f=createTypedArray("float32",a);if(a>1){for(s=0;s<a;s+=1)f[s]=this.pv[s]+l[s]+(-r+r*2*BMMath.random())*d;return f}return this.pv+l[0]+(-r+r*2*BMMath.random())*d}.bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,s=-Math.atan2(r[1],r[2])/degToRads;return[s,n,0]}function easeOut(e,t,r,n,s){return applyEase(easeOutBez,e,t,r,n,s)}function easeIn(e,t,r,n,s){return applyEase(easeInBez,e,t,r,n,s)}function ease(e,t,r,n,s){return applyEase(easeInOutBez,e,t,r,n,s)}function applyEase(e,t,r,n,s,a){s===void 0?(s=r,a=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var l=e(t);if($bm_isInstanceOfArray(s)){var u,p=s.length,d=createTypedArray("float32",p);for(u=0;u<p;u+=1)d[u]=(a[u]-s[u])*l+s[u];return d}return(a-s)*l+s}function nearestKey(e){var t,r=data.k.length,n,s;if(!data.k.length||typeof data.k[0]=="number")n=0,s=0;else if(n=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)n=1,s=data.k[0].t;else{for(t=0;t<r-1;t+=1)if(e===data.k[t].t){n=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,s=data.k[t+1].t):(n=t+1,s=data.k[t].t);break}n===-1&&(n=t+1,s=data.k[t].t)}var a={};return a.index=n,a.time=s/elem.comp.globalData.frameRate,a}function key(e){var t,r,n;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=s.length,r=0;r<n;r+=1)t[r]=s[r],t.value[r]=s[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(r){var n=0,s=[];function a(){n+=1}function l(){n-=1,n===0&&p()}function u(d){s.indexOf(d)===-1&&s.push(d)}function p(){var d,f=s.length;for(d=0;d<f;d+=1)s[d].release();s.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=a,r.renderer.globalData.popExpression=l,r.renderer.globalData.registerExpressionProperty=u}return e}(),MaskManagerInterface=function(){function e(r,n){this._mask=r,this._data=n}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(n){var s=createSizedArray(n.viewData.length),a,l=n.viewData.length;for(a=0;a<l;a+=1)s[a]=new e(n.viewData[a],n.masksProperties[a]);var u=function(d){for(a=0;a<l;){if(n.masksProperties[a].nm===d)return s[a];a+=1}return null};return u};return t}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(l,u,p){Object.defineProperty(l,"velocity",{get:function(){return u.getVelocityAtTime(u.comp.currentFrame)}}),l.numKeys=u.keyframes?u.keyframes.length:0,l.key=function(d){if(!l.numKeys)return 0;var f="";"s"in u.keyframes[d-1]?f=u.keyframes[d-1].s:"e"in u.keyframes[d-2]?f=u.keyframes[d-2].e:f=u.keyframes[d-2].s;var _=p==="unidimensional"?new Number(f):Object.assign({},f);return _.time=u.keyframes[d-1].t/u.elem.comp.globalData.frameRate,_.value=p==="unidimensional"?f[0]:f,_},l.valueAtTime=u.getValueAtTime,l.speedAtTime=u.getSpeedAtTime,l.velocityAtTime=u.getVelocityAtTime,l.propertyGroup=u.propertyGroup}function n(l){(!l||!("pv"in l))&&(l=e);var u=1/l.mult,p=l.pv*u,d=new Number(p);return d.value=p,r(d,l,"unidimensional"),function(){return l.k&&l.getValue(),p=l.v*u,d.value!==p&&(d=new Number(p),d.value=p,r(d,l,"unidimensional")),d}}function s(l){(!l||!("pv"in l))&&(l=t);var u=1/l.mult,p=l.data&&l.data.l||l.pv.length,d=createTypedArray("float32",p),f=createTypedArray("float32",p);return d.value=f,r(d,l,"multidimensional"),function(){l.k&&l.getValue();for(var _=0;_<p;_+=1)f[_]=l.v[_]*u,d[_]=f[_];return d}}function a(){return e}return function(l){return l?l.propType==="unidimensional"?n(l):s(l):a}}(),TransformExpressionInterface=function(){return function(e){function t(l){switch(l){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var r,n,s,a;return e.p?a=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[r(),n(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}}(),LayerExpressionInterface=function(){function e(d){var f=new Matrix;if(d!==void 0){var _=this._elem.finalTransform.mProp.getValueAtTime(d);_.clone(f)}else{var y=this._elem.finalTransform.mProp;y.applyToMatrix(f)}return f}function t(d,f){var _=this.getMatrix(f);return _.props[12]=0,_.props[13]=0,_.props[14]=0,this.applyPoint(_,d)}function r(d,f){var _=this.getMatrix(f);return this.applyPoint(_,d)}function n(d,f){var _=this.getMatrix(f);return _.props[12]=0,_.props[13]=0,_.props[14]=0,this.invertPoint(_,d)}function s(d,f){var _=this.getMatrix(f);return this.invertPoint(_,d)}function a(d,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var _,y=this._elem.hierarchy.length;for(_=0;_<y;_+=1)this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(d)}return d.applyToPointArray(f[0],f[1],f[2]||0)}function l(d,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var _,y=this._elem.hierarchy.length;for(_=0;_<y;_+=1)this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(d)}return d.inversePoint(f)}function u(d){var f=new Matrix;if(f.reset(),this._elem.finalTransform.mProp.applyToMatrix(f),this._elem.hierarchy&&this._elem.hierarchy.length){var _,y=this._elem.hierarchy.length;for(_=0;_<y;_+=1)this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(f);return f.inversePoint(d)}return f.inversePoint(d)}function p(){return[1,1,1,1]}return function(d){var f;function _(m){b.mask=new MaskManagerInterface(m,d)}function y(m){b.effect=m}function b(m){switch(m){case"ADBE Root Vectors Group":case"Contents":case 2:return b.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return f;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return b.effect;case"ADBE Text Properties":return b.textInterface;default:return null}}b.getMatrix=e,b.invertPoint=l,b.applyPoint=a,b.toWorld=r,b.toWorldVec=t,b.fromWorld=s,b.fromWorldVec=n,b.toComp=r,b.fromComp=u,b.sampleImage=p,b.sourceRectAtTime=d.sourceRectAtTime.bind(d),b._elem=d,f=TransformExpressionInterface(d.finalTransform.mProp);var g=getDescriptor(f,"anchorPoint");return Object.defineProperties(b,{hasParent:{get:function(){return d.hierarchy.length}},parent:{get:function(){return d.hierarchy[0].layerInterface}},rotation:getDescriptor(f,"rotation"),scale:getDescriptor(f,"scale"),position:getDescriptor(f,"position"),opacity:getDescriptor(f,"opacity"),anchorPoint:g,anchor_point:g,transform:{get:function(){return f}},active:{get:function(){return d.isInRange}}}),b.startTime=d.data.st,b.index=d.data.ind,b.source=d.data.refId,b.height=d.data.ty===0?d.data.h:100,b.width=d.data.ty===0?d.data.w:100,b.inPoint=d.data.ip/d.comp.globalData.frameRate,b.outPoint=d.data.op/d.comp.globalData.frameRate,b._name=d.data.nm,b.registerMaskInterface=_,b.registerEffectsInterface=y,b}}(),propertyGroupFactory=function(){return function(e,t){return function(r){return r=r===void 0?1:r,r<=0?e:t(r-1)}}}(),PropertyInterface=function(){return function(e,t){var r={_name:e};function n(s){return s=s===void 0?1:s,s<=0?r:t(s-1)}return n}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:t};function t(s,a){if(s.effectsManager){var l=[],u=s.data.ef,p,d=s.effectsManager.effectElements.length;for(p=0;p<d;p+=1)l.push(r(u[p],s.effectsManager.effectElements[p],a,s));var f=s.data.ef||[],_=function(b){for(p=0,d=f.length;p<d;){if(b===f[p].nm||b===f[p].mn||b===f[p].ix)return l[p];p+=1}return null};return Object.defineProperty(_,"numProperties",{get:function(){return f.length}}),_}return null}function r(s,a,l,u){function p(b){for(var g=s.ef,m=0,C=g.length;m<C;){if(b===g[m].nm||b===g[m].mn||b===g[m].ix)return g[m].ty===5?f[m]:f[m]();m+=1}throw new Error}var d=propertyGroupFactory(p,l),f=[],_,y=s.ef.length;for(_=0;_<y;_+=1)s.ef[_].ty===5?f.push(r(s.ef[_],a.effectElements[_],a.effectElements[_].propertyGroup,u)):f.push(n(a.effectElements[_],s.ef[_].ty,u,d));return s.mn==="ADBE Color Control"&&Object.defineProperty(p,"color",{get:function(){return f[0]()}}),Object.defineProperties(p,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:d}}),p.enabled=s.en!==0,p.active=p.enabled,p}function n(s,a,l,u){var p=ExpressionPropertyInterface(s.p);function d(){return a===10?l.comp.compInterface(s.p.v):p()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",u)),d}return e}(),ShapePathInterface=function(){return function(t,r,n){var s=r.sh;function a(u){return u==="Shape"||u==="shape"||u==="Path"||u==="path"||u==="ADBE Vector Shape"||u===2?a.path:null}var l=propertyGroupFactory(a,n);return s.setGroupProperty(PropertyInterface("Path",l)),Object.defineProperties(a,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:n}}),a}}(),ShapeExpressionInterface=function(){function e(g,m,C){var S=[],P,A=g?g.length:0;for(P=0;P<A;P+=1)g[P].ty==="gr"?S.push(r(g[P],m[P],C)):g[P].ty==="fl"?S.push(n(g[P],m[P],C)):g[P].ty==="st"?S.push(l(g[P],m[P],C)):g[P].ty==="tm"?S.push(u(g[P],m[P],C)):g[P].ty==="tr"||(g[P].ty==="el"?S.push(d(g[P],m[P],C)):g[P].ty==="sr"?S.push(f(g[P],m[P],C)):g[P].ty==="sh"?S.push(ShapePathInterface(g[P],m[P],C)):g[P].ty==="rc"?S.push(_(g[P],m[P],C)):g[P].ty==="rd"?S.push(y(g[P],m[P],C)):g[P].ty==="rp"?S.push(b(g[P],m[P],C)):g[P].ty==="gf"?S.push(s(g[P],m[P],C)):S.push(a(g[P],m[P])));return S}function t(g,m,C){var S,P=function(R){for(var E=0,k=S.length;E<k;){if(S[E]._name===R||S[E].mn===R||S[E].propertyIndex===R||S[E].ix===R||S[E].ind===R)return S[E];E+=1}return typeof R=="number"?S[R-1]:null};P.propertyGroup=propertyGroupFactory(P,C),S=e(g.it,m.it,P.propertyGroup),P.numProperties=S.length;var A=p(g.it[g.it.length-1],m.it[m.it.length-1],P.propertyGroup);return P.transform=A,P.propertyIndex=g.cix,P._name=g.nm,P}function r(g,m,C){var S=function(R){switch(R){case"ADBE Vectors Group":case"Contents":case 2:return S.content;default:return S.transform}};S.propertyGroup=propertyGroupFactory(S,C);var P=t(g,m,S.propertyGroup),A=p(g.it[g.it.length-1],m.it[m.it.length-1],S.propertyGroup);return S.content=P,S.transform=A,Object.defineProperty(S,"_name",{get:function(){return g.nm}}),S.numProperties=g.np,S.propertyIndex=g.ix,S.nm=g.nm,S.mn=g.mn,S}function n(g,m,C){function S(P){return P==="Color"||P==="color"?S.color:P==="Opacity"||P==="opacity"?S.opacity:null}return Object.defineProperties(S,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:g.nm},mn:{value:g.mn}}),m.c.setGroupProperty(PropertyInterface("Color",C)),m.o.setGroupProperty(PropertyInterface("Opacity",C)),S}function s(g,m,C){function S(P){return P==="Start Point"||P==="start point"?S.startPoint:P==="End Point"||P==="end point"?S.endPoint:P==="Opacity"||P==="opacity"?S.opacity:null}return Object.defineProperties(S,{startPoint:{get:ExpressionPropertyInterface(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function(){return"a"}},_name:{value:g.nm},mn:{value:g.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",C)),m.e.setGroupProperty(PropertyInterface("End Point",C)),m.o.setGroupProperty(PropertyInterface("Opacity",C)),S}function a(){function g(){return null}return g}function l(g,m,C){var S=propertyGroupFactory(k,C),P=propertyGroupFactory(E,S);function A(I){Object.defineProperty(E,g.d[I].nm,{get:ExpressionPropertyInterface(m.d.dataProps[I].p)})}var x,R=g.d?g.d.length:0,E={};for(x=0;x<R;x+=1)A(x),m.d.dataProps[x].p.setGroupProperty(P);function k(I){return I==="Color"||I==="color"?k.color:I==="Opacity"||I==="opacity"?k.opacity:I==="Stroke Width"||I==="stroke width"?k.strokeWidth:null}return Object.defineProperties(k,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function(){return E}},_name:{value:g.nm},mn:{value:g.mn}}),m.c.setGroupProperty(PropertyInterface("Color",S)),m.o.setGroupProperty(PropertyInterface("Opacity",S)),m.w.setGroupProperty(PropertyInterface("Stroke Width",S)),k}function u(g,m,C){function S(A){return A===g.e.ix||A==="End"||A==="end"?S.end:A===g.s.ix?S.start:A===g.o.ix?S.offset:null}var P=propertyGroupFactory(S,C);return S.propertyIndex=g.ix,m.s.setGroupProperty(PropertyInterface("Start",P)),m.e.setGroupProperty(PropertyInterface("End",P)),m.o.setGroupProperty(PropertyInterface("Offset",P)),S.propertyIndex=g.ix,S.propertyGroup=C,Object.defineProperties(S,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:g.nm}}),S.mn=g.mn,S}function p(g,m,C){function S(A){return g.a.ix===A||A==="Anchor Point"?S.anchorPoint:g.o.ix===A||A==="Opacity"?S.opacity:g.p.ix===A||A==="Position"?S.position:g.r.ix===A||A==="Rotation"||A==="ADBE Vector Rotation"?S.rotation:g.s.ix===A||A==="Scale"?S.scale:g.sk&&g.sk.ix===A||A==="Skew"?S.skew:g.sa&&g.sa.ix===A||A==="Skew Axis"?S.skewAxis:null}var P=propertyGroupFactory(S,C);return m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",P)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",P)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",P)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",P)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",P)),m.transform.mProps.sk&&(m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",P)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",P))),m.transform.op.setGroupProperty(PropertyInterface("Opacity",P)),Object.defineProperties(S,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:g.nm}}),S.ty="tr",S.mn=g.mn,S.propertyGroup=C,S}function d(g,m,C){function S(x){return g.p.ix===x?S.position:g.s.ix===x?S.size:null}var P=propertyGroupFactory(S,C);S.propertyIndex=g.ix;var A=m.sh.ty==="tm"?m.sh.prop:m.sh;return A.s.setGroupProperty(PropertyInterface("Size",P)),A.p.setGroupProperty(PropertyInterface("Position",P)),Object.defineProperties(S,{size:{get:ExpressionPropertyInterface(A.s)},position:{get:ExpressionPropertyInterface(A.p)},_name:{value:g.nm}}),S.mn=g.mn,S}function f(g,m,C){function S(x){return g.p.ix===x?S.position:g.r.ix===x?S.rotation:g.pt.ix===x?S.points:g.or.ix===x||x==="ADBE Vector Star Outer Radius"?S.outerRadius:g.os.ix===x?S.outerRoundness:g.ir&&(g.ir.ix===x||x==="ADBE Vector Star Inner Radius")?S.innerRadius:g.is&&g.is.ix===x?S.innerRoundness:null}var P=propertyGroupFactory(S,C),A=m.sh.ty==="tm"?m.sh.prop:m.sh;return S.propertyIndex=g.ix,A.or.setGroupProperty(PropertyInterface("Outer Radius",P)),A.os.setGroupProperty(PropertyInterface("Outer Roundness",P)),A.pt.setGroupProperty(PropertyInterface("Points",P)),A.p.setGroupProperty(PropertyInterface("Position",P)),A.r.setGroupProperty(PropertyInterface("Rotation",P)),g.ir&&(A.ir.setGroupProperty(PropertyInterface("Inner Radius",P)),A.is.setGroupProperty(PropertyInterface("Inner Roundness",P))),Object.defineProperties(S,{position:{get:ExpressionPropertyInterface(A.p)},rotation:{get:ExpressionPropertyInterface(A.r)},points:{get:ExpressionPropertyInterface(A.pt)},outerRadius:{get:ExpressionPropertyInterface(A.or)},outerRoundness:{get:ExpressionPropertyInterface(A.os)},innerRadius:{get:ExpressionPropertyInterface(A.ir)},innerRoundness:{get:ExpressionPropertyInterface(A.is)},_name:{value:g.nm}}),S.mn=g.mn,S}function _(g,m,C){function S(x){return g.p.ix===x?S.position:g.r.ix===x?S.roundness:g.s.ix===x||x==="Size"||x==="ADBE Vector Rect Size"?S.size:null}var P=propertyGroupFactory(S,C),A=m.sh.ty==="tm"?m.sh.prop:m.sh;return S.propertyIndex=g.ix,A.p.setGroupProperty(PropertyInterface("Position",P)),A.s.setGroupProperty(PropertyInterface("Size",P)),A.r.setGroupProperty(PropertyInterface("Rotation",P)),Object.defineProperties(S,{position:{get:ExpressionPropertyInterface(A.p)},roundness:{get:ExpressionPropertyInterface(A.r)},size:{get:ExpressionPropertyInterface(A.s)},_name:{value:g.nm}}),S.mn=g.mn,S}function y(g,m,C){function S(x){return g.r.ix===x||x==="Round Corners 1"?S.radius:null}var P=propertyGroupFactory(S,C),A=m;return S.propertyIndex=g.ix,A.rd.setGroupProperty(PropertyInterface("Radius",P)),Object.defineProperties(S,{radius:{get:ExpressionPropertyInterface(A.rd)},_name:{value:g.nm}}),S.mn=g.mn,S}function b(g,m,C){function S(x){return g.c.ix===x||x==="Copies"?S.copies:g.o.ix===x||x==="Offset"?S.offset:null}var P=propertyGroupFactory(S,C),A=m;return S.propertyIndex=g.ix,A.c.setGroupProperty(PropertyInterface("Copies",P)),A.o.setGroupProperty(PropertyInterface("Offset",P)),Object.defineProperties(S,{copies:{get:ExpressionPropertyInterface(A.c)},offset:{get:ExpressionPropertyInterface(A.o)},_name:{value:g.nm}}),S.mn=g.mn,S}return function(g,m,C){var S;function P(x){if(typeof x=="number")return x=x===void 0?1:x,x===0?C:S[x-1];for(var R=0,E=S.length;R<E;){if(S[R]._name===x)return S[R];R+=1}return null}function A(){return C}return P.propertyGroup=propertyGroupFactory(P,A),S=e(g,m,P.propertyGroup),P.numProperties=S.length,P._name="Contents",P}}(),TextExpressionInterface=function(){return function(e){var t;function r(n){switch(n){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(r){return typeof r}:_typeof=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(e)}var FootageInterface=function(){var e=function(n){var s="",a=n.getFootageData();function l(){return s="",a=n.getFootageData(),u}function u(p){if(a[p])return s=p,a=a[p],_typeof(a)==="object"?u:a;var d=p.indexOf(s);if(d!==-1){var f=parseInt(p.substr(d+s.length),10);return a=a[f],_typeof(a)==="object"?u:a}return""}return l},t=function(n){function s(a){return a==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(n),s};return function(r){function n(s){return s==="Data"?n.dataInterface:null}return n._name="Data",n.dataInterface=t(r),n}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(l,u,p){u.x&&(p.k=!0,p.x=!0,p.initiateExpression=ExpressionManager.initiateExpression,p.effectsSequence.push(p.initiateExpression(l,u,p).bind(p)))}function t(l){return l*=this.elem.globalData.frameRate,l-=this.offsetTime,l!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<l?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(l,this._cachingAtTime),this._cachingAtTime.lastFrame=l),this._cachingAtTime.value}function r(l){var u=-.01,p=this.getValueAtTime(l),d=this.getValueAtTime(l+u),f=0;if(p.length){var _;for(_=0;_<p.length;_+=1)f+=Math.pow(d[_]-p[_],2);f=Math.sqrt(f)*100}else f=0;return f}function n(l){if(this.vel!==void 0)return this.vel;var u=-.001,p=this.getValueAtTime(l),d=this.getValueAtTime(l+u),f;if(p.length){f=createTypedArray("float32",p.length);var _;for(_=0;_<p.length;_+=1)f[_]=(d[_]-p[_])/u}else f=(d-p)/u;return f}function s(){return this.pv}function a(l){this.propertyGroup=l}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:n,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:a}}();function addPropertyDecorator(){function e(y,b,g){if(!this.k||!this.keyframes)return this.pv;y=y?y.toLowerCase():"";var m=this.comp.renderedFrame,C=this.keyframes,S=C[C.length-1].t;if(m<=S)return this.pv;var P,A;g?(b?P=Math.abs(S-this.elem.comp.globalData.frameRate*b):P=Math.max(0,S-this.elem.data.ip),A=S-P):((!b||b>C.length-1)&&(b=C.length-1),A=C[C.length-1-b].t,P=S-A);var x,R,E;if(y==="pingpong"){var k=Math.floor((m-A)/P);if(k%2!==0)return this.getValueAtTime((P-(m-A)%P+A)/this.comp.globalData.frameRate,0)}else if(y==="offset"){var I=this.getValueAtTime(A/this.comp.globalData.frameRate,0),O=this.getValueAtTime(S/this.comp.globalData.frameRate,0),G=this.getValueAtTime(((m-A)%P+A)/this.comp.globalData.frameRate,0),j=Math.floor((m-A)/P);if(this.pv.length){for(E=new Array(I.length),R=E.length,x=0;x<R;x+=1)E[x]=(O[x]-I[x])*j+G[x];return E}return(O-I)*j+G}else if(y==="continue"){var V=this.getValueAtTime(S/this.comp.globalData.frameRate,0),z=this.getValueAtTime((S-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(E=new Array(V.length),R=E.length,x=0;x<R;x+=1)E[x]=V[x]+(V[x]-z[x])*((m-S)/this.comp.globalData.frameRate)/5e-4;return E}return V+(V-z)*((m-S)/.001)}return this.getValueAtTime(((m-A)%P+A)/this.comp.globalData.frameRate,0)}function t(y,b,g){if(!this.k)return this.pv;y=y?y.toLowerCase():"";var m=this.comp.renderedFrame,C=this.keyframes,S=C[0].t;if(m>=S)return this.pv;var P,A;g?(b?P=Math.abs(this.elem.comp.globalData.frameRate*b):P=Math.max(0,this.elem.data.op-S),A=S+P):((!b||b>C.length-1)&&(b=C.length-1),A=C[b].t,P=A-S);var x,R,E;if(y==="pingpong"){var k=Math.floor((S-m)/P);if(k%2===0)return this.getValueAtTime(((S-m)%P+S)/this.comp.globalData.frameRate,0)}else if(y==="offset"){var I=this.getValueAtTime(S/this.comp.globalData.frameRate,0),O=this.getValueAtTime(A/this.comp.globalData.frameRate,0),G=this.getValueAtTime((P-(S-m)%P+S)/this.comp.globalData.frameRate,0),j=Math.floor((S-m)/P)+1;if(this.pv.length){for(E=new Array(I.length),R=E.length,x=0;x<R;x+=1)E[x]=G[x]-(O[x]-I[x])*j;return E}return G-(O-I)*j}else if(y==="continue"){var V=this.getValueAtTime(S/this.comp.globalData.frameRate,0),z=this.getValueAtTime((S+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(E=new Array(V.length),R=E.length,x=0;x<R;x+=1)E[x]=V[x]+(V[x]-z[x])*(S-m)/.001;return E}return V+(V-z)*(S-m)/.001}return this.getValueAtTime((P-((S-m)%P+S))/this.comp.globalData.frameRate,0)}function r(y,b){if(!this.k)return this.pv;if(y=(y||.4)*.5,b=Math.floor(b||5),b<=1)return this.pv;var g=this.comp.renderedFrame/this.comp.globalData.frameRate,m=g-y,C=g+y,S=b>1?(C-m)/(b-1):1,P=0,A=0,x;this.pv.length?x=createTypedArray("float32",this.pv.length):x=0;for(var R;P<b;){if(R=this.getValueAtTime(m+P*S),this.pv.length)for(A=0;A<this.pv.length;A+=1)x[A]+=R[A];else x+=R;P+=1}if(this.pv.length)for(A=0;A<this.pv.length;A+=1)x[A]/=b;else x/=b;return x}function n(y){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var b=this._transformCachingAtTime.v;if(b.cloneFromProps(this.pre.props),this.appliedTransformations<1){var g=this.a.getValueAtTime(y);b.translate(-g[0]*this.a.mult,-g[1]*this.a.mult,g[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(y);b.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var C=this.sk.getValueAtTime(y),S=this.sa.getValueAtTime(y);b.skewFromAxis(-C*this.sk.mult,S*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var P=this.r.getValueAtTime(y);b.rotate(-P*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var A=this.rz.getValueAtTime(y),x=this.ry.getValueAtTime(y),R=this.rx.getValueAtTime(y),E=this.or.getValueAtTime(y);b.rotateZ(-A*this.rz.mult).rotateY(x*this.ry.mult).rotateX(R*this.rx.mult).rotateZ(-E[2]*this.or.mult).rotateY(E[1]*this.or.mult).rotateX(E[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var k=this.px.getValueAtTime(y),I=this.py.getValueAtTime(y);if(this.data.p.z){var O=this.pz.getValueAtTime(y);b.translate(k*this.px.mult,I*this.py.mult,-O*this.pz.mult)}else b.translate(k*this.px.mult,I*this.py.mult,0)}else{var G=this.p.getValueAtTime(y);b.translate(G[0]*this.p.mult,G[1]*this.p.mult,-G[2]*this.p.mult)}return b}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(y,b,g){var m=a(y,b,g);return m.dynamicProperties.length?m.getValueAtTime=n.bind(m):m.getValueAtTime=s.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m};var l=PropertyFactory.getProp;PropertyFactory.getProp=function(y,b,g,m,C){var S=l(y,b,g,m,C);S.kf?S.getValueAtTime=expressionHelpers.getValueAtTime.bind(S):S.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(S),S.setGroupProperty=expressionHelpers.setGroupProperty,S.loopOut=e,S.loopIn=t,S.smooth=r,S.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(S),S.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(S),S.numKeys=b.a===1?b.k.length:0,S.propertyIndex=b.ix;var P=0;return g!==0&&(P=createTypedArray("float32",b.a===1?b.k[0].s.length:b.k.length)),S._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:P},expressionHelpers.searchExpressions(y,b,S),S.k&&C.addDynamicProperty(S),S};function u(y){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),y*=this.elem.globalData.frameRate,y-=this.offsetTime,y!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<y?this._caching.lastIndex:0,this._cachingAtTime.lastTime=y,this.interpolateShape(y,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var p=ShapePropertyFactory.getConstructorFunction(),d=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(b,g){this.k&&this.getValue();var m=this.v;g!==void 0&&(m=this.getValueAtTime(g,0));var C,S=m._length,P=m[b],A=m.v,x=createSizedArray(S);for(C=0;C<S;C+=1)b==="i"||b==="o"?x[C]=[P[C][0]-A[C][0],P[C][1]-A[C][1]]:x[C]=[P[C][0],P[C][1]];return x},points:function(b){return this.vertices("v",b)},inTangents:function(b){return this.vertices("i",b)},outTangents:function(b){return this.vertices("o",b)},isClosed:function(){return this.v.c},pointOnPath:function(b,g){var m=this.v;g!==void 0&&(m=this.getValueAtTime(g,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(m));for(var C=this._segmentsLength,S=C.lengths,P=C.totalLength*b,A=0,x=S.length,R=0,E;A<x;){if(R+S[A].addedLength>P){var k=A,I=m.c&&A===x-1?0:A+1,O=(P-R)/S[A].addedLength;E=bez.getPointInSegment(m.v[k],m.v[I],m.o[k],m.i[I],O,S[A]);break}else R+=S[A].addedLength;A+=1}return E||(E=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]]),E},vectorOnPath:function(b,g,m){b==1?b=this.v.c:b==0&&(b=.999);var C=this.pointOnPath(b,g),S=this.pointOnPath(b+.001,g),P=S[0]-C[0],A=S[1]-C[1],x=Math.sqrt(Math.pow(P,2)+Math.pow(A,2));if(x===0)return[0,0];var R=m==="tangent"?[P/x,A/x]:[-A/x,P/x];return R},tangentOnPath:function(b,g){return this.vectorOnPath(b,g,"tangent")},normalOnPath:function(b,g){return this.vectorOnPath(b,g,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([f],p),extendPrototype([f],d),d.prototype.getValueAtTime=u,d.prototype.initiateExpression=ExpressionManager.initiateExpression;var _=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(y,b,g,m,C){var S=_(y,b,g,m,C);return S.propertyIndex=b.ix,S.lock=!1,g===3?expressionHelpers.searchExpressions(y,b.pt,S):g===4&&expressionHelpers.searchExpressions(y,b.ks,S),S.k&&y.addDynamicProperty(S),S}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,r){var n=this.calculateExpression(r);if(t.t!==n){var s={};return this.copyData(s,t),s.t=n.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),r=this.searchExpressions();return this.kf=t||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,r){var n=createNS("feMerge");n.setAttribute("result",t);var s,a;for(a=0;a<r.length;a+=1)s=createNS("feMergeNode"),s.setAttribute("in",r[a]),n.appendChild(s),n.appendChild(s);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,n,s){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",n+"_tint_1"),e.appendChild(a),a=createNS("feColorMatrix"),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",n+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var l=this.createMergeNode(n,[s,n+"_tint_1",n+"_tint_2"]);e.appendChild(l)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,r,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",n),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,r,n,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,n=0):(n=this.filterManager.effectElements[0].p.v-1,s=n+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),n;n<s;n+=1)t=createNS("path"),r.appendChild(t),this.paths.push({p:t,m:n});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),l=createElementID();a.setAttribute("id",l),a.setAttribute("mask-type","alpha"),a.appendChild(r),this.elem.globalData.defs.appendChild(a);var u=createNS("g");for(u.setAttribute("mask","url("+getLocationHref()+"#"+l+")");e[0];)u.appendChild(e[0]);this.elem.layerElement.appendChild(u),this.masker=a,r.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,r=this.paths.length,n,s;for(t=0;t<r;t+=1)if(this.paths[t].m!==-1&&(n=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&s.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var l=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,u=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,p=s.getTotalLength();a="0 0 0 "+p*l+" ";var d=p*(u-l),f=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,_=Math.floor(d/f),y;for(y=0;y<_;y+=1)a+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+p*10+" 0 0"}else a="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var b=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(b[0]*255)+","+bmFloor(b[1]*255)+","+bmFloor(b[2]*255)+")")}};function SVGTritoneFilter(e,t,r,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),this.matrixFilter=a;var l=createNS("feFuncR");l.setAttribute("type","table"),a.appendChild(l),this.feFuncR=l;var u=createNS("feFuncG");u.setAttribute("type","table"),a.appendChild(u),this.feFuncG=u;var p=createNS("feFuncB");p.setAttribute("type","table"),a.appendChild(p),this.feFuncB=p,e.appendChild(a)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,s=n[0]+" "+r[0]+" "+t[0],a=n[1]+" "+r[1]+" "+t[1],l=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",l)}};function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(a=createNS("feComponentTransfer"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",n),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,n,s){for(var a=0,l=256,u,p=Math.min(e,t),d=Math.max(e,t),f=Array.call(null,{length:l}),_,y=0,b=s-n,g=t-e;a<=256;)u=a/256,u<=p?_=g<0?s:n:u>=d?_=g<0?n:s:_=n+b*Math.pow((u-e)/g,1/r),f[y]=_,y+=1,a+=256/(l-1);return f.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,r,n,s){var a=t.container.globalData.renderConfig.filterSize,l=t.data.fs||a;e.setAttribute("x",l.x||a.x),e.setAttribute("y",l.y||a.y),e.setAttribute("width",l.width||a.width),e.setAttribute("height",l.height||a.height),this.filterManager=t;var u=createNS("feGaussianBlur");u.setAttribute("in","SourceAlpha"),u.setAttribute("result",n+"_drop_shadow_1"),u.setAttribute("stdDeviation","0"),this.feGaussianBlur=u,e.appendChild(u);var p=createNS("feOffset");p.setAttribute("dx","25"),p.setAttribute("dy","0"),p.setAttribute("in",n+"_drop_shadow_1"),p.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=p,e.appendChild(p);var d=createNS("feFlood");d.setAttribute("flood-color","#00ff00"),d.setAttribute("flood-opacity","1"),d.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=d,e.appendChild(d);var f=createNS("feComposite");f.setAttribute("in",n+"_drop_shadow_3"),f.setAttribute("in2",n+"_drop_shadow_2"),f.setAttribute("operator","in"),f.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(f);var _=this.createMergeNode(n,[n+"_drop_shadow_4",s]);e.appendChild(_)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(n),a=r*Math.sin(n);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var n=r.children,s=0,a=n.length;s<a&&n[s]!==e.layerElement;)s+=1;var l;s<=a-2&&(l=n[s+1]);var u=createNS("use");u.setAttribute("href","#"+t),l?r.insertBefore(u,l):r.appendChild(u)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(n);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(t,r),a.appendChild(t.layerElement),s.appendChild(a);var l=createNS("use");l.setAttribute("href","#"+r),n.appendChild(l),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,n=t.length;r<n;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,r,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",n),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,r=this.filterManager.effectElements[0].p.v*t,n=this.filterManager.effectElements[1].p.v,s=n==3?0:r,a=n==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+a);var l=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",l)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,n=t[1].p.v,s=t[2].p.v===1,a=t[3].p.v,l=s?a:t[4].p.v,u=t[5].p.v,p=t[6].p.v,d=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(l*.01,a*.01,1),this.matrix.rotate(-d*degToRads),this.matrix.skewFromAxis(-u*degToRads,(p+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie,lottie.exports);var lottieExports=lottie.exports;const Lottie=getDefaultExportFromCjs(lottieExports);var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeGlobal$1=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")(),root$1=root,Symbol$1=root$1.Symbol,Symbol$2=Symbol$1,objectProto$e=Object.prototype,hasOwnProperty$b=objectProto$e.hasOwnProperty,nativeObjectToString$1=objectProto$e.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$b.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var n=!0}catch(a){}var s=nativeObjectToString$1.call(e);return n&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),s}var objectProto$d=Object.prototype,nativeObjectToString=objectProto$d.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return e!=null&&typeof e=="object"}var isArray=Array.isArray,isArray$1=isArray;function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==funcTag$2||t==genTag$1||t==asyncTag||t==proxyTag}var coreJsData=root$1["__core-js_shared__"],coreJsData$1=coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(e){if(e!=null){try{return funcToString$1.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$c=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$a=objectProto$c.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$a).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject(e)||isMasked(e))return!1;var t=isFunction(e)?reIsNative:reIsHostCtor;return t.test(toSource(e))}function getValue(e,t){return e==null?void 0:e[t]}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:void 0}var WeakMap=getNative(root$1,"WeakMap"),WeakMap$1=WeakMap,objectCreate=Object.create,baseCreate=function(){function e(){}return function(t){if(!isObject(t))return{};if(objectCreate)return objectCreate(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),baseCreate$1=baseCreate;function copyArray(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var defineProperty=function(){try{var e=getNative(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),defineProperty$1=defineProperty;function arrayEach(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var r=typeof e;return t=t==null?MAX_SAFE_INTEGER$1:t,!!t&&(r=="number"||r!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}function baseAssignValue(e,t,r){t=="__proto__"&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function eq(e,t){return e===t||e!==e&&t!==t}var objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty;function assignValue(e,t,r){var n=e[t];(!(hasOwnProperty$9.call(e,t)&&eq(n,r))||r===void 0&&!(t in e))&&baseAssignValue(e,t,r)}function copyObject(e,t,r,n){var s=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var u=t[a],p=n?n(r[u],e[u],u,r,e):void 0;p===void 0&&(p=e[u]),s?baseAssignValue(r,u,p):assignValue(r,u,p)}return r}var MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var objectProto$a=Object.prototype;function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||objectProto$a;return e===r}function baseTimes(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var argsTag$3="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==argsTag$3}var objectProto$9=Object.prototype,hasOwnProperty$8=objectProto$9.hasOwnProperty,propertyIsEnumerable$1=objectProto$9.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&hasOwnProperty$8.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$1=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$1?Buffer$1.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,isBuffer$1=isBuffer,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag(e)]}function baseUnary(e){return function(t){return e(t)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var e=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return e||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(t){}}(),nodeUtil$1=nodeUtil,nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray$1=isTypedArray,objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function arrayLikeKeys(e,t){var r=isArray$1(e),n=!r&&isArguments$1(e),s=!r&&!n&&isBuffer$1(e),a=!r&&!n&&!s&&isTypedArray$1(e),l=r||n||s||a,u=l?baseTimes(e.length,String):[],p=u.length;for(var d in e)(t||hasOwnProperty$7.call(e,d))&&!(l&&(d=="length"||s&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||isIndex(d,p)))&&u.push(d);return u}function overArg(e,t){return function(r){return e(t(r))}}var nativeKeys=overArg(Object.keys,Object),nativeKeys$1=nativeKeys,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys$1(e);var t=[];for(var r in Object(e))hasOwnProperty$6.call(e,r)&&r!="constructor"&&t.push(r);return t}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function nativeKeysIn(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function baseKeysIn(e){if(!isObject(e))return nativeKeysIn(e);var t=isPrototype(e),r=[];for(var n in e)n=="constructor"&&(t||!hasOwnProperty$5.call(e,n))||r.push(n);return r}function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var nativeCreate=getNative(Object,"create"),nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate$1){var r=t[e];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$4.call(t,e)?t[e]:void 0}var objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate$1?t[e]!==void 0:hasOwnProperty$3.call(t,e)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate$1&&t===void 0?HASH_UNDEFINED$1:t,this}function Hash(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq(e[r][0],t))return r;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():splice.call(t,r,1),--this.size,!0}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?void 0:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map"),Map$1$1=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1$1||ListCache),string:new Hash}}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var r=getMapData(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function MapCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function arrayPush(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}var getPrototype=overArg(Object.getPrototypeOf,Object),getPrototype$1=getPrototype;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var n=r.__data__;if(!Map$1$1||n.length<LARGE_ARRAY_SIZE-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache(n)}return r.set(e,t),this.size=r.size,this}function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(e,t){return e&&copyObject(t,keys(t),e)}function baseAssignIn(e,t){return e&&copyObject(t,keysIn(t),e)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer?Buffer.allocUnsafe:void 0;function cloneBuffer(e,t){if(t)return e.slice();var r=e.length,n=allocUnsafe?allocUnsafe(r):new e.constructor(r);return e.copy(n),n}function arrayFilter(e,t){for(var r=-1,n=e==null?0:e.length,s=0,a=[];++r<n;){var l=e[r];t(l,r,e)&&(a[s++]=l)}return a}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(e){return e==null?[]:(e=Object(e),arrayFilter(nativeGetSymbols$1(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray,getSymbols$1=getSymbols;function copySymbols(e,t){return copyObject(e,getSymbols$1(e),t)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(e){for(var t=[];e;)arrayPush(t,getSymbols$1(e)),e=getPrototype$1(e);return t}:stubArray,getSymbolsIn$1=getSymbolsIn;function copySymbolsIn(e,t){return copyObject(e,getSymbolsIn$1(e),t)}function baseGetAllKeys(e,t,r){var n=t(e);return isArray$1(e)?n:arrayPush(n,r(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols$1)}function getAllKeysIn(e){return baseGetAllKeys(e,keysIn,getSymbolsIn$1)}var DataView$1=getNative(root$1,"DataView"),DataView$1$1=DataView$1,Promise$1=getNative(root$1,"Promise"),Promise$2=Promise$1,Set$1=getNative(root$1,"Set"),Set$1$1=Set$1,mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1$1),mapCtorString=toSource(Map$1$1),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$1$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1$1&&getTag(new DataView$1$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$1$1&&getTag(new Map$1$1)!=mapTag$4||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$1$1&&getTag(new Set$1$1)!=setTag$4||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag$1)&&(getTag=function(e){var t=baseGetTag(e),r=t==objectTag$2?e.constructor:void 0,n=r?toSource(r):"";if(n)switch(n){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return t});var getTag$1=getTag,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function initCloneArray(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&hasOwnProperty$2.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Uint8Array$1=root$1.Uint8Array,Uint8Array$1$1=Uint8Array$1;function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new Uint8Array$1$1(t).set(new Uint8Array$1$1(e)),t}function cloneDataView(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var reFlags=/\w*$/;function cloneRegExp(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(e){return symbolValueOf$1?Object(symbolValueOf$1.call(e)):{}}function cloneTypedArray(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(e,t,r){var n=e.constructor;switch(t){case arrayBufferTag$2:return cloneArrayBuffer(e);case boolTag$2:case dateTag$2:return new n(+e);case dataViewTag$2:return cloneDataView(e,r);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(e,r);case mapTag$3:return new n;case numberTag$2:case stringTag$2:return new n(e);case regexpTag$2:return cloneRegExp(e);case setTag$3:return new n;case symbolTag$2:return cloneSymbol(e)}}function initCloneObject(e){return typeof e.constructor=="function"&&!isPrototype(e)?baseCreate$1(getPrototype$1(e)):{}}var mapTag$2="[object Map]";function baseIsMap(e){return isObjectLike(e)&&getTag$1(e)==mapTag$2}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,isMap$1=isMap,setTag$2="[object Set]";function baseIsSet(e){return isObjectLike(e)&&getTag$1(e)==setTag$2}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet$1=isSet,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(e,t,r,n,s,a){var l,u=t&CLONE_DEEP_FLAG$1,p=t&CLONE_FLAT_FLAG,d=t&CLONE_SYMBOLS_FLAG$1;if(r&&(l=s?r(e,n,s,a):r(e)),l!==void 0)return l;if(!isObject(e))return e;var f=isArray$1(e);if(f){if(l=initCloneArray(e),!u)return copyArray(e,l)}else{var _=getTag$1(e),y=_==funcTag||_==genTag;if(isBuffer$1(e))return cloneBuffer(e,u);if(_==objectTag$1||_==argsTag$1||y&&!s){if(l=p||y?{}:initCloneObject(e),!u)return p?copySymbolsIn(e,baseAssignIn(l,e)):copySymbols(e,baseAssign(l,e))}else{if(!cloneableTags[_])return s?e:{};l=initCloneByTag(e,_,u)}}a||(a=new Stack);var b=a.get(e);if(b)return b;a.set(e,l),isSet$1(e)?e.forEach(function(C){l.add(baseClone(C,t,r,C,e,a))}):isMap$1(e)&&e.forEach(function(C,S){l.set(S,baseClone(C,t,r,S,e,a))});var g=d?p?getAllKeysIn:getAllKeys:p?keysIn:keys,m=f?void 0:g(e);return arrayEach(m||e,function(C,S){m&&(S=C,C=e[S]),assignValue(l,S,baseClone(C,t,r,S,e,a))}),l}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(e){return baseClone(e,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new MapCache;++t<r;)this.add(e[t])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}var COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays(e,t,r,n,s,a){var l=r&COMPARE_PARTIAL_FLAG$3,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var _=-1,y=!0,b=r&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(a.set(e,t),a.set(t,e);++_<u;){var g=e[_],m=t[_];if(n)var C=l?n(m,g,_,t,e,a):n(g,m,_,e,t,a);if(C!==void 0){if(C)continue;y=!1;break}if(b){if(!arraySome(t,function(S,P){if(!cacheHas(b,P)&&(g===S||s(g,S,r,n,a)))return b.push(P)})){y=!1;break}}else if(!(g===m||s(g,m,r,n,a))){y=!1;break}}return a.delete(e),a.delete(t),y}function mapToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(n,s){r[++t]=[s,n]}),r}function setToArray(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,r,n,s,a,l){switch(r){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!a(new Uint8Array$1$1(e),new Uint8Array$1$1(t)));case boolTag:case dateTag:case numberTag:return eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag:case stringTag:return e==t+"";case mapTag:var u=mapToArray;case setTag:var p=n&COMPARE_PARTIAL_FLAG$2;if(u||(u=setToArray),e.size!=t.size&&!p)return!1;var d=l.get(e);if(d)return d==t;n|=COMPARE_UNORDERED_FLAG,l.set(e,t);var f=equalArrays(u(e),u(t),n,s,a,l);return l.delete(e),f;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects(e,t,r,n,s,a){var l=r&COMPARE_PARTIAL_FLAG$1,u=getAllKeys(e),p=u.length,d=getAllKeys(t),f=d.length;if(p!=f&&!l)return!1;for(var _=p;_--;){var y=u[_];if(!(l?y in t:hasOwnProperty$1.call(t,y)))return!1}var b=a.get(e),g=a.get(t);if(b&&g)return b==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);for(var C=l;++_<p;){y=u[_];var S=e[y],P=t[y];if(n)var A=l?n(P,S,y,t,e,a):n(S,P,y,e,t,a);if(!(A===void 0?S===P||s(S,P,r,n,a):A)){m=!1;break}C||(C=y=="constructor")}if(m&&!C){var x=e.constructor,R=t.constructor;x!=R&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof R=="function"&&R instanceof R)&&(m=!1)}return a.delete(e),a.delete(t),m}var COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(e,t,r,n,s,a){var l=isArray$1(e),u=isArray$1(t),p=l?arrayTag:getTag$1(e),d=u?arrayTag:getTag$1(t);p=p==argsTag?objectTag:p,d=d==argsTag?objectTag:d;var f=p==objectTag,_=d==objectTag,y=p==d;if(y&&isBuffer$1(e)){if(!isBuffer$1(t))return!1;l=!0,f=!1}if(y&&!f)return a||(a=new Stack),l||isTypedArray$1(e)?equalArrays(e,t,r,n,s,a):equalByTag(e,t,p,r,n,s,a);if(!(r&COMPARE_PARTIAL_FLAG)){var b=f&&hasOwnProperty.call(e,"__wrapped__"),g=_&&hasOwnProperty.call(t,"__wrapped__");if(b||g){var m=b?e.value():e,C=g?t.value():t;return a||(a=new Stack),s(m,C,r,n,a)}}return y?(a||(a=new Stack),equalObjects(e,t,r,n,s,a)):!1}function baseIsEqual(e,t,r,n,s){return e===t?!0:e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)?e!==e&&t!==t:baseIsEqualDeep(e,t,r,n,baseIsEqual,s)}function isEqual(e,t){return baseIsEqual(e,t)}var _export_sfc=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r};const _sfc_main=defineComponent({props:{animationData:{type:Object,default:()=>({})},animationLink:{type:String,default:""},loop:{type:[Boolean,Number],default:!0},autoPlay:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},speed:{type:Number,default:1},delay:{type:Number,default:0},direction:{type:String,default:"forward"},pauseOnHover:{type:Boolean,default:!1},playOnHover:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"},pauseAnimation:{type:Boolean,default:!1},renderer:{type:String,default:"svg"},rendererSettings:{type:Object,default:()=>({})},assetsPath:{type:String,default:""}},emits:{onComplete:null,onLoopComplete:null,onEnterFrame:null,onSegmentStart:null,onAnimationLoaded:null},setup(e,{emit:t}){let r=ref(null);const n=ref("");let s=1;const a=I=>document.querySelector(`[data-id="${I}"]`)!==null,l=async I=>{let O=e.autoPlay;e.playOnHover&&(O=!1);let G={};if(isEqual(e.animationData,{})===!1&&(G=cloneDeep(e.animationData)),e.animationLink!="")try{G=await(await fetch(e.animationLink)).json()}catch(z){console.error(z);return}let j=e.loop;typeof j=="number"&&j>0&&(j=j-1),e.delay>0&&(O=!1);const V={container:I,renderer:e.renderer,loop:j,autoplay:O,animationData:G,assetsPath:e.assetsPath};isEqual(e.rendererSettings,{})===!1&&(V.rendererSettings=e.rendererSettings),r=Lottie.loadAnimation(V),setTimeout(()=>{O=e.autoPlay,e.playOnHover?r.pause():O?r.play():r.pause(),t("onAnimationLoaded")},e.delay),r.setSpeed(e.speed),e.direction==="reverse"&&r.setDirection(-1),e.direction==="normal"&&r.setDirection(1),(e.pauseAnimation||e.playOnHover)&&r.pause(),r.addEventListener("loopComplete",()=>{e.direction==="alternate"&&(r.stop(),s=s*-1,r.setDirection(s),r.play()),t("onLoopComplete")}),r.addEventListener("complete",()=>{t("onComplete")}),r.addEventListener("enterFrame",()=>{t("onEnterFrame")}),r.addEventListener("segmentStart",()=>{t("onSegmentStart")})},u=computed(()=>{let I=e.width,O=e.height;return typeof e.width=="number"&&(I=`${e.width}px`),typeof e.height=="number"&&(O=`${e.height}px`),{"--lottie-animation-container-width":I,"--lottie-animation-container-height":O,"--lottie-animation-container-background-color":e.backgroundColor}}),p=()=>{r&&e.pauseOnHover&&r.pause(),r&&e.playOnHover&&r.play()},d=()=>{r&&e.pauseOnHover&&r.play(),r&&e.playOnHover&&r.pause()};watch(()=>e.pauseAnimation,()=>{if((e.pauseOnHover||e.playOnHover)&&e.pauseAnimation){console.error("If you are using pauseAnimation prop for Vue3-Lottie, please remove the props pauseOnHover and playOnHover");return}r&&(e.pauseAnimation?r.pause():r.play())});const f=()=>{r&&r.play()},_=()=>{r&&r.pause()},y=()=>{r&&r.stop()},b=()=>{r&&r.destroy()},g=(I=1)=>{if(I<=0)throw new Error("Speed must be greater than 0");r&&r.setSpeed(I)},m=I=>{r&&(I==="forward"?r.setDirection(1):I==="reverse"&&r.setDirection(-1))},C=(I,O=!0)=>{r&&r.goToAndStop(I,O)},S=(I,O=!0)=>{r&&r.goToAndPlay(I,O)},P=(I,O=!1)=>{r&&r.playSegments(I,O)},A=(I=!0)=>{r&&r.setSubframe(I)},x=(I=!0)=>{if(r)return r.getDuration(I)},R=(I,O=0)=>{r&&r.renderer.elements[O].updateDocumentData(I)},E=I=>{for(var O="",G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",j=G.length,V=0;V<I;V++)O+=G.charAt(Math.floor(Math.random()*j));return O},k=I=>{if(e.pauseOnHover&&e.playOnHover)throw new Error("You cannot set pauseOnHover and playOnHover for Vue3-Lottie at the same time.");if(e.animationLink===""&&isEqual(e.animationData,{}))throw new Error("You must provide either animationLink or animationData");const O=setInterval(()=>{if(a(I)){clearInterval(O);const G=document.querySelector(`[data-id="${I}" ]`);G&&l(G)}},0)};return onMounted(async()=>{n.value=E(20),k(n.value)}),{elementid:n,hoverEnded:d,hoverStarted:p,getCurrentStyle:u,play:f,pause:_,stop:y,destroy:b,setSpeed:g,setDirection:m,goToAndStop:C,goToAndPlay:S,playSegments:P,setSubFrame:A,getDuration:x,updateDocumentData:R}}}),_hoisted_1=["data-id"];function _sfc_render(e,t,r,n,s,a){return openBlock(),createElementBlock("div",{"data-id":e.elementid,class:"lottie-animation-container",style:normalizeStyle(e.getCurrentStyle),onMouseenter:t[0]||(t[0]=(...l)=>e.hoverStarted&&e.hoverStarted(...l)),onMouseleave:t[1]||(t[1]=(...l)=>e.hoverEnded&&e.hoverEnded(...l))},null,44,_hoisted_1)}var Vue3Lottie=_export_sfc(_sfc_main,[["render",_sfc_render]]);const v="5.7.1",fr=60,ip=0,op=120,w=2436,h=1125,nm="合成 1",ddd=0,assets=[{id:"image_0",w:195,h:264,u:"",p:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMMAAAEICAYAAADiJ0BpAAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAImXNMyU9KVXBMK0ktUnBNS0tNLikGAEF6Bs5qehXFAAAgAElEQVR4nO19ebxlRXXut85tGhBoZGjAhEkRISjJQ5QYYwjghBFiVMQ5xhiHRJOoz0jEiahIElEjUcOLmJ8xosGg4hRFoy2IedHggMg8NUQF6WZqmga6++4vf1StqlW19xnu1Hc3d31w+5yzd1WtqtprrqpzBFsh7r9p1aOmNzdHgTyK4AFosFKEKwksBxj+JwEBQMZa8TV+ZvwcitC0Hu+T4R6YmpFUj6bdXDYWCKVqurlwqgMBpCiby5CESEm37Kul30Ay8dwJ4C6Qt1HkFwJ+F4PBBZze8Vu7PubEu0bP8NKELHYHJgV5zbb3rb7p+U3D14H8VeWUNpMAaDE6K2Yu7xkilQABqJlV38dylmlrgUvXbT9HCeEQASI5om/luFQZJBqxXSPU9wrwiW22HZyx06/90U/qeV7K2CqE4d4bv/lETvOjIPcLPGe0YnzIlmktoymzgsgMXDGk3lbhyEyE+FlKZq6tQmwg1RcphbBi4lxO6Yf22/03n5H72U2/qq8W0sxPukNCRAjyzF1WLDtJDn7Z3TN+KA9A9FoYSA7uvXHV36Hha0jGZ0qjlZEYCqg1JFQtF0xh3Z7KrTB1Ev18v9DMlqnQwcTI9WKbNPdzHRbFIFkA2/S72syC1KZPU6+ir1cIyEBukin+7i6PftUlrQewxNBbYSA5dd/qVR9vmuYFACptnUppWWAEQ6s/39K2hnFSOXO9m9HbblVyY6p+FfSL/pdCVGvwFk3pErQ8ztpaJcEFYjxhi7cVh5B3NAMcu/tj//h7WMIYLHYHhuG+67/5wabhC0SykU9KGQTZGOZkDCBhGMG4IsosypjJpVDtGVyb2HJ8bwQkauGsXwNjMpMJdZJqkSQPIllzQ10aAGxKbW8Z1o5ZwgCUTCpENmDR/9xWsmDqglk6af7ynBDcZUA5f8MlH9l74gf0AEQvheG+6y94CgWvslpSH3jW2qVRSwyfHGuJz9q4R1Yb1zBuB1AKh7YZGCtbjczxtdXKFsPGBDmWSA1UXcj+fym0+Vq2GtX4C7cv98mOu7AuguKVbB684b6NH0vu6BJE74SB5KDB9JmdPJutf+vhZsVoNL7RuLF665MVDm1P/9quDyGmXijfJA2c6CczZoJXy9haTobQb/U19yG5fKjGb01L6gOGj19drMbQJ5545/f+4RmdpJcAeicM969e9WSCDy0UZx3UqpUoilRPHkhlWgKjnyrhqu7aBjKd2B9RsYjuEdnkivGvyBKJmKxSdmUK+qaDkv6xoiHJAtbJgi6Lp6ndYvwqLJLL2PoN+MethpYIeicMDfkiMDM9gOyGWLfEal4biCavIufgRdckigxOTrGqK5EagaEfGmhpasuU1j3SekE5s6JvGzArA7TjYNEOTJn258pdM+9UCEVymTLTlgXABvkgnnzXZWftiiWI3gkDIY/KcaiqNiRNHPzueBslk9qHqgo6+832ThV3GAHSEkVEa1yyIgtj1hMQ4wmtK8aNyf2yMQ3ytfgh6//abc+JAFPdLPYNGX/sH+P8xQk0bdZxB0FSNq/ffBCWIHonDALsnzS2ai7VakU8AHMtfJIoAS2NV/nrNigtV5CrBTvTj9Lft+1Y+mLoR+GwgXgqafR3R2BMNrGd1M12vKF1qgC7mLfW+I3VsePXPkUrMuDmh2MJonfCQDYPjm9aWn50Nig1ED+2Y4iy3bbjY7VuQT/6+9kqFKq9oFtbmYwcYHfkkQx9w9ySa4rmuYp2peyDukz1POkEVu3W0bW231C2a3VxCWDZYnegBdKY8rb2VyeiuB59eyFvIHDOsoF8FVNYvd203HE/sHIzmodLw+Ma4rkAVsLEEEXa0bTVzdRd7hGyBbBtitHySU6sIFRpV5Rt5uko4xzlf40ZYPqf6YveKuYpp45jWePKjVQ0SwT9E4aIFHzqBQFAzc6g1GoDWSeQkx904O7/KPKYTVVT6wBcB+B83rrqTetvX/9GkG9CNXaaf/WdqOtVeUidmaeakVKALIBkF8gyYR5X6UYBmcELK6IxQGWZugxgu0WjRlTf5CClIwRfeuinMDBrypRC1X+SylMG4/XLttnmuG33f/IV45qVPY5eD+Btd1/5pVVsNp8LYNfWYlSin42UdV0i0coqGQtQaNh0IX1K7lDy6xvkVeLch2SxxNyjbbMpLZi1AMx0bQq6a5tJaRW05PS4qXxAoncxQ7bipQtjbiEH0rhtsHzqSZMIgsVOBx+3ClNTzxBgY2LMFJgY+lDPJFyss0/xInT/j8YVRUxi3L6WpgdgV7XtXVqFkEnp3fJFrYiJbdSlKhb17D2NU4oyXT1cOuifMESXIQWPkrVe6coIZEpesv3+T71hNmRWHHT8RSJ4sy6IRf8n+92BROF324xM6Ir1+7U6UbB2lCgNvMtUqxFEmyVj9u1tfFAo72IvFVK7VJdLDH2TQco7rCTTT3PfjlmWEnonDDaoY8WYthSE39zhgGO/PBdaOxx84BkYyOrEmDCuielD4d9bB9v0qbAG2h4zE2btnkvWFi/RE2Xa/LkgRJtUsO22BbVFP1K3cUs9/vkCL3nPDrdd8N59eM0Z285bowuI3sUMlmlSvr4jozRo8ME505JHblx3xXkfIZtT1ZdXTZrWHqwboerfaPvk5kg7y5THk4NWm9fPYYf68pGokoDSByyTJ/qmzVDU7JCNbRVBu1pdlIF4XkQsuj4r3Hbh6Yc0wpcBPGHNXc2+kAZrfr4Jv7jgb34iIp9aubN8QH7tL+6ZG5WFQe8sA1BpZMsoESK4f/udB1+bD1qybPB5JMbMbkqbfr4fLuTsTKyUBYG5nmW07KpkN8WO2dZJlsMwei4cr1TWsgj0bTCtgmpK1ptm6+0eMwH56am1337fM9dc+J5vTKO5jGxeT3Lf1C4AAR9FTp966x2bL7v1gtMOmxWhBUbvhCGv2jI/NGaXARCwwQ2y11PnRbvs+PDjr4RgWqJZCNpWEk/nsw3Gv1cXxLCX2eVQuU9S8Fi2FA3UrUljluwmpnjEzIWNL2iFD9WuWeMyJSGMf7oto1yRL923SXH3D85Yufai009ee9FNNxDTn6XgmDTKZKDseQ5ABPsRPP+2C967zwxIbRH0Thjyfv7qoSWXoAHQ3Dx/9GRaiDVAdmFAI4TqK6E8j9B5niAJi3a5Y2GPiUtaYy4zRyqEWduX5znKcSRX0vh3KsDapTx/1uXMFqiS46FY+5/vO2Ltd07/+L33bPofEqcS3IdpEmK7JqjP5zlUMLFyMza+ZQJSWxS9ixkK/7jQU8YPH8j280oT3D47PcbVKAsVfahXbQUAparHkmmLFo0bkzJXlcbu6GhJHxX91K6xWHaUHY3ZY6HaXr2BDwB4zRnb3rZm03NJvIYNHxvkPlun5IaxQ9DiR5YDOHb4QBcHvRMGRWAuqR5uAIlfni86vOX8He6+bf3ORdYIVTCcVKYAbIyWLYWjVqt1mSRsLMtofZu1snJV3GMQuuLUnKVftC3ZRZL6tgmw1SXtsAu3X/yBfZv7mlet/cWmlwPYvRQ+pnnJFi+3L+pKUsckYNNoDNM7N6mHwmACvwQpNBjIfe67+ksP2+4Rx10/V2obbr/3t4sVY6qJz31Rk68xdGsfj2HE5FSpxlS2IVEeqGxng+wUFEwkdvwd+5iMK9llsVrbOGKdlFkqLDHRkLL2Pz/wRDTTr27ub36Xwikr61morVumY7IbHrPVs+svAMCmmcQj26LooTDUGkx9ZDETTWyGPBvAe+ZKa5rTJySatcuRyGe6dntD6zwBCN0iJ+ZaWTZLjU1lFvSz258ItM9RV4wsAJtyp2s3/TSonMrV9uNpPSHfSzQ7hqJN0b8ybrGC1Hb5kLpfbhOfUZS+BdG7ABrIJt/un2lpYvL/8tZVO86Fzn3XfO4AsHmRugm6X8HS1cRIrVXTfRvgAkgugxjvijZ1a7JCxo+umap4hXE3oO0Y7RwvWZdLX21mqm7fBu05UQCQQRA0pG7Pv2knWaj6PEcWntb4eioNvRQGAABLLad/ZqL33HDHPe+effMcbNrYfIjANimDBBQMZ7dEDD1PEF9qS1aUExhV3T7PYN0v6/okLatNSMWUdjyt8Nj4NeXAh2SMquupOuOep47x2+SAEcr8uYjCxtBffPRPGKqHrb4mkTW1ZjuapvnTe67+0itmQ+buKz5zesPmqTaDUq8eJ1+Xdp0jM4m6EFa7FulR7XP8SxbBWIWW+9E1/vSn7WbGCj0ZQ9+0FW7kOCanfc1Kf8Xkdg5y9dzXEDpISV9QjakW5P5Zh/4JQ0SYv7ynP2hGQINEIFxsmub/3X3FF/6K5ERj4Q2rtlt32Wc+jgavSxcr3zfQZ6av2tlsjst1TWCZI/yS+dN9dUMqoUNLBqAqQOmmHactpioDW9NAu1zlRrXptT+rRSiNWwd9IwQ6oDrD1Dl/PUJPhcEEqoKklbszKATAt62/6vPfv+eqLzxtmFDwmn/f9q7LP/PidRtuvxLgi5OvXrhHpYuSy2AMfXtf+912BlS721Xp7FcbrayammU9m2HK0mPopyuVi2Qsk7UixfiL+KMqo//R9NHOg8ZVVayTy6CiX6aF+4LeuW/rr/4KkwmHPnsaHqiY0Zh7AIDIGpBfB5rVgsEdIFcSPJDAk0DuZF0L1G2iahMo6FoBsarcugZQpuxo09ZLLl9BPzVYujBi5ESdxlSldI3S2GqXpBKi7PK1LVhJP9PtnqtKoPRfNkqwmq9Mf69j3tYr/utharXL743Xgfx0DOOVC2RcCeAFoYaePzYPtxIC80gTw6j2DuWyRcjGgylXWfr72pRxD1QromCN7GNbl8HGAMm1yG23VrjTXKm6aAtqHhqLFe50BiJ/SPXJbNiSAKa5KvvLoowhWAYeRpjC/a5V7sVG79ykFMwC2TQXSQm1yalGulw2hPQQAOtXZx2mDyS5uYVFsK6ZljIBQqffXrkRJm4o/HojRK0uG6bJ9FsNoGBKMa6e5eQu+iluMdmi2K6tXtK3tCWTtvurzAjSaEx9jTxGxS2Ljd4JQxGM6QU7cYbZyiyOlZn8ITFfvKzMZh9UHSymera95J603TPVsDnLk1tIQb+yuhGCwuWL1zPTFhOQykCFgyjHb6yJtUx512+mmcJY6zKpwY1zK3YiUj/N/LOaf6BT2+cumfHnSeoVeicMQNTKhmkBlBNoTH1ZK5ZhZtqcji1KtB4cqzpZwRr6xfOrdvIUWrR0ObS09aKG7jpN9Ief51DOrYZfCpfxzbX/efxV5seUU4Zt08909UKtsErhNuNCjj90drr2QS02eicMaaLU45D8GK3LZPPuydSnBjLjpW+XiH/ZKtTnCbR6zu6oP67ucJGvUReM+rClkBjSMIGxKolOYxnGuG+kGbPZSg51+bJVMMMvhcuMudiyUVsl7RbsdeNKoXSrsryE+esal1qOJASQjudUuV89Qe+EIfmxhiE1qi3OE9SaHShMeHafqn1FRQxg3lkXClkTpjSlaSfft/Qtt2QhLLJSiT6N4JQMovuFOs9zwJ6nqOgXvJWF0KYyi5SmiZCtK1O4qZW1KzcA1pbVzn+2REVWDGY8/TMM/csmtV0Nye9ZlrOTm0rZeAPlnJe6qO1GFA9Li7S4DlE2K/rSRd9aLJb0VYPSCmC9Cm4Yx85LFLRwuTF1bXuqsROrt+kDrc19Valy3EX1WjgAVuOpLVYX/T6hd5YBQPTxE3tm6wAkl8HGAOFy249O2rEVdxi3Ad1MkHxqq50TrSx82oAVCr2Wv0KGJpgtOle4R5a6pMa66FsrFYi1LYakXaWMOf8UAyR3syOYt+OP85XcU2MtSyuLDvpqCTvusS7ZD/TOMqgFsG6P3b4NdGnwzNx2sShp5vjgas2U7U5bS2V3Jm9QSy4cyv6hYIqyTWVqxkNBxrQkt2xU4BvaGDZ+wgwWiVFN/4JwSjl+0blCi6mt5dO+WDdn6PxLUT3HTEbYmVzDfqKXliFpcGW0lt9flYsf9OGqFswOlvXRDZ3sQbRcLiNFSYNTX2Ml/eIARWIYKd2uwrKZAVi/u14QNK1CNXhmdGVSbSsL0CjNXJq0HBcpzczANfmafjV/9fih44+WKQ/QjK5/QtFLYVCdrUyUGJq5BOprqgWNy9AKP1JRpuvqAnSZfBomy5qSqeHav1cXqcjfJ4Yz7Zs6rb6aem36xfBh08FgqYWHWs9i/DkjlxSGVPMnSR5abVFviNLv7n9yzTqsXp/QS2EAkCdXspZpmfRQEIGpcj11F+oYItxuPwgpXi1zxevR32+5VKbxQvAMneH0rRsUPtffjZT7ZX4fojSLxj0pKrTpF7nT8prKa4opjDXS+9bSdYHVu5aVTeSbzvp9QP9iBvuwVMtXDJSYMlkOG9DlvTqFb43Sjal95qJN4/60sztS0Ert6jWtbpmX0NaR2a9K+3bSKq1YiqFSu9mq2cP/2v3ijIKho0xfpF2LMUlJv4qNir1YHfOnma32/CNnt3poHXprGYpV6KSZsxtgkTVrro3atUB+EF3arW1vzKIXsnWyrk1BX2XYuMSFFhezL6fDurToGx40TZT9N32zlsyOoOynGX8RXFR9QrUKrdZ5yPxVRioJbqYTVYDktvuI/lkGID1YZtVtwoVSS9XZo/RvKqNaPnngsIffuzSY+t+WaYhMs5u+akq7Mm76bHpg3Y1O/95aOrVilr7pOJktYRnLaBmr5au2h8xfsm7GSNk4JxAePn/sasD0a5S7tZjon2Uw2k/Mwza3CjVq3RyBVGUiI0guK3UDMEyXC1T0c/14M7ZRlrHWq3B3kgbv3pHTaamSkOQ2Wxvh4r3i9yFsH61CsMOz5MTSF3Mtu6PWOpZjy4ytliPPP8vX4j5RP4M+oH+WIWrBlCLVQ/Cs89Rtv9u20dlmVp6Fj201fSjesSrLwu5AOabO66Mo01HOasciRrG+tXFPkrtlrIM6/mmu7MmxNMD4ml3GMn3b9e3mZvx2lmlGnoYvZbs04y8sqOknDP1asHuA3lmGNGkEyKblHxeLA4qk8aqHa+KGsnrpD+uNei9Ne41Am46Ma55nqTWTeUnuWCajurH28XP369+HKP17MYpVisvFnJCAmb8s3KPol8qlldJNJO082/Eb5WLnXy2CeU5Dt30sInonDDqppeJgYgDr61p/WzVk3VhSTvpv0nrmQUcu1BQmbFtWa2dujW8tfdtn60aYH2VEqXUL+rG+QPtiJqQrVgCTexTmwrpoKORX76vvnxiysgrDz3NoGbMuUisOmNSwEdTiRF+yJNJHL6mHblJiHBtEIzFFoWErJqF5b59LfCyFuRcIKDTV2/t0rIuQhCJqvXKfUQf9PJqkFS0j2eo6ZjF1WvRTz5GNUtGJmr5xuapxtV2rbiEtp1jK+VcfztC042m1Wyzm1cquH+idZVAXGsgPzfBAKtTeT2/cJ2U8o7lVsxXpPY1FkOsnzQWr7a3LJclC5f4YSxI6XclJZtiWVbBjliyoagyttcseW+3ClLtjkacs5fx1qrJV6Ph9iDjqliuZYhYjeDRzqPOXXDXzFZgap+jzGJHeXmz0ThhKBVy6MpaxOn/5xronkrdxFAtrrRgku2YpTRlfrVuW2ixikFIDJjNU+N25XnmeoByz0tJ6otbGMryxLqPPc1j3qN7XZcXUvEuuTimEzI1VAXBBPjN8LNV9nqOfXxGj6J2bVGQuhsG6HJVJt+YelTku2tT6DY1A6MPOaxJ1eet+hH5ogBzcLhuTZE1o2yw7kzVoKXytAJNlf1rjVyp2/Ch9/7LFdv2iXR3zEHemc/4T/W6LZZw0M5/9Qe8sg0LSP3Xmga0HDrQfKlAKiGkuuTJaRrVom4mMSZf0sXLftEyZNQJM8Fhbk0rbF1vUI53iUI7V5smt056Y8UvH+FtzYyyoGVadXUp9qayjdj8nGLRbxmLoGDDsPIf6hf1Cb4Uh+6PmC2/rwNYEtKleelUXBbAxgFHJLe2m1/O17JJYL0yq+8k9MjSsi2JjAEMoyUSR1dE4xo5X/W5U46/6bOWsoN9yuZCESntdQ9dWVDAzfbaeh9Xy6i7mDBOM1bME3DJMhNKbLc2w/ZaJIpmCDu0umSlydJrdluIXRNFtXXLgl7VnuXCUTE2ndaEKSGTI2Kjpf5vBC60bVGvl99fzhKSdrcItzxPYXun8dI9/IFhnLkb6+ccfhy2cFdbNtFkIezEP/UIvhSH741lLM/nMWcWQyBNrGLEVLFsthrrd7MnWJj/1A22tmu4X9LNblZkm+Sp19aQ9A/1kXkDz7d551Na0mDqWvuR22+M3LXWNv2TQNw4GchSAc0WwuWRoHUBpvYDsIhX0C99Ue+/CMCHaD9e4ofVDK/z4NPHWh7UNwD4gFO0nYTIMNxH9WKB+wJl+pNeRUpT0ymK8afwxCFBXq8wG2RZKVgv/shVDDKdvX8P9lUeefMGeR735OYPl2F8GeKeI/KI1ftN4Frx6/N30Tfa5N+hlNsmmTUvfPD9gtQoyELJprhkAl5DcAAQJp+Sf7pP4ABpR6RegARp1bwAMRNCgKSNHxBfGik3s20CAJh5SEUEDYiCD0F7DSB+7gzic5F7F2LL5ylZB3Q/182smq90rlJYiuW9Un15/TKucv8KNYWmBk0uXDRQAYPfHv+VnAN7Gyz79rltvvfo5Ar4akN9otSvmmQja5zkMnUjg550MsIjonTCodqpThuEhVl/WK/J9kcFLVvzqiZctRl8nwR3fO/NZDfkPAPawv+1stXHgoVKTFqvQquGZ909Zhq3bCg20nRFdtbfVbdQTPlfSoNcfeeJGAGcDOHvNhac+enrz5tcAeD6I7bJBZv4RRxpraS1xvD4gzhsxbYuCHrpJAUUQiZJhwrTLj1cM8PidHnlCbwUBAHY54lWf3QZTvwXw3mIRjKVWjR+S2bMui83ORDOSNH62LlX8US+wpDbQpp+JTDSmlUe++Qd7HfP2P3zQDsv3JnESBrI6WRXY52TGFccekwCXL1ux/OTJZnDLobfCYJlGH1bOrRPbYPCyqK16jxW//oqrReQdaceChV2Vlayv1V20wpIzNe0t1imu0HbrDI5Y+aD5Q0l/Bvn/Fb9+8m0PedIpf7vn0ThABoNnDAbytYGgDr5SmyHukR8OZPnxuz3ulHUTE9pC6J2bBFgBqLQYwjMeiKzZ4dATLl6s/s0Kg8GXsXnzaXY7Q86QxVcbA5hFwZS7l2w8UuRg/P2EDs2cnB99b6xL9q80tprZoX2RUxoAXwDwhTXffOdB4KaXNoJnCvFwggMBbqHwsoFMfWyPJ77jbBGZzARtYfROGHIwVgbNsMqTzZWL1b/ZYped97n69ttuSNo+Zb8sD9s4oQqaS7+7nVGzP0SSMgxUwULaYJrXXtBqQwPgqTmMc+Uxb70KwF8C+Evy01Nrv3PDg1Y+4aS7c4l3zqH1hUXvhCEHY5LSg1ZrRWF5xOL1cHa4484bDwQqYU/8rtZCzPuK55N1rDcsmveq7VXSxG4OrNYetE0jXNkNmx+InDgN4O6xBXuCXsYMumpbup7GOSD2vOeycw9bnN7NDpxujq1TqcV9k0FTza1uDQDjd+vH4b8P0ZVOtSv3qZ0ixs4BeNPfrzZaUPROGAjdPm1z7jFzYnKCmzZv+ih58TaL2NWJced/f/hhEJySkzwE2ahfksacgmEto7FDlTmymRnNAtmNfe3vUGqXSxYkLQNk+oPeccWWQe+GrcFg6xAITTAZ/ODD1l16zYXrrvjXXrtMt3/3w0+fnua3Se4AMeMxatmurXSe5zDp1tEruznOsOeobZiRDvVkf9TQD0KxVC1D72KGYq9QYdhZfIzlHoeNvPzOH599+YD4UUPcG+52PU0WL1omPPgGAwzCCrQt3yCrixaHNGV7kePYxHPJkN0AHt6Q+9eZxjgAWOFQt6Uc/xDYclWMYTNxxepa3aLWbxojEMYyL0H0ThhEhARj0qRMHwKAphjzQXNMgTi0IQ/NUWdO06TtDFJnaZC0LRC2YrQCUyHQ0DBIvTJu2mpyJiexs7o3sUshEcaU94cZV7IKQG5ftJlyN6xqcEs/9yuPPf8+gw2200Qbt0nnuIcbhrYgeucmAbxZGcBmWbr385v0a3xNK7PMQjRsP325YxRITrQykAqRlIyXBKHKBqW3sf8pFlCrwZJ5ad4n8vZanTFKWaGyf7aiHVMxfhtzVP0p0riBxj1YguihMMjqasUtatC4a6ZwLewCBIoAW5GyJAXTZCFT5m9ZDTFFjb9eaO+aEVUSbJamzulLLmK7mgNdtAsDKQYY9/sQdXUmpo9lbSrVHAgpxr8Ml2IJon/CIPwOKo2VGDo961L76aXWEU5jMVraG5ZRkBnGFLCp0EJ7VylQvdE6wpmaLIUwa2+grZ2RNH6x76jrPqvxY8j4K7PY1S4RKw/k3j12PfgKLEH0TxiWDf4JQPanJT/kcj9/1mjhk2Fm5IcrRamS6aR4rc5VMweSyuStOMHk+nO3jJtVUB5HP/ejGL8Zu6ASCqTlB2P90A7MzRs7f+3zHAIh/mVr2fM13+idMKw46IQrIfJV/aza12qx/M1tWdOmbQ6tYDPHFtmHNlYlMU739mhtM+f1kbdEmBNp9oipHspJbRsBSdobVisPsQB6LcVASDFMbaFK+qa+WtQUw0RXy1i7MGYByGbZsmUfmMnzeiChd8IAAMsFr6TI3WkV2mhmoO0bD9Ps2fbHckY71lq5y9Kw0p4jfx/CWLLklmg5bUPXTkxf602idoy5n5KE2FodmL5VoUoxJi1l2x6yE/a03Y48+fJWM0sEvRSG7R954k1TkJeLJvOtZi60eaVVrU+efPXMmDTasStWyP537XMbTd7hz2tsmtusBqSamerMmfMIhqbNapXnOZjbN/FO8Yocv7SzU5mWtSK2rIAXrRwcecqQR7Ik0EthAICdDj3xnCnI74OYznwhLfVnGaxBs5gAABImSURBVLvI0FiOTNuh27ozcHKTi1nrIZUVyWajuJYXvsRoWrQK55igkpbC/cuCWQTDRf9LobULb10HhVDXLw0GQKwaLN/+d+Toozd3TNCSQRd39ArrL/3Xp2xm81E03BsVcwLMz9wyGYHiiXdYhNbhehNYqgtt65bxCRDNU263I9uV3ieL0EE/DyDVS2OMzFyvT9R9yzxfJheK8VcWIbZPkGftIfv+mRz90vuwxNF7YQAAXvfpndet3/TXEHkpyW0Ds9jgUUqmSQFuZMJKQ5Y+vxWCwNB2D5Th4sS0liGzcNbBL+P/VSxTl6vaBczh+uQWiul/GSTb9nOyQMvbHFtWFFFxXD4lg1evPPqt3xo190sJW4UwKNZf+sk9N7H5kwHlhU3THICklQMk+c2lhrTasLXa2j44kF6tP5/udmhYjRvK9lEwJKp6Zbtd11LN1E6m331GQWwd05Zx4+4F+XVM4UN7HPmWr/f1xNliYasSBosNl3xi703EURAe0FBWCqdXArIcaMAGkBgNsbFatEl8Z4UoMH7TzdC652iAGM7nDXtNukzA/r5xsafP8lu12S/RaVL1FkMPrRPoDgA0rU2EQfwEuIvk2oHg5kbwX3vs/oiLl+oagsPhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOBwOh8PhcDgcDofD4XA4HA6Hw+FwOB4okHEFSK4EsFZEuAX64+g5SA4A7Bg/bhSR+xapH8v0vYhsXmhizyP5XZINyScuKLE5gOSxJK+Nf89b7P4oSP4ZyVXx71GL3Z9hILmc5Mb4d94E5Q9hxt9V7Zy4sL0t+nFX7MNd89XmshH31gE4Ir7/YwDfGNGxnQAcNce+XCIiN82i3g4ADojvV3QVILkzgCNn27EK/yEi905Q7kDkOdl5nmgvFLaJr1MTlJ0276cAgORhAM4G8CskHyoifzPP/dsiGCUMXwHwEwCPAvAMkg8RkZuHlN0fwBfm2JdXAPjIHNsYhodj7v1TPBTA6nlqa2tESxgA3AJgp/j+NJJXi8jntmy35o6hwiAiJPkeAP8cy70cwDu2VMdqRB9RzfhFIvLXi9WXrQ0kXwdgmKs7MO+PIPmlIeUuE5GT0CEMInIzyeMBfBshnvgEyceLyCVz7PoWxSjLAACfAvAuAPsAeDnJU0VkekydCwD8y4T0nwJgUj9TADw9vh/mphxM8pjq2m0AbgDwghFtvwyZWd4D4Icjyq4Z088+4v8gz90o7DGinLp6XZYBIvIjki9AUFgPAvCvJA8XkQ2z6O+iIAkDyUcCeHRHmUsQhGEdgD8iqYPbKCLndJS/QkQ+Ognx6MvPZ9D1uvhn8WUROQ5BsIf1wwbe54jI9+exTzMCySkEZpoJNorI/SPur0FQCF0QBDcXCErmliHlfh5fbfZo26IhkS9Gb+IkAAcD+ACCR7FVwFqG4wCMcj0OAXCm+XwngC5h2Bqxn3n/00XrRcARAP5zhnX+GsCbht0UkTcAeEPXPZLLAaggfUNEjh9Dy1rlLqF9K4AnIyhWkhyISDOmzV5gnJs0Z5A8DsH1AICTFziw+hcAF1bXJslQ7RtfNwG4dV579MCDdXtawiAim0i+EMBBIvL5cY2RvBnAXnPozwqSs1kDWyciRZbPCsPnAFw7poEdAZwV6/3XhERXIJhMYOFTjBeJyFnDbpJ8GoDdqsvbANglvl8P4IVD5vbnIvLNjja/DOBXOspbOv9GctTi1NNF5IqO6z8EcNmQOrsBeNqINhcEIjJNciOA5RjizonIlQCu3KIdmwfYVbyrAVw9qjDJk0yd94wq21O8E8DhI+7vguHB/9cAtIQBwC8jpFtH4SFj7i8fcv2cYTl7kodjjDBEDf1rY2jbtYVDSP7tmPIWB05Y/mIR+fSYMhvRtuqjcDRC36cBrJpBvd8EsH3XjYndpLiw9hfx4w+7tOQSxU+RtydYrEReBPwZysCzvr9QW12OB/DcGZR/GPIzngQPmbD8xwCME4bbReTJkxKOK88rANwzw3rXIYyzhZnEDG9ANv1bzCrEAG9n5FVSANg27pkCStdrJ3Pd4vYqJbwWwHMmIC/otga5QMhUtUDynwC8NH58ep1zJ/lhhJX9hQSxMIJm97RN0v4DJ4COJlmzFZcC+LcF61EbxyCshlscj+5A9/T4V+NQhNV0xf0i8q1xhEmO3cg4AruY97d33LfuyYJYBhF5PoDnd92LG+5WisgvZtouya8DeBKCi7J8a8kWjcNgXAGSDwLwCQTNPA3gDxd8l+AWBskjSL4q/u0xT83uat53CYOd+8VgpicCuIXkzST/ZIZ1dc1hCuU4AcxZiSwaJrEMpyNng04XkYtnSMM+9NlowJ8D+OQs6lncOeb+7wJ4c3z/A8xPelUtw0YRuafj/oJbhjH4/fi6F0avuHfB7lHbE8HtBACQfDiAz5N8L4CzxywG9gojhYHkq5H92isBnDILGtaHXzfTyiLyYwAvnAXdxYYKQ5dVAEphWDDLQHJvhB0EFssAPDO+vzWW+40xTU2LyPfi+5+b63ugTP8+DWGB9qMInsQ/z6Lbi4KhwkDyWQDOMJc+O8uDHDateMcs6o9E3EP/9vjxlSJy0XzTmCXGCcOWcpNeitEbLPfAZCveGxC2ywOlMOxZlfud+DoNYNimv16iUxhIPgFhf7p9YCeT3BXAn4vIxhnQWFBhQGC6Q+L7IsVJcmqCjYXzjpgBU8a5bUgxaxm2thjMLs6mNCXJ7ZHPcFwoIsPG3ku0hIHkbwL4IoDtOsq/CsCjSZ4gIv8zIQ0rDMO05EQgeSiA0xDOPXx5VCBPci8A15H8EYBTReTf50J7hphkzHbuF1Jgz0a5W+DpAP48vj8TwGcnbMf28Yr4eQrAI8z1o5D5Zus+z0DyWACfQV5m32De/whhK/ARAH5A8vki8h8T0Pil+Ho/SvM6GzwT4WE+HSEbMmoN4NkIfX88ZhGrzBF2lXvYtgS7brJgwiAi1wO4HgBIbgPgQ/HWzwC8YUhwP67N+0leC+AglMJgdyBvvcJA8rkIWxH0IZ2FsFfntfHzqwG8BOFE2u4Azif5VhF59xgaqiWvmgeX5ffi61qEcxOjoA/mFxjvE1vG3DSLftU4wrz/7pAyVhHNB81J8AqE46gA8JcqCDGdrJb+cyIyyVnynyAIw8Gxjd0AaL3/FpGZ7v5dSfKaGZRXl3jHGdarkwkJy4CQZ0dIX2qM8H4ReX1MjymmReSVJO8E8MZY9gmjqJLcE8CD48eujWgTg+S+AA6LH88bJVgkH2L6dt4Ei0J7m/eTun+j8FjzfpgwzLcAjgTJ/QCcGj/+F4L7pBDk/VG2X6PwPQTruwvJAxEUlbpIk7peFlMIx3NnisEs67Wg2ula5Fz3X4nIKcMqiMhJUSBOQtA0o/BM8/7S2XYy4sXm/WfGlH02smBPYq51o916EVk7suQYxAWnx8SPPxWRYa6hZbqZJCRm06cphIXTnRGe85/Pw1f/2C+IeDxyCn4DglcxU0xjZopoPwQhJoAbZ1BvbwxJHC0DABG5neT/RzCR7xvXmoicRvJTxhTegLA8DwRfVPFs837bGMwCwFtE5EsAzkU4SQeMsBxxv9Eb48c7MPqbOrZDcOkA4C6M2VsUocKweoKy43AQ8ga8YVYBKIVhoRemHobSin+12qZuV4yPJ9kV9H9cRF5rPv8QITmwK8JWHZ3Df5ylQlkjIuN2/yaYjXp3z7DeRBv1niciP+sq1AURWW3er0fFoDENe1T8uBbAdcjbiXeJ9W7CZIdvTkFmsPeLyCi34lTkFfNPjimrwqO58mFHI2eCx5n3o4RBtxE34/o4V4jINSTXICyACsp9UzW2GXJ/B/tBRBqS3wLwLAQFAASh3hq39gMozzNMLAgT4hmm/fMxy4wJyd2Rz9H+FN0b8RRHIQf8tyBvsRiFY5A143wIg10tH3UASv3rLfWNdK9BGRtZ7IS8u+BShC3XNbrc3G8gCIPiYyPcwmF4OcJcbMl52AEdazsLeezTMsVHMCKKHwURWRsPqXwcwJs7vsDrPxB2Zu4E4O+RY4U/FZFJFvnsNupxGaqRiIGkfsvGjQC+M6K4Wob1c6E5KUYdromJjlPix2smcZUjbJZuM4DiIBLJhwE4JLrEw/q1RVepRaTeAZ2wIMIQmVeZ4ocicgHJF42psw2Ah4nIVfU9Efk3klcD+HHHvetI/g9CWli/reE8ETm3g8xzELTQ5khzP+TtAzcC+Hy8/iwA3xeRG0nq6vYk+fhXIluZM8dksdTt2CLCMFfUq/kxKD/NFLlWRGrL+miEI68XAThhNtvFtyTmXRgig/29uTTpVw3uDeBKklei44sDhn0hVUyjnouQ0QBC0Ny5JbnjYb0e2ZJ8MJ7vfRmAf0TY3vy0uFFwLEhuC+AP4sf7MT6jon75uB21WwI2HtiP5OsRviRhH/N6FYDfNuXeC+BY8/lgko8TEesaaqD6BCxwxmw+MK/CENcCvon8oD875LuVuqDnCA7GhHljko9DSLPqKvcGAC8a8TWYtu7bAfxZ/HgPgLNiWvRYBAH5JQAXkvy9SQ4CIVgdPQn46VEZFZIrkK3Ygu7fIflQBDdy1/i3W8d7m9k6HN3nxNPCFslXIG/pAIK/vx1CvGYX7B4ZX6+d0GXtL0i+lxm/PqbsISRvMOV/Flcl9f6LzL0Xd9R/lrk/css2yQHDQZz7TZ2bST52VL1YV0i+jyXeYe5Pkfxnc+++6DaNanMnktfNYK6eZsr+U3XvN8y9huT0iD/FaSNoHcHZ4R6Sl5P8CskzSb4ktvdUhm/sVrye5NtMf3/b0L4sXj97WP9mCy7At3CPIzhWGBiY609J3mvK3sLsa2s5Kwz1t96B5PvN/cfU92OZFSRfy5LxSPJSBqs0bjyHkvx8VbeVCoxj+rAps5Hha2aGtfsxU/bbE/TjfFP+ZdU9KwyTYpQw7GbKbWJQGj8m+Q2SnyJ5Bsm/MWW+xpDBq9uZIvl2kptN2XfFezsyPHOSvIrk9iT3ZRAOMgrSfIJ9EwaSjyf5rerB3Eyy9T1CDBpFcTXJPyB5XPw7lUETkUHbP6iqewDJD5Bc18EIX2VwO0aN4zEkzzMPR/HOGYx/A8nf6ijzHFPmLoYMit7bPzLFrgzW4zCS55jy0wyHb2x7VhiuIPnFIX8XmnJDhSG2eVDsQ+dxTJJ7mrZaq/skf5nt5/yhqszx5t6VzAJ/77jnMxuwL8LAoG2+wja+wrB1uqutvVhaj2FobbVm0GI1LmZgxJHnuFlqPcVdJF87ql6sKyQ/WdU7zNzfm+Tt5v4Lq/pnjRnrX3XQtMJw0oi+HW7KjRSGCcY5VBhI/hLJteb+NMl3d807ydM6xrggJ93YI2EQlprpDpKvmaC9l3O0QFzKyr2K9Q5i8N1J8uskn9TV/hCahzL7uLczmPoHj6+Z6m9L8jux/mqS+5t7R5JcH+99vKPuiUPGuYHDGapXwhDvnxvv3cBw8GtUW+9kdqVuYYfLNR/gAgjDyG8xIPk2hAM9AHCciPzA3DsEYZHqQwhbJCbqVGTEX0H+cQsgrE7fCOD6Ybl5hi3m187mG7JJvhEhc/ZBEZnx2QaGvVHnIHwzyOrq3mMQvm36WBG5u7q3M8LB+50RthzfgbAt5SIR6fy2a4ZtLPorQ5eJSOf25DiPR8WPV4vI5TMdV0VTLfIqEXlTdX8lwhcKv7ke45D2DkZYY/h3EVmQ1DHz3qTWd6bOFnP6Sg+Sy2d4BNThmBcwxKVTCEcL5nQ8wOFwOBwOh8PhcDgcDofD4XA4HLPG/wL++QhYbLqZPgAAAABJRU5ErkJggg==",e:1},{id:"image_1",w:1080,h:3,u:"",p:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAAECAYAAABr549KAAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAImXNMyU9KVXBMK0ktUnBNS0tNLikGAEF6Bs5qehXFAAAQPklEQVR4nO2bW44cx5WGvz8yq9gtkbQ1tmDIkAFiYMwDX7UBbcLrEbgebYIb0CsfBoJBwMIIguwZXXjprs44vx/ikpFZ1RQHMPykAJuVGXHucT0n44hfy7+12FZ/efZMfAE8gy+fPtVfAOp/z58/1+fAc+BzgEePxGfw4sVf9bSif318qD/X55fztXj5kidPnvDNt9/r0z/Bt99dF15/hPT9UQBp/lGaHnQZfj8dBPB/P74SH33ER8APP70SgKaD+A3o1Rs95jE/pzcFLxUcpbfl/c1c36faPgteI63vb4APlfT25iSA6wp7k05qcFdccaPSLk3idCeugNtU6Sehu9qedAROWsSptJ+U9IATpKTTXdLxAHdKOgBaFqGkOy2CIwctEgXvThJL1uFw4G7JkhbBAZRFhWFZxOGAliwkwQJKWiouwEFJzMAicSi/C0sxtKoOWWJemBeJQ1JrXlRokFPvG5HXsSIV2jlq3QytPQOEYEZacRYNtHIWU5UjF6ZT001SLkQKrUkrXsQqA6U+k5k0D7KFyBmYakXDmQjFKuM0jP1oPHLRbYe35QvQcBNZ1jQ2KdTEH+VkggivfACYReQzOHKls6GSBLn9Y6p2yVE1TcCG/gQRWgnWMklEVAQIvNONitfgmzxWkzGAFBWU0tZl6DLtbcZg51irCJImFdxo/1Z7jODyyn/TFNq8d/064k6W2DxO07Y9iI6dBrk71frQnyev/OPcnnH2UMvk0hcp3YPQGGZt9OmCJPZEpQv9+c4yzpX6HgHMWtvG310ZO6NVRWyrJG37fOy/Up/OaralaRqBOsC5+gOH9ywRVZhhBL0P+jjgEqSE3w34S/TSSs/2vn4cj+W3zd8YbLcRqeI3Wr8gx2iDcUxWW9ipyxQ7cc8oJ/kyv60GWPfY7HxKkOQiS9raZ6dCdP4rnR1XcrYvdeBa8k7+xGasJbvPmZxhqtCevdJs/M91DNutV7d9Je8tmil2nxLkyExMZMvjbElddnu1zSB/an23zuPETtZLfTHqCUCByVWeor49AUxTlSC8GZONd186qnxpqs/r+tNtlTNUvRvdsz7vsNHlal3ktI7VKdkZIKdhTo02Ks/TiLfh38Qe8G33+rzayGmVcaLwnRpgssvenVZchwHM1PHmFG62siczr3CVsqGcuDyF89JsM8MM3tgpDDPz1OgvcBde5vJuT4YFnDx3AWzugHmVyZ1/5VPEKHV3VUZgJlzFMY12k9dh5tk4fFd1Pxxm+1Rp2z558rHy9xzGs0+cOB5nc4LbQ/joMLfA8eCjZ5+4xT642/IYvnL4BiAOhfYt+Jh95aNvBn2uIpuro4nsjZ7xwPAaX1+ZN0AspT2uDK/hg8X8/BB/mE3cGeDRww/MT8DDxT/+CH5U6vkB/PihAT6qsH/P5df5seF7YvmNAeLjk/kf+OQPbw2f8s3fvmH55GMDPFneGuBr4M+nVwZ4ATx9+p/mK+Dnn/2c4p89Bz7//PvC/0vgxQvzRXXu+KL3q3T/+vtr+dcXbRzu9ynNKecLePYMvgC+fKp3OubAi+tzx/zlXBzwJwDzA3373T/0yR8/Ab6FdNR330Gaj9L0k2B1xouD/RE//PQ36T9+r98AP6XX0qtZpLeChyi91cOH8Or1JL2dxMNJenvbHPf0Nt3qmmvQSVLSjZK4PenqCm5vk0iTkHSlOxXnNOl0V54fqDjap1MSWsTxgFIk7iSUJak4xpJYFqGsRVM6QD14Zi06Fsf4kMUyI0UiSwtZM3N3rtWcP0UihzLSBGRJSJpz1jKHlGdR9+AJCYUySCFBVKc8isMkJ5iIcJpEqYtQdcQUFb/UF7xpmhThCudETGIKRRSchBQVHyRJStR2ORW+CCzZqTqHKSQlrAgEk1DlkSRZCSxkhZVSCkVYiUkoJCRcaRsVx1FClkIJWSSKDnIiJMsSStgiWW48HCJNRTaKnFiVJpJJCGEnqejiQIiKj0SFwbTASLgGHGpYBoNAzXEs9i3nyCRqnbGKh+jqKAqwcnE0Gq0yg1fnowcKAIdAuDrTogbXJGTjDlzajSksXbwGq/IPcBGZ5k80OdsbBg+Onlu9CHuArw1e8aNpg6Uib33tQrcgTDsXrbR6AKcdGJv9ql3UzmhlkHslusrZeseuJt3Yo/x6o+8eflV/ALBdTe069HfBTRqXLe1qaMImla4aAdTYVrm6bbfiuFkMrzoOtryg+14ul5Wnnd2q+dexdO5bNvac02tcPfLd8KvmbgRKN6jbcdV95a0N/oao+1joLdUYG3NUoLO+azpshnzlawmZrfoNSBdtuQ7ZLc0R5lyDOv629t/y25Bwnf8b2XQOWzgNdj3rlta3q601ot7Tv71xJ9Zm0Jzp1/n1cc34X1ejtY1khoW1tI0KDW3b50GfJpjHFa4Pm27zcbk9L7r4uFZcGvDrktbKao21B8UawelzW7buo3suY+8+1SV1lKrb1aA0LkV7+2mltVZXGQe6g/1dN7jNMrNyhbqc6EyVXuFB0DK1Rr0Y4UvdufrawfZ6b0EqPhsedTpXew/bzzjLBQSUg1eR0WO8ZJ2AG+HWBawu5tZ+W60TtEEONh8E3Om2Bg86n23/d75thRx4DjZJW7p9saj9MoowMBydtygzmjQ4/5Y2u1lqpyFc5U5NkK0OUgukbGypYROycNdl7MZy1Km7R5vPVQ411LbjVEQNNnSB3Q6/QQ65bUdmDblXvYbFUrJXeQ01vteDXB7w3bYaY4OTazSP1Ow/9r1to0Bysh3C2FHnUBQr2KQpJEdkSHJgmSRbDhY7TSmiHD6dqJE7K0hF9hK3VAlsJBkrqrBGKnFOO0pg1A4li4hwMtgp4TCRUnJyRJAM2SWQK5NwsYejjJvkEqSycxlPTlKAC2wZAU6O6LAk55xNarjJCZd3R2TsKSXnjFOFn5KCbJPsnGFKKRbK+0RypgSPphbMnMGOKAG4yfjOCzAzFZPZxor5avKyLODJnm3uCixzePZkKt0727Pr56spooRja8BqzuEWxLXNYQo7Sh+c4OiDbw9LlObwlY92ZN84fPUg/NZHXzmMj+bqle0HNYAU9vUD8yrb19kPP8x+9Qoc1z349Ojh4h/jQzsW88MP/PbxQ/PbO/O/8Pff3pl//A7XwFEsp/LbA0a/M8utX9Yh+mR56zFQRAsSwSZQxOefG74sQSKAv7xwiRF9wT5Y9D7lPT91/Fr+lWXRfiuuTvC8NIgRGoav8gAcpBYoAUm5BiEAhq+426/gLbhRv4xG6OLXwQtlmiYufmL7BfQS3NjIMLQWOdpXlXJAsAhKcEP1C63rF8ROZQZFCdyMDqMqsVTf2m9ADF+he0mWAkHlkyZB5V/4KlLZpVTCGGo7Yz2zq3ogdSeT1i/uSeGscFanULZ/9W21C9T3yvGktnNMAjZfibWeuO4JbmxWgdDKwZdcgaZDYd6OinYJ3Aw21iBn1d3IBWmQTUG9qTDoJaMWLAjQGty46Imcl0ZLTfbCpb6cnyAvELiv5QzSlKDVemwWa99X83f77OQf9E4l+Gb1MVnItpNTUUttcg5E+mmNzcPofN4v/vbV53VtLFwgYu/H34Z/HeOsf97pr2F+NHusWg14rn/a2Q+VwJylfhrtvoA4Wz9pzVt5KqV7dBn/9gZoqu7gLtrlMs02LqxhjKhMlTpHmo4Xcdv4O5PVbZyk9c/teQPX1bmgWnNsL8ei9vYYNOyRtPfD2TmmA6kSZPF+4p5JvI70zr4tvbyjN96ll3Yw2veBi01NUjnFFtu6fxBqI+vd/df6f9fe+tSuNHyx/R69Gr0N3Xv07/v9Fu7SyBjGnM9CBT2WcWGeXphLdVtounijV9dusJ13MqoQ8a6trBcbDQYdtjK/e1xfXD/Oagb3e0d4Azv2l0BK6z7hqGeG8dZeQiTVerZrYueyrhsedRz3m7b/nE2hy+v6RtOu2KUNIHT5SpVgF6Tf2Wa1Q3PXJUVdr2VJXs+DYRQezw11nd/OgX7OS/Q1sY0Q9aiGh/HZbTIouhnTQ4yw/mzm3AjbDqEtKjfA9n7RVndIIs7tWmejUhUs2tlUVgn3WDg6ZF08tufKQNFh+8cfqaxZVYaoUhWYcNszo35IXD8sdQUShK31xme9QTXsteVmlol2G3n0HquvEf3cszqXqWnP4HAOH1zVfIR6XfDecuat1ruk0/tsSCPPpnSn0z/uThOUU3vWFFLOIXJoUvG1yo1tyk1soEBLMJdLNXP9k7Qsud/Q1tJ8uJlfy7+vvN/A+LX8S0r/gltvwTx7VgJTX365pqc8f/7x5gbMV4/+W5/xGXwGvPhrwX8KX399np4yP/hQn/6p1H373bX4Y3ke01PgY9qNGLg/RUW1XlNJT+HxT/z8qqYltBSV12/FI85SVN6kWR98AHp7ozc39fnmVlxf8/bmpDE9BUCadAXcKIkb0PWd4Iqr0125WQMo3QkegO6k9uX+tIgH0NM/Tqm83y2CpLsl6XAALYtODUZJl9JTOMBhSVq0aObAUusgq6ScHJBygV2SOMwlrWTJXZ6ZrBKA+YXUlFaUtNTGXldTVC6mp0BNUanpKT3A1OqgpagsGupaegr0jailp2SVwFiu2J1lSGsES1tZOtt9SsSF1BRgs/lfTE3Z4hb+F1JUpjSkbtClRtrZYuqktukLVacYYSlXctsGTZT0m1wJTlKO4XpwwLRPMRl1amXcdINdWkr9HhUD/8ovZKVdqsc+PWWq+jduU8nbuLyWlxtY27qpBzmHS+NV3iGVprAvn2nq5XyV7IIyYlpay/hW6NNvQU8b/tv8hijRx67vHqoFPc/rU8VdbRpwzmbyZZtskBq8z+WMy1f+pQs2hWEc3MdoKBrn1yV5GG707xOEUhkQ7TCYUn++lL5wAbs+t1SVcUqsAK0+lvXQusk9+OW8lXeXLv97onf+PdnAlz/RvEdqyMiv5VTs0EebEambuaeKtK7oqSvv4O72hTou8xvfZ3mdZxBkEhOWPeof0VIldsZLieY7v5f+Z6kSiZRGbarsiXMDeJ8aU2TqYMneZt+kjV2d7a08aWfANQSXWnpJSoZM5Pa86alKYrhN0Pj7PB2lfvVlX59J7hkRdTFLljtUKvYnjakrlBsLbZ/qPNJZX6Se/lOFy2OocUix2CBpczskB0zthsQ0DWkNsEnv2KSoDO9AsrzNhGv09jQq/55xs5XNQ0rOxET5Ul745RG223vl1VNVSl4L/GKqSktVWnw5VSXt7JDXNJVmo3nGy4rT0lRKCgn0NJWZ+r1x8gwsU5RxsZS7B8xzE6vSCjPNkKlpKiVFpcEtlPSiZZrM8v9MVZnnloFS6oZUFTjZntY0lXkyS0lTubPNPBmHD7bhgKn1wGFuNw9mw4mTZx8BjuWWABH2MYxr+olnw225PdDSVKLcGOAGbo4Fzi43AUqayg320VcPcrlNAGzSVGqKymtnf8CHXExR4SGuOC1NxbEYHuO8+H1SVIDLaSpAS1X55m+wfPLaT3jCy5cvefLpH0r7n1+ZF9s0la/4is9+/q/LNxDuuX3wa5rKv6/8EycY65bo+YM2AAAAAElFTkSuQmCC",e:1}],layers=[{ddd:0,ind:1,ty:2,nm:"加载视频@3x.png",cl:"png",refId:"image_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1218,562,0],ix:2},a:{a:0,k:[97.5,132,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:2,nm:"进度条@3x.png",cl:"png",refId:"image_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[100],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[0],e:[0]},{t:120}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[678,587.5,0],ix:2},a:{a:0,k:[0,1.5,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:0,s:[0,100,100],e:[100,100,100]},{t:60}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:3,ty:2,nm:"进度条@3x.png",cl:"png",refId:"image_1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0],e:[100]},{t:61}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[1758,589,0],ix:2},a:{a:0,k:[1080,3,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:60,s:[100,100,100],e:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:61,s:[100,100,100],e:[0,100,100]},{t:120}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0}],markers=[],playLoadData={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers},videoWrap$1="_videoWrap_q0ooo_1",content$2="_content_q0ooo_6",contentWrap$1="_contentWrap_q0ooo_10",tempVudio="_tempVudio_q0ooo_18",controls$1="_controls_q0ooo_25",hide$1="_hide_q0ooo_37",time$1="_time_q0ooo_40",slider$1="_slider_q0ooo_48",actions$1="_actions_q0ooo_66",actionWrap$1="_actionWrap_q0ooo_74",actionBtn$1="_actionBtn_q0ooo_77",playIcon$1="_playIcon_q0ooo_92",btnPlay$1="_btnPlay_q0ooo_95",btnPause$1="_btnPause_q0ooo_98",loopBtn$1="_loopBtn_q0ooo_105",active$1="_active_q0ooo_111",styles$2={videoWrap:videoWrap$1,content:content$2,contentWrap:contentWrap$1,tempVudio,controls:controls$1,hide:hide$1,time:time$1,slider:slider$1,actions:actions$1,actionWrap:actionWrap$1,actionBtn:actionBtn$1,playIcon:playIcon$1,btnPlay:btnPlay$1,btnPause:btnPause$1,loopBtn:loopBtn$1,active:active$1},iconLoop=""+new URL("icon-loop-d829c914.svg",import.meta.url).href,iconLoopActive=""+new URL("icon-loop-active-cd128045.svg",import.meta.url).href,iconplay$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAACQklEQVRoBe2ZzysEYRjHd/1IKSclDtRGodxcKWWduCkX5R+QkM2FAykX8k+sk9ysk5xozxyQInEhDkr5FVqfp7w1jd3Zmdmdmfeteerb++7zzvu+n+87s7sz7yQSccQrEK+A0SuQ9ENfKBSa6dePvlE+mUx++Bkn9D6A16BV9IVUPFKZRrWhA3mdEMh5RV2kPCE34HXMUI8H8KkIuD2VJdEWKpibyYBqt5M6fH6hbQHVuxk7lGOA6XEALtV0TsNwKIDlJvFpQBnbodJRbo5A2ys0IEZe0RJqCBS01OBM7OcSotu/uCIzWmoer/karx2qcHwnY+QwsYekXlFEYUABj1E5w8QaalTJwEomqdYlxFD/4pbMuB/4KM+AlVd+oXYxcYB6rQ3l6roYUJxpKqeY2EBNKulU6mZAWOXfO4MuMTEpCafQ0YDilfupbUwcoZRK2kudDShWucPNY6JLJaylCQaEtxWtSMUephgQ7hE7vHw2yUCd6Qb2TTZwA/yyqQaOAR9i5+PONAP3AE8BPlgKXgzp+CX+gmsLdQOeFUinKPrNduoQcNsh488AfuF2Hl3OgFzfE4CnvcCLyajPwCcMm2gd8DcB8hpRGpDf9VnAr71CW4+PwoAAzwGes4IEXudusNJHStlWWUZGbqvI46KRG1uytZgO/PJwMwEgKeQ2ZHM3g7Ta3K0D6NmFA3kM1G97Xc4SYIsOBvR/wfFnQnbS3i1GHqhH9orJ70u+Fsz0Ibnxkpd8P2IujngF4hWIV8DzCvwCJiXIZfS6dB4AAAAASUVORK5CYII=",iconpause$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAABJElEQVRoBe1ZQQ6DMAyD/YuPsV/xjr2DvWLrHAkOLaAGOdWEcKRoa4md1OZUuk4hBaSAFLiEAimlATkh5yXt/8AObxzIcN5sLjQYkV9kGR9sjFnxiYVhkeG82QhoYArZoEdhz047YRhkOG82vC3QxOytxbQBVjZA2IR30xaN7J2vxbwBVjZAGMLbV/qYA6lWY897hKdurYnifayEV/3VAf7tnByQA6QCeoVIAWm4HKAlJAnkACkgDZcDtIQkgRwgBaThcoCWkCSQA6SANFwO0BKSBHKAFJCG38KBt0MmT01J48FUazwOvMrOO2tPTQnzYDw1JW++xh1mk2vwVrz59MsKzZ7Ivbt822M+cDThPTqEORH+KQicTXh3D6FNKSAFpEC4Aj8w8BfWLCtJSQAAAABJRU5ErkJggg==";var vudio={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){var r={effect:"waveform",accuracy:128,width:256,height:100,waveform:{maxHeight:80,minHeight:1,spacing:1,color:"#f00",shadowBlur:0,shadowColor:"#f00",fadeSide:!0,horizontalAlign:"center",verticalAlign:"middle",prettify:!0},lighting:{maxHeight:80,lineWidth:0,color:"#f00",shadowBlur:0,shadowColor:"#f00",fadeSide:!0,horizontalAlign:"center",verticalAlign:"middle"}};function n(a,l,u){if(["[object HTMLAudioSource]","[object HTMLAudioElement]","[object MediaStream]"].indexOf(Object.prototype.toString.call(a))===-1)throw new TypeError("Invaild Audio Source");if(Object.prototype.toString.call(l)!=="[object HTMLCanvasElement]")throw new TypeError("Invaild Canvas Element");this.audioSrc=a,this.canvasEle=l,this.option=s(r,u),this.meta={},this.stat=0,this.freqByteData=null,this.__init()}function s(){var a={};return Array.prototype.forEach.call(arguments,function(l){var u;for(u in l)Object.prototype.hasOwnProperty.call(l,u)&&(Object.prototype.toString.call(l[u])==="[object Object]"?a[u]=s(a[u],l[u]):a[u]=l[u])}),a}return n.prototype={__init:function(){var a=new(window.AudioContext||window.webkitAudioContext||window.mozAudioContext),l=Object.prototype.toString.call(this.audioSrc)!=="[object MediaStream]"?a.createMediaElementSource(this.audioSrc):a.createMediaStreamSource(this.audioSrc),u=window.devicePixelRatio||1;this.analyser=a.createAnalyser(),this.meta.spr=a.sampleRate,l.connect(this.analyser),this.analyser.fftSize=this.option.accuracy*2,this.analyser.connect(a.destination),this.freqByteData=new Uint8Array(this.analyser.frequencyBinCount),this.context2d=this.canvasEle.getContext("2d"),this.width=this.option.width,this.height=this.option.height,this.context2d.canvas.width=this.width*u,this.context2d.canvas.height=this.height*u,this.context2d.scale(u,u)},__rebuildData:function(a,l){var u;return l==="center"?u=[].concat(Array.from(a).reverse().splice(this.option.accuracy/2,this.option.accuracy/2),Array.from(a).splice(0,this.option.accuracy/2)):l==="left"?u=a:l==="right"?u=Array.from(a).reverse():u=[].concat(Array.from(a).reverse().splice(this.option.accuracy/2,this.option.accuracy/2),Array.from(a).splice(0,this.option.accuracy/2)),u},__animate:function(){this.stat===1&&(this.analyser.getByteFrequencyData(this.freqByteData),typeof this.__effects()[this.option.effect]=="function"&&this.__effects()[this.option.effect](this.freqByteData),requestAnimationFrame(this.__animate.bind(this)))},__testFrame:function(){this.analyser.getByteFrequencyData(this.freqByteData),typeof this.__effects()[this.option.effect]=="function"&&this.__effects()[this.option.effect](this.freqByteData)},__effects:function(){var a=this;return{lighting:function(l){var u=a.option.lighting,p=a.__rebuildData(l,u.horizontalAlign),d=u.maxHeight/2,f=!0,_,y;u.horizontalAlign,a.context2d.clearRect(0,0,a.width,a.height),a.context2d.lineWidth=u.lineWidth,a.context2d.strokeStyle=u.color,a.context2d.beginPath(),p.forEach(function(b,g){_=a.width/a.option.accuracy*g,y=b/256*d,u.verticalAlign==="middle"?y=(a.height-b)/2-d/2:u.verticalAlign==="bottom"?y=a.height-b:u.verticalAlign==="top"?y=b:y=(a.height-b)/2-d/2,f?(a.context2d.moveTo(_,y),f=!1):a.context2d.lineTo(_,y)}),a.context2d.stroke()},waveform:function(l){var u=a.option.waveform,p=u.fadeSide,d=u.prettify,f=a.__rebuildData(l,u.horizontalAlign),_,y,b,g,m,C,S,P;u.horizontalAlign!=="center"&&(p=!1,d=!1),a.context2d.clearRect(0,0,a.width,a.height),f.forEach(function(A,x){y=(a.width-a.option.accuracy*u.spacing)/a.option.accuracy,g=x*(y+u.spacing),u.spacing!==1&&(g+=u.spacing/2),d?x<=a.option.accuracy/2?_=(1-(a.option.accuracy/2-1-x)/(a.option.accuracy/2))*u.maxHeight:_=(1-(x-a.option.accuracy/2)/(a.option.accuracy/2))*u.maxHeight:_=u.maxHeight,b=A/256*_,b=b<u.minHeight?u.minHeight:b,u.verticalAlign==="middle"?m=(a.height-b)/2:u.verticalAlign==="top"?m=0:u.verticalAlign==="bottom"?m=a.height-b:m=(a.height-b)/2,C=u.color,C instanceof Array?(S=a.context2d.createLinearGradient(g,m,g,m+b),C.forEach(function(R,E){R instanceof Array?(P=R[0],R=R[1]):E===0||E===C.length-1?P=E/(C.length-1):P=E/C.length+.5/C.length,S.addColorStop(P,R)}),a.context2d.fillStyle=S):a.context2d.fillStyle=C,u.shadowBlur>0&&(a.context2d.shadowBlur=u.shadowBlur,a.context2d.shadowColor=u.shadowColor),p?x<=a.option.accuracy/2?a.context2d.globalAlpha=1-(a.option.accuracy/2-1-x)/(a.option.accuracy/2):a.context2d.globalAlpha=1-(x-a.option.accuracy/2)/(a.option.accuracy/2):a.context2d.globalAlpha=1,a.context2d.fillRect(g,m,y,b)})}}},dance:function(){return this.stat===0&&(this.stat=1,this.__animate()),this},pause:function(){return this.stat=0,this},setOption:function(a){this.option=s(this.option,a)}},n})})(vudio);var vudioExports=vudio.exports;const Vudio=getDefaultExportFromCjs(vudioExports),tickMp3=""+new URL("tick-b5f22461.mp3",import.meta.url).href,AudioItem=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},show:{type:Boolean,default:!1},pageVisibility:{type:String,default:""},showModel:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1}},emits:["loadedmetadata","togglePlay","ended","reset","close"],setup(e,{emit:t}){const{item:r,isEmtry:n}=toRefs(e),s=reactive({timer:null,currentTime:0,duration:.1,loop:!1,dragStatus:!1,playState:"pause",vudio:null,afterMa3:!0}),a=ref(),l=ref(),u=ref();watch(()=>e.show,C=>{C||(l.value.pause(),s.playState="pause")}),watch(()=>e.pageVisibility,C=>{C==="hidden"&&e.show&&(l.value.pause(),s.playState="pause")});const p=()=>{l.value.paused?(d(l.value,a.value),l.value.play(),s.playState="play"):(l.value.pause(),s.playState="pause")},d=(C,S)=>{if(!s.vudio){const P=u.value.getBoundingClientRect()||{width:200,height:200};s.vudio=new Vudio(C,S,{effect:"waveform",accuracy:128,width:P.width,height:P.height,waveform:{maxHeight:160,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),s.vudio.dance()}},f=()=>{s.duration=l.value.duration},_=C=>{s.currentTime=C,clearTimeout(s.timer),s.timer=setTimeout(()=>{l.value.currentTime=C,s.timer=null},60)},y=()=>{s.playState="pause"};let b=null;const g=ref(),m=ref();return nextTick(()=>{const C=u.value.getBoundingClientRect()||{width:200,height:200};b=new Vudio(m.value,g.value,{effect:"waveform",accuracy:128,width:C.width,height:C.height,waveform:{maxHeight:160,color:[[0,"#44D1FF"],[.5,"#44D1FF"],[.5,"#198CFE"],[1,"#198CFE"]],prettify:!1}}),b.dance()}),()=>createVNode("div",{class:styles$2.videoWrap},[createVNode("div",{class:styles$2.content},[createVNode("div",{ref:u,class:styles$2.contentWrap},[createVNode("canvas",{ref:a},null),createVNode("audio",{src:n.value?"":r.value.content,ref:l,loop:s.loop,onLoadedmetadata:f,onTimeupdate:()=>{s.timer&&s.playState==="pause"||s.dragStatus||(s.currentTime=l.value.currentTime)},onError:()=>{console.log("error"),l.value.pause(),s.playState="pause"},onPause:()=>{console.log("pause"),s.playState="pause"},onEnded:y,crossorigin:"anonymous",playsinline:"false"},null),s.afterMa3&&createVNode("div",{class:styles$2.tempVudio},[createVNode("audio",{ref:m,src:tickMp3},null),createVNode("canvas",{ref:g},null)])])]),createVNode("div",{class:[styles$2.controls,e.showModel?"":styles$2.hide],onClick:C=>{C.stopPropagation()},onTouchmove:C=>{t("close")}},[createVNode("div",{class:styles$2.time},[createVNode("div",null,[getSecondRPM(s.currentTime)]),createVNode("div",null,[getSecondRPM(s.duration)])]),createVNode("div",{class:[styles$2.slider]},[createVNode(Slider,{step:.01,class:styles$2.timeProgress,modelValue:s.currentTime,"onUpdate:modelValue":[C=>s.currentTime=C,C=>{_(C)}],max:s.duration,onDragStart:()=>{s.dragStatus=!0,console.log("onDragStart")},onDragEnd:()=>{s.dragStatus=!1,console.log("onDragEnd")}},null)]),createVNode("div",{class:styles$2.actions,onClick:()=>t("close")},[createVNode("div",{class:styles$2.actionBtn,onClick:()=>p()},[createVNode("img",{src:s.playState==="pause"?iconplay$1:iconpause$1},null)]),createVNode("div",{class:styles$2.actionBtn,onClick:()=>s.loop=!s.loop},[createVNode("img",{src:s.loop?iconLoopActive:iconLoop},null)])])])])}}),api_lessonCoursewareKnowledgeDetailDetail=e=>request.post("/edu-app/lessonCoursewareKnowledgeDetail/detail",{data:e}),api_classLessonCoursewareQuery=e=>request.post("/edu-app/classLessonCourseware/queryCourseware",{data:e}),videoWrap="_videoWrap_1o3d4_1",content$1="_content_1o3d4_6",contentWrap="_contentWrap_1o3d4_10",videoSection="_videoSection_1o3d4_17",controls="_controls_1o3d4_24",hide="_hide_1o3d4_36",time="_time_1o3d4_39",slider="_slider_1o3d4_47",actions="_actions_1o3d4_60",actionWrap="_actionWrap_1o3d4_68",actionBtn="_actionBtn_1o3d4_71",playIcon="_playIcon_1o3d4_86",btnPlay="_btnPlay_1o3d4_89",btnPause="_btnPause_1o3d4_92",loopBtn="_loopBtn_1o3d4_99",active="_active_1o3d4_105",styles$1={videoWrap,content:content$1,contentWrap,videoSection,controls,hide,time,slider,actions,actionWrap,actionBtn,playIcon,btnPlay,btnPause,loopBtn,active};var tcplayer_v4_8_0_min={exports:{}};(function(module,exports){(function(e,t){module.exports=t()})(commonjsGlobal,function(){function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return t={exports:{}},e(t,t.exports),t.exports}function each(e,t){keys(e).forEach(function(r){return t(e[r],r)})}function reduce(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return keys(e).reduce(function(n,s){return t(n,e[s],s)},r)}function assign(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Object.assign?Object.assign.apply(Object,[e].concat(r)):(r.forEach(function(s){s&&each(s,function(a,l){e[l]=a})}),e)}function isObject$1(e){return!!e&&(e===void 0?"undefined":_typeof(e))==="object"}function isPlain(e){return isObject$1(e)&&toString.call(e)==="[object Object]"&&e.constructor===Object}function isFunction(e){return typeof e=="function"&&typeof e.nodeType!="number"}function clean(e){return e.replace(/\n\r?\s*/g,"")}function computedStyle(e,t){if(!e||!t)return"";if(typeof window_1.getComputedStyle=="function"){var r=window_1.getComputedStyle(e);return r?r[t]:""}return e.currentStyle[t]||""}function isNonBlankString(e){return typeof e=="string"&&/\S/.test(e)}function throwIfWhitespace(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function classRegExp(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function isReal(){return document_1===window_1.document&&typeof document_1.createElement<"u"}function isEl(e){return isObject$1(e)&&e.nodeType===1}function isInFrame(){try{return window_1.parent!==window_1.self}catch(e){return!0}}function createQuerier(e){return function(t,r){if(!isNonBlankString(t))return document_1[e](null);isNonBlankString(r)&&(r=document_1.querySelector(r));var n=isEl(r)?r:document_1;return n[e]&&n[e](t)}}function createEl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments[3],s=document_1.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(a){var l=t[a];a.indexOf("aria-")!==-1||a==="role"||a==="type"?(log$2.warn(tsml(_templateObject,a,l)),s.setAttribute(a,l)):a==="textContent"?textContent(s,l):s[a]=l}),Object.getOwnPropertyNames(r).forEach(function(a){s.setAttribute(a,r[a])}),n&&appendContent(s,n),s}function textContent(e,t){return typeof e.textContent>"u"?e.innerText=t:e.textContent=t,e}function prependTo(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function hasClass(e,t){return throwIfWhitespace(t),e.classList?e.classList.contains(t):classRegExp(t).test(e.className)}function addClass(e,t){return e.classList?e.classList.add(t):hasClass(e,t)||(e.className=(e.className+" "+t).trim()),e}function removeClass(e,t){return e.classList?e.classList.remove(t):(throwIfWhitespace(t),e.className=e.className.split(/\s+/).filter(function(r){return r!==t}).join(" ")),e}function toggleClass(e,t,r){var n=hasClass(e,t);if(typeof r=="function"&&(r=r(e,t)),typeof r!="boolean"&&(r=!n),r!==n)return r?addClass(e,t):removeClass(e,t),e}function setAttributes(e,t){Object.getOwnPropertyNames(t).forEach(function(r){var n=t[r];n==null||n===!1?e.removeAttribute(r):e.setAttribute(r,n===!0?"":n)})}function getAttributes(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,n=r.length-1;n>=0;n--){var s=r[n].name,a=r[n].value;typeof e[s]!="boolean"&&",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+s+",")===-1||(a=a!==null),t[s]=a}return t}function getAttribute(e,t){return e.getAttribute(t)}function setAttribute(e,t,r){e.setAttribute(t,r)}function removeAttribute(e,t){e.removeAttribute(t)}function blockTextSelection(){document_1.body.focus(),document_1.onselectstart=function(){return!1}}function unblockTextSelection(){document_1.onselectstart=function(){return!0}}function getBoundingClientRect(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),r={};return["bottom","height","left","right","top","width"].forEach(function(n){t[n]!==void 0&&(r[n]=t[n])}),r.height||(r.height=parseFloat(computedStyle(e,"height"))),r.width||(r.width=parseFloat(computedStyle(e,"width"))),r}}function findPosition(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var r=document_1.documentElement,n=document_1.body,s=r.clientLeft||n.clientLeft||0,a=window_1.pageXOffset||n.scrollLeft,l=t.left+a-s,u=r.clientTop||n.clientTop||0,p=window_1.pageYOffset||n.scrollTop,d=t.top+p-u;return{left:Math.round(l),top:Math.round(d)}}function getPointerPosition(e,t){var r={},n=findPosition(e),s=e.offsetWidth,a=e.offsetHeight,l=n.top,u=n.left,p=t.pageY,d=t.pageX;return t.changedTouches&&(d=t.changedTouches[0].pageX,p=t.changedTouches[0].pageY),r.y=Math.max(0,Math.min(1,(l-p+a)/a)),r.x=Math.max(0,Math.min(1,(d-u)/s)),r}function isTextNode(e){return isObject$1(e)&&e.nodeType===3}function emptyEl(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function normalizeContent(e){return typeof e=="function"&&(e=e()),(Array.isArray(e)?e:[e]).map(function(t){return typeof t=="function"&&(t=t()),isEl(t)||isTextNode(t)?t:typeof t=="string"&&/\S/.test(t)?document_1.createTextNode(t):void 0}).filter(function(t){return t})}function appendContent(e,t){return normalizeContent(t).forEach(function(r){return e.appendChild(r)}),e}function insertContent(e,t){return appendContent(emptyEl(e),t)}function isSingleLeftClick(e){return e.button===void 0&&e.buttons===void 0||e.button===0&&e.buttons===void 0||IE_VERSION===9||e.button===0&&e.buttons===1}function newGUID(){return _guid++}function getData(e){var t=e[elIdAttr];return t||(t=e[elIdAttr]=newGUID()),elData[t]||(elData[t]={}),elData[t]}function hasData(e){var t=e[elIdAttr];return!!t&&!!Object.getOwnPropertyNames(elData[t]).length}function removeData(e){var t=e[elIdAttr];if(t){delete elData[t];try{delete e[elIdAttr]}catch(r){e.removeAttribute?e.removeAttribute(elIdAttr):e[elIdAttr]=null}}}function _cleanUpEvents(e,t){var r=getData(e);r.handlers[t].length===0&&(delete r.handlers[t],e.removeEventListener?e.removeEventListener(t,r.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,r.dispatcher)),Object.getOwnPropertyNames(r.handlers).length<=0&&(delete r.handlers,delete r.dispatcher,delete r.disabled),Object.getOwnPropertyNames(r).length===0&&removeData(e)}function _handleMultipleEvents(e,t,r,n){r.forEach(function(s){e(t,s,n)})}function fixEvent(e){function t(){return!0}function r(){return!1}if(!e||!e.isPropagationStopped){var n=e||window_1.event;e={};for(var s in n)s!=="layerX"&&s!=="layerY"&&s!=="keyLocation"&&s!=="webkitMovementX"&&s!=="webkitMovementY"&&(s==="returnValue"&&n.preventDefault||(e[s]=n[s]));if(e.target||(e.target=e.srcElement||document_1),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){n.preventDefault&&n.preventDefault(),e.returnValue=!1,n.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),e.cancelBubble=!0,n.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=r,e.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=r,e.clientX!==null&&e.clientX!==void 0){var a=document_1.documentElement,l=document_1.body;e.pageX=e.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,e.button!==null&&e.button!==void 0&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}function on(e,t,r){if(Array.isArray(t))return _handleMultipleEvents(on,e,t,r);var n=getData(e);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),r.guid||(r.guid=newGUID()),n.handlers[t].push(r),n.dispatcher||(n.disabled=!1,n.dispatcher=function(a,l){if(!n.disabled){a=fixEvent(a);var u=n.handlers[a.type];if(u)for(var p=u.slice(0),d=0,f=p.length;d<f&&!a.isImmediatePropagationStopped();d++)try{p[d].call(e,a,l)}catch(_){log$2.error(_)}}}),n.handlers[t].length===1)if(e.addEventListener){var s=!1;_supportsPassive&&passiveEvents.indexOf(t)>-1&&(s={passive:!0}),e.addEventListener(t,n.dispatcher,s)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}function off(e,t,r){if(hasData(e)){var n=getData(e);if(n.handlers){if(Array.isArray(t))return _handleMultipleEvents(off,e,t,r);var s=function(p,d){n.handlers[d]=[],_cleanUpEvents(p,d)};if(t!==void 0){var a=n.handlers[t];if(a){if(!r)return void s(e,t);if(r.guid)for(var l=0;l<a.length;l++)a[l].guid===r.guid&&a.splice(l--,1);_cleanUpEvents(e,t)}}else for(var u in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},u)&&s(e,u)}}}function trigger(e,t,r){var n=hasData(e)?getData(e):{},s=e.parentNode||e.ownerDocument;if(typeof t=="string"&&(t={type:t,target:e}),t=fixEvent(t),n.dispatcher&&n.dispatcher.call(e,t,r),s&&!t.isPropagationStopped()&&t.bubbles===!0)trigger.call(null,s,t,r);else if(!s&&!t.defaultPrevented){var a=getData(t.target);t.target[t.type]&&(a.disabled=!0,typeof t.target[t.type]=="function"&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function one(e,t,r){if(Array.isArray(t))return _handleMultipleEvents(one,e,t,r);var n=function s(){off(e,t,s),r.apply(this,arguments)};n.guid=r.guid=r.guid||newGUID(),on(e,t,n)}function autoSetupTimeout(e,t){t&&(videojs$2=t),window_1.setTimeout(autoSetup,e)}function evented(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.eventBusKey;if(r){if(!e[r].nodeName)throw new Error('The eventBusKey "'+r+'" does not refer to an element.');e.eventBusEl_=e[r]}else e.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(e,EventedMixin),e.on("dispose",function(){e.off(),window_1.setTimeout(function(){e.eventBusEl_=null},0)}),e}function stateful(e,t){return assign(e,StatefulMixin),e.state=assign({},e.state,t),typeof e.handleStateChanged=="function"&&isEvented(e)&&e.on("statechanged",e.handleStateChanged),e}function toTitleCase(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}function titleCaseEquals(e,t){return toTitleCase(e)===toTitleCase(t)}function mergeOptions(){for(var e={},t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(s){s&&each(s,function(a,l){if(!isPlain(a))return void(e[l]=a);isPlain(e[l])||(e[l]={}),e[l]=mergeOptions(e[l],a)})}),e}function extend(){var e,t,r,n,s,a,l=arguments[0]||{},u=1,p=arguments.length,d=!1;for(typeof l=="boolean"&&(d=l,l=arguments[u]||{},u++),(l===void 0?"undefined":_typeof(l))==="object"||isFunction(l)||(l={}),u===p&&(l=this,u--);u<p;u++)if((e=arguments[u])!=null)for(t in e)r=l[t],n=e[t],l!==n&&(d&&n&&(isPlain(n)||(s=Array.isArray(n)))?(s?(s=!1,a=r&&Array.isArray(r)?r:[]):a=r&&isPlain(r)?r:{},l[t]=extend(d,a,n)):n!==void 0&&(l[t]=n));return l}function getParams(e,t){var r=t.split("?")[1];if(r){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),s=r.match(n);return s!=null?decodeURIComponent(s[2]):null}}function guid(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function unifyProtocol(e){e=e.replace(/^(http|https):/,"");var t=window.location.protocol;return t!="http:"&&t!="https:"&&(t="https:"),e=t+e}function replaceHost(e,t){var r=/^http(s)?:\/\/(.*?)\//,n=e.match(r);return e.replace(n[2],t)}function getViewportSize(){var e=document,t=e.documentElement,r=e.body;return{width:t&&t.clientWidth||r&&r.offsetWidth||window.innerWidth||0,height:t&&t.clientHeight||r&&r.offsetHeight||window.innerHeight||0}}function getTimeStamp(){return new Date().getTime()}function getTimeStampBySecond(){return Date.parse(new Date)/1e3}function loadScript(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0&&arguments[3],s=document.createElement("script");if(s.onload=s.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(typeof t=="function"&&t(),s.onload=s.onreadystatechange=null,s.parentNode&&!n&&s.parentNode.removeChild(s))},r){for(var a in r)if(r.hasOwnProperty(a)){var l=r[a];l===null?s.removeAttribute(l):s.setAttribute(a,l)}}s.src=e,document.getElementsByTagName("head")[0].appendChild(s)}function serializeParams(e){var t=[],r=function(n,s){s=typeof s=="function"?s():s,s=s===null||s===void 0?"":s,t[t.length]=encodeURIComponent(n)+"="+encodeURIComponent(s)};return function n(s,a){var l=void 0,u=void 0,p=void 0;if(s)if(Array.isArray(a))for(l=0,u=a.length;l<u;l++)n(s+"["+(_typeof(a[l])==="object"&&a[l]?l:"")+"]",a[l]);else if(String(a)==="[object Object]")for(p in a)n(s+"["+p+"]",a[p]);else r(s,a);else if(Array.isArray(a))for(l=0,u=a.length;l<u;l++)r(a[l].name,a[l].value);else for(p in a)n(p,a[p]);return t}("",e).join("&")}function encodeHTML(e){return e.length?String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;").replace(/\//g,"&#x2F;"):""}function isWebrtcUrl(e){return/webrtc:\/\//.test(e)||/\.sdp/.test(e)}function getperformance(){return window.performance||window.msPerformance||window.webkitPerformance||{}}function rangeCheck(e,t,r){if(typeof t!="number"||t<0||t>r)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+r+").")}function getRange(e,t,r,n){return rangeCheck(e,n,r.length-1),r[n][t]}function createTimeRangesObj(e){return e===void 0||e.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:getRange.bind(null,"start",0,e),end:getRange.bind(null,"end",1,e)}}function createTimeRanges(e,t){return Array.isArray(e)?createTimeRangesObj(e):e===void 0||t===void 0?createTimeRangesObj():createTimeRangesObj([[e,t]])}function bufferedPercent(e,t){var r=0,n=void 0,s=void 0;if(!t)return 0;e&&e.length||(e=createTimeRanges(0,0));for(var a=0;a<e.length;a++)n=e.start(a),s=e.end(a),s>t&&(s=t),r+=s-n;return r/t}function MediaError(e){if(e instanceof MediaError)return e;typeof e=="number"?this.code=e:typeof e=="string"?this.message=e:isObject$1(e)&&(typeof e.code=="number"&&(this.code=e.code),assign(this,e)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(e,t){var r,n=null;try{r=JSON.parse(e,t)}catch(s){n=s}return[n,r]}function isPromise(e){return e!==void 0&&typeof e.then=="function"}function silencePromise(e){isPromise(e)&&e.then(null,function(t){})}function isFunction$1(e){if(!e)return!1;var t=toString$1.call(e);return t==="[object Function]"||typeof e=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}function extend$1(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}function forEachArray(e,t){for(var r=0;r<e.length;r++)t(e[r])}function isEmpty(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function initParams(e,t,r){var n=e;return isFunction_1(t)?(r=t,typeof e=="string"&&(n={uri:e})):n=immutable(t,{uri:e}),n.callback=r,n}function createXHR(e,t,r){return t=initParams(e,t,r),_createXHR(t)}function _createXHR(e){function t(){u.readyState===4&&setTimeout(s,0)}function r(){var P=void 0;if(P=u.response?u.response:u.responseText||getXml(u),C)try{P=JSON.parse(P)}catch(A){}return P}function n(P){return clearTimeout(f),P instanceof Error||(P=new Error(""+(P||"Unknown XMLHttpRequest Error"))),P.statusCode=0,l(P,S)}function s(){if(!d){var P;clearTimeout(f),P=e.useXDR&&u.status===void 0?200:u.status===1223?204:u.status;var A=S,x=null;return P!==0?(A={body:r(),statusCode:P,method:y,headers:{},url:_,rawRequest:u},u.getAllResponseHeaders&&(A.headers=parseHeaders(u.getAllResponseHeaders()))):x=new Error("Internal XMLHttpRequest Error"),l(x,A,A.body)}}if(typeof e.callback>"u")throw new Error("callback argument missing");var a=!1,l=function(P,A,x){a||(a=!0,e.callback(P,A,x))},u=e.xhr||null;u||(u=e.cors||e.useXDR?new createXHR.XDomainRequest:new createXHR.XMLHttpRequest);var p,d,f,_=u.url=e.uri||e.url,y=u.method=e.method||"GET",b=e.body||e.data,g=u.headers=e.headers||{},m=!!e.sync,C=!1,S={body:void 0,headers:{},statusCode:0,method:y,url:_,rawRequest:u};if("json"in e&&e.json!==!1&&(C=!0,g.accept||g.Accept||(g.Accept="application/json"),y!=="GET"&&y!=="HEAD"&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),b=JSON.stringify(e.json===!0?b:e.json))),u.onreadystatechange=t,u.onload=s,u.onerror=n,u.onprogress=function(){},u.onabort=function(){d=!0},u.ontimeout=n,u.open(y,_,!m,e.username,e.password),m||(u.withCredentials=!!e.withCredentials),!m&&e.timeout>0&&(f=setTimeout(function(){if(!d){d=!0,u.abort("timeout");var P=new Error("XMLHttpRequest timeout");P.code="ETIMEDOUT",n(P)}},e.timeout)),u.setRequestHeader)for(p in g)g.hasOwnProperty(p)&&u.setRequestHeader(p,g[p]);else if(e.headers&&!isEmpty(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&typeof e.beforeSend=="function"&&e.beforeSend(u),u.send(b||null),u}function getXml(e){if(e.responseType==="document")return e.responseXML;var t=e.responseXML&&e.responseXML.documentElement.nodeName==="parsererror";return e.responseType!==""||t?null:e.responseXML}function noop(){}function ParsingError(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function parseTimeStamp(e){function t(n,s,a,l){return 3600*(0|n)+60*(0|s)+(0|a)+(0|l)/1e3}var r=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return r?r[3]?t(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?t(r[1],r[2],0,r[4]):t(0,r[1],r[2],r[4]):null}function Settings(){this.values=_objCreate(null)}function parseOptions(e,t,r,n){var s=n?e.split(n):[e];for(var a in s)if(typeof s[a]=="string"){var l=s[a].split(r);if(l.length===2){var u=l[0],p=l[1];t(u,p)}}}function parseCue(e,t,r){function n(){var l=parseTimeStamp(e);if(l===null)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+a);return e=e.replace(/^[^\sa-zA-Z-]+/,""),l}function s(){e=e.replace(/^\s+/,"")}var a=e;if(s(),t.startTime=n(),s(),e.substr(0,3)!=="-->")throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+a);e=e.substr(3),s(),t.endTime=n(),s(),function(l,u){var p=new Settings;parseOptions(l,function(d,f){switch(d){case"region":for(var _=r.length-1;_>=0;_--)if(r[_].id===f){p.set(d,r[_].region);break}break;case"vertical":p.alt(d,f,["rl","lr"]);break;case"line":var y=f.split(","),b=y[0];p.integer(d,b),p.percent(d,b)&&p.set("snapToLines",!1),p.alt(d,b,["auto"]),y.length===2&&p.alt("lineAlign",y[1],["start","middle","end"]);break;case"position":y=f.split(","),p.percent(d,y[0]),y.length===2&&p.alt("positionAlign",y[1],["start","middle","end"]);break;case"size":p.percent(d,f);break;case"align":p.alt(d,f,["start","middle","end","left","right"])}},/:/,/\s/),u.region=p.get("region",null),u.vertical=p.get("vertical",""),u.line=p.get("line","auto"),u.lineAlign=p.get("lineAlign","start"),u.snapToLines=p.get("snapToLines",!0),u.size=p.get("size",100),u.align=p.get("align","middle"),u.position=p.get("position",{start:0,left:0,middle:50,end:100,right:100},u.align),u.positionAlign=p.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},u.align)}(e,t)}function parseContent(e,t){function r(f){return ESCAPE[f]}for(var n,s=e.document.createElement("div"),a=s,l=[];(n=function(){if(!t)return null;var f=t.match(/^([^<]*)(<[^>]+>?)?/);return function(_){return t=t.substr(_.length),_}(f[1]?f[1]:f[2])}())!==null;)if(n[0]!=="<")a.appendChild(e.document.createTextNode(function(f){for(;d=f.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)f=f.replace(d[0],r);return f}(n)));else{if(n[1]==="/"){l.length&&l[l.length-1]===n.substr(2).replace(">","")&&(l.pop(),a=a.parentNode);continue}var u,p=parseTimeStamp(n.substr(1,n.length-2));if(p){u=e.document.createProcessingInstruction("timestamp",p),a.appendChild(u);continue}var d=n.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!d||!(u=function(f,_){var y=TAG_NAME[f];if(!y)return null;var b=e.document.createElement(y);b.localName=y;var g=TAG_ANNOTATION[f];return g&&_&&(b[g]=_.trim()),b}(d[1],d[3]))||!function(f,_){return!NEEDS_PARENT[_.localName]||NEEDS_PARENT[_.localName]===f.localName}(a,u))continue;d[2]&&(u.className=d[2].substr(1).replace("."," ")),l.push(d[1]),a.appendChild(u),a=u}return s}function isStrongRTLChar(e){for(var t=0;t<strongRTLRanges.length;t++){var r=strongRTLRanges[t];if(e>=r[0]&&e<=r[1])return!0}return!1}function determineBidi(e){function t(u,p){for(var d=p.childNodes.length-1;d>=0;d--)u.push(p.childNodes[d])}function r(u){if(!u||!u.length)return null;var p=u.pop(),d=p.textContent||p.innerText;if(d){var f=d.match(/^.*(\n|\r)/);return f?(u.length=0,f[0]):d}return p.tagName==="ruby"?r(u):p.childNodes?(t(u,p),r(u)):void 0}var n,s=[],a="";if(!e||!e.childNodes)return"ltr";for(t(s,e);a=r(s);)for(var l=0;l<a.length;l++)if(n=a.charCodeAt(l),isStrongRTLChar(n))return"rtl";return"ltr"}function computeLinePos(e){if(typeof e.line=="number"&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,r=t.textTrackList,n=0,s=0;s<r.length&&r[s]!==t;s++)r[s].mode==="showing"&&n++;return-1*++n}function StyleBox(){}function CueStyleBox(e,t,r){var n=/MSIE\s8\.0/.test(navigator.userAgent),s="rgba(255, 255, 255, 1)",a="rgba(0, 0, 0, 0.8)";n&&(s="rgb(255, 255, 255)",a="rgb(0, 0, 0)"),StyleBox.call(this),this.cue=t,this.cueDiv=parseContent(e,t.text);var l={color:s,backgroundColor:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};n||(l.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",l.unicodeBidi="plaintext"),this.applyStyles(l,this.cueDiv),this.div=e.document.createElement("div"),l={textAlign:t.align==="middle"?"center":t.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},n||(l.direction=determineBidi(this.cueDiv),l.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(l),this.div.appendChild(this.cueDiv);var u=0;switch(t.positionAlign){case"start":u=t.position;break;case"middle":u=t.position-t.size/2;break;case"end":u=t.position-t.size}t.vertical===""?this.applyStyles({left:this.formatStyle(u,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(u,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(p){this.applyStyles({top:this.formatStyle(p.top,"px"),bottom:this.formatStyle(p.bottom,"px"),left:this.formatStyle(p.left,"px"),right:this.formatStyle(p.right,"px"),height:this.formatStyle(p.height,"px"),width:this.formatStyle(p.width,"px")})}}function BoxPosition(e){var t,r,n,s,a=/MSIE\s8\.0/.test(navigator.userAgent);if(e.div){r=e.div.offsetHeight,n=e.div.offsetWidth,s=e.div.offsetTop;var l=(l=e.div.childNodes)&&(l=l[0])&&l.getClientRects&&l.getClientRects();e=e.div.getBoundingClientRect(),t=l?Math.max(l[0]&&l[0].height||0,e.height/l.length):0}this.left=e.left,this.right=e.right,this.top=e.top||s,this.height=e.height||r,this.bottom=e.bottom||s+(e.height||r),this.width=e.width||n,this.lineHeight=t!==void 0?t:e.lineHeight,a&&!this.lineHeight&&(this.lineHeight=13)}function moveBoxToLinePosition(e,t,r,n){var s=new BoxPosition(t),a=t.cue,l=computeLinePos(a),u=[];if(a.snapToLines){var p;switch(a.vertical){case"":u=["+y","-y"],p="height";break;case"rl":u=["+x","-x"],p="width";break;case"lr":u=["-x","+x"],p="width"}var d=s.lineHeight,f=d*Math.round(l),_=r[p]+d,y=u[0];Math.abs(f)>_&&(f=f<0?-1:1,f*=Math.ceil(_/d)*d),l<0&&(f+=a.vertical===""?r.height:r.width,u=u.reverse()),s.move(y,f)}else{var b=s.lineHeight/r.height*100;switch(a.lineAlign){case"middle":l-=b/2;break;case"end":l-=b}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(l,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(l,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(l,"%")})}u=["+y","-x","+x","-y"],s=new BoxPosition(t)}var g=function(m,C){for(var S,P=new BoxPosition(m),A=1,x=0;x<C.length;x++){for(;m.overlapsOppositeAxis(r,C[x])||m.within(r)&&m.overlapsAny(n);)m.move(C[x]);if(m.within(r))return m;var R=m.intersectPercentage(r);A>R&&(S=new BoxPosition(m),A=R),m=new BoxPosition(P)}return S||P}(s,u);t.move(g.toCSSCompatValues(r))}function WebVTT$1(){}function findDirectionSetting(e){return typeof e=="string"&&!!directionSetting[e.toLowerCase()]&&e.toLowerCase()}function findAlignSetting(e){return typeof e=="string"&&!!alignSetting[e.toLowerCase()]&&e.toLowerCase()}function extend$2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}function VTTCue(e,t,r){var n=this,s=/MSIE\s8\.0/.test(navigator.userAgent),a={};s?n=document.createElement("custom"):a.enumerable=!0,n.hasBeenReset=!1;var l="",u=!1,p=e,d=t,f=r,_=null,y="",b=!0,g="auto",m="start",C=50,S="middle",P=50,A="middle";if(Object.defineProperty(n,"id",extend$2({},a,{get:function(){return l},set:function(x){l=""+x}})),Object.defineProperty(n,"pauseOnExit",extend$2({},a,{get:function(){return u},set:function(x){u=!!x}})),Object.defineProperty(n,"startTime",extend$2({},a,{get:function(){return p},set:function(x){if(typeof x!="number")throw new TypeError("Start time must be set to a number.");p=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"endTime",extend$2({},a,{get:function(){return d},set:function(x){if(typeof x!="number")throw new TypeError("End time must be set to a number.");d=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"text",extend$2({},a,{get:function(){return f},set:function(x){f=""+x,this.hasBeenReset=!0}})),Object.defineProperty(n,"region",extend$2({},a,{get:function(){return _},set:function(x){_=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"vertical",extend$2({},a,{get:function(){return y},set:function(x){var R=findDirectionSetting(x);if(R===!1)throw new SyntaxError("An invalid or illegal string was specified.");y=R,this.hasBeenReset=!0}})),Object.defineProperty(n,"snapToLines",extend$2({},a,{get:function(){return b},set:function(x){b=!!x,this.hasBeenReset=!0}})),Object.defineProperty(n,"line",extend$2({},a,{get:function(){return g},set:function(x){if(typeof x!="number"&&x!==autoKeyword)throw new SyntaxError("An invalid number or illegal string was specified.");g=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"lineAlign",extend$2({},a,{get:function(){return m},set:function(x){var R=findAlignSetting(x);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");m=R,this.hasBeenReset=!0}})),Object.defineProperty(n,"position",extend$2({},a,{get:function(){return C},set:function(x){if(x<0||x>100)throw new Error("Position must be between 0 and 100.");C=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"positionAlign",extend$2({},a,{get:function(){return S},set:function(x){var R=findAlignSetting(x);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");S=R,this.hasBeenReset=!0}})),Object.defineProperty(n,"size",extend$2({},a,{get:function(){return P},set:function(x){if(x<0||x>100)throw new Error("Size must be between 0 and 100.");P=x,this.hasBeenReset=!0}})),Object.defineProperty(n,"align",extend$2({},a,{get:function(){return A},set:function(x){var R=findAlignSetting(x);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");A=R,this.hasBeenReset=!0}})),n.displayState=void 0,s)return n}function findScrollSetting(e){return typeof e=="string"&&!!scrollSetting[e.toLowerCase()]&&e.toLowerCase()}function isValidPercentValue(e){return typeof e=="number"&&e>=0&&e<=100}function VTTRegion(){var e=100,t=3,r=0,n=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(u){if(!isValidPercentValue(u))throw new Error("Width must be between 0 and 100.");e=u}},lines:{enumerable:!0,get:function(){return t},set:function(u){if(typeof u!="number")throw new TypeError("Lines must be set to a number.");t=u}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorX must be between 0 and 100.");n=u}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorY must be between 0 and 100.");r=u}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorY must be between 0 and 100.");a=u}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorX must be between 0 and 100.");s=u}},scroll:{enumerable:!0,get:function(){return l},set:function(u){var p=findScrollSetting(u);if(p===!1)throw new SyntaxError("An invalid or illegal string was specified.");l=p}}})}function createTrackHelper(e,t,r,n){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=e.textTracks();s.kind=t,r&&(s.label=r),n&&(s.language=n),s.tech=e;var l=new ALL.text.TrackClass(s);return a.addTrack(l),l}function use(e,t){middlewares[e]=middlewares[e]||[],middlewares[e].push(t)}function setSource(e,t,r){e.setTimeout(function(){return setSourceHelper(t,middlewares[t.type],r,e)},1)}function setTech(e,t){e.forEach(function(r){return r.setTech&&r.setTech(t)})}function get$1(e,t,r){return e.reduceRight(middlewareIterator(r),t[r]())}function set$1(e,t,r,n){return t[r](e.reduce(middlewareIterator(r),n))}function middlewareIterator(e){return function(t,r){return r[e]?r[e](t):t}}function setSourceHelper(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments[2],n=arguments[3],s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5],l=t[0],u=t.slice(1);if(typeof l=="string")setSourceHelper(e,middlewares[l],r,n,s,a);else if(l){var p=l(n);p.setSource(assign({},e),function(d,f){if(d)return setSourceHelper(e,u,r,n,s,a);s.push(p),setSourceHelper(f,e.type===f.type?u:middlewares[f.type],r,n,s,a)})}else u.length?setSourceHelper(e,u,r,n,s,a):a?r(e,s):setSourceHelper(e,middlewares["*"],r,n,s,!0)}function constructColor(e,t){return"rgba("+parseInt(e[1]+e[1],16)+","+parseInt(e[2]+e[2],16)+","+parseInt(e[3]+e[3],16)+","+t+")"}function tryUpdateStyle(e,t,r){try{e.style[t]=r}catch(n){return}}function formatTime(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;e=e<0?0:e;var r=Math.floor(e%60),n=Math.floor(e/60%60),s=Math.floor(e/3600),a=Math.floor(t/60%60),l=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(s=n=r="-"),s=s>0||l>0?s+":":"",n=((s||a>=10)&&n<10?"0"+n:n)+":",r=r<10?"0"+r:r,s+n+r}function parseOptionValue(e,t){if(t&&(e=t(e)),e&&e!=="none")return e}function getSelectedOptionValue(e,t){return parseOptionValue(e.options[e.options.selectedIndex].value,t)}function setSelectedOption(e,t,r){if(t){for(var n=0;n<e.options.length;n++)if(parseOptionValue(e.options[n].value,r)===t){e.selectedIndex=n;break}}}function videojs(e,t,r){var n=void 0;if(typeof e=="string"){var s=videojs.getPlayers();if(e.indexOf("#")===0&&(e=e.slice(1)),s[e])return t&&log$2.warn('Player "'+e+'" is already initialised. Options will not be applied.'),r&&s[e].ready(r),s[e];n=$("#"+e)}else n=e;if(!n||!n.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(n.player||Player.players[n.playerId])return n.player||Player.players[n.playerId];isEl(n)&&!document_1.body.contains(n)&&log$2.warn("The element supplied is not included in the DOM"),t=t||{},videojs.hooks("beforesetup").forEach(function(u){var p=u(n,mergeOptions(t));if(!isObject$1(p)||Array.isArray(p))return void log$2.error("please return an object in beforesetup hooks");t=mergeOptions(t,p)});var a=Component.getComponent("Player"),l=new a(n,t,r);return videojs.hooks("setup").forEach(function(u){return u(l)}),l}function toObject(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if(Object.getOwnPropertyNames(t).map(function(s){return t[s]}).join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(s){n[s]=s}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(s){return!1}}function decodeComponents(e,t){try{return decodeURIComponent(e.join(""))}catch(s){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],decodeComponents(r),decodeComponents(n))}function decode(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(singleMatcher),r=1;r<t.length;r++)e=decodeComponents(t,r).join(""),t=e.match(singleMatcher);return e}}function customDecodeURIComponent(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=multiMatcher.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(u){var n=decode(r[0]);n!==r[0]&&(t[r[0]]=n)}r=multiMatcher.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var l=s[a];e=e.replace(new RegExp(l,"g"),t[l])}return e}function encoderForArrayFormat(e){switch(e.arrayFormat){case"index":return function(t,r,n){return r===null?[encode(t,e),"[",n,"]"].join(""):[encode(t,e),"[",encode(n,e),"]=",encode(r,e)].join("")};case"bracket":return function(t,r){return r===null?encode(t,e):[encode(t,e),"[]=",encode(r,e)].join("")};default:return function(t,r){return r===null?encode(t,e):[encode(t,e),"=",encode(r,e)].join("")}}}function parserForArrayFormat(e){var t;switch(e.arrayFormat){case"index":return function(r,n,s){if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t)return void(s[r]=n);s[r]===void 0&&(s[r]={}),s[r][t[1]]=n};case"bracket":return function(r,n,s){return t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),t?s[r]===void 0?void(s[r]=[n]):void(s[r]=[].concat(s[r],n)):void(s[r]=n)};default:return function(r,n,s){if(s[r]===void 0)return void(s[r]=n);s[r]=[].concat(s[r],n)}}}function encode(e,t){return t.encode?t.strict?strictUriEncode(e):encodeURIComponent(e):e}function keysSorter(e){return Array.isArray(e)?e.sort():typeof e=="object"?keysSorter(Object.keys(e)).sort(function(t,r){return Number(t)-Number(r)}).map(function(t){return e[t]}):e}function extract(e){var t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function parse(e,t){t=objectAssign({arrayFormat:"none"},t);var r=parserForArrayFormat(t),n=Object.create(null);return typeof e!="string"?n:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach(function(s){var a=s.replace(/\+/g," ").split("="),l=a.shift(),u=a.length>0?a.join("="):void 0;u=u===void 0?null:decodeUriComponent(u),r(decodeUriComponent(l),u,n)}),Object.keys(n).sort().reduce(function(s,a){var l=n[a];return l&&typeof l=="object"&&!Array.isArray(l)?s[a]=keysSorter(l):s[a]=l,s},Object.create(null))):n}function jsonp(e,t,r){function n(){d.parentNode&&d.parentNode.removeChild(d),window[u]="",f&&clearTimeout(f)}function s(){window[u]&&n()}typeof t=="function"&&(r=t,t={}),t||(t={});var a,l=t.prefix||"__jp",u=t.name||l+count++,p=t.funcKey||"callback";a=_typeof(t.param)=="object"?queryString.stringify(t.param):t.param;var d,f,_=t.timeout!=null?t.timeout:6e3,y=encodeURIComponent,b=document.getElementsByTagName("script")[0]||document.head;return _&&(f=setTimeout(function(){n(),r&&r(new Error("Timeout"))},_)),window[u]=function(g){n(),r&&r(null,g)},e+=(~e.indexOf("?")?"&":"?")+a+"&"+p+"="+y(u),e=e.replace("?&","?"),d=document.createElement("script"),d.setAttribute("src",e),d.setAttribute("async",!0),d.onload=function(g){},d.onreadystatechange=function(){this.readyState==="loaded"&&window[u]&&(n(),r&&r(new Error("ServerError")))},d.onerror=function(g){n(),r&&r(new Error("ServerError"))},b.parentNode.insertBefore(d,b),s}function mountHlsProvider(e){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ)return!1;if(videojs.browser.IS_ENABLED_MSE&&(!videojs.browser.IS_MAC||!videojs.browser.IS_SAFARI)||videojs.browser.IS_SIMULATOR||e)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(HlsSourceHandler,0)}catch(r){}}function handlePlaybackMetadataLoaded(e,t){function r(d){return"dash-audio-"+d}function n(d,f){return d.find(function(_){return r(_.index)===f.id})}var s=e.dash.mediaPlayer,a=s.getTracksFor("audio"),l=e.audioTracks();l.length&&t.clearTracks(["audio"]);var u=s.getCurrentTrackFor("audio");a.forEach(function(d){var f=d.lang;d.roles&&d.roles.length&&(f+=" ("+d.roles.join(", ")+")"),l.addTrack(new videojs.AudioTrack({enabled:d===u,id:r(d.index),kind:d.kind||"main",label:f,language:d.lang}))});var p=function(){for(var d=0;d<l.length;d++){var f=l[d];if(f.enabled){var _=n(a,f);s.setCurrentTrack(_)}}};l.addEventListener("change",p),e.dash.mediaPlayer.on(window.dashjs.MediaPlayer.events.STREAM_TEARDOWN_COMPLETE,function(){l.removeEventListener("change",p)})}function setupAudioTracks(e,t){e.dash.mediaPlayer.on(window.dashjs.MediaPlayer.events.PLAYBACK_METADATA_LOADED,handlePlaybackMetadataLoaded.bind(null,e,t))}function find(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function attachDashTextTracksToVideojs(e,t,r){function n(){for(var l=e.dash.mediaPlayer,u=e.textTracks(),p=-1,d=0;d<u.length;d+=1)(function(f){var _=u[f];if(_.mode==="showing"){var y=find(s,function(g){return g.textTrack===_}),b=y?y.dashTrack:null;b&&(p=r.indexOf(b))}})(d);p!==l.getCurrentTextTrackIndex()&&l.setTextTrack(p)}var s=[],a=r.map(function(l){return{dashTrack:l,trackConfig:{label:l.lang,language:l.lang,srclang:l.lang,kind:l.kind}}}).map(function(l){var u=l.trackConfig,p=l.dashTrack,d=e.addRemoteTextTrack(u,!1);return s.push({textTrack:d.track,dashTrack:p}),d});return e.textTracks().on("change",n),e.dash.mediaPlayer.on(window_1.dashjs.MediaPlayer.events.STREAM_TEARDOWN_COMPLETE,function(){e.textTracks().off("change",n)}),n(),a}function setupTextTracks(e,t,r){function n(){a.forEach(e.removeRemoteTextTrack.bind(e)),a=[]}function s(u){var p=(u.index,u.tracks);l.off(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s),n(),p.length&&(a=attachDashTextTracksToVideojs(e,t,p))}window_1.VTTCue&&!/\[native code\]/.test(window_1.VTTCue.toString())&&(window_1.VTTCue=!1);var a=[];if(t.featuresNativeTextTracks)return void videojs.log.error("You must pass {html: {nativeCaptions: false}} in the videojs constructor to use text tracks in videojs-contrib-dash");var l=e.dash.mediaPlayer;l.on(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s),l.on(window_1.dashjs.MediaPlayer.events.CAN_PLAY,function(){l.off(window_1.dashjs.MediaPlayer.events.TEXT_TRACKS_ADDED,s)})}function mountDashProvider(e){(window_1.MediaSource||e)&&videojs.getTech("Html5").registerSourceHandler(videojs.DashSourceHandler(),0)}function getTemplate(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fill",r=e,n="draw-"+t;return[`<svg height="100%" width="100%" viewBox="0 0 484 348">
  167. <path class="`+n+`" transform="translate(4 4)" d="M383,124C350-42,122.3-40.5,90.6,123.5c-110.4,18.5-131,185,.6,216.5H381.6C519.7,310.7,494.1,137.8,383,124Z"/>
  168. <path transform="translate(4 4)" d="M200.4,110.2c-9.4-5.8-19.6,2.7-19.4,11.7V256.2c0,8,10.4,16.7,19.4,10.8,2.2-1.4,111.8-65.9,114-67.3,7.4-4,10.1-15.8,0-22.2Z" style="fill:#fff ;"/>
  169. </svg>`,`<svg height="100%" width="100%" viewBox="0 0 476 340">
  170. <path class="`+n+`" d="M383,124C350-42,122.3-40.5,90.6,123.5c-110.4,18.5-131,185,.6,216.5H381.6C519.7,310.7,494.1,137.8,383,124Z"/>
  171. <path d="M200.4,110.2c-9.4-5.8-19.6,2.7-19.4,11.7V256.2c0,8,10.4,16.7,19.4,10.8,2.2-1.4,111.8-65.9,114-67.3,7.4-4,10.1-15.8,0-22.2Z" style="fill:#fff ;"/>
  172. </svg>`,`<svg height="100%" width="100%" viewBox="0 14 96 68">
  173. <path class="`+n+`" d="M96,44.3v7.3c-0.1,7.7-1,15.5-1,15.5s-0.9,6.6-3.8,9.5c-3.6,3.8-7.7,3.8-9.6,4c-13.4,1-33.5,0.9-33.5,0.9 c-0.8,0-25-0.2-32.5-0.9c-2.1-0.4-6.9-0.3-10.6-4.1c-2.9-2.9-3.8-9.5-3.8-9.5s-1-7.7-1.1-15.5v-7.3c0.2-7.8,1.1-15.5,1.1-15.5 s0.9-6.6,3.8-9.5c3.6-3.8,7.7-3.8,9.6-4.1c13.4-1,33.5-0.9,33.5-0.9s20.1-0.1,33.5,0.9c1.9,0.2,5.9,0.2,9.6,4.1 c2.9,2.9,3.8,9.5,3.8,9.5S95.9,36.6,96,44.3z M38.3,61.4L64,47.9L38.3,34.4V61.4z"/>
  174. <polygon points="64,47.9 38.3,61.4 38.3,34.4" fill="#fff"/>
  175. </svg>`][r]}function isObject$2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function trimmedEndIndex(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}function baseTrim(e){return e&&e.slice(0,_trimmedEndIndex(e)+1).replace(reTrimStart,"")}function getRawTag(e){var t=hasOwnProperty$2.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var n=!0}catch(a){}var s=nativeObjectToString.call(e);return n&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),s}function objectToString(e){return nativeObjectToString$1.call(e)}function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?_getRawTag(e):_objectToString(e)}function isObjectLike(e){return e!=null&&typeof e=="object"}function isSymbol(e){return typeof e=="symbol"||isObjectLike_1(e)&&_baseGetTag(e)==symbolTag}function toNumber(e){if(typeof e=="number")return e;if(isSymbol_1(e))return NAN;if(isObject_1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=isObject_1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_baseTrim(e);var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}function debounce(e,t,r){function n(E){var k=y,I=b;return y=b=void 0,P=E,m=e.apply(I,k)}function s(E){return P=E,C=setTimeout(u,t),A?n(E):m}function a(E){var k=E-S,I=E-P,O=t-k;return x?nativeMin(O,g-I):O}function l(E){var k=E-S,I=E-P;return S===void 0||k>=t||k<0||x&&I>=g}function u(){var E=now_1();if(l(E))return p(E);C=setTimeout(u,a(E))}function p(E){return C=void 0,R&&y?n(E):(y=b=void 0,m)}function d(){C!==void 0&&clearTimeout(C),P=0,y=S=b=C=void 0}function f(){return C===void 0?m:p(now_1())}function _(){var E=now_1(),k=l(E);if(y=arguments,b=this,S=E,k){if(C===void 0)return s(S);if(x)return clearTimeout(C),C=setTimeout(u,t),n(S)}return C===void 0&&(C=setTimeout(u,t)),m}var y,b,g,m,C,S,P=0,A=!1,x=!1,R=!0;if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return t=toNumber_1(t)||0,isObject_1(r)&&(A=!!r.leading,x="maxWait"in r,g=x?nativeMax(toNumber_1(r.maxWait)||0,t):g,R="trailing"in r?!!r.trailing:R),_.cancel=d,_.flush=f,_}function throttle$1(e,t,r){var n=!0,s=!0;if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject_1(r)&&(n="leading"in r?!!r.leading:n,s="trailing"in r?!!r.trailing:s),debounce_1(e,t,{leading:n,maxWait:t,trailing:s})}function mountFlvProvider(e){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ)return!1;if(!videojs.browser.IS_TBS&&!videojs.browser.IS_MQQB&&(!IS_IOS||!videojs.browser.IS_SAFARI)&&!videojs.browser.IE_VERSION||e)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(FlvSourceHandler,0)}catch(r){}}function mountWebRTCProvider(e){if(!videojs.browser.isWebRTCSupported())return!1;try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(sourceHandler,0)}catch(r){}}function FlashRtmpDecorator(e){return e.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},e.streamFromParts=function(t,r){return t+"&"+r},e.streamToParts=function(t){var r={connection:"",stream:""};if(!t)return r;var n=t.search(/&(?!\w+=)/),s=void 0;return n!==-1?s=n+1:(n=s=t.lastIndexOf("/")+1)===0&&(n=s=t.length),r.connection=t.substring(0,n),r.stream=t.substring(s,t.length),r},e.isStreamingType=function(t){return t in e.streamingFormats},e.RTMP_RE=/^rtmp[set]?:\/\//i,e.isStreamingSrc=function(t){return e.RTMP_RE.test(t)},e.rtmpSourceHandler={},e.rtmpSourceHandler.canPlayType=function(t){return e.isStreamingType(t)?"maybe":""},e.rtmpSourceHandler.canHandleSource=function(t,r){var n=e.rtmpSourceHandler.canPlayType(t.type);return n||(e.isStreamingSrc(t.src)?"maybe":"")},e.rtmpSourceHandler.handleSource=function(t,r,n){var s=e.streamToParts(t.src);r.setRtmpConnection(s.connection),r.setRtmpStream(s.stream)},e.registerSourceHandler(e.rtmpSourceHandler),e}function _createSetter(e){var t=e.charAt(0).toUpperCase()+e.slice(1);_api["set"+t]=function(r){return this.el_.vjs_setProperty(e,r)}}function _createGetter(e){_api[e]=function(){return this.el_.vjs_getProperty(e)}}function TCPlayer(e,t,r){var n=void 0,s=new Date().getTime(),a=videojs.dom;if(typeof e=="string")n=document.querySelector("#"+e);else{if(!e||!e.nodeName)throw new TypeError("The ID or element supplied is not valid.");n=e}if(n.nodeName.toLowerCase()!="video"&&n.nodeName.toLowerCase()!="audio")throw new TypeError("The element type must be <video>.");a.hasClass(n,"tcplayer")||a.addClass(n,"tcplayer"),a.hasClass(n,"video-js")||a.addClass(n,"video-js"),videojs.browser.IE_VERSION&&(n.style.width||n.offsetWidth&&n.offsetWidth!==300)&&(window_1.VIDEOJS_NO_DYNAMIC_STYLE=!0);var l={controls:!0,language:"zh-CN",playbackRates:[.5,1,1.25,1.5,2],controlBar:{volumePanel:{inline:n.nodeName.toLowerCase()!="video"},fullscreenToggle:n.nodeName.toLowerCase()=="video",QualitySwitcherMenuButton:!0},plugins:{Skin:"",VID:"",QualitySwitcher:{},MultiResolution:{},Errors:{},Reporter:{},ContextMenu:{},LevelSwitch:{},VttThumbnail:{},PlayerMetrics:{}}};t=videojs.mergeOptions(l,t),videojs.browser.IE_VERSION&&videojs.browser.IE_VERSION<11&&window_1.top,t.autoplay&&videojs.browser.IS_ANDROID&&videojs.browser.IS_WECHAT&&(t.autoplay=!1),log("player initializing",t),videojs.getComponent("player").prototype.options_.children.splice(1,0,"logoImage");var u=videojs(e,t,r);return u.PlayerMetrics(t).setTimingData({initStart:s}),log("player initialized",t),Enc.elemManage(u),u}var version="4.8.0",commonjsGlobal$1=typeof window<"u"?window:typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:{},win;win=typeof window<"u"?window:commonjsGlobal$1!==void 0?commonjsGlobal$1:typeof self<"u"?self:{};var window_1=win,empty={},empty$1=(Object.freeze||Object)({default:empty}),minDoc=empty$1&&empty||empty$1,topLevel=commonjsGlobal$1!==void 0?commonjsGlobal$1:typeof window<"u"?window:{},doccy;typeof document<"u"?doccy=document:(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"])||(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"]=minDoc);var document_1=doccy,USER_AGENT=window_1.navigator&&window_1.navigator.userAgent||"",VENDOR=window_1.navigator&&window_1.navigator.vendor||"",webkitVersionMap=/AppleWebKit\/([\d.]+)/i.exec(USER_AGENT),appleWebkitVersion=webkitVersionMap?parseFloat(webkitVersionMap.pop()):null,IS_IPAD=/iPad/i.test(USER_AGENT),IS_IPHONE=/iPhone/i.test(USER_AGENT)&&!IS_IPAD,IS_IPOD=/iPod/i.test(USER_AGENT),IS_IOS=IS_IPHONE||IS_IPAD||IS_IPOD,IOS_VERSION=function(){var e=USER_AGENT.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),IOS_VERSION_ARRAY=function(){var e=USER_AGENT.match(/OS (\d+)_(\d+)_?(\d+)?/i);return e&&[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]||[]}(),IS_ANDROID=/Android/i.test(USER_AGENT),ANDROID_VERSION=function(){var e=USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),r=e[2]&&parseFloat(e[2]);return t&&r?parseFloat(e[1]+"."+e[2]):t||null}(),IS_TBS=/TBS\/\d+/i.test(USER_AGENT),TBS_VERSION=function(){var e=USER_AGENT.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),IS_MQQB=!IS_TBS&&/MQQBrowser\/\d+/i.test(USER_AGENT),IS_QQB=!IS_TBS&&/ QQBrowser\/\d+/i.test(USER_AGENT),IS_PC_WECHAT=/windowswechat/i.test(USER_AGENT),IS_WECHAT=/(micromessenger|webbrowser)/i.test(USER_AGENT),IS_MQQ=/ QQ\/\d+/i.test(USER_AGENT)||/MQQBrowser\/\d+/i.test(USER_AGENT),IS_OLD_ANDROID=IS_ANDROID&&/webkit/i.test(USER_AGENT)&&ANDROID_VERSION<2.3,IS_NATIVE_ANDROID=IS_ANDROID&&ANDROID_VERSION<5&&appleWebkitVersion<537,IS_FIREFOX=/Firefox/i.test(USER_AGENT),IS_EDGE=/Edge/i.test(USER_AGENT),IS_EDG=/Edg/i.test(USER_AGENT),IS_EDGA=/EdgA/i.test(USER_AGENT),EDG_VERSION=IS_EDG&&function(){var e=USER_AGENT.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),EDGA_VERSION=IS_EDGA&&function(){var e=USER_AGENT.match(/EdgA\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),IS_CHROME=function(){return!(IS_EDGE||!/Chrome/i.test(USER_AGENT))||!(!/Safari/i.test(USER_AGENT)||!/CriOS/i.test(USER_AGENT))}()&&!IS_WECHAT&&!IS_MQQB&&!IS_QQB,CHROME_VERSION=function(){var e=USER_AGENT.match(/Chrome\/(\d+)/),t=USER_AGENT.match(/CriOS\/(\d+)/);return e&&e[1]?parseFloat(e[1]):t&&t[1]?parseFloat(t[1]):null}(),IS_IE8=/MSIE\s8\.0/.test(USER_AGENT),IE_VERSION=function(){var e=/MSIE\s(\d+)\.\d/.exec(USER_AGENT),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(USER_AGENT)&&/rv:11.0/.test(USER_AGENT)&&(t=11),t}(),IS_SAFARI=/Safari/i.test(USER_AGENT)&&!IS_CHROME&&!IS_ANDROID&&!IS_EDGE&&!IS_MQQB&&!IS_QQB&&!IS_PC_WECHAT,IS_ANY_SAFARI=IS_SAFARI||IS_IOS,IS_SIMULATOR=IS_SAFARI&&VENDOR==="Google Inc.",IS_UC=/UCBrowser\/(\d+)\./i.test(USER_AGENT),TOUCH_ENABLED=isReal()&&("ontouchstart"in window_1||window_1.DocumentTouch&&window_1.document instanceof window_1.DocumentTouch),BACKGROUND_SIZE_SUPPORTED=isReal()&&"backgroundSize"in window_1.document.createElement("video").style,IS_WIN=/Windows/i.test(USER_AGENT),IS_MAC=/MAC OS X/i.test(USER_AGENT),WIN_VER=function(){return RegExp.$1}(),MAC_VER=function(){return RegExp.$1}(),QQ_VER=function(){return RegExp.$1}(),EDGE_VER=function(){return RegExp.$1}(),SAFARI_VER=function(){return RegExp.$1}(),FIREFOX_VER=function(){return RegExp.$1}(),CHROME_VER=function(){return RegExp.$1}(),IS_HUAWEI=/HUAWEI|honor|HMA/i.test(USER_AGENT),IS_XIAOMI=/HM|RedMi|Mi/i.test(USER_AGENT)&&!IS_HUAWEI,IS_OPPO=/OPPO/i.test(USER_AGENT),IS_VIVO=/VIVO/i.test(USER_AGENT),IS_SX=/GT-|SM-|SCH-/i.test(USER_AGENT),IS_ONE=/ONE/i.test(USER_AGENT),IS_CP=/Coolpad/i.test(USER_AGENT),IS_ZX=/ZTE/i.test(USER_AGENT),isWebRTCAPISupported=function(){return["RTCPeerConnection","webkitRTCPeerConnection","RTCIceGatherer"].filter(function(e){return e in window_1}).length>0},isWebRTCSupported=function(){return!IS_UC&&!IS_EDGE&&!(IS_EDG&&EDG_VERSION<80&&IS_EDGA&&EDGA_VERSION<80)&&!(IS_FIREFOX&&FIREFOX_VER<56)&&!(!IS_TBS&&IS_SAFARI&&IS_IOS&&(IOS_VERSION_ARRAY.length===0||IOS_VERSION_ARRAY[0]<11||IOS_VERSION_ARRAY[0]===11&&IOS_VERSION_ARRAY[1]<1||IOS_VERSION_ARRAY[0]===11&&IOS_VERSION_ARRAY[1]===1&&IOS_VERSION_ARRAY[2]<2))&&isWebRTCAPISupported()},IS_ENABLED_MSE=function(){var e=window_1.MediaSource=window_1.MediaSource||window_1.WebKitMediaSource,t=window_1.SourceBuffer=window_1.SourceBuffer||window_1.WebKitSourceBuffer,r=e&&typeof e.isTypeSupported=="function"&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function";return IS_IOS?void 0:r&&n}(),browser=(Object.freeze||Object)({USER_AGENT,IS_IPAD,IS_IPHONE,IS_IPOD,IS_IOS,IOS_VERSION,IOS_VERSION_ARRAY,IS_ANDROID,ANDROID_VERSION,IS_TBS,TBS_VERSION,IS_MQQB,IS_QQB,IS_PC_WECHAT,IS_WECHAT,IS_MQQ,IS_OLD_ANDROID,IS_NATIVE_ANDROID,IS_FIREFOX,IS_EDGE,IS_EDG,IS_EDGA,EDG_VERSION,EDGA_VERSION,IS_CHROME,CHROME_VERSION,IS_IE8,IE_VERSION,IS_SAFARI,IS_ANY_SAFARI,IS_SIMULATOR,IS_UC,TOUCH_ENABLED,BACKGROUND_SIZE_SUPPORTED,IS_WIN,IS_MAC,WIN_VER,MAC_VER,QQ_VER,EDGE_VER,SAFARI_VER,FIREFOX_VER,CHROME_VER,IS_HUAWEI,IS_XIAOMI,IS_OPPO,IS_VIVO,IS_SX,IS_ONE,IS_CP,IS_ZX,isWebRTCAPISupported,isWebRTCSupported,IS_ENABLED_MSE}),_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},inherits=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t},taggedTemplateLiteralLoose=function(e,t){return e.raw=t,e},toString=Object.prototype.toString,keys=function(e){return isObject$1(e)?Object.keys(e):[]},log$1=void 0,level="info",history=[],logByType=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!!IE_VERSION&&IE_VERSION<11,n=log$1.levels[level],s=new RegExp("^("+n+")$");if(e!=="log"&&t.unshift(e.toUpperCase()+":"),history&&history.push([].concat(t)),(log$1.enableLog||e!="log")&&(t.unshift("TCPlayer:"),window_1.console)){var a=window_1.console[e];a||e!=="debug"||(a=window_1.console.info||window_1.console.log),a&&n&&s.test(e)&&(r&&(t=t.map(function(l){if(isObject$1(l)||Array.isArray(l))try{return JSON.stringify(l)}catch(u){return String(l)}return String(l)}).join(" ")),a.apply?a[Array.isArray(t)?"apply":"call"](window_1.console,t):a(t))}};log$1=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];logByType("log",t)},log$1.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:level},log$1.level=function(e){if(typeof e=="string"){if(!log$1.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');level=e}return level},log$1.history=function(){return history?[].concat(history):[]},log$1.history.clear=function(){history&&(history.length=0)},log$1.history.disable=function(){history!==null&&(history.length=0,history=null)},log$1.history.enable=function(){history===null&&(history=[])},log$1.enableLog=!1,log$1.error=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return logByType("error",t)},log$1.warn=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return logByType("warn",t)},log$1.debug=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return logByType("debug",t)};var log$2=log$1,tsml=function(e){for(var t="",r=0;r<arguments.length;r++)t+=clean(e[r])+(arguments[r+1]||"");return t},_templateObject=taggedTemplateLiteralLoose([`Setting attributes in the second argument of createEl()
  176. has been deprecated. Use the third argument instead.
  177. createEl(type, properties, attributes). Attempting to set `," to ","."],[`Setting attributes in the second argument of createEl()
  178. has been deprecated. Use the third argument instead.
  179. createEl(type, properties, attributes). Attempting to set `," to ","."]),$=createQuerier("querySelector"),$$=createQuerier("querySelectorAll"),Dom=(Object.freeze||Object)({isReal,isEl,isInFrame,createEl,textContent,prependTo,hasClass,addClass,removeClass,toggleClass,setAttributes,getAttributes,getAttribute,setAttribute,removeAttribute,blockTextSelection,unblockTextSelection,getBoundingClientRect,findPosition,getPointerPosition,isTextNode,emptyEl,normalizeContent,appendContent,insertContent,isSingleLeftClick,$,$$}),_guid=1,elData={},elIdAttr="vdata"+new Date().getTime(),_supportsPassive=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){_supportsPassive=!0}});window_1.addEventListener("test",null,e),window_1.removeEventListener("test",null,e)}catch(t){}})();var passiveEvents=["touchstart","touchmove"],Events=(Object.freeze||Object)({fixEvent,on,off,trigger,one}),_windowLoaded=!1,videojs$2=void 0,autoSetup=function(){if(isReal()){var e=document_1.getElementsByTagName("video"),t=document_1.getElementsByTagName("audio"),r=document_1.getElementsByTagName("video-js"),n=[];if(e&&e.length>0)for(var s=0,a=e.length;s<a;s++)n.push(e[s]);if(t&&t.length>0)for(var l=0,u=t.length;l<u;l++)n.push(t[l]);if(r&&r.length>0)for(var p=0,d=r.length;p<d;p++)n.push(r[p]);if(n&&n.length>0)for(var f=0,_=n.length;f<_;f++){var y=n[f];if(!y||!y.getAttribute){autoSetupTimeout(1);break}if(y.player===void 0){var b=y.getAttribute("data-setup");b!==null&&videojs$2(y)}}else _windowLoaded||autoSetupTimeout(1)}};isReal()&&document_1.readyState==="complete"?_windowLoaded=!0:one(window_1,"load",function(){_windowLoaded=!0});var createStyleElement=function(e){var t=document_1.createElement("style");return t.className=e,t},setTextContent=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},bind=function(e,t,r){t.guid||(t.guid=newGUID());var n=function(){return t.apply(e,arguments)};return n.guid=r?r+"_"+t.guid:t.guid,n},throttle=function(e,t){var r=Date.now();return function(){var n=Date.now();n-r>=t&&(e.apply(void 0,arguments),r=n)}},EventTarget=function(){};EventTarget.prototype.allowedEvents_={},EventTarget.prototype.on=function(e,t){var r=this.addEventListener;this.addEventListener=function(){},on(this,e,t),this.addEventListener=r},EventTarget.prototype.addEventListener=EventTarget.prototype.on,EventTarget.prototype.off=function(e,t){off(this,e,t)},EventTarget.prototype.removeEventListener=EventTarget.prototype.off,EventTarget.prototype.one=function(e,t){var r=this.addEventListener;this.addEventListener=function(){},one(this,e,t),this.addEventListener=r},EventTarget.prototype.trigger=function(e){var t=e.type||e;typeof e=="string"&&(e={type:t}),e=fixEvent(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),trigger(this,e)},EventTarget.prototype.dispatchEvent=EventTarget.prototype.trigger;var isEvented=function(e){return e instanceof EventTarget||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return typeof e[t]=="function"})},isValidEventType=function(e){return typeof e=="string"&&/\S/.test(e)||Array.isArray(e)&&!!e.length},validateTarget=function(e){if(!e.nodeName&&!isEvented(e))throw new Error("Invalid target; must be a DOM node or evented object.")},validateEventType=function(e){if(!isValidEventType(e))throw new Error("Invalid event type; must be a non-empty string or array.")},validateListener=function(e){if(typeof e!="function")throw new Error("Invalid listener; must be a function.")},normalizeListenArgs=function(e,t){var r=t.length<3||t[0]===e||t[0]===e.eventBusEl_,n=void 0,s=void 0,a=void 0;return r?(n=e.eventBusEl_,t.length>=3&&t.shift(),s=t[0],a=t[1]):(n=t[0],s=t[1],a=t[2]),validateTarget(n),validateEventType(s),validateListener(a),a=bind(e,a),{isTargetingSelf:r,target:n,type:s,listener:a}},listen=function(e,t,r,n){validateTarget(e),e.nodeName?Events[t](e,r,n):e[t](r,n)},EventedMixin={on:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var s=normalizeListenArgs(this,r),a=s.isTargetingSelf,l=s.target,u=s.type,p=s.listener;if(listen(l,"on",u,p),!a){var d=function(){return e.off(l,u,p)};d.guid=p.guid;var f=function(){return e.off("dispose",d)};f.guid=p.guid,listen(this,"on","dispose",d),listen(l,"on","dispose",f)}},one:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var s=normalizeListenArgs(this,r),a=s.isTargetingSelf,l=s.target,u=s.type,p=s.listener;if(a)listen(l,"one",u,p);else{var d=function f(){for(var _=arguments.length,y=Array(_),b=0;b<_;b++)y[b]=arguments[b];e.off(l,u,f),p.apply(null,y)};d.guid=p.guid,listen(l,"one",u,d)}},off:function(e,t,r){if(!e||isValidEventType(e))isValidEventType(t)?off(this.eventBusEl_,t,r):off(this.eventBusEl_,e,t);else{var n=e,s=t;validateTarget(n),validateEventType(s),validateListener(r),r=bind(this,r),this.off("dispose",r),n.nodeName?(off(n,s,r),off(n,"dispose",r)):isEvented(n)&&(n.off(s,r),n.off("dispose",r))}},trigger:function(e,t){return trigger(this.eventBusEl_,e,t)}},StatefulMixin={state:{},setState:function(e){var t=this;typeof e=="function"&&(e=e());var r=void 0;return each(e,function(n,s){t.state[s]!==n&&(r=r||{},r[s]={from:t.state[s],to:n}),t.state[s]=n}),r&&isEvented(this)&&this.trigger({changes:r,type:"statechanged"}),r}},Component=function(){function e(t,r,n){if(classCallCheck(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=extend(!0,{},this.options_),r=this.options_=mergeOptions(this.options_,r),this.id_=r.id||r.el&&r.el.id,!this.id_){var s=t&&t.id&&t.id()||"no_player";this.id_=s+"_component_"+newGUID()}this.name_=r.name||null,r.el?this.el_=r.el:r.createEl!==!1&&(this.el_=this.createEl()),r.evented!==!1&&evented(this,{eventBusKey:this.el_?"el_":null}),stateful(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},r.initChildren!==!1&&this.initChildren(),this.ready(n),r.reportTouchActivity!==!1&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),removeData(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(t){return log$2.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=mergeOptions(this.options_,t),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(t,r,n){return createEl(t,r,n)},e.prototype.localize=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,s=this.player_.language&&this.player_.language(),a=this.player_.languages&&this.player_.languages(),l=a&&a[s],u=s&&s.split("-")[0],p=a&&a[u],d=n;return l&&l[t]?d=l[t]:p&&p[t]&&(d=p[t]),r&&(d=d.replace(/\{(\d+)\}/g,function(f,_){var y=r[_-1],b=y;return y===void 0&&(b=f),b})),d},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(t){return this.childIndex_[t]},e.prototype.getChild=function(t){if(t)return t=toTitleCase(t),this.childNameIndex_[t]},e.prototype.addChild=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.children_.length,s=void 0,a=void 0;if(typeof t=="string"){a=toTitleCase(t);var l=r.componentClass||a;r.name=a;var u=e.getComponent(l);if(!u)throw new Error("Component "+l+" does not exist");if(typeof u!="function")return null;s=new u(this.player_||this,r)}else s=t;if(this.children_.splice(n,0,s),typeof s.id=="function"&&(this.childIndex_[s.id()]=s),a=a||s.name&&toTitleCase(s.name()),a&&(this.childNameIndex_[a]=s),typeof s.el=="function"&&s.el()){var p=this.contentEl().children,d=p[n]||null;this.contentEl().insertBefore(s.el(),d)}return s},e.prototype.removeChild=function(t){if(typeof t=="string"&&(t=this.getChild(t)),t&&this.children_){for(var r=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){r=!0,this.children_.splice(n,1);break}if(r){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var s=t.el();s&&s.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},e.prototype.initChildren=function(){var t=this,r=this.options_.children;if(r){var n=this.options_,s=function(u){var p=u.name,d=u.opts;if(n[p]!==void 0&&(d=n[p]),d!==!1){d===!0&&(d={}),d.playerOptions=t.options_.playerOptions;var f=t.addChild(p,d);f&&(t[p]=f)}},a=void 0,l=e.getComponent("Tech");a=Array.isArray(r)?r:Object.keys(r),a.concat(Object.keys(this.options_).filter(function(u){return!a.some(function(p){return typeof p=="string"?u===p:u===p.name})})).map(function(u){var p=void 0,d=void 0;return typeof u=="string"?(p=u,d=r[p]||t.options_[p]||{}):(p=u.name,d=u),{name:p,opts:d}}).filter(function(u){var p=e.getComponent(u.opts.componentClass||toTitleCase(u.name));return p&&!l.isTech(p)}).forEach(s)}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(t){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(t)return this.isReady_?void(r?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(r){r.call(this)},this),this.trigger("ready")},1)},e.prototype.$=function(t,r){return $(t,r||this.contentEl())},e.prototype.$$=function(t,r){return $$(t,r||this.contentEl())},e.prototype.hasClass=function(t){return hasClass(this.el_,t)},e.prototype.addClass=function(t){addClass(this.el_,t)},e.prototype.removeClass=function(t){removeClass(this.el_,t)},e.prototype.toggleClass=function(t,r){toggleClass(this.el_,t,r)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(t){return getAttribute(this.el_,t)},e.prototype.setAttribute=function(t,r){setAttribute(this.el_,t,r)},e.prototype.removeAttribute=function(t){removeAttribute(this.el_,t)},e.prototype.width=function(t,r){return this.dimension("width",t,r)},e.prototype.height=function(t,r){return this.dimension("height",t,r)},e.prototype.dimensions=function(t,r){this.width(t,!0),this.height(r)},e.prototype.dimension=function(t,r,n){if(r!==void 0)return r!==null&&r===r||(r=0),(""+r).indexOf("%")!==-1||(""+r).indexOf("px")!==-1?this.el_.style[t]=r:this.el_.style[t]=r==="auto"?"":r+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var s=this.el_.style[t],a=s.indexOf("px");return parseInt(a!==-1?s.slice(0,a):this.el_["offset"+toTitleCase(t)],10)},e.prototype.currentDimension=function(t){var r=0;if(t!=="width"&&t!=="height")throw new Error("currentDimension only accepts width or height value");if(typeof window_1.getComputedStyle=="function"){var n=window_1.getComputedStyle(this.el_);r=n.getPropertyValue(t)||n[t]}if((r=parseFloat(r))===0){var s="offset"+toTitleCase(t);r=this.el_[s]}return r},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var t=0,r=null,n=void 0;this.on("touchstart",function(a){a.touches.length===1&&(r={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY},t=new Date().getTime(),n=!0)}),this.on("touchmove",function(a){if(a.touches.length>1)n=!1;else if(r){var l=a.touches[0].pageX-r.pageX,u=a.touches[0].pageY-r.pageY,p=Math.sqrt(l*l+u*u);p>10&&(n=!1)}});var s=function(){n=!1};this.on("touchleave",s),this.on("touchcancel",s),this.on("touchend",function(a){r=null,n===!0&&new Date().getTime()-t<200&&(a.preventDefault(),this.trigger("tap"))})},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=bind(this.player(),this.player().reportUserActivity),r=void 0;this.on("touchstart",function(){t(),this.clearInterval(r),r=this.setInterval(t,250)});var n=function(s){t(),this.clearInterval(r)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},e.prototype.setTimeout=function(t,r){var n=this;t=bind(this,t);var s=window_1.setTimeout(t,r),a=function(){return n.clearTimeout(s)};return a.guid="vjs-timeout-"+s,this.on("dispose",a),s},e.prototype.clearTimeout=function(t){window_1.clearTimeout(t);var r=function(){};return r.guid="vjs-timeout-"+t,this.off("dispose",r),t},e.prototype.setInterval=function(t,r){var n=this;t=bind(this,t);var s=window_1.setInterval(t,r),a=function(){return n.clearInterval(s)};return a.guid="vjs-interval-"+s,this.on("dispose",a),s},e.prototype.clearInterval=function(t){window_1.clearInterval(t);var r=function(){};return r.guid="vjs-interval-"+t,this.off("dispose",r),t},e.prototype.requestAnimationFrame=function(t){var r=this;if(this.supportsRaf_){t=bind(this,t);var n=window_1.requestAnimationFrame(t),s=function(){return r.cancelAnimationFrame(n)};return s.guid="vjs-raf-"+n,this.on("dispose",s),n}return this.setTimeout(t,1e3/60)},e.prototype.cancelAnimationFrame=function(t){if(this.supportsRaf_){window_1.cancelAnimationFrame(t);var r=function(){};return r.guid="vjs-raf-"+t,this.off("dispose",r),t}return this.clearTimeout(t)},e.registerComponent=function(t,r){if(typeof t!="string"||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n=e.getComponent("Tech"),s=n&&n.isTech(r),a=e===r||e.prototype.isPrototypeOf(r.prototype);if(s||!a){var l=void 0;throw l=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+l+".")}t=toTitleCase(t),e.components_||(e.components_={});var u=e.getComponent("Player");if(t==="Player"&&u&&u.players){var p=u.players,d=Object.keys(p);if(p&&d.length>0&&d.map(function(f){return p[f]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=r,r},e.getComponent=function(t){if(t)return t=toTitleCase(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();Component.prototype.supportsRaf_=typeof window_1.requestAnimationFrame=="function"&&typeof window_1.cancelAnimationFrame=="function",Component.registerComponent("Component",Component);for(var EXT_MIME={m3u8:"application/x-mpegURL",flv:"video/flv",mp4:"video/mp4",webm:"video/webm",rtmp:"rtmp/flv",mpd:"application/dash+xml",mp3:"audio/mpeg"},SERVER_PATH="//playvideo.qcloud.com",SERVER_PATH_V3="//playvideo.qcloud.com",SERVER_PATH_V4="//playvideo.qcloud.com",SERVER_PATH_BACKUP="//bkplayvideo.qcloud.com",LICENSE_PATH="https://drm.vod2.myqcloud.com/getlicense/v1",HLS_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/hls.min.1.1.6.js",FLV_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/flv.min.1.6.3.js",WEBRTC_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/TXLivePlayer-1.3.0.min.js",DASH_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/dash.all.min.v3.1.3.js",XP2P_HLS_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/hlsp2p.min.1.6.28.js",XP2P_FLV_PATH="https://web.sdk.qcloud.com/player/tcplayer/release/v"+version+"/libs/qvbp2p_common.min.1.8.29.js",parseUrl=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],r=document_1.createElement("a");r.href=e;var n=r.host===""&&r.protocol!=="file:",s=void 0;n&&(s=document_1.createElement("div"),s.innerHTML='<a href="'+e+'"></a>',r=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),document_1.body.appendChild(s));for(var a={},l=0;l<t.length;l++)a[t[l]]=r[t[l]];return a.protocol==="http:"&&(a.host=a.host.replace(/:80$/,"")),a.protocol==="https:"&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=window_1.location.protocol),n&&document_1.body.removeChild(s),a},getAbsoluteURL=function(e){if(!e.match(/^https?:\/\//)){var t=document_1.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},getFileExtension=function(e){if(typeof e=="string"){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,r=t.exec(e);if(r)return r.pop().toLowerCase()}return""},isCrossOrigin=function(e){var t=window_1.location,r=parseUrl(e);return(r.protocol===":"?t.protocol:r.protocol)+r.host!==t.protocol+t.host},Url=(Object.freeze||Object)({parseUrl,getAbsoluteURL,getFileExtension,isCrossOrigin}),FullscreenApi={},apiMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],specApi=apiMap[0],browserApi=void 0,prefixedAPI=!1,i$1=0;i$1<apiMap.length;i$1++)if(apiMap[i$1][1]in document_1){browserApi=apiMap[i$1];break}if(browserApi){for(var _i=0;_i<browserApi.length;_i++)FullscreenApi[specApi[_i]]=browserApi[_i];prefixedAPI=browserApi[0]===specApi[0]}MediaError.prototype.code=0,MediaError.prototype.message="",MediaError.prototype.status=null,MediaError.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],MediaError.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var errNum=0;errNum<MediaError.errorTypes.length;errNum++)MediaError[MediaError.errorTypes[errNum]]=errNum,MediaError.prototype[MediaError.errorTypes[errNum]]=errNum;var tuple=SafeParseTuple,trackToJson_=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,r,n){return e[r]&&(t[r]=e[r]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},textTracksToJson=function(e){var t=e.$$("track"),r=Array.prototype.map.call(t,function(n){return n.track});return Array.prototype.map.call(t,function(n){var s=trackToJson_(n.track);return n.src&&(s.src=n.src),s}).concat(Array.prototype.filter.call(e.textTracks(),function(n){return r.indexOf(n)===-1}).map(trackToJson_))},jsonToTextTracks=function(e,t){return e.forEach(function(r){var n=t.addRemoteTextTrack(r).track;!r.src&&r.cues&&r.cues.forEach(function(s){return n.addCue(s)})}),t.textTracks()},textTrackConverter={textTracksToJson,jsonToTextTracks,trackToJson_},MODAL_CLASS_NAME="vjs-modal-dialog",ESC=27,ModalDialog=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.opened_=s.hasBeenOpened_=s.hasBeenFilled_=!1,s.closeable(!s.options_.uncloseable),s.content(s.options_.content),s.contentEl_=createEl("div",{className:MODAL_CLASS_NAME+"-content"},{role:"document"}),s.descEl_=createEl("p",{className:MODAL_CLASS_NAME+"-description vjs-control-text",id:s.el().getAttribute("aria-describedby")}),textContent(s.descEl_,s.description()),s.el_.appendChild(s.descEl_),s.el_.appendChild(s.contentEl_),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return MODAL_CLASS_NAME+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(r){r.which===ESC&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=function(){var r=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(r+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),r},t.prototype.open=function(){if(!this.opened_){var r=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!r.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&r.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",bind(this,this.handleKeyPress)),this.hadControls_=r.controls(),r.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(r){return typeof r=="boolean"&&this[r?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var r=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&r.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",bind(this,this.handleKeyPress)),this.hadControls_&&r.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=function(r){if(typeof r=="boolean"){var n=this.closeable_=!!r,s=this.getChild("closeButton");if(n&&!s){var a=this.contentEl_;this.contentEl_=this.el_,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=a,this.on(s,"close",this.close)}!n&&s&&(this.off(s,"close",this.close),this.removeChild(s),s.dispose())}return this.closeable_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(r){var n=this.contentEl(),s=n.parentNode,a=n.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,s.removeChild(n),this.empty(),insertContent(n,r),this.trigger("modalfill"),a?s.insertBefore(n,a):s.appendChild(n);var l=this.getChild("closeButton");l&&s.appendChild(l.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),emptyEl(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(r){return r!==void 0&&(this.content_=r),this.content_},t.prototype.conditionalFocus_=function(){var r=document_1.activeElement,n=this.player_.el_;this.previouslyActiveEl_=null,(n.contains(r)||n===r)&&(this.previouslyActiveEl_=r,this.focus(),this.on(document_1,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(document_1,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(r){if(r.which===9){for(var n=this.focusableEls_(),s=this.el_.querySelector(":focus"),a=void 0,l=0;l<n.length;l++)if(s===n[l]){a=l;break}document_1.activeElement===this.el_&&(a=0),r.shiftKey&&a===0?(n[n.length-1].focus(),r.preventDefault()):r.shiftKey||a!==n.length-1||(n[0].focus(),r.preventDefault())}},t.prototype.focusableEls_=function(){var r=this.el_.querySelectorAll("*");return Array.prototype.filter.call(r,function(n){return(n instanceof window_1.HTMLAnchorElement||n instanceof window_1.HTMLAreaElement)&&n.hasAttribute("href")||(n instanceof window_1.HTMLInputElement||n instanceof window_1.HTMLSelectElement||n instanceof window_1.HTMLTextAreaElement||n instanceof window_1.HTMLButtonElement)&&!n.hasAttribute("disabled")||n instanceof window_1.HTMLIFrameElement||n instanceof window_1.HTMLObjectElement||n instanceof window_1.HTMLEmbedElement||n.hasAttribute("tabindex")&&n.getAttribute("tabindex")!==-1||n.hasAttribute("contenteditable")})},t}(Component);ModalDialog.prototype.options_={pauseOnOpen:!0,temporary:!0},Component.registerComponent("ModalDialog",ModalDialog);var TrackList=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;classCallCheck(this,t);var a=possibleConstructorReturn(this,e.call(this));if(!s&&(s=a,IS_IE8)){s=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(s[l]=t.prototype[l])}s.tracks_=[],Object.defineProperty(s,"length",{get:function(){return this.tracks_.length}});for(var u=0;u<n.length;u++)s.addTrack(n[u]);return r=s,possibleConstructorReturn(a,r)}return inherits(t,e),t.prototype.addTrack=function(r){var n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),this.tracks_.indexOf(r)===-1&&(this.tracks_.push(r),this.trigger({track:r,type:"addtrack"}))},t.prototype.removeTrack=function(r){for(var n=void 0,s=0,a=this.length;s<a;s++)if(this[s]===r){n=this[s],n.off&&n.off(),this.tracks_.splice(s,1);break}n&&this.trigger({track:n,type:"removetrack"})},t.prototype.getTrackById=function(r){for(var n=null,s=0,a=this.length;s<a;s++){var l=this[s];if(l.id===r){n=l;break}}return n},t}(EventTarget);TrackList.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var event$1 in TrackList.prototype.allowedEvents_)TrackList.prototype["on"+event$1]=null;var disableOthers=function(e,t){for(var r=0;r<e.length;r++)Object.keys(e[r]).length&&t.id!==e[r].id&&(e[r].enabled=!1)},AudioTrackList=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);for(var a=void 0,l=s.length-1;l>=0;l--)if(s[l].enabled){disableOthers(s,s[l]);break}if(IS_IE8){a=document_1.createElement("custom");for(var u in TrackList.prototype)u!=="constructor"&&(a[u]=TrackList.prototype[u]);for(var p in t.prototype)p!=="constructor"&&(a[p]=t.prototype[p])}return a=r=possibleConstructorReturn(this,e.call(this,s,a)),a.changing_=!1,n=a,possibleConstructorReturn(r,n)}return inherits(t,e),t.prototype.addTrack=function(r){var n=this;r.enabled&&disableOthers(this,r),e.prototype.addTrack.call(this,r),r.addEventListener&&r.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,disableOthers(n,r),n.changing_=!1,n.trigger("change"))})},t}(TrackList),disableOthers$1=function(e,t){for(var r=0;r<e.length;r++)Object.keys(e[r]).length&&t.id!==e[r].id&&(e[r].selected=!1)},VideoTrackList=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);for(var a=void 0,l=s.length-1;l>=0;l--)if(s[l].selected){disableOthers$1(s,s[l]);break}if(IS_IE8){a=document_1.createElement("custom");for(var u in TrackList.prototype)u!=="constructor"&&(a[u]=TrackList.prototype[u]);for(var p in t.prototype)p!=="constructor"&&(a[p]=t.prototype[p])}return a=r=possibleConstructorReturn(this,e.call(this,s,a)),a.changing_=!1,Object.defineProperty(a,"selectedIndex",{get:function(){for(var d=0;d<this.length;d++)if(this[d].selected)return d;return-1},set:function(){}}),n=a,possibleConstructorReturn(r,n)}return inherits(t,e),t.prototype.addTrack=function(r){var n=this;r.selected&&disableOthers$1(this,r),e.prototype.addTrack.call(this,r),r.addEventListener&&r.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,disableOthers$1(n,r),n.changing_=!1,n.trigger("change"))})},t}(TrackList),TextTrackList=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);var a=void 0;if(IS_IE8){a=document_1.createElement("custom");for(var l in TrackList.prototype)l!=="constructor"&&(a[l]=TrackList.prototype[l]);for(var u in t.prototype)u!=="constructor"&&(a[u]=t.prototype[u])}return a=r=possibleConstructorReturn(this,e.call(this,s,a)),n=a,possibleConstructorReturn(r,n)}return inherits(t,e),t.prototype.addTrack=function(r){if(r.mode==="disabled"&&!r.label)return!1;e.prototype.addTrack.call(this,r),r.addEventListener("modechange",bind(this,function(){this.trigger("change")})),["metadata","chapters"].indexOf(r.kind)===-1&&r.addEventListener("modechange",bind(this,function(){this.trigger("selectedlanguagechange")}))},t}(TrackList),HtmlTrackElementList=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,e);var r=this;if(IS_IE8){r=document_1.createElement("custom");for(var n in e.prototype)n!=="constructor"&&(r[n]=e.prototype[n])}r.trackElements_=[],Object.defineProperty(r,"length",{get:function(){return this.trackElements_.length}});for(var s=0,a=t.length;s<a;s++)r.addTrackElement_(t[s]);if(IS_IE8)return r}return e.prototype.addTrackElement_=function(t){var r=this.trackElements_.length;""+r in this||Object.defineProperty(this,r,{get:function(){return this.trackElements_[r]}}),this.trackElements_.indexOf(t)===-1&&this.trackElements_.push(t)},e.prototype.getTrackElementByTrack_=function(t){for(var r=void 0,n=0,s=this.trackElements_.length;n<s;n++)if(t===this.trackElements_[n].track){r=this.trackElements_[n];break}return r},e.prototype.removeTrackElement_=function(t){for(var r=0,n=this.trackElements_.length;r<n;r++)if(t===this.trackElements_[r]){this.trackElements_.splice(r,1);break}},e}(),TextTrackCueList=function(){function e(t){classCallCheck(this,e);var r=this;if(IS_IE8){r=document_1.createElement("custom");for(var n in e.prototype)n!=="constructor"&&(r[n]=e.prototype[n])}if(e.prototype.setCues_.call(r,t),Object.defineProperty(r,"length",{get:function(){return this.length_}}),IS_IE8)return r}return e.prototype.setCues_=function(t){var r=this.length||0,n=0,s=t.length;this.cues_=t,this.length_=t.length;var a=function(l){""+l in this||Object.defineProperty(this,""+l,{get:function(){return this.cues_[l]}})};if(r<s)for(n=r;n<s;n++)a.call(this,n)},e.prototype.getCueById=function(t){for(var r=null,n=0,s=this.length;n<s;n++){var a=this[n];if(a.id===t){r=a;break}}return r},e}(),VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"},Track=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this)),a=s;if(IS_IE8){a=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(a[l]=t.prototype[l])}var u={id:n.id||(n.id===0?0:"vjs_track_"+newGUID()),kind:n.kind||"",label:n.label||"",language:n.language||""};for(var p in u)(function(d){Object.defineProperty(a,d,{get:function(){return u[d]},set:function(){}})})(p);return r=a,possibleConstructorReturn(s,r)}return inherits(t,e),t}(EventTarget),isFunction_1=isFunction$1,toString$1=Object.prototype.toString,trim=function(e){return e.replace(/^\s+|\s+$/g,"")},isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"},parseHeaders=function(e){if(!e)return{};for(var t={},r=trim(e).split(`
  180. `),n=0;n<r.length;n++){var s=r[n],a=s.indexOf(":"),l=trim(s.slice(0,a)).toLowerCase(),u=trim(s.slice(a+1));typeof t[l]>"u"?t[l]=u:isArray(t[l])?t[l].push(u):t[l]=[t[l],u]}return t},immutable=extend$1,hasOwnProperty=Object.prototype.hasOwnProperty,xhr=createXHR;createXHR.XMLHttpRequest=window_1.XMLHttpRequest||noop,createXHR.XDomainRequest="withCredentials"in new createXHR.XMLHttpRequest?createXHR.XMLHttpRequest:window_1.XDomainRequest,forEachArray(["get","put","post","patch","head","delete"],function(e){createXHR[e==="delete"?"del":e]=function(t,r,n){return r=initParams(t,r,n),r.method=e.toUpperCase(),_createXHR(r)}});var parseCues=function(e,t){var r=new window_1.WebVTT.Parser(window_1,window_1.vttjs,window_1.WebVTT.StringDecoder()),n=[];r.oncue=function(s){t.addCue(s)},r.onparsingerror=function(s){n.push(s)},r.onflush=function(){t.trigger({type:"loadeddata",target:t})},r.parse(e),n.length>0&&(window_1.console&&window_1.console.groupCollapsed&&window_1.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(s){return log$2.error(s)}),window_1.console&&window_1.console.groupEnd&&window_1.console.groupEnd()),r.flush()},loadTrack=function(e,t){var r={uri:e},n=isCrossOrigin(e);n&&(r.cors=n),xhr(r,bind(this,function(s,a,l){if(s)return log$2.error(s,a);if(t.loaded_=!0,typeof window_1.WebVTT!="function"){if(t.tech_){var u=function(){return parseCues(l,t)};t.tech_.on("vttjsloaded",u),t.tech_.on("vttjserror",function(){log$2.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",u)})}}else parseCues(l,t)}))},TextTrack=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(classCallCheck(this,t),!s.tech)throw new Error("A tech was not provided.");var a=mergeOptions(s,{kind:TextTrackKind[s.kind]||s.kind||"subtitles",language:s.language||s.srclang||""}),l=TextTrackMode[a.mode]||"disabled",u=a.default;a.kind!=="metadata"&&a.kind!=="chapters"||(l="hidden");var p=r=possibleConstructorReturn(this,e.call(this,a));if(p.tech_=a.tech,IS_IE8)for(var d in t.prototype)d!=="constructor"&&(p[d]=t.prototype[d]);p.cues_=[],p.activeCues_=[];var f=new TextTrackCueList(p.cues_),_=new TextTrackCueList(p.activeCues_),y=!1,b=bind(p,function(){this.activeCues,y&&(this.trigger("cuechange"),y=!1)});return l!=="disabled"&&p.tech_.ready(function(){p.tech_.on("timeupdate",b)},!0),Object.defineProperty(p,"default",{get:function(){return u},set:function(){}}),Object.defineProperty(p,"mode",{get:function(){return l},set:function(g){var m=this;TextTrackMode[g]&&(l=g,l==="showing"&&this.tech_.ready(function(){m.tech_.on("timeupdate",b)},!0),this.trigger("modechange"))}}),Object.defineProperty(p,"cues",{get:function(){return this.loaded_?f:null},set:function(){}}),Object.defineProperty(p,"activeCues",{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return _;for(var g=this.tech_.currentTime(),m=[],C=0,S=this.cues.length;C<S;C++){var P=this.cues[C];(P.startTime<=g&&P.endTime>=g||P.startTime===P.endTime&&P.startTime<=g&&P.startTime+.5>=g)&&m.push(P)}if(y=!1,m.length!==this.activeCues_.length)y=!0;else for(var A=0;A<m.length;A++)this.activeCues_.indexOf(m[A])===-1&&(y=!0);return this.activeCues_=m,_.setCues_(this.activeCues_),_},set:function(){}}),a.src?(p.src=a.src,loadTrack(a.src,p)):p.loaded_=!0,n=p,possibleConstructorReturn(r,n)}return inherits(t,e),t.prototype.addCue=function(r){var n=r;if(window_1.vttjs&&!(r instanceof window_1.vttjs.VTTCue)){n=new window_1.vttjs.VTTCue(r.startTime,r.endTime,r.text);for(var s in r)s in n||(n[s]=r[s]);n.id=r.id,n.originalCue_=r}for(var a=this.tech_.textTracks(),l=0;l<a.length;l++)a[l]!==this&&a[l].removeCue(n);this.cues_.push(n),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(r){for(var n=this.cues_.length;n--;){var s=this.cues_[n];if(s===r||s.originalCue_&&s.originalCue_===r){this.cues_.splice(n,1),this.cues.setCues_(this.cues_);break}}},t}(Track);TextTrack.prototype.allowedEvents_={cuechange:"cuechange"};var AudioTrack=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var a=mergeOptions(s,{kind:AudioTrackKind[s.kind]||""}),l=r=possibleConstructorReturn(this,e.call(this,a)),u=!1;if(IS_IE8)for(var p in t.prototype)p!=="constructor"&&(l[p]=t.prototype[p]);return Object.defineProperty(l,"enabled",{get:function(){return u},set:function(d){typeof d=="boolean"&&d!==u&&(u=d,this.trigger("enabledchange"))}}),a.enabled&&(l.enabled=a.enabled),l.loaded_=!0,n=l,possibleConstructorReturn(r,n)}return inherits(t,e),t}(Track),VideoTrack=function(e){function t(){var r,n,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var a=mergeOptions(s,{kind:VideoTrackKind[s.kind]||""}),l=r=possibleConstructorReturn(this,e.call(this,a)),u=!1;if(IS_IE8)for(var p in t.prototype)p!=="constructor"&&(l[p]=t.prototype[p]);return Object.defineProperty(l,"selected",{get:function(){return u},set:function(d){typeof d=="boolean"&&d!==u&&(u=d,this.trigger("selectedchange"))}}),a.selected&&(l.selected=a.selected),n=l,possibleConstructorReturn(r,n)}return inherits(t,e),t}(Track),NONE=0,LOADING=1,LOADED=2,ERROR=3,HTMLTrackElement=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var n=possibleConstructorReturn(this,e.call(this)),s=void 0,a=n;if(IS_IE8){a=document_1.createElement("custom");for(var l in t.prototype)l!=="constructor"&&(a[l]=t.prototype[l])}var u=new TextTrack(r);if(a.kind=u.kind,a.src=u.src,a.srclang=u.language,a.label=u.label,a.default=u.default,Object.defineProperty(a,"readyState",{get:function(){return s}}),Object.defineProperty(a,"track",{get:function(){return u}}),s=NONE,u.addEventListener("loadeddata",function(){s=LOADED,a.trigger({type:"load",target:a})}),IS_IE8){var p;return p=a,possibleConstructorReturn(n,p)}return n}return inherits(t,e),t}(EventTarget);HTMLTrackElement.prototype.allowedEvents_={load:"load"},HTMLTrackElement.NONE=NONE,HTMLTrackElement.LOADING=LOADING,HTMLTrackElement.LOADED=LOADED,HTMLTrackElement.ERROR=ERROR;var NORMAL={audio:{ListClass:AudioTrackList,TrackClass:AudioTrack,capitalName:"Audio"},video:{ListClass:VideoTrackList,TrackClass:VideoTrack,capitalName:"Video"},text:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"Text"}};Object.keys(NORMAL).forEach(function(e){NORMAL[e].getterName=e+"Tracks",NORMAL[e].privateName=e+"Tracks_"});var REMOTE={remoteText:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:HtmlTrackElementList,TrackClass:HTMLTrackElement,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},ALL=mergeOptions(NORMAL,REMOTE);REMOTE.names=Object.keys(REMOTE),NORMAL.names=Object.keys(NORMAL),ALL.names=[].concat(REMOTE.names).concat(NORMAL.names);var _objCreate=Object.create||function(){function e(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();ParsingError.prototype=_objCreate(Error.prototype),ParsingError.prototype.constructor=ParsingError,ParsingError.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Settings.prototype={set:function(e,t){this.get(e)||t===""||(this.values[e]=t)},get:function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,r){for(var n=0;n<r.length;++n)if(t===r[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var ESCAPE={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},TAG_NAME={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},TAG_ANNOTATION={v:"title",lang:"lang"},NEEDS_PARENT={rt:"ruby"},strongRTLRanges=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];StyleBox.prototype.applyStyles=function(e,t){t=t||this.div;for(var r in e)e.hasOwnProperty(r)&&(t.style[r]=e[r])},StyleBox.prototype.formatStyle=function(e,t){return e===0?0:e+t},CueStyleBox.prototype=_objCreate(StyleBox.prototype),CueStyleBox.prototype.constructor=CueStyleBox,BoxPosition.prototype.move=function(e,t){switch(t=t!==void 0?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},BoxPosition.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},BoxPosition.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},BoxPosition.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},BoxPosition.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},BoxPosition.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},BoxPosition.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},BoxPosition.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,r=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e,{left:e.left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||r}},WebVTT$1.StringDecoder=function(){return{decode:function(e){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},WebVTT$1.convertCueToDOMTree=function(e,t){return e&&t?parseContent(e,t):null},WebVTT$1.processCues=function(e,t,r){if(!e||!t||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=e.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),function(d){for(var f=0;f<d.length;f++)if(d[f].hasBeenReset||!d[f].displayState)return!0;return!1}(t)){var s=[],a=BoxPosition.getSimpleBoxPosition(n),l=Math.round(.05*a.height*100)/100,u={font:l+"px sans-serif"};(function(){for(var d,f,_=0;_<t.length;_++)f=t[_],d=new CueStyleBox(e,f,u),n.appendChild(d.div),moveBoxToLinePosition(e,d,a,s),f.displayState=d.div,s.push(BoxPosition.getSimpleBoxPosition(d))})()}else for(var p=0;p<t.length;p++)n.appendChild(t[p].displayState)},WebVTT$1.Parser=function(e,t,r){r||(r=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=r||new TextDecoder("utf8"),this.regionList=[]},WebVTT$1.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof ParsingError))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){function t(){for(var d=s.buffer,f=0;f<d.length&&d[f]!=="\r"&&d[f]!==`
  181. `;)++f;var _=d.substr(0,f);return d[f]==="\r"&&++f,d[f]===`
  182. `&&++f,s.buffer=d.substr(f),_}function r(d){var f=new Settings;if(parseOptions(d,function(y,b){switch(y){case"id":f.set(y,b);break;case"width":f.percent(y,b);break;case"lines":f.integer(y,b);break;case"regionanchor":case"viewportanchor":var g=b.split(",");if(g.length!==2)break;var m=new Settings;if(m.percent("x",g[0]),m.percent("y",g[1]),!m.has("x")||!m.has("y"))break;f.set(y+"X",m.get("x")),f.set(y+"Y",m.get("y"));break;case"scroll":f.alt(y,b,["up"])}},/=/,/\s/),f.has("id")){var _=new(s.vttjs.VTTRegion||s.window.VTTRegion);_.width=f.get("width",100),_.lines=f.get("lines",3),_.regionAnchorX=f.get("regionanchorX",0),_.regionAnchorY=f.get("regionanchorY",100),_.viewportAnchorX=f.get("viewportanchorX",0),_.viewportAnchorY=f.get("viewportanchorY",100),_.scroll=f.get("scroll",""),s.onregion&&s.onregion(_),s.regionList.push({id:f.get("id"),region:_})}}function n(d){var f=new Settings;parseOptions(d,function(_,y){switch(_){case"MPEGT":f.integer(_+"S",y);break;case"LOCA":f.set(_+"L",parseTimeStamp(y))}},/[^\d]:/,/,/),s.ontimestampmap&&s.ontimestampmap({MPEGTS:f.get("MPEGTS"),LOCAL:f.get("LOCAL")})}var s=this;e&&(s.buffer+=s.decoder.decode(e,{stream:!0}));try{var a;if(s.state==="INITIAL"){if(!/\r\n|\n/.test(s.buffer))return this;a=t();var l=a.match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new ParsingError(ParsingError.Errors.BadSignature);s.state="HEADER"}for(var u=!1;s.buffer;){if(!/\r\n|\n/.test(s.buffer))return this;switch(u?u=!1:a=t(),s.state){case"HEADER":/:/.test(a)?function(d){d.match(/X-TIMESTAMP-MAP/)?parseOptions(d,function(f,_){switch(f){case"X-TIMESTAMP-MAP":n(_)}},/=/):parseOptions(d,function(f,_){switch(f){case"Region":r(_)}},/:/)}(a):a||(s.state="ID");continue;case"NOTE":a||(s.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){s.state="NOTE";break}if(!a)continue;if(s.cue=new(s.vttjs.VTTCue||s.window.VTTCue)(0,0,""),s.state="CUE",a.indexOf("-->")===-1){s.cue.id=a;continue}case"CUE":try{parseCue(a,s.cue,s.regionList)}catch(d){s.reportOrThrowError(d),s.cue=null,s.state="BADCUE";continue}s.state="CUETEXT";continue;case"CUETEXT":var p=a.indexOf("-->")!==-1;if(!a||p&&(u=!0)){s.oncue&&s.oncue(s.cue),s.cue=null,s.state="ID";continue}s.cue.text&&(s.cue.text+=`
  183. `),s.cue.text+=a;continue;case"BADCUE":a||(s.state="ID");continue}}}catch(d){s.reportOrThrowError(d),s.state==="CUETEXT"&&s.cue&&s.oncue&&s.oncue(s.cue),s.cue=null,s.state=s.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||e.state==="HEADER")&&(e.buffer+=`
  184. `,e.parse()),e.state==="INITIAL")throw new ParsingError(ParsingError.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var vtt$1=WebVTT$1,autoKeyword="auto",directionSetting={"":!0,lr:!0,rl:!0},alignSetting={start:!0,middle:!0,end:!0,left:!0,right:!0};VTTCue.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var vttcue=VTTCue,scrollSetting={"":!0,up:!0},vttregion=VTTRegion,browserIndex=createCommonjsModule(function(e){var t=e.exports={WebVTT:vtt$1,VTTCue:vttcue,VTTRegion:vttregion};window_1.vttjs=t,window_1.WebVTT=t.WebVTT;var r=t.VTTCue,n=t.VTTRegion,s=window_1.VTTCue,a=window_1.VTTRegion;t.shim=function(){window_1.VTTCue=r,window_1.VTTRegion=n},t.restore=function(){window_1.VTTCue=s,window_1.VTTRegion=a},window_1.VTTCue||t.shim()}),Tech=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};classCallCheck(this,t),n.reportTouchActivity=!1;var a=possibleConstructorReturn(this,e.call(this,r,n,s));return a.hasStarted_=!1,a.on("playing",function(){this.hasStarted_=!0}),a.on("loadstart",function(){this.hasStarted_=!1}),ALL.names.forEach(function(l){var u=ALL[l];n&&n[u.getterName]&&(a[u.privateName]=n[u.getterName])}),a.featuresProgressEvents||a.manualProgressOn(),a.featuresTimeupdateEvents||a.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(l){n["native"+l+"Tracks"]===!1&&(a["featuresNative"+l+"Tracks"]=!1)}),n.nativeCaptions===!1||n.nativeTextTracks===!1?a.featuresNativeTextTracks=!1:n.nativeCaptions!==!0&&n.nativeTextTracks!==!0||(a.featuresNativeTextTracks=!0),a.featuresNativeTextTracks||a.emulateTextTracks(),a.autoRemoteTextTracks_=new ALL.text.ListClass,a.initTrackListeners(),n.nativeControlsForTouch||a.emitTapEvents(),a.constructor&&(a.name_=a.constructor.name||"Unknown Tech"),a}return inherits(t,e),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(r){this.stopTrackingProgress(),this.progressInterval=this.setInterval(bind(this,function(){var n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress"),this.bufferedPercent_=n,n===1&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(r){this.duration_=this.duration()},t.prototype.buffered=function(){return createTimeRanges(0,0)},t.prototype.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(NORMAL.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(r){var n=this;r=[].concat(r),r.forEach(function(s){for(var a=n[s+"Tracks"]()||[],l=a.length;l--;){var u=a[l];s==="text"&&n.removeRemoteTextTrack(u),a.removeTrack(u)}})},t.prototype.cleanupAutoTextTracks=function(){for(var r=this.autoRemoteTextTracks_||[],n=r.length;n--;){var s=r[n];this.removeRemoteTextTrack(s)}},t.prototype.reset=function(){},t.prototype.error=function(r){return r!==void 0&&(this.error_=new MediaError(r),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?createTimeRanges(0,0):createTimeRanges()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var r=this;NORMAL.names.forEach(function(n){var s=NORMAL[n],a=function(){r.trigger(n+"trackchange")},l=r[s.getterName]();l.addEventListener("removetrack",a),l.addEventListener("addtrack",a),r.on("dispose",function(){l.removeEventListener("removetrack",a),l.removeEventListener("addtrack",a)})})},t.prototype.addWebVttScript_=function(){var r=this;if(!window_1.WebVTT)if(document_1.body.contains(this.el())){if(!this.options_["vtt.js"]&&isPlain(browserIndex)&&Object.keys(browserIndex).length>0)return void this.trigger("vttjsloaded");var n=document_1.createElement("script");n.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",n.onload=function(){r.trigger("vttjsloaded")},n.onerror=function(){r.trigger("vttjserror")},this.on("dispose",function(){n.onload=null,n.onerror=null}),window_1.WebVTT=!0,this.el().parentNode.appendChild(n)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var r=this,n=this.textTracks(),s=this.remoteTextTracks(),a=function(d){return n.addTrack(d.track)},l=function(d){return n.removeTrack(d.track)};s.on("addtrack",a),s.on("removetrack",l),this.addWebVttScript_();var u=function(){return r.trigger("texttrackchange")},p=function(){u();for(var d=0;d<n.length;d++){var f=n[d];f.removeEventListener("cuechange",u),f.mode==="showing"&&f.addEventListener("cuechange",u)}};p(),n.addEventListener("change",p),n.addEventListener("addtrack",p),n.addEventListener("removetrack",p),this.on("dispose",function(){s.off("addtrack",a),s.off("removetrack",l),n.removeEventListener("change",p),n.removeEventListener("addtrack",p),n.removeEventListener("removetrack",p);for(var d=0;d<n.length;d++)n[d].removeEventListener("cuechange",u)})},t.prototype.addTextTrack=function(r,n,s){if(!r)throw new Error("TextTrack kind is required but was not provided");return createTrackHelper(this,r,n,s)},t.prototype.createRemoteTextTrack=function(r){var n=mergeOptions(r,{tech:this});return new REMOTE.remoteTextEl.TrackClass(n)},t.prototype.addRemoteTextTrack=function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.createRemoteTextTrack(n);return s!==!0&&s!==!1&&(log$2.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),s=!0),this.remoteTextTrackEls().addTrackElement_(a),this.remoteTextTracks().addTrack(a.track),s!==!0&&this.ready(function(){return r.autoRemoteTextTracks_.addTrack(a.track)}),a},t.prototype.addAudioTrack=function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=mergeOptions(n,{tech:this}),l=new NORMAL.audio.TrackClass(a);return this.audioTracks_.addTrack(l),s!==!0&&this.ready(function(){return r.audioTracks_.addTrack(l)}),l},t.prototype.removeRemoteTextTrack=function(r){var n=this.remoteTextTrackEls().getTrackElementByTrack_(r);this.remoteTextTrackEls().removeTrackElement_(n),this.remoteTextTracks().removeTrack(r),this.autoRemoteTextTracks_.removeTrack(r)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(r,n){return t.canPlayType(r.type)},t.isTech=function(r){return r.prototype instanceof t||r instanceof t||r===t},t.registerTech=function(r,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+r+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return r=toTitleCase(r),t.techs_[r]=n,r!=="Tech"&&t.defaultTechOrder_.push(r),n},t.getTech=function(r){if(r)return r=toTitleCase(r),t.techs_&&t.techs_[r]?t.techs_[r]:window_1&&window_1.videojs&&window_1.videojs[r]?(log$2.warn("The "+r+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window_1.videojs[r]):void 0},t}(Component);ALL.names.forEach(function(e){var t=ALL[e];Tech.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Tech.prototype.featuresVolumeControl=!0,Tech.prototype.featuresMuteControl=!0,Tech.prototype.featuresFullscreenResize=!1,Tech.prototype.featuresPlaybackRate=!1,Tech.prototype.featuresProgressEvents=!1,Tech.prototype.featuresTimeupdateEvents=!1,Tech.prototype.featuresNativeTextTracks=!1,Tech.withSourceHandlers=function(e){e.registerSourceHandler=function(t,r){var n=e.sourceHandlers;n||(n=e.sourceHandlers=[]),r===void 0&&(r=n.length),n.splice(r,0,t)},e.canPlayType=function(t){for(var r=e.sourceHandlers||[],n=void 0,s=0;s<r.length;s++)if(n=r[s].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,r){for(var n=e.sourceHandlers||[],s=0;s<n.length;s++)if(n[s].canHandleSource(t,r))return n[s];return null},e.canPlaySource=function(t,r){var n=e.selectSourceHandler(t,r);return n?n.canHandleSource(t,r):""},["seekable","duration"].forEach(function(t){var r=this[t];typeof r=="function"&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):r.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var r=e.selectSourceHandler(t,this.options_);r||(e.nativeSourceHandler?r=e.nativeSourceHandler:log$2.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),r!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=r.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Component.registerComponent("Tech",Tech),Tech.registerTech("Tech",Tech),Tech.defaultTechOrder_=[];var middlewares={},allowedGetters={buffered:1,currentTime:1,duration:1,seekable:1,played:1},allowedSetters={setCurrentTime:1},MimetypesKind={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},getMimetype=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=getFileExtension(e);return MimetypesKind[t.toLowerCase()]||""},filterSource=function e(t){if(Array.isArray(t)){var r=[];t.forEach(function(n){n=e(n),Array.isArray(n)?r=r.concat(n):isObject$1(n)&&r.push(n)}),t=r}else t=typeof t=="string"&&t.trim()?[fixSource({src:t})]:isObject$1(t)&&typeof t.src=="string"&&t.src&&t.src.trim()?[fixSource(t)]:[];return t},fixSource=function(e){if(!e.type){var t=getMimetype(e.src);t&&(e.type=t)}return e},MediaLoader=function(e){function t(r,n,s){classCallCheck(this,t);var a=mergeOptions({createEl:!1},n),l=possibleConstructorReturn(this,e.call(this,r,a,s));if(n.playerOptions.sources&&n.playerOptions.sources.length!==0)r.src(n.playerOptions.sources);else for(var u=0,p=n.playerOptions.techOrder;u<p.length;u++){var d=toTitleCase(p[u]),f=Tech.getTech(d);if(d||(f=Component.getComponent(d)),f&&f.isSupported()){r.loadTech_(d);break}}return l}return inherits(t,e),t}(Component);Component.registerComponent("MediaLoader",MediaLoader);var ClickableComponent=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.emitTapEvents(),s.enable(),s}return inherits(t,e),t.prototype.createEl=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n=assign({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),r==="button"&&log$2.error("Creating a ClickableComponent with an HTML element of "+r+" is not supported; use a Button instead."),s=assign({role:"button","aria-live":"polite"},s),this.tabIndex_=n.tabIndex;var a=e.prototype.createEl.call(this,r,n,s);return this.createControlTextEl(a),a},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(r){return this.controlTextEl_=createEl("span",{className:"vjs-control-text"}),r&&r.appendChild(this.controlTextEl_),this.controlText(this.controlText_,r),this.controlTextEl_},t.prototype.controlText=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.el();if(r===void 0)return this.controlText_||"Need Text";var s=this.localize(r);this.controlText_=r,textContent(this.controlTextEl_,s),this.nonIconControl||n.setAttribute("title",s)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(r){},t.prototype.handleFocus=function(r){on(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(r){r.which===32||r.which===13?(r.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,r)},t.prototype.handleBlur=function(r){off(document_1,"keydown",bind(this,this.handleKeyPress))},t}(Component);Component.registerComponent("ClickableComponent",ClickableComponent);var PosterImage=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.update(),r.on("posterchange",bind(s,s.update)),s}return inherits(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var r=createEl("div",{className:"vjs-poster",tabIndex:-1});if(!BACKGROUND_SIZE_SUPPORTED){this.fallbackImg_=createEl("img");var n=this.player().height()||parseInt(this.player().el().style.height);this.player().width()||parseInt(this.player().el().style.width),this.fallbackImg_.onload=function(){this.width,this.height>n&&(this.style.maxHeight=n+"px",this.style.width="auto")};var s=createEl("div"),a=createEl("span");a.appendChild(this.fallbackImg_),s.appendChild(a),r.appendChild(s)}return r},t.prototype.update=function(r){var n=this.player().poster();this.setSrc(n),n?this.show():this.hide()},t.prototype.setSrc=function(r){if(this.fallbackImg_)this.fallbackImg_.src=r;else{var n="";r&&(n='url("'+r+'")'),this.el_.style.backgroundImage=n}},t.prototype.handleClick=function(r){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},t}(ClickableComponent);Component.registerComponent("PosterImage",PosterImage);var darkGray="#222",lightGray="#ccc",fontMap={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},TextTrackDisplay=function(e){function t(r,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,e.call(this,r,n,s));return r.on("loadstart",bind(a,a.toggleDisplay)),r.on("texttrackchange",bind(a,a.updateDisplay)),r.on("loadstart",bind(a,a.preselectTrack)),r.ready(bind(a,function(){if(r.tech_&&r.tech_.featuresNativeTextTracks)return void this.hide();r.on("fullscreenchange",bind(this,this.updateDisplay));for(var l=this.options_.playerOptions.tracks||[],u=0;u<l.length;u++)this.player_.addRemoteTextTrack(l[u],!0);this.preselectTrack()})),a}return inherits(t,e),t.prototype.preselectTrack=function(){for(var r={captions:1,subtitles:1},n=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage,a=void 0,l=void 0,u=void 0,p=0;p<n.length;p++){var d=n[p];s&&s.enabled&&s.language===d.language?d.kind===s.kind?u=d:u||(u=d):s&&!s.enabled?(u=null,a=null,l=null):d.default&&(d.kind!=="descriptions"||a?d.kind in r&&!l&&(l=d):a=d)}u?u.mode="showing":l?l.mode="showing":a&&(a.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){typeof window_1.WebVTT=="function"&&window_1.WebVTT.processCues(window_1,[],this.el_)},t.prototype.updateDisplay=function(){var r=this.player_.textTracks();this.clearDisplay();for(var n=null,s=null,a=r.length;a--;){var l=r[a];l.mode==="showing"&&(l.kind==="descriptions"?n=l:s=l)}s?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):n&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(n))},t.prototype.updateForTrack=function(r){if(typeof window_1.WebVTT=="function"&&r.activeCues){for(var n=this.player_.textTrackSettings.getValues(),s=[],a=0;a<r.activeCues.length;a++)s.push(r.activeCues[a]);window_1.WebVTT.processCues(window_1,s,this.el_);for(var l=s.length;l--;){var u=s[l];if(u){var p=u.displayState;if(n.color&&(p.firstChild.style.color=n.color),n.textOpacity&&tryUpdateStyle(p.firstChild,"color",constructColor(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(p.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&tryUpdateStyle(p.firstChild,"backgroundColor",constructColor(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?tryUpdateStyle(p,"backgroundColor",constructColor(n.windowColor,n.windowOpacity)):p.style.backgroundColor=n.windowColor),n.edgeStyle&&(n.edgeStyle==="dropshadow"?p.firstChild.style.textShadow="2px 2px 3px "+darkGray+", 2px 2px 4px "+darkGray+", 2px 2px 5px "+darkGray:n.edgeStyle==="raised"?p.firstChild.style.textShadow="1px 1px "+darkGray+", 2px 2px "+darkGray+", 3px 3px "+darkGray:n.edgeStyle==="depressed"?p.firstChild.style.textShadow="1px 1px "+lightGray+", 0 1px "+lightGray+", -1px -1px "+darkGray+", 0 -1px "+darkGray:n.edgeStyle==="uniform"&&(p.firstChild.style.textShadow="0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray)),n.fontPercent&&n.fontPercent!==1){var d=window_1.parseFloat(p.style.fontSize);p.style.fontSize=d*n.fontPercent+"px",p.style.height="auto",p.style.top="auto",p.style.bottom="2px"}n.fontFamily&&n.fontFamily!=="default"&&(n.fontFamily==="small-caps"?p.firstChild.style.fontVariant="small-caps":p.firstChild.style.fontFamily=fontMap[n.fontFamily])}}}},t}(Component);Component.registerComponent("TextTrackDisplay",TextTrackDisplay);var LoadingSpinner=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(Component);Component.registerComponent("LoadingSpinner",LoadingSpinner);var Button=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};r="button",n=assign({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},n),s=assign({type:"button","aria-live":"polite"},s);var a=Component.prototype.createEl.call(this,r,n,s);return this.createControlTextEl(a),a},t.prototype.addChild=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.constructor.name;return log$2.warn("Adding an actionable (user controllable) child to a Button ("+s+") is not supported; use a ClickableComponent instead."),Component.prototype.addChild.call(this,r,n)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(r){r.which!==32&&r.which!==13&&e.prototype.handleKeyPress.call(this,r)},t}(ClickableComponent);Component.registerComponent("Button",Button);var BigPlayButton=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.mouseused_=!1,s.on("mousedown",s.handleMouseDown),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(r){var n=this.player_.play();if(!(this.mouseused_&&r.clientX&&r.clientY)){var s=this.player_.getChild("controlBar"),a=s&&s.getChild("playToggle");if(!a)return void this.player_.focus();var l=function(){return a.focus()};isPromise(n)?n.then(l,function(){}):this.setTimeout(l,1)}},t.prototype.handleKeyPress=function(r){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,r)},t.prototype.handleMouseDown=function(r){this.mouseused_=!0},t}(Button);BigPlayButton.prototype.controlText_="Play Video",Component.registerComponent("BigPlayButton",BigPlayButton);var CloseButton=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.controlText(n&&n.controlText||s.localize("Close")),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(r){this.trigger({type:"close",bubbles:!1})},t}(Button);Component.registerComponent("CloseButton",CloseButton);var PlayToggle=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"play",s.handlePlay),s.on(r,"pause",s.handlePause),s.on(r,"ended",s.handleEnded),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(r){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(r){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(r):this.handlePlay(r)},t.prototype.handlePlay=function(r){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(r){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(r){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(Button);PlayToggle.prototype.controlText_="Play",Component.registerComponent("PlayToggle",PlayToggle);var TimeDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.throttledUpdateContent=throttle(bind(s,s.updateContent),25),s.on(r,"timeupdate",s.throttledUpdateContent),s}return inherits(t,e),t.prototype.createEl=function(r){var n=this.buildCSSClass(),s=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control"});return this.contentEl_=createEl("div",{className:n+"-display"},{"aria-live":"off"},createEl("span",{className:"vjs-control-text",textContent:this.localize(this.controlText_)})),this.updateTextNode_(),s.appendChild(this.contentEl_),s},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=document_1.createTextNode(this.formattedTime_||"0:00"),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(r){return formatTime(r)},t.prototype.updateFormattedTime_=function(r){var n=this.formatTime_(r);n!==this.formattedTime_&&(this.formattedTime_=n,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(r){},t}(Component);TimeDisplay.prototype.controlText_="Time",Component.registerComponent("TimeDisplay",TimeDisplay);var CurrentTimeDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"ended",s.handleEnded),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(r){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(n)},t.prototype.handleEnded=function(r){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(TimeDisplay);CurrentTimeDisplay.prototype.controlText_="Current Time",Component.registerComponent("CurrentTimeDisplay",CurrentTimeDisplay);var DurationDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"durationchange",s.updateContent),s.on(r,"loadedmetadata",s.throttledUpdateContent),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(r){var n=this.player_.duration();n&&this.duration_!==n&&(this.duration_=n,this.updateFormattedTime_(n))},t}(TimeDisplay);DurationDisplay.prototype.controlText_="Duration Time",Component.registerComponent("DurationDisplay",DurationDisplay);var TimeDivider=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(Component);Component.registerComponent("TimeDivider",TimeDivider);var RemainingTimeDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"durationchange",s.throttledUpdateContent),s.on(r,"ended",s.handleEnded),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(r){return"-"+e.prototype.formatTime_.call(this,r)},t.prototype.updateContent=function(r){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(r){this.player_.duration()&&this.updateFormattedTime_(0)},t}(TimeDisplay);RemainingTimeDisplay.prototype.controlText_="Remaining Time",Component.registerComponent("RemainingTimeDisplay",RemainingTimeDisplay);var LiveDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.isLoadedMetaData=!1,s.hide(),s.on(s.player(),"durationchange",s.onDurationChange),s.on(s.player(),"loadedmetadata",s.onLoadMetadata),r.on("loadnewvideo",videojs.bind(s,s.resetStatus)),s}return inherits(t,e),t.prototype.createEl=function(){var r=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),r.appendChild(this.contentEl_),r},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.resetStatus=function(){this.setStatus(!1)},t.prototype.onDurationChange=function(){this.isLoadedMetaData&&this.update()},t.prototype.onLoadMetadata=function(){this.setStatus(!0),this.update()},t.prototype.setStatus=function(r){this.isLoadedMetaData=r},t.prototype.update=function(){this.player().duration()===1/0?this.show():this.hide()},t}(Component);Component.registerComponent("LiveDisplay",LiveDisplay);var Slider=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.bar=s.getChild(s.options_.barName),s.vertical(!!s.options_.vertical),s.enable(),s}return inherits(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var r=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(r,"mousemove",this.handleMouseMove),this.off(r,"mouseup",this.handleMouseUp),this.off(r,"touchmove",this.handleMouseMove),this.off(r,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n.className=n.className+" vjs-slider",n=assign({tabIndex:0},n),s=assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},s),e.prototype.createEl.call(this,r,n,s)},t.prototype.handleMouseDown=function(r){var n=this.bar.el_.ownerDocument;r.preventDefault(),blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(n,"mousemove",this.handleMouseMove),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchmove",this.handleMouseMove),this.on(n,"touchend",this.handleMouseUp),this.handleMouseMove(r)},t.prototype.handleMouseMove=function(r){},t.prototype.handleMouseUp=function(){var r=this.bar.el_.ownerDocument;unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(r,"mousemove",this.handleMouseMove),this.off(r,"mouseup",this.handleMouseUp),this.off(r,"touchmove",this.handleMouseMove),this.off(r,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var r=this.getPercent(),n=this.bar;if(n){(typeof r!="number"||r!==r||r<0||r===1/0)&&(r=0);var s=(100*r).toFixed(2)+"%",a=n.el().style;return this.vertical()?a.height=s:a.width=s,r}}},t.prototype.calculateDistance=function(r){var n=getPointerPosition(this.el_,r);return this.vertical()?n.y:n.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(r){r.which===37||r.which===40?(r.preventDefault(),this.stepBack()):r.which!==38&&r.which!==39||(r.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(r){r.stopImmediatePropagation(),r.preventDefault()},t.prototype.vertical=function(r){if(r===void 0)return this.vertical_||!1;this.vertical_=!!r,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Component);Component.registerComponent("Slider",Slider);var LoadProgressBar=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.partEls_=[],s.on(r,"progress",s.update),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(r){var n=this.player_.buffered(),s=this.player_.duration(),a=this.player_.bufferedEnd(),l=this.partEls_,u=function(b,g){var m=b/g||0;return 100*(m>=1?1:m)+"%"};this.el_.style.width=u(a,s);for(var p=0;p<n.length;p++){var d=n.start(p),f=n.end(p),_=l[p];_||(_=this.el_.appendChild(createEl()),l[p]=_),_.style.left=u(d,a),_.style.width=u(f-d,a)}for(var y=l.length;y>n.length;y--)this.el_.removeChild(l[y-1]);l.length=n.length},t}(Component);Component.registerComponent("LoadProgressBar",LoadProgressBar);var TimeTooltip=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(r,n,s){var a=getBoundingClientRect(this.el_),l=getBoundingClientRect(this.player_.el()),u=r.width*n;if(l&&a){var p=r.left-l.left+u,d=r.width-u+(l.right-r.right),f=a.width/2;p<f?f+=f-p:d<f&&(f=d),f<0?f=0:f>a.width&&(f=a.width),this.el_.style.right="-"+f+"px",textContent(this.el_,s)}},t}(Component);Component.registerComponent("TimeTooltip",TimeTooltip);var PlayProgressBar=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(r,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player_.scrubbing()?s.player_.getCache().currentTime:s.player_.currentTime(),l=formatTime(a,s.player_.duration()),u=s.getChild("timeTooltip");u&&u.update(r,n,l)})},t}(Component);PlayProgressBar.prototype.options_={children:[]},IE_VERSION&&!(IE_VERSION>8)||IS_IOS||IS_ANDROID||PlayProgressBar.prototype.options_.children.push("timeTooltip"),Component.registerComponent("PlayProgressBar",PlayProgressBar);var MouseTimeDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.update=throttle(bind(s,s.update),25),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(r,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player_.duration(),l=formatTime(n*a,a);s.el_.style.left=r.width*n+"px",s.getChild("timeTooltip").update(r,n,l)})},t}(Component);MouseTimeDisplay.prototype.options_={children:["timeTooltip"]},Component.registerComponent("MouseTimeDisplay",MouseTimeDisplay);var STEP_SECONDS=5,UPDATE_REFRESH_INTERVAL=30,SeekBar=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.update=throttle(bind(s,s.update),UPDATE_REFRESH_INTERVAL),s.on(r,"timeupdate",s.update),s.on(r,"ended",s.handleEnded),s.updateInterval=null,s.on(r,["playing"],function(){s.clearInterval(s.updateInterval),s.updateInterval=s.setInterval(function(){s.requestAnimationFrame(function(){s.update()})},UPDATE_REFRESH_INTERVAL)}),s.on(r,["ended","pause","waiting"],function(){s.clearInterval(s.updateInterval)}),s.on(r,["timeupdate","ended"],s.update),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(r,n){var s=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[formatTime(r,s),formatTime(s,s)],"{1} of {2}")),this.bar.update(getBoundingClientRect(this.el_),n)},t.prototype.update=function(r){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(r){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var r=this.getCurrentTime_()/this.player_.duration();return r>=1?1:r},t.prototype.handleMouseDown=function(r){isSingleLeftClick(r)&&(this.player_.trigger("beforeseek"),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,r))},t.prototype.handleMouseMove=function(r){if(isSingleLeftClick(r)){var n=this.calculateDistance(r)*this.player_.duration();n===this.player_.duration()&&(n-=.1),this.player_.currentTime(n)}},t.prototype.enable=function(){e.prototype.enable.call(this);var r=this.getChild("mouseTimeDisplay");r&&r.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var r=this.getChild("mouseTimeDisplay");r&&r.hide()},t.prototype.handleMouseUp=function(r){e.prototype.handleMouseUp.call(this,r),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&silencePromise(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+STEP_SECONDS)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-STEP_SECONDS)},t.prototype.handleAction=function(r){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(r){r.which===32||r.which===13?(r.preventDefault(),this.handleAction(r)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,r)},t}(Slider);SeekBar.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},IE_VERSION&&!(IE_VERSION>8)||IS_IOS||IS_ANDROID||SeekBar.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),SeekBar.prototype.playerEvent="timeupdate",Component.registerComponent("SeekBar",SeekBar);var ProgressControl=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.handleMouseMove=throttle(bind(s,s.handleMouseMove),25),s.throttledHandleMouseSeek=throttle(bind(s,s.handleMouseSeek),25),s.enable(),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(r){var n=this.getChild("seekBar"),s=n.getChild("mouseTimeDisplay"),a=n.el(),l=getBoundingClientRect(a),u=getPointerPosition(a,r).x;u>1?u=1:u<0&&(u=0),s&&s.update(l,u)},t.prototype.handleMouseSeek=function(r){this.getChild("seekBar").handleMouseMove(r)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach(function(r){return r.disable&&r.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach(function(r){return r.enable&&r.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(r){var n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseSeek),this.on(n,"touchmove",this.throttledHandleMouseSeek),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(r){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseSeek),this.off(n,"touchmove",this.throttledHandleMouseSeek),this.off(n,"mouseup",this.handleMouseUp),this.off(n,"touchend",this.handleMouseUp)},t}(Component);ProgressControl.prototype.options_={children:["seekBar"]},Component.registerComponent("ProgressControl",ProgressControl);var FullscreenToggle=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"fullscreenchange",s.handleFullscreenChange),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(r){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(r){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Button);FullscreenToggle.prototype.controlText_="Fullscreen",Component.registerComponent("FullscreenToggle",FullscreenToggle);var checkVolumeSupport=function(e,t){!t.tech_||t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_&&t.tech_.featuresVolumeControl&&e.addClass("enable-volume-control"):e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_.featuresVolumeControl&&(e.removeClass("vjs-hidden"),e.addClass("enable-volume-control")):e.addClass("vjs-hidden")})},VolumeLevel=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(Component);Component.registerComponent("VolumeLevel",VolumeLevel);var VolumeBar=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on("slideractive",s.updateLastVolume_),s.on(r,"volumechange",s.updateARIAAttributes),r.ready(function(){return s.updateARIAAttributes()}),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(r){isSingleLeftClick(r)&&e.prototype.handleMouseDown.call(this,r)},t.prototype.handleMouseMove=function(r){isSingleLeftClick(r)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(r)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(r){var n=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",n),this.el_.setAttribute("aria-valuetext",n+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var r=this,n=this.player_.volume();this.one("sliderinactive",function(){r.player_.volume()===0&&r.player_.lastVolume_(n)})},t}(Slider);VolumeBar.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},VolumeBar.prototype.playerEvent="volumechange",Component.registerComponent("VolumeBar",VolumeBar);var VolumeControl=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),n.vertical=n.vertical||!1,(typeof n.volumeBar>"u"||isPlain(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical);var s=possibleConstructorReturn(this,e.call(this,r,n));return checkVolumeSupport(s,r),s.throttledHandleMouseMove=throttle(bind(s,s.handleMouseMove),25),s.on("mousedown",s.handleMouseDown),s.on("touchstart",s.handleMouseDown),s.on(s.volumeBar,["focus","slideractive"],function(){s.volumeBar.addClass("vjs-slider-active"),s.addClass("vjs-slider-active"),s.trigger("slideractive")}),s.on(s.volumeBar,["blur","sliderinactive"],function(){s.volumeBar.removeClass("vjs-slider-active"),s.removeClass("vjs-slider-active"),s.trigger("sliderinactive")}),s}return inherits(t,e),t.prototype.createEl=function(){var r="vjs-volume-horizontal";return this.options_.vertical&&(r="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+r})},t.prototype.handleMouseDown=function(r){var n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseMove),this.on(n,"touchmove",this.throttledHandleMouseMove),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(r){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseMove),this.off(n,"touchmove",this.throttledHandleMouseMove),this.off(n,"mouseup",this.handleMouseUp),this.off(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(r){this.volumeBar.handleMouseMove(r)},t}(Component);VolumeControl.prototype.options_={children:["volumeBar"]},Component.registerComponent("VolumeControl",VolumeControl);var MuteToggle=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return checkVolumeSupport(s,r),s.on(r,["loadstart","volumechange"],s.update),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(r){var n=this.player_.volume(),s=this.player_.lastVolume_();if(n===0){var a=s<.1?.1:s;this.player_.volume(a),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(r){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var r=this.player_.volume(),n=3;r===0||this.player_.muted()?n=0:r<.33?n=1:r<.67&&(n=2);for(var s=0;s<4;s++)removeClass(this.el_,"vjs-vol-"+s);addClass(this.el_,"vjs-vol-"+n)},t.prototype.updateControlText_=function(){var r=this.player_.muted()||this.player_.volume()===0,n=r?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n)},t}(Button);MuteToggle.prototype.controlText_="Mute",Component.registerComponent("MuteToggle",MuteToggle);var VolumePanel=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),typeof n.inline<"u"?n.inline=n.inline:n.inline=!0,(typeof n.volumeControl>"u"||isPlain(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline);var s=possibleConstructorReturn(this,e.call(this,r,n));return checkVolumeSupport(s,r),s.on(s.volumeControl,["slideractive"],s.sliderActive_),s.on(s.muteToggle,"focus",s.sliderActive_),s.on(s.volumeControl,["sliderinactive"],s.sliderInactive_),s.on(s.muteToggle,"blur",s.sliderInactive_),s}return inherits(t,e),t.prototype.sliderActive_=function(){IS_ANDROID||IS_IOS||this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){IS_ANDROID||IS_IOS||this.removeClass("vjs-slider-active")},t.prototype.createEl=function(){var r="vjs-volume-panel-horizontal";return this.options_.inline||(r="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+r})},t}(Component);VolumePanel.prototype.options_={children:["muteToggle","volumeControl"]},Component.registerComponent("VolumePanel",VolumePanel);var Menu=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return n&&(s.menuButton_=n.menuButton),s.focusedChild_=-1,s.on("keydown",s.handleKeyPress),s}return inherits(t,e),t.prototype.addItem=function(r){this.addChild(r),r.on("click",bind(this,function(n){this.menuButton_&&(this.menuButton_.unpressButton(),r.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus())}))},t.prototype.createEl=function(){var r=this.options_.contentElType||"ul";this.contentEl_=createEl(r,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),on(n,"click",function(s){s.preventDefault(),s.stopImmediatePropagation()}),n},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(r){r.which===37||r.which===40?(r.preventDefault(),this.stepForward()):r.which!==38&&r.which!==39||(r.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var r=0;this.focusedChild_!==void 0&&(r=this.focusedChild_+1),this.focus(r)},t.prototype.stepBack=function(){var r=0;this.focusedChild_!==void 0&&(r=this.focusedChild_-1),this.focus(r)},t.prototype.focus=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=this.children().slice();n.length&&n[0].className&&/vjs-menu-title/.test(n[0].className)&&n.shift(),n.length>0&&(r<0?r=0:r>=n.length&&(r=n.length-1),this.focusedChild_=r,n[r].el_.focus())},t}(Component);Component.registerComponent("Menu",Menu);var MenuButton=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));s.menuButton_=new Button(r,n),s.menuButton_.controlText(s.controlText_),s.menuButton_.el_.setAttribute("aria-haspopup","true");var a=Button.prototype.buildCSSClass();return s.menuButton_.el_.className=s.buildCSSClass()+" "+a,s.menuButton_.removeClass("vjs-control"),s.addChild(s.menuButton_),s.update(),s.enabled_=!0,s.on(s.menuButton_,"tap",s.handleClick),s.on(s.menuButton_,"click",s.handleClick),s.on(s.menuButton_,"focus",s.handleFocus),s.on(s.menuButton_,"blur",s.handleBlur),s.on("keydown",s.handleSubmenuKeyPress),s}return inherits(t,e),t.prototype.update=function(){var r=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=r,this.addChild(r),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var r=new Menu(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var n=createEl("li",{className:"vjs-menu-title",innerHTML:toTitleCase(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,r.children_.unshift(n),prependTo(n,r.contentEl())}if(this.items=this.createItems(),this.items)for(var s=0;s<this.items.length;s++)r.addItem(this.items[s]);return r},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var r="vjs-menu-button";return this.options_.inline===!0?r+="-inline":r+="-popup","vjs-menu-button "+r+" "+Button.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var r="vjs-menu-button";return this.options_.inline===!0?r+="-inline":r+="-popup","vjs-menu-button "+r+" "+e.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(r,n)},t.prototype.handleClick=function(r){this.one(this.menu.contentEl(),"mouseleave",bind(this,function(n){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){on(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleBlur=function(){off(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(r){r.which===27||r.which===9?(this.buttonPressed_&&this.unpressButton(),r.which!==9&&(r.preventDefault(),this.menuButton_.el_.focus())):r.which!==38&&r.which!==40||this.buttonPressed_||(this.pressButton(),r.preventDefault())},t.prototype.handleSubmenuKeyPress=function(r){r.which!==27&&r.which!==9||(this.buttonPressed_&&this.unpressButton(),r.which!==9&&(r.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),IS_IOS&&isInFrame())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Component);Component.registerComponent("MenuButton",MenuButton);var TrackButton=function(e){function t(r,n){classCallCheck(this,t);var s=n.tracks,a=possibleConstructorReturn(this,e.call(this,r,n));if(a.items.length<=1&&a.hide(),!s)return possibleConstructorReturn(a);var l=bind(a,a.update);return s.addEventListener("removetrack",l),s.addEventListener("addtrack",l),a.player_.on("ready",l),a.player_.on("dispose",function(){s.removeEventListener("removetrack",l),s.removeEventListener("addtrack",l)}),a}return inherits(t,e),t}(MenuButton);Component.registerComponent("TrackButton",TrackButton);var MenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.selectable=n.selectable,s.selected(n.selected),s.selectable?s.el_.setAttribute("role","menuitemcheckbox"):s.el_.setAttribute("role","menuitem"),s}return inherits(t,e),t.prototype.createEl=function(r,n,s){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",assign({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),s)},t.prototype.handleClick=function(r){this.selected(!0)},t.prototype.selected=function(r){this.selectable&&(r?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText("")))},t}(ClickableComponent);Component.registerComponent("MenuItem",MenuItem);var TextTrackMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=n.track,a=r.textTracks();n.label=s.label||s.language||"Unknown",n.selected=s.mode==="showing";var l=possibleConstructorReturn(this,e.call(this,r,n));l.track=s;var u=function(){for(var f=arguments.length,_=Array(f),y=0;y<f;y++)_[y]=arguments[y];l.handleTracksChange.apply(l,_)},p=function(){for(var f=arguments.length,_=Array(f),y=0;y<f;y++)_[y]=arguments[y];l.handleSelectedLanguageChange.apply(l,_)};if(r.on(["loadstart","texttrackchange"],u),a.addEventListener("change",u),a.addEventListener("selectedlanguagechange",p),l.on("dispose",function(){r.off(["loadstart","texttrackchange"],u),a.removeEventListener("change",u),a.removeEventListener("selectedlanguagechange",p)}),a.onchange===void 0){var d=void 0;l.on(["tap","click"],function(){if(_typeof(window_1.Event)!=="object")try{d=new window_1.Event("change")}catch(f){}d||(d=document_1.createEvent("Event"),d.initEvent("change",!0,!0)),a.dispatchEvent(d)})}return l.handleTracksChange(),l}return inherits(t,e),t.prototype.handleClick=function(r){var n=this.track.kind,s=this.track.kinds,a=this.player_.textTracks();if(s||(s=[n]),e.prototype.handleClick.call(this,r),a)for(var l=0;l<a.length;l++){var u=a[l];u===this.track&&s.indexOf(u.kind)>-1?u.mode!=="showing"&&(u.mode="showing"):u.mode!=="disabled"&&(u.mode="disabled")}},t.prototype.handleTracksChange=function(r){this.selected(this.track.mode==="showing")},t.prototype.handleSelectedLanguageChange=function(r){if(this.track.mode==="showing"){var n=this.player_.cache_.selectedLanguage;if(n&&n.enabled&&n.language===this.track.language&&n.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(MenuItem);Component.registerComponent("TextTrackMenuItem",TextTrackMenuItem);var OffTextTrackMenuItem=function(e){function t(r,n){return classCallCheck(this,t),n.track={player:r,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.handleTracksChange=function(r){for(var n=this.player().textTracks(),s=!0,a=0,l=n.length;a<l;a++){var u=n[a];if(this.options_.kinds.indexOf(u.kind)>-1&&u.mode==="showing"){s=!1;break}}this.selected(s)},t.prototype.handleSelectedLanguageChange=function(r){for(var n=this.player().textTracks(),s=!0,a=0,l=n.length;a<l;a++){var u=n[a];if(["captions","descriptions","subtitles"].indexOf(u.kind)>-1&&u.mode==="showing"){s=!1;break}}s&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(TextTrackMenuItem);Component.registerComponent("OffTextTrackMenuItem",OffTextTrackMenuItem);var TextTrackButton=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return classCallCheck(this,t),n.tracks=r.textTracks(),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.createItems=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:TextTrackMenuItem,s=void 0;this.label_&&(s=this.label_+" off"),r.push(new OffTextTrackMenuItem(this.player_,{kinds:this.kinds_,kind:this.kind_,label:s})),this.hideThreshold_+=1;var a=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var l=0;l<a.length;l++){var u=a[l];if(this.kinds_.indexOf(u.kind)>-1){var p=new n(this.player_,{track:u,selectable:!0});p.addClass("vjs-"+u.kind+"-menu-item"),r.push(p)}}return r},t}(TrackButton);Component.registerComponent("TextTrackButton",TextTrackButton);var ChaptersTrackMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=n.track,a=n.cue,l=r.currentTime();n.selectable=!0,n.label=a.text,n.selected=a.startTime<=l&&l<a.endTime;var u=possibleConstructorReturn(this,e.call(this,r,n));return u.track=s,u.cue=a,s.addEventListener("cuechange",bind(u,u.update)),u}return inherits(t,e),t.prototype.handleClick=function(r){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(r){var n=this.cue,s=this.player_.currentTime();this.selected(n.startTime<=s&&s<n.endTime)},t}(MenuItem);Component.registerComponent("ChaptersTrackMenuItem",ChaptersTrackMenuItem);var ChaptersButton=function(e){function t(r,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n,s))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(r){this.track_&&(!r||r.type!=="addtrack"&&r.type!=="removetrack")||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},t.prototype.setTrack=function(r){if(this.track_!==r){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=r,this.track_){this.track_.mode="hidden";var s=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);s&&s.addEventListener("load",this.updateHandler_)}}},t.prototype.findChaptersTrack=function(){for(var r=this.player_.textTracks()||[],n=r.length-1;n>=0;n--){var s=r[n];if(s.kind===this.kind_)return s}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(toTitleCase(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var r=[];if(!this.track_)return r;var n=this.track_.cues;if(!n)return r;for(var s=0,a=n.length;s<a;s++){var l=n[s],u=new ChaptersTrackMenuItem(this.player_,{track:this.track_,cue:l});r.push(u)}return r},t}(TextTrackButton);ChaptersButton.prototype.kind_="chapters",ChaptersButton.prototype.controlText_="Chapters",Component.registerComponent("ChaptersButton",ChaptersButton);var DescriptionsButton=function(e){function t(r,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,e.call(this,r,n,s)),l=r.textTracks(),u=bind(a,a.handleTracksChange);return l.addEventListener("change",u),a.on("dispose",function(){l.removeEventListener("change",u)}),a}return inherits(t,e),t.prototype.handleTracksChange=function(r){for(var n=this.player().textTracks(),s=!1,a=0,l=n.length;a<l;a++){var u=n[a];if(u.kind!==this.kind_&&u.mode==="showing"){s=!0;break}}s?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(TextTrackButton);DescriptionsButton.prototype.kind_="descriptions",DescriptionsButton.prototype.controlText_="Descriptions",Component.registerComponent("DescriptionsButton",DescriptionsButton);var SubtitlesButton=function(e){function t(r,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n,s))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(TextTrackButton);SubtitlesButton.prototype.kind_="subtitles",SubtitlesButton.prototype.controlText_="Subtitles",Component.registerComponent("SubtitlesButton",SubtitlesButton);var CaptionSettingsMenuItem=function(e){function t(r,n){classCallCheck(this,t),n.track={player:r,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem";var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass("vjs-texttrack-settings"),s.controlText(", opens "+n.kind+" settings dialog"),s}return inherits(t,e),t.prototype.handleClick=function(r){this.player().getChild("textTrackSettings").open()},t}(TextTrackMenuItem);Component.registerComponent("CaptionSettingsMenuItem",CaptionSettingsMenuItem);var CaptionsButton=function(e){function t(r,n,s){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n,s))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var r=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(r.push(new CaptionSettingsMenuItem(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,r)},t}(TextTrackButton);CaptionsButton.prototype.kind_="captions",CaptionsButton.prototype.controlText_="Captions",Component.registerComponent("CaptionsButton",CaptionsButton);var SubsCapsMenuItem=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(r,n,s){var a='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return this.options_.track.kind==="captions"&&(a+=`
  185. <span aria-hidden="true" class="vjs-icon-placeholder"></span>
  186. <span class="vjs-control-text"> `+this.localize("Captions")+`</span>
  187. `),a+="</span>",e.prototype.createEl.call(this,r,assign({innerHTML:a},n),s)},t}(TextTrackMenuItem);Component.registerComponent("SubsCapsMenuItem",SubsCapsMenuItem);var SubsCapsButton=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(s.player_.language_)>-1&&(s.label_="captions"),s.menuButton_.controlText(toTitleCase(s.label_)),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var r=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(r.push(new CaptionSettingsMenuItem(this.player_,{kind:this.label_})),this.hideThreshold_+=1),r=e.prototype.createItems.call(this,r,SubsCapsMenuItem)},t}(TextTrackButton);SubsCapsButton.prototype.kinds_=["captions","subtitles"],SubsCapsButton.prototype.controlText_="Subtitles",Component.registerComponent("SubsCapsButton",SubsCapsButton);var AudioTrackMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=n.track,a=r.audioTracks();n.label=s.label||s.language||"Unknown",n.selected=s.enabled;var l=possibleConstructorReturn(this,e.call(this,r,n));l.track=s;var u=function(){for(var p=arguments.length,d=Array(p),f=0;f<p;f++)d[f]=arguments[f];l.handleTracksChange.apply(l,d)};return l.changeHandler=u,a.addEventListener("change",u),a.addEventListener("enabledchange",u),l.on("dispose",function(){a.removeEventListener("change",u),a.removeEventListener("enabledchange",u)}),l}return inherits(t,e),t.prototype.handleClick=function(r){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,r),this.player_.tech_.hlsProvider.hls.audioTrack=this.track.id;for(var s=0;s<n.length;s++){var a=n[s];a.enabled=a===this.track}},t.prototype.handleTracksChange=function(r){this.selected(this.track.enabled)},t}(MenuItem);Component.registerComponent("AudioTrackMenuItem",AudioTrackMenuItem);var AudioTrackButton=function(e){function t(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return classCallCheck(this,t),n.tracks=r.audioTracks(),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.hideThreshold_=1;for(var n=this.player_.audioTracks(),s=0;s<n.length;s++){var a=n[s];r.push(new AudioTrackMenuItem(this.player_,{track:a,selectable:!0}))}return r},t}(TrackButton);AudioTrackButton.prototype.controlText_="Audio Track",Component.registerComponent("AudioTrackButton",AudioTrackButton);var PlaybackRateMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=n.rate,a=parseFloat(s,10);n.label=s,n.selected=a===1,n.selectable=!0;var l=possibleConstructorReturn(this,e.call(this,r,n));return l.label=s,l.rate=a,l.on(r,"ratechange",l.update),l}return inherits(t,e),t.prototype.handleClick=function(r){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(r){this.selected(this.player().playbackRate()===this.rate)},t}(MenuItem);PlaybackRateMenuItem.prototype.contentElType="button",Component.registerComponent("PlaybackRateMenuItem",PlaybackRateMenuItem);var PlaybackRateMenuButton=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.updateVisibility(),s.updateLabel(),s.on(r,"loadstart",s.updateVisibility),s.on(r,"ratechange",s.updateLabel),s}return inherits(t,e),t.prototype.createEl=function(){var r=e.prototype.createEl.call(this);return this.labelEl_=createEl("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),r.appendChild(this.labelEl_),r},t.prototype.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var r=new Menu(this.player()),n=this.playbackRates();if(n)for(var s=n.length-1;s>=0;s--)r.addChild(new PlaybackRateMenuItem(this.player(),{rate:n[s]+"x"}));return r},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(r){for(var n=this.player().playbackRate(),s=this.playbackRates(),a=s[0],l=0;l<s.length;l++)if(s[l]>n){a=s[l];break}this.player().playbackRate(a)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(r){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(r){var n=this.player().playbackRate();if(n===1.1)return!1;this.playbackRateSupported()&&(this.labelEl_.innerHTML=n+"x")},t}(MenuButton);PlaybackRateMenuButton.prototype.controlText_="Playback Rate",Component.registerComponent("PlaybackRateMenuButton",PlaybackRateMenuButton);var Spacer=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(Component);Component.registerComponent("Spacer",Spacer);var CustomControlSpacer=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var r=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return r.innerHTML=" ",r},t}(Spacer);Component.registerComponent("CustomControlSpacer",CustomControlSpacer);var ControlBar=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(Component);if(ControlBar.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","audioTrackButton","fullscreenToggle"]},IS_ENABLED_MSE&&!IS_SAFARI){var controlChildren=ControlBar.prototype.options_.children;controlChildren.splice(controlChildren.length-2,0,"subsCapsButton")}Component.registerComponent("ControlBar",ControlBar);var ErrorDisplay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on(r,"error",s.open),s}return inherits(t,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var r=this.player().error();return r?this.localize(r.message):""},t}(ModalDialog);ErrorDisplay.prototype.options_=mergeOptions(ModalDialog.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Component.registerComponent("ErrorDisplay",ErrorDisplay);var LOCAL_STORAGE_KEY="vjs-text-track-settings",COLOR_BLACK=["#000","Black"],COLOR_BLUE=["#00F","Blue"],COLOR_CYAN=["#0FF","Cyan"],COLOR_GREEN=["#0F0","Green"],COLOR_MAGENTA=["#F0F","Magenta"],COLOR_RED=["#F00","Red"],COLOR_WHITE=["#FFF","White"],COLOR_YELLOW=["#FF0","Yellow"],OPACITY_OPAQUE=["1","Opaque"],OPACITY_SEMI=["0.5","Semi-Transparent"],OPACITY_TRANS=["0","Transparent"],selectConfigs={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[COLOR_BLACK,COLOR_WHITE,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[OPACITY_OPAQUE,OPACITY_SEMI,OPACITY_TRANS]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[COLOR_WHITE,COLOR_BLACK,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return e==="1.00"?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[OPACITY_OPAQUE,OPACITY_SEMI]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[OPACITY_TRANS,OPACITY_SEMI,OPACITY_OPAQUE]}};selectConfigs.windowColor.options=selectConfigs.backgroundColor.options;var TextTrackSettings=function(e){function t(r,n){classCallCheck(this,t),n.temporary=!1;var s=possibleConstructorReturn(this,e.call(this,r,n));return s.updateDisplay=bind(s,s.updateDisplay),s.fill(),s.hasBeenOpened_=s.hasBeenFilled_=!0,s.endDialog=createEl("p",{className:"vjs-control-text",textContent:s.localize("End of dialog window.")}),s.el().appendChild(s.endDialog),s.setDefaults(),n.persistTextTrackSettings===void 0&&(s.options_.persistTextTrackSettings=s.options_.playerOptions.persistTextTrackSettings),s.on(s.$(".vjs-done-button"),"click",function(){s.saveSettings(),s.close()}),s.on(s.$(".vjs-default-button"),"click",function(){s.setDefaults(),s.updateDisplay()}),each(selectConfigs,function(a){s.on(s.$(a.selector),"change",s.updateDisplay)}),s.options_.persistTextTrackSettings&&s.restoreSettings(),s}return inherits(t,e),t.prototype.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},t.prototype.createElSelect_=function(r){var n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"label",l=selectConfigs[r],u=l.id.replace("%s",this.id_);return["<"+a+' id="'+u+'" class="'+(a==="label"?"vjs-label":"")+'">',this.localize(l.label),"</"+a+">",'<select aria-labelledby="'+(s!==""?s+" ":"")+u+'">'].concat(l.options.map(function(p){var d=u+"-"+p[1];return['<option id="'+d+'" value="'+p[0]+'" ','aria-labelledby="'+(s!==""?s+" ":"")+u+" "+d+'">',n.localize(p[1]),"</option>"].join("")})).concat("</select>").join("")},t.prototype.createElFgColor_=function(){var r="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+r+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",r),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",r),"</span>","</fieldset>"].join("")},t.prototype.createElBgColor_=function(){var r="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+r+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",r),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",r),"</span>","</fieldset>"].join("")},t.prototype.createElWinColor_=function(){var r="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+r+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",r),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",r),"</span>","</fieldset>"].join("")},t.prototype.createElColors_=function(){return createEl("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return createEl("div",{className:'vjs-track-settings-font">',innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},t.prototype.createElControls_=function(){var r=this.localize("restore all settings to the default values");return createEl("div",{className:"vjs-track-settings-controls",innerHTML:['<button class="vjs-default-button" title="'+r+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+r+"</span>","</button>",'<button class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var r=this;return reduce(selectConfigs,function(n,s,a){var l=getSelectedOptionValue(r.$(s.selector),s.parser);return l!==void 0&&(n[a]=l),n},{})},t.prototype.setValues=function(r){var n=this;each(selectConfigs,function(s,a){setSelectedOption(n.$(s.selector),r[a],s.parser)})},t.prototype.setDefaults=function(){var r=this;each(selectConfigs,function(n){var s=n.hasOwnProperty("default")?n.default:0;r.$(n.selector).selectedIndex=s})},t.prototype.restoreSettings=function(){var r=void 0;try{r=JSON.parse(window_1.localStorage.getItem(LOCAL_STORAGE_KEY))}catch(n){log$2.warn(n)}r&&this.setValues(r)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var r=this.getValues();try{Object.keys(r).length?window_1.localStorage.setItem(LOCAL_STORAGE_KEY,JSON.stringify(r)):window_1.localStorage.removeItem(LOCAL_STORAGE_KEY)}catch(n){log$2.warn(n)}}},t.prototype.updateDisplay=function(){var r=this.player_.getChild("textTrackDisplay");r&&r.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(document_1,"keydown",this.handleKeyDown);var r=this.player_.controlBar,n=r&&r.subsCapsButton,s=r&&r.captionsButton;n?n.focus():s&&s.focus()},t}(ModalDialog);Component.registerComponent("TextTrackSettings",TextTrackSettings);var _templateObject$2=taggedTemplateLiteralLoose([`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
  188. This may prevent text tracks from loading.`],[`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
  189. This may prevent text tracks from loading.`]),Html5=function(e){function t(r,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,e.call(this,r,n,s)),l=n.source,u=!1;if(l&&(a.el_.currentSrc!==l.src||n.tag&&n.tag.initNetworkState_===3)?a.setSource(l):a.handleLateInit_(a.el_),a.el_.hasChildNodes()){for(var p=a.el_.childNodes,d=p.length,f=[];d--;){var _=p[d];_.nodeName.toLowerCase()==="track"&&(a.featuresNativeTextTracks?(a.remoteTextTrackEls().addTrackElement_(_),a.remoteTextTracks().addTrack(_.track),a.textTracks().addTrack(_.track),u||a.el_.hasAttribute("crossorigin")||!isCrossOrigin(_.src)||(u=!0)):f.push(_))}for(var y=0;y<f.length;y++)a.el_.removeChild(f[y])}return a.proxyNativeTracks_(),a.featuresNativeTextTracks&&u&&log$2.warn(tsml(_templateObject$2)),a.restoreMetadataTracksInIOSNativePlayer_(),(TOUCH_ENABLED||IS_IPHONE||IS_NATIVE_ANDROID)&&n.nativeControlsForTouch===!0&&a.setControls(!0),a.proxyWebkitFullscreen_(),a.triggerReady(),a}return inherits(t,e),t.prototype.dispose=function(){t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var r=this.textTracks(),n=void 0,s=function(){n=[];for(var l=0;l<r.length;l++){var u=r[l];u.kind==="metadata"&&n.push({track:u,storedMode:u.mode})}};s(),r.addEventListener("change",s),this.on("dispose",function(){return r.removeEventListener("change",s)});var a=function l(){for(var u=0;u<n.length;u++){var p=n[u];p.track.mode==="disabled"&&p.track.mode!==p.storedMode&&(p.track.mode=p.storedMode)}r.removeEventListener("change",l)};this.on("webkitbeginfullscreen",function(){r.removeEventListener("change",s),r.removeEventListener("change",a),r.addEventListener("change",a)}),this.on("webkitendfullscreen",function(){r.removeEventListener("change",s),r.addEventListener("change",s),r.removeEventListener("change",a)})},t.prototype.proxyNativeTracks_=function(){var r=this;NORMAL.names.forEach(function(n){var s=NORMAL[n],a=r.el()[s.getterName],l=r[s.getterName]();if(r["featuresNative"+s.capitalName+"Tracks"]&&a&&a.addEventListener){var u={change:function(d){l.trigger({type:"change",target:l,currentTarget:l,srcElement:l})},addtrack:function(d){l.addTrack(d.track)},removetrack:function(d){l.removeTrack(d.track)}},p=function(){for(var d=[],f=0;f<l.length;f++){for(var _=!1,y=0;y<a.length;y++)if(a[y]===l[f]){_=!0;break}_||d.push(l[f])}for(;d.length;)l.removeTrack(d.shift())};Object.keys(u).forEach(function(d){var f=u[d];a.addEventListener(d,f),r.on("dispose",function(_){return a.removeEventListener(d,f)})}),r.on("loadstart",p),r.on("dispose",function(d){return r.off("loadstart",p)})}})},t.prototype.createEl=function(){var r=this.options_.tag;if(!r||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(r){var n=r.cloneNode(!0);r.parentNode&&r.parentNode.insertBefore(n,r),t.disposeMediaElement(r),r=n}else{r=document_1.createElement("video");var s=this.options_.tag&&getAttributes(this.options_.tag),a=mergeOptions({},s);TOUCH_ENABLED&&this.options_.nativeControlsForTouch===!0||delete a.controls,setAttributes(r,assign(a,{id:this.options_.techId,class:"vjs-tech"}))}r.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&setAttribute(r,"preload",this.options_.preload);for(var l=["loop","muted","playsinline","autoplay"],u=0;u<l.length;u++){var p=l[u],d=this.options_[p];d!==void 0&&(d?setAttribute(r,p,p):removeAttribute(r,p),r[p]=d)}return r},t.prototype.handleLateInit_=function(r){if(r.networkState!==0&&r.networkState!==3){if(r.readyState===0){var n=!1,s=function(){n=!0};this.on("loadstart",s);var a=function(){n||this.trigger("loadstart")};return this.on("loadedmetadata",a),void this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",a),n||this.trigger("loadstart")})}var l=["loadstart"];l.push("loadedmetadata"),r.readyState>=2&&l.push("loadeddata"),r.readyState>=3&&l.push("canplay"),r.readyState>=4&&l.push("canplaythrough"),this.ready(function(){l.forEach(function(u){this.trigger(u)},this)})}},t.prototype.setCurrentTime=function(r){try{this.el_.currentTime=r}catch(n){log$2(n,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var r=this;if(this.el_.duration===1/0&&IS_ANDROID&&IS_CHROME&&this.el_.currentTime===0){var n=function s(){r.el_.currentTime>0&&(r.el_.duration===1/0&&r.trigger("durationchange"),r.off("timeupdate",s))};return this.on("timeupdate",n),NaN}return this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var r=this;if("webkitDisplayingFullscreen"in this.el_){var n=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},s=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",n),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",function(){r.off("webkitbeginfullscreen",s),r.off("webkitendfullscreen",n)})}},t.prototype.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var r=window_1.navigator&&window_1.navigator.userAgent||"";if(/Android/.test(r)||!/Chrome|Mac OS X 10.5/.test(r))return!0}return!1},t.prototype.enterFullScreen=function(){var r=this.el_;r.paused&&r.networkState<=r.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){r.pause(),r.webkitEnterFullScreen()},0)):r.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(r){if(r===void 0)return this.el_.src;this.setSrc(r)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(r){this.el_.controls=!!r},t.prototype.addTextTrack=function(r,n,s){return this.featuresNativeTextTracks?this.el_.addTextTrack(r,n,s):e.prototype.addTextTrack.call(this,r,n,s)},t.prototype.createRemoteTextTrack=function(r){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,r);var n=document_1.createElement("track");return r.kind&&(n.kind=r.kind),r.label&&(n.label=r.label),(r.language||r.srclang)&&(n.srclang=r.language||r.srclang),r.default&&(n.default=r.default),r.id&&(n.id=r.id),r.src&&(n.src=r.src),n},t.prototype.addRemoteTextTrack=function(r,n){var s=e.prototype.addRemoteTextTrack.call(this,r,n);return this.featuresNativeTextTracks&&this.el().appendChild(s),s},t.prototype.removeRemoteTextTrack=function(r){if(e.prototype.removeRemoteTextTrack.call(this,r),this.featuresNativeTextTracks)for(var n=this.$$("track"),s=n.length;s--;)r!==n[s]&&r!==n[s].track||this.el().removeChild(n[s])},t.prototype.getVideoPlaybackQuality=function(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();var r={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(r.droppedVideoFrames=this.el().webkitDroppedFrameCount,r.totalVideoFrames=this.el().webkitDecodedFrameCount),window_1.performance&&typeof window_1.performance.now=="function"?r.creationTime=window_1.performance.now():window_1.performance&&window_1.performance.timing&&typeof window_1.performance.timing.navigationStart=="number"&&(r.creationTime=window_1.Date.now()-window_1.performance.timing.navigationStart),r},t}(Tech);if(isReal()){Html5.TEST_VID=document_1.createElement("video");var track=document_1.createElement("track");track.kind="captions",track.srclang="en",track.label="English",Html5.TEST_VID.appendChild(track)}Html5.isSupported=function(){try{Html5.TEST_VID.volume=.5}catch(e){return!1}return!(!Html5.TEST_VID||!Html5.TEST_VID.canPlayType)},Html5.canPlayType=function(e){return Html5.TEST_VID.canPlayType(e)},Html5.canPlaySource=function(e,t){return Html5.canPlayType(e.type)},Html5.canControlVolume=function(){try{var e=Html5.TEST_VID.volume;return Html5.TEST_VID.volume=e/2+.1,e!==Html5.TEST_VID.volume}catch(t){return!1}},Html5.canControlMute=function(){try{var e=Html5.TEST_VID.muted;return Html5.TEST_VID.muted=!0,e!==Html5.TEST_VID.muted}catch(t){return!1}},Html5.canControlPlaybackRate=function(){if(IS_ANDROID&&IS_CHROME&&CHROME_VERSION<58)return!1;try{var e=Html5.TEST_VID.playbackRate;return Html5.TEST_VID.playbackRate=e/2+.1,e!==Html5.TEST_VID.playbackRate}catch(t){return!1}},Html5.supportsNativeTextTracks=function(){return IS_ANY_SAFARI},Html5.supportsNativeVideoTracks=function(){return!(!Html5.TEST_VID||!Html5.TEST_VID.videoTracks)},Html5.supportsNativeAudioTracks=function(){return!(!Html5.TEST_VID||!Html5.TEST_VID.audioTracks)},Html5.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Html5.prototype.featuresVolumeControl=Html5.canControlVolume(),Html5.prototype.featuresMuteControl=Html5.canControlMute(),Html5.prototype.featuresPlaybackRate=Html5.canControlPlaybackRate(),Html5.prototype.movingMediaElementInDOM=!IS_IOS,Html5.prototype.featuresFullscreenResize=!0,Html5.prototype.featuresProgressEvents=!0,Html5.prototype.featuresTimeupdateEvents=!0,Html5.prototype.featuresNativeTextTracks=Html5.supportsNativeTextTracks(),Html5.prototype.featuresNativeVideoTracks=Html5.supportsNativeVideoTracks(),Html5.prototype.featuresNativeAudioTracks=Html5.supportsNativeAudioTracks();var canPlayType=Html5.TEST_VID&&Html5.TEST_VID.constructor.prototype.canPlayType,mpegurlRE=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,mp4RE=/^video\/mp4/i;Html5.patchCanPlayType=function(){ANDROID_VERSION>=4&&!IS_FIREFOX?Html5.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&mpegurlRE.test(e)?"maybe":canPlayType.call(this,e)}:IS_OLD_ANDROID&&(Html5.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&mp4RE.test(e)?"maybe":canPlayType.call(this,e)})},Html5.unpatchCanPlayType=function(){var e=Html5.TEST_VID.constructor.prototype.canPlayType;return Html5.TEST_VID.constructor.prototype.canPlayType=canPlayType,e},Html5.patchCanPlayType(),Html5.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),typeof e.load=="function"&&function(){try{e.load()}catch(t){}}()}},Html5.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),r=t.length;r--;)e.removeChild(t[r]);e.removeAttribute("src"),typeof e.load=="function"&&function(){try{e.load()}catch(n){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Html5.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Html5.prototype["set"+toTitleCase(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){Html5.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(e){Html5.prototype["set"+toTitleCase(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Html5.prototype[e]=function(){return this.el_[e]()}}),Tech.withSourceHandlers(Html5),Html5.nativeSourceHandler={},Html5.nativeSourceHandler.canPlayType=function(e){setTimeout(function(){},2e3);try{return Html5.TEST_VID.canPlayType(e)}catch(t){return""}},Html5.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Html5.nativeSourceHandler.canPlayType(e.type);if(e.src){var r=getFileExtension(e.src);return Html5.nativeSourceHandler.canPlayType("video/"+r)}return""},Html5.nativeSourceHandler.handleSource=function(e,t,r){t.setSrc(e.src)},Html5.nativeSourceHandler.dispose=function(){},Html5.registerSourceHandler(Html5.nativeSourceHandler),Tech.registerTech("Html5",Html5);var _templateObject$1=taggedTemplateLiteralLoose([`
  190. Using the tech directly can be dangerous. I hope you know what you're doing.
  191. See https://github.com/videojs/video.js/issues/2617 for more info.
  192. `],[`
  193. Using the tech directly can be dangerous. I hope you know what you're doing.
  194. See https://github.com/videojs/video.js/issues/2617 for more info.
  195. `]),preventScroll=function(e){e.preventDefault()},TECH_EVENTS_RETRIGGER=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","resize","volumechange","texttrackchange"],Player=function(e){function t(r,n,s){if(classCallCheck(this,t),r.id=r.id||"vjs_video_"+newGUID(),n=assign(t.getTagSettings(r),n),n.initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language)if(typeof r.closest=="function"){var a=r.closest("[lang]");a&&a.getAttribute&&(n.language=a.getAttribute("lang"))}else for(var l=r;l&&l.nodeType===1;){if(getAttributes(l).hasOwnProperty("lang")){n.language=l.getAttribute("lang");break}l=l.parentNode}var u=possibleConstructorReturn(this,e.call(this,null,n,s));if(u.isReady_=!1,u.hasStarted_=!1,u.userActive_=!1,!u.options_||!u.options_.techOrder||!u.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(u.tag=r,u.tagAttributes=r&&getAttributes(r),u.language(u.options_.language),n.languages){var p={};Object.getOwnPropertyNames(n.languages).forEach(function(_){p[_.toLowerCase()]=n.languages[_]}),u.languages_=p}else u.languages_=t.prototype.options_.languages;u.cache_={},u.poster_=n.poster||"",u.controls_=!!n.controls,u.cache_.lastVolume=1,r.controls=!1,r.removeAttribute("controls"),u.scrubbing_=!1,u.el_=u.createEl(),evented(u,{eventBusKey:"el_"});var d=mergeOptions(u.options_);if(n.plugins){var f=n.plugins;Object.keys(f).forEach(function(_){if(typeof this[_]!="function")throw new Error('plugin "'+_+'" does not exist');this[_](f[_])},u)}return u.options_.playerOptions=d,u.middleware_=[],u.initChildren(),u.isAudio(r.nodeName.toLowerCase()==="audio"),u.controls()?u.addClass("vjs-controls-enabled"):u.addClass("vjs-controls-disabled"),u.el_.setAttribute("role","region"),u.isAudio()?u.el_.setAttribute("aria-label",u.localize("Audio Player")):u.el_.setAttribute("aria-label",u.localize("Video Player")),u.isAudio()&&u.addClass("vjs-audio"),u.flexNotSupported_()&&u.addClass("vjs-no-flex"),IS_IOS||IS_ANDROID||u.addClass("vjs-workinghover"),t.players[u.id_]=u,u.userActive(!0),u.reportUserActivity(),u.listenForUserActivity_(),u.on("fullscreenchange",u.handleFullscreenChange_),u.on("stageclick",u.handleStageClick_),u.changingSrc_=!1,u.playWaitingForReady_=!1,u.playOnLoadstart_=null,u.forceAutoplayInChrome_(),u}return inherits(t,e),t.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var r=this.tag,n=void 0,s=this.playerElIngest_=r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player"),a=this.tag.tagName.toLowerCase()==="video-js";s?n=this.el_=r.parentNode:a||(n=this.el_=e.prototype.createEl.call(this,"div"));var l=getAttributes(r);if(a){for(n=this.el_=r,r=this.tag=document_1.createElement("video");n.children.length;)r.appendChild(n.firstChild);hasClass(n,"video-js")||addClass(n,"video-js"),n.appendChild(r),s=this.playerElIngest_=n}if(r.setAttribute("tabindex","-1"),r.removeAttribute("width"),r.removeAttribute("height"),Object.getOwnPropertyNames(l).forEach(function(b){b==="class"?(n.className+=" "+l[b],a&&(r.className+=" "+l[b])):(n.setAttribute(b,l[b]),a&&r.setAttribute(b,l[b]))}),r.playerId=r.id,r.id+="_html5_api",r.className="vjs-tech",r.player=n.player=this,this.addClass("vjs-paused"),window_1.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=createStyleElement("vjs-styles-dimensions");var u=$(".vjs-styles-defaults"),p=$("head");p.insertBefore(this.styleEl_,u?u.nextSibling:p.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var d=r.getElementsByTagName("a"),f=0;f<d.length;f++){var _=d.item(f);addClass(_,"vjs-hidden"),_.setAttribute("hidden","hidden")}r.initNetworkState_=r.networkState,r.parentNode&&!s&&r.parentNode.insertBefore(n,r),prependTo(r,n),this.children_.unshift(r),this.el_.setAttribute("lang",this.language_);var y=document_1.createElement("div");return addClass(y,"safe-check-element"),n.appendChild(y),this.el_=n,n},t.prototype.width=function(r,n){return this.dimension("width",r,n)},t.prototype.height=function(r,n){return this.dimension("height",r,n)},t.prototype.dimension=function(r,n,s){var a=r+"_";if(n===void 0)return this[a]||0;if(n==="")return this[a]=void 0,void this.updateStyleEl_();var l=parseFloat(n);if(isNaN(l))return void log$2.error('Improper value "'+n+'" supplied for for '+r);this[a]=l,this.updateStyleEl_(),this.isReady_&&!s&&this.trigger("playerresize")},t.prototype.fluid=function(r){if(r===void 0)return!!this.fluid_;this.fluid_=!!r,r?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.aspectRatio=function(r){if(r===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(r))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=r,this.fluid(!0),this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){if(window_1.VIDEOJS_NO_DYNAMIC_STYLE===!0){var r=typeof this.width_=="number"?this.width_:this.options_.width,n=typeof this.height_=="number"?this.height_:this.options_.height,s=this.tech_&&this.tech_.el();return void(s&&(r>=0&&(s.width=r),n>=0&&(s.height=n)))}var a=void 0,l=void 0,u=void 0,p=void 0;u=this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var d=u.split(":"),f=d[1]/d[0];a=this.width_!==void 0?this.width_:this.height_!==void 0?this.height_/f:this.videoWidth()||300,l=this.height_!==void 0?this.height_:a*f,p=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(p),setTextContent(this.styleEl_,`
  196. .`+p+` {
  197. width: `+a+`px;
  198. height: `+l+`px;
  199. }
  200. .`+p+`.vjs-fluid {
  201. padding-top: `+100*f+`%;
  202. }
  203. `)},t.prototype.loadTech_=function(r,n){var s=this;this.tech_&&this.unloadTech_();var a=toTitleCase(r),l=r.charAt(0).toLowerCase()+r.slice(1);a!=="Html5"&&this.tag&&(Tech.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=a,this.isReady_=!1;var u={source:n,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_api",autoplay:this.options_.autoplay,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],swf:this.options_.swf,hlsConfig:this.options_.hlsConfig,dashConfig:this.options_.dashConfig,flvConfig:this.options_.flvConfig,webrtcConfig:this.options_.webrtcConfig,xp2pConfig:this.options_.xp2pConfig};ALL.names.forEach(function(d){var f=ALL[d];u[f.getterName]=s[f.privateName]}),assign(u,this.options_[a]),assign(u,this.options_[l]),assign(u,this.options_[r.toLowerCase()]),this.tag&&(u.tag=this.tag),n&&n.src===this.cache_.src&&this.cache_.currentTime>0&&(u.startTime=this.cache_.currentTime);var p=Tech.getTech(r);if(!p)throw new Error("No Tech named '"+a+"' exists! '"+a+"' should be registered using videojs.registerTech()'");this.tech_=new p(this,u),this.tech_.ready(bind(this,this.handleTechReady_),!0),textTrackConverter.jsonToTextTracks(this.textTracksJson_||[],this.tech_),TECH_EVENTS_RETRIGGER.forEach(function(d){s.on(s.tech_,d,s["handleTech"+toTitleCase(d)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"x5videoexitfullscreen",this.handleX5ExitFullscreen_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||a==="Html5"&&this.tag||prependTo(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var r=this;ALL.names.forEach(function(n){var s=ALL[n];r[s.privateName]=r[s.getterName]()}),this.textTracksJson_=textTrackConverter.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},t.prototype.tech=function(r){return r===void 0&&log$2.warn(tsml(_templateObject$1)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.tech_&&(this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_))},t.prototype.removeTechControlsListeners_=function(){this.tech_&&(this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_))},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(r){log$2("deleting tag.poster throws in some browsers",r)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(r){if(r===void 0)return this.hasStarted_;r!==this.hasStarted_&&(this.hasStarted_=r,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechWaiting_=function(){var r=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return r.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(log$2.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(r){isSingleLeftClick(r)&&this.controls_&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(r){r.preventDefault()},t.prototype.handleFullscreenChange_=function(){IS_IOS||(this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen"))},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.toggleFullscreenClass_=function(){IS_IOS||(this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen"))},t.prototype.documentFullscreenChange_=function(r){var n=FullscreenApi;this.isFullscreen(document_1[n.fullscreenElement]),this.isFullscreen()===!1&&off(document_1,n.fullscreenchange,bind(this,this.documentFullscreenChange_)),prefixedAPI||this.trigger("fullscreenchange")},t.prototype.handleTechFullscreenChange_=function(r,n){n&&this.isFullscreen(n.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var r=this.tech_.error();this.error(r)},t.prototype.handleTechTextData_=function(){var r=null;arguments.length>1&&(r=arguments[1]),this.trigger("textdata",r)},t.prototype.handleX5ExitFullscreen_=function(){this.removeClass("vjs-fullscreen"),this.isFullscreen_=!this.isFullscreen_},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(r,n){this.ready(function(){if(r in allowedSetters)return set$1(this.middleware_,this.tech_,r,n);try{this.tech_&&this.tech_[r](n)}catch(s){throw log$2(s),s}},!0)},t.prototype.techGet_=function(r){if(this.tech_&&this.tech_.isReady_){if(r in allowedGetters)return get$1(this.middleware_,this.tech_,r);try{return this.tech_[r]()}catch(n){throw this.tech_[r]===void 0?(log$2("Video.js: "+r+" method not defined for "+this.techName_+" playback technology.",n),n):n.name==="TypeError"?(log$2("Video.js: "+r+" unavailable on "+this.techName_+" playback technology element.",n),this.tech_.isReady_=!1,n):(log$2(n),n)}}},t.prototype.play=function(){var r=this;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return this.techGet_("play");this.playOnLoadstart_=function(){r.playOnLoadstart_=null,silencePromise(r.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){r.playWaitingForReady_=!1,silencePromise(r.play())})}},t.prototype.pause=function(){this.techCall_("pause")},t.prototype.paused=function(){return this.techGet_("paused")!==!1},t.prototype.played=function(){return this.techGet_("played")||createTimeRanges(0,0)},t.prototype.scrubbing=function(r){if(r===void 0)return this.scrubbing_;this.scrubbing_=!!r,r?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(r){if(r!==void 0)return r<0&&(r=0),void this.techCall_("setCurrentTime",r);try{return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime}catch(n){return 0}},t.prototype.duration=function(r){if(r===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;r=parseFloat(r),r<=0&&(r=1/0),r!==this.cache_.duration&&(this.cache_.duration=r,r===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var r=this.techGet_("buffered");return r&&r.length||(r=createTimeRanges(0,0)),r},t.prototype.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var r=this.buffered(),n=this.duration(),s=r.end(r.length-1);return s>n&&(s=n),s},t.prototype.volume=function(r){var n=void 0;return r!==void 0?(n=Math.max(0,Math.min(1,parseFloat(r))),this.cache_.volume=n,this.techCall_("setVolume",n),void(n>0&&this.lastVolume_(n))):(n=parseFloat(this.techGet_("volume")),isNaN(n)?1:n)},t.prototype.muted=function(r){return r!==void 0?void this.techCall_("setMuted",r):this.techGet_("muted")||!1},t.prototype.defaultMuted=function(r){return r!==void 0?this.techCall_("setDefaultMuted",r):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(r){return r!==void 0&&r!==0?void(this.cache_.lastVolume=r):this.cache_.lastVolume},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(r){return r!==void 0?(this.isFullscreen_=!!r,void this.toggleFullscreenClass_()):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var r=FullscreenApi;if(this.isFullscreen(!0),this.options_.fakeFullscreen){var n=this;return IS_IOS?(n.el_.style.width="100vw",n.el_.style.height="100vh",n.el_.style.position="fixed",n.el_.style.zIndex="999",n.el_.style.top="0",document_1.body.style.overflowY="hidden",document_1.addEventListener("touchmove",preventScroll,{passive:!1}),this.trigger("fullscreenchange")):(this.enterFullWindow(),this.trigger("fullscreenchange")),!1}r.requestFullscreen?(on(document_1,r.fullscreenchange,bind(this,this.documentFullscreenChange_)),this.el_[r.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(){var r=FullscreenApi;if(this.isFullscreen(!1),this.options_.fakeFullscreen)return IS_IOS?(this.el_.removeAttribute("style"),document_1.removeEventListener("touchmove",preventScroll,{passive:!1}),document_1.body.style.overflowY="",this.trigger("fullscreenchange")):(this.exitFullWindow(),this.trigger("fullscreenchange")),!1;r.requestFullscreen?document_1[r.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=document_1.documentElement.style.overflow,on(document_1,"keydown",bind(this,this.fullWindowOnEscKey)),document_1.documentElement.style.overflow="hidden",addClass(document_1.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(r){r.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,off(document_1,"keydown",this.fullWindowOnEscKey),document_1.documentElement.style.overflow=this.docOrigOverflow,removeClass(document_1.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(r){for(var n=void 0,s=0,a=this.options_.techOrder;s<a.length;s++){var l=a[s],u=Tech.getTech(l);if(u||(u=Component.getComponent(l)),u){if(u.isSupported()&&(n=u.canPlayType(r)))return n}else log$2.error('The "'+l+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(r){var n=this,s=this.options_.techOrder.map(function(u){return[u,Tech.getTech(u)]}).filter(function(u){var p=u[0],d=u[1];return d?d.isSupported():(log$2.error('The "'+p+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),a=function(u,p,d){var f=void 0;return u.some(function(_){return p.some(function(y){if(f=d(_,y))return!0})}),f},l=function(u,p){var d=u[0];if(u[1].canPlaySource(p,n.options_[d.toLowerCase()]))return{source:p,tech:d}};return(this.options_.sourceOrder?a(r,s,function(u){return function(p,d){return u(d,p)}}(l)):a(s,r,l))||!1},t.prototype.src=function(r){var n=this;if(r===void 0)return this.cache_.src||this.techGet_("src");var s=filterSource(r);if(!s.length)return void this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);if(this.cache_.source&&isWebrtcUrl(this.cache_.source.src)&&isWebrtcUrl(s[0].src)&&this.cache_.source.src!==s[0].src){var a=this.tech_.webrtcProvider;if(a&&a.webrtcPlayer&&a.webrtcPlayer.switchStream)return this.tech_.webrtcProvider.webrtcPlayer.switchStream(s[0].src),this.cache_.sources=s,this.cache_.source=s[0],!1}this.cache_.sources=s,this.changingSrc_=!0,this.cache_.source=s[0];try{this.cache_.source&&!isWebrtcUrl(this.cache_.source.src)&&this.options_.autoplay&&setTimeout(function(){var l=n.play&&n.play();isPromise(l)&&l.then().catch(function(){n.trigger("blocked")})},1e3)}catch(l){}setSource(this,s[0],function(l,u){if(n.middleware_=u,n.src_(l)){if(s.length>1){var p=s.slice(1),d=p[0].qualityLabelList;return d&&n.QualitySwitcher().setOptions({qualityLabelList:{video:d.slice(1)}}),n.src(p)}return n.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void n.triggerReady()}n.changingSrc_=!1,n.cache_.src=l.src,setTech(u,n.tech_)})},t.prototype.src_=function(r){var n=this.selectSource([r]);return!n||(window_1.performance&&typeof window_1.performance.mark=="function"&&window_1.performance.mark("firstFrameStart"),titleCaseEquals(n.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",r):this.techCall_("src",r.src),this.options_.preload==="auto"&&this.load()},!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.reset=function(){this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var r=this.currentSource(),n=[];return Object.keys(r).length!==0&&n.push(r),this.cache_.sources||n},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(r){return r!==void 0?(this.techCall_("setPreload",r),void(this.options_.preload=r)):this.techGet_("preload")},t.prototype.autoplay=function(r){return r!==void 0?(this.techCall_("setAutoplay",r),this.options_.autoplay=r,void this.ready(this.forceAutoplayInChrome_)):this.techGet_("autoplay",r)},t.prototype.forceAutoplayInChrome_=function(){this.paused()&&(this.autoplay()||this.options_.autoplay)&&IS_CHROME&&!IS_ANDROID&&this.play()},t.prototype.playsinline=function(r){return r!==void 0?(this.techCall_("setPlaysinline",r),this.options_.playsinline=r,this):this.techGet_("playsinline")},t.prototype.loop=function(r){return r!==void 0?(this.techCall_("setLoop",r),void(this.options_.loop=r)):this.techGet_("loop")},t.prototype.poster=function(r){if(r===void 0)return this.poster_;r||(r=""),this.poster_=r,this.trigger("posterchange")},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(r){if(r===void 0)return!!this.controls_;r=!!r,this.controls_!==r&&(this.controls_=r,this.usingNativeControls()&&this.techCall_("setControls",r),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=function(r){if(r===void 0)return!!this.usingNativeControls_;r=!!r,this.usingNativeControls_!==r&&(this.usingNativeControls_=r,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},t.prototype.error=function(r){return r===void 0?this.error_||null:r===null?(this.error_=r,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new MediaError(r),this.addClass("vjs-error"),log$2.error("(CODE:"+this.error_.code+" "+MediaError.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger({type:"error",data:this.error_}))},t.prototype.reportUserActivity=function(r){this.userActivity_=!0},t.prototype.userActive=function(r){if(r===void 0)return this.userActive_;if((r=!!r)!==this.userActive_){if(this.userActive_=r,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(n){n.stopPropagation(),n.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},t.prototype.listenForUserActivity_=function(){var r=void 0,n=void 0,s=void 0,a=bind(this,this.reportUserActivity),l=function(f){f.screenX===n&&f.screenY===s||(n=f.screenX,s=f.screenY,a())},u=function(){a(),this.clearInterval(r),r=this.setInterval(a,250)},p=function(f){a(),this.clearInterval(r)};this.on("mousedown",u),this.on("mousemove",l),this.on("mouseup",p),this.on("keydown",a),this.on("keyup",a);var d=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(d);var f=this.options_.inactivityTimeout;f<=0||(d=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},f))}},250)},t.prototype.playbackRate=function(r){return r!==void 0?void this.techCall_("setPlaybackRate",r):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.defaultPlaybackRate=function(r){return r!==void 0?this.techCall_("setDefaultPlaybackRate",r):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(r){return r!==void 0?void(this.isAudio_=!!r):!!this.isAudio_},t.prototype.addTextTrack=function(r,n,s){if(this.tech_)return this.tech_.addTextTrack(r,n,s)},t.prototype.addRemoteTextTrack=function(r,n){if(this.tech_)return this.tech_.addRemoteTextTrack(r,n)},t.prototype.removeRemoteTextTrack=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.track,s=n===void 0?arguments[0]:n;if(this.tech_)return this.tech_.removeRemoteTextTrack(s)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(r){if(r===void 0)return this.language_;this.language_=String(r).toLowerCase()},t.prototype.languages=function(){return mergeOptions(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var r=mergeOptions(this.options_),n=r.tracks;r.tracks=[];for(var s=0;s<n.length;s++){var a=n[s];a=mergeOptions(a),a.player=void 0,r.tracks[s]=a}return r},t.prototype.createModal=function(r,n){var s=this;n=n||{},n.content=r||"";var a=new ModalDialog(this,n);return this.addChild(a),a.on("dispose",function(){s.removeChild(a)}),a.open(),a},t.getTagSettings=function(r){var n={sources:[],tracks:[]},s=getAttributes(r),a=s["data-setup"];if(hasClass(r,"vjs-fluid")&&(s.fluid=!0),a!==null){var l=tuple(a||"{}"),u=l[0],p=l[1];u&&log$2.error(u),assign(s,p)}if(assign(n,s),r.hasChildNodes())for(var d=r.childNodes,f=0,_=d.length;f<_;f++){var y=d[f],b=y.nodeName.toLowerCase();b==="source"?n.sources.push(getAttributes(y)):b==="track"&&n.tracks.push(getAttributes(y))}return n},t.prototype.flexNotSupported_=function(){var r=document_1.createElement("i");return!("flexBasis"in r.style||"webkitFlexBasis"in r.style||"mozFlexBasis"in r.style||"msFlexBasis"in r.style||"msFlexOrder"in r.style)},t}(Component);ALL.names.forEach(function(e){var t=ALL[e];Player.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Player.players={};var navigator$1=window_1.navigator;Player.prototype.options_={techOrder:Tech.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings","videoStatisticPanel"],language:navigator$1&&(navigator$1.languages&&navigator$1.languages[0]||navigator$1.userLanguage||navigator$1.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){Player.prototype[e]=function(){return this.techGet_(e)}}),TECH_EVENTS_RETRIGGER.forEach(function(e){Player.prototype["handleTech"+toTitleCase(e)+"_"]=function(){return this.trigger(e)}}),Component.registerComponent("Player",Player);var BASE_PLUGIN_NAME="plugin",PLUGIN_CACHE_KEY="activePlugins_",pluginStorage={},pluginExists=function(e){return pluginStorage.hasOwnProperty(e)},getPlugin=function(e){return pluginExists(e)?pluginStorage[e]:void 0},markPluginAsActive=function(e,t){e[PLUGIN_CACHE_KEY]=e[PLUGIN_CACHE_KEY]||{},e[PLUGIN_CACHE_KEY][t]=!0},triggerSetupEvent=function(e,t,r){var n=(r?"before":"")+"pluginsetup";e.trigger(n,t),e.trigger(n+":"+t.name,t)},createBasicPlugin=function(e,t){var r=function(){triggerSetupEvent(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return markPluginAsActive(this,e),triggerSetupEvent(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(n){r[n]=t[n]}),r},createPluginFactory=function(e,t){return t.prototype.name=e,function(){triggerSetupEvent(this,{name:e,plugin:t,instance:null},!0);for(var r=arguments.length,n=Array(r),s=0;s<r;s++)n[s]=arguments[s];var a=new(Function.prototype.bind.apply(t,[null].concat([this].concat(n))));return this[e]=function(){return a},triggerSetupEvent(this,a.getEventHash()),a}},Plugin=function(){function e(t){if(classCallCheck(this,e),this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,evented(this),delete this.trigger,stateful(this,this.constructor.defaultState),markPluginAsActive(t,this.name),this.dispose=bind(this,this.dispose),t.on("dispose",this.dispose)}return e.prototype.version=function(){return this.constructor.VERSION},e.prototype.getEventHash=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},e.prototype.trigger=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return trigger(this.eventBusEl_,t,this.getEventHash(r))},e.prototype.handleStateChanged=function(t){},e.prototype.dispose=function(){var t=this.name,r=this.player;this.trigger("dispose"),this.off(),r.off("dispose",this.dispose),r[PLUGIN_CACHE_KEY][t]=!1,this.player=this.state=null,r[t]=createPluginFactory(t,pluginStorage[t])},e.isBasic=function(t){var r=typeof t=="string"?getPlugin(t):t;return typeof r=="function"&&!e.prototype.isPrototypeOf(r.prototype)},e.registerPlugin=function(t,r){if(typeof t!="string")throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(t===void 0?"undefined":_typeof(t))+".");if(pluginExists(t))log$2.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Player.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if(typeof r!="function")throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(r===void 0?"undefined":_typeof(r))+".");return pluginStorage[t]=r,t!==BASE_PLUGIN_NAME&&(e.isBasic(r)?Player.prototype[t]=createBasicPlugin(t,r):Player.prototype[t]=createPluginFactory(t,r)),r},e.deregisterPlugin=function(t){if(t===BASE_PLUGIN_NAME)throw new Error("Cannot de-register base plugin.");pluginExists(t)&&(delete pluginStorage[t],delete Player.prototype[t])},e.getPlugins=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Object.keys(pluginStorage),r=void 0;return t.forEach(function(n){var s=getPlugin(n);s&&(r=r||{},r[n]=s)}),r},e.getPluginVersion=function(t){var r=getPlugin(t);return r&&r.VERSION||""},e}();Plugin.getPlugin=getPlugin,Plugin.BASE_PLUGIN_NAME=BASE_PLUGIN_NAME,Plugin.registerPlugin(BASE_PLUGIN_NAME,Plugin),Player.prototype.usingPlugin=function(e){return!!this[PLUGIN_CACHE_KEY]&&this[PLUGIN_CACHE_KEY][e]===!0},Player.prototype.hasPlugin=function(e){return!!pluginExists(e)};var _inherits=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(t===void 0?"undefined":_typeof(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)},extendFn=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(){e.apply(this,arguments)},n={};(t===void 0?"undefined":_typeof(t))==="object"?(t.constructor!==Object.prototype.constructor&&(r=t.constructor),n=t):typeof t=="function"&&(r=t),_inherits(r,e);for(var s in n)n.hasOwnProperty(s)&&(r.prototype[s]=n[s]);return r};if(typeof HTMLVideoElement>"u"&&isReal()&&(document_1.createElement("video"),document_1.createElement("audio"),document_1.createElement("track"),document_1.createElement("video-js")),videojs.hooks_={},videojs.hooks=function(e,t){return videojs.hooks_[e]=videojs.hooks_[e]||[],t&&(videojs.hooks_[e]=videojs.hooks_[e].concat(t)),videojs.hooks_[e]},videojs.hook=function(e,t){videojs.hooks(e,t)},videojs.hookOnce=function(e,t){videojs.hooks(e,[].concat(t).map(function(r){return function n(){return videojs.removeHook(e,n),r.apply(void 0,arguments)}}))},videojs.removeHook=function(e,t){var r=videojs.hooks(e).indexOf(t);return!(r<=-1)&&(videojs.hooks_[e]=videojs.hooks_[e].slice(),videojs.hooks_[e].splice(r,1),!0)},window_1.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&isReal()){var style=$(".vjs-styles-defaults");if(!style){style=createStyleElement("vjs-styles-defaults");var head=$("head");head&&head.insertBefore(style,head.firstChild),setTextContent(style,`
  204. .video-js {
  205. width: 300px;
  206. height: 150px;
  207. }
  208. .vjs-fluid {
  209. padding-top: 56.25%
  210. }
  211. `)}}autoSetupTimeout(1,videojs),videojs.VERSION=version,videojs.options=Player.prototype.options_,videojs.getPlayers=function(){return Player.players},videojs.players=Player.players,videojs.getComponent=Component.getComponent,videojs.registerComponent=function(e,t){Tech.isTech(t)&&log$2.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Component.registerComponent.call(Component,e,t)},videojs.getTech=Tech.getTech,videojs.registerTech=Tech.registerTech,videojs.use=use,videojs.browser=browser,videojs.TOUCH_ENABLED=TOUCH_ENABLED,videojs.extend=extendFn,videojs.mergeOptions=mergeOptions,videojs.bind=bind,videojs.registerPlugin=Plugin.registerPlugin,videojs.plugin=function(e,t){return log$2.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Plugin.registerPlugin(e,t)},videojs.getPlugins=Plugin.getPlugins,videojs.getPlugin=Plugin.getPlugin,videojs.getPluginVersion=Plugin.getPluginVersion,videojs.addLanguage=function(e,t){var r;return e=(""+e).toLowerCase(),videojs.options.languages=mergeOptions(videojs.options.languages,(r={},r[e]=t,r)),videojs.options.languages[e]},videojs.log=log$2,videojs.createTimeRange=videojs.createTimeRanges=createTimeRanges,videojs.formatTime=formatTime,videojs.parseUrl=parseUrl,videojs.isCrossOrigin=isCrossOrigin,videojs.EventTarget=EventTarget,videojs.on=on,videojs.one=one,videojs.off=off,videojs.trigger=trigger,videojs.xhr=xhr,videojs.TextTrack=TextTrack,videojs.AudioTrack=AudioTrack,videojs.VideoTrack=VideoTrack,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){videojs[e]=function(){return log$2.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Dom[e].apply(null,arguments)}}),videojs.computedStyle=computedStyle,videojs.dom=Dom,videojs.url=Url;var enc=createCommonjsModule(function(module,exports){(function(e,t){module.exports=t()})(self,function(){return function(){function __webpack_require__(e){var t=__webpack_module_cache__[e];if(t!==void 0)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}var __webpack_modules__={"./node_modules/@tencent/js-armor-loader/dist/runtime.js":function node_modulesTencentJsArmorLoaderDistRuntimeJs(module){function T(e,t,r,n,s,a,l,u){function p(){return function(C,S,P){return new(Function.bind.apply(C,S))}.apply(null,arguments)}var d=!n;e=+e,t=t||[0],n=n||[[this],[{}]],s=s||{};var f,_=[],y=null;Function.prototype.bind||(f=[].slice,Function.prototype.bind=function(C){if(typeof this!="function")throw new TypeError("bind101");var S=f.call(arguments,1),P=S.length,A=this,x=function(){},R=function(){return S.length=P,S.push.apply(S,arguments),A.apply(x.prototype.isPrototypeOf(this)?this:C,S)};return this.prototype&&(x.prototype=this.prototype),R.prototype=new x,R});var b=[function(){n[n.length-1].length?n.push(n[n.length-1].shift(),!0):n.push(void 0,!1)},function(){n[n.length-2]=n[n.length-2]in n.pop()},function(){n.push(~n.pop())},function(){return!0},function(){var C=n[n.length-2],S=Object.getOwnPropertyDescriptor(C[0],C[1])||{configurable:!0,enumerable:!0};S.set=n[n.length-1],Object.defineProperty(C[0],C[1],S)},function(){n[n.length-2]=n[n.length-2]instanceof n.pop()},function(){n[n.length-2]=n[n.length-2]/n.pop()},function(){_.push([t[e++],n.length,t[e++]])},function(){n[n.length-2]=n[n.length-2]>=n.pop()},function(){n.push("")},function(){n[n.length-2]=n[n.length-2]+n.pop()},function(){n.push(_typeof(n.pop()))},function(){n[n.length-1]=r[n[n.length-1]]},function(){var C,S=[];for(C in n.pop())S.push(C);n.push(S)},function(){n[n.length-1]=t[e++]},function(){n.pop()},function(){n.push(n[t[e++]][0])},function(){n[n.length-2]=n[n.length-2]>>n.pop()},function(){var C=n[n.length-2];C[0][C[1]]=n[n.length-1]},function(){n[n.length-2]=n[n.length-2]-n.pop()},function(){n[n.length-2]=n[n.length-2]==n.pop()},function(){n.push(n[n.length-1])},function(){n[n.length-2]=n[n.length-2]===n.pop()},function(){for(var C=t[e++],S=[],P=t[e++],A=t[e++],x=[],R=0;R<P;R++)S[t[e++]]=n[t[e++]];for(R=0;R<A;R++)x[R]=t[e++];n.push(function E(){var k=S.slice(0);k[0]=[this],k[1]=[arguments],k[2]=[E];for(var I=0;I<x.length&&I<arguments.length;I++)0<x[I]&&(k[x[I]]=[arguments[I]]);return T(C,t,r,k,s)})},function(){e=t[e++]},function(){var C=n.pop();n.push([n[n.pop()][0],C])},function(){n[n.length-1]+=String.fromCharCode(t[e++])},function(){n.push([r,n.pop()])},function(){n[n.length-2]=n[n.length-2]|n.pop()},function(){n.push(void 0)},function(){var C=t[e++];n[n.length-1]&&(e=C)},function(){n[n.length-2]=n[n.length-2]<=n.pop()},function(){n[n.length-2]=n[n.length-2]*n.pop()},function(){n[n.length-2]=n[n.length-2]>n.pop()},function(){throw n[n.length-1]},function(){n[n[n.length-1][0]]=n[n[n.length-1][0]]===void 0?[]:n[n[n.length-1][0]]},function(){},function(){n.push(null)},function(){n.length-=t[e++]},function(){y=null},function(){var C=t[e++],S=n[n.length-2-C];n[n.length-2-C]=n.pop(),n.push(S)},function(){var C=n.pop();s[C]||(r[C]=r[C](),s[C]=1),n.push([r,C])},function(){var C=t[e++],S=C?n.slice(-C):[];n.length-=C,S.unshift(null),n.push(p(n.pop(),S))},function(){n[n.length-2]=n[n.length-2]<n.pop()},function(){var C=n.pop();s[C]||(r[C]=r[C](),s[C]=1),n.push(r[C])},function(){n.push([t[e++]])},function(){var C=t[e++],S=C?n.slice(-C):[];n.length-=C,C=n.pop(),n.push(C[0][C[1]].apply(C[0],S))},function(){n.push(n[n.pop()[0]][0])},function(){n[n[n.length-2][0]][0]=n[n.length-1]},function(){n[n.length-2]=n[n.length-2]^n.pop()},function(){n.push(!1)},function(){n[n.length-2]=n[n.length-2]&n.pop()},function(){var C=t[e++];n[C]=n[C]===void 0?[]:n[C]},function(){var C=n.pop();n.push(C[0][C[1]])},function(){var C=n.pop(),S=n.pop();n.push([S[0][S[1]],C])},function(){var C=n[n.length-2],S=Object.getOwnPropertyDescriptor(C[0],C[1])||{configurable:!0,enumerable:!0};S.get=n[n.length-1],Object.defineProperty(C[0],C[1],S)},function(){for(var C=n.pop(),S=t[e++],P=[],A=t[e++],x=t[e++],R=[],E=0;E<A;E++)P[t[e++]]=n[t[e++]];for(E=0;E<x;E++)R[E]=t[e++];var k=function I(){var O=P.slice(0);O[0]=[this],O[1]=[arguments],O[2]=[I];for(var G=0;G<R.length&&G<arguments.length;G++)0<R[G]&&(O[R[G]]=[arguments[G]]);return T(S,t,r,O,s)};k.toString=function(){return C},n.push(k)},function(){n[n.length-2]=n[n.length-2]<<n.pop()},function(){var C=t[e++],S=C?n.slice(-C):[];n.length-=C,n.push(n.pop().apply(r,S))},function(){var C=t[e++],S=C?n.slice(-C):[];n.length-=C,S.unshift(null),C=n.pop(),n.push(p(C[0][C[1]],S))},function(){return!!y},function(){var C=n.pop();n.push(delete C[0][C[1]])},function(){n.length=t[e++]},function(){n.push(!0)},function(){_.pop()},function(){n.push(t[e++])},function(){n.push(!n.pop())},function(){n.push([n.pop(),n.pop()].reverse())},function(){n[n.length-2]=n[n.length-2]%n.pop()},function(){n[n.length-2]=n[n.length-2]>>>n.pop()}];for(0;;)try{for(var g=!1;!g;)g=b[t[e++]]();if(y)throw y;return d?(n.pop(),n.slice(3+T.v)):n.pop()}catch(C){var m=_.pop();if(m===void 0)throw C;y=C,e=m[0],n.length=m[1],m[2]&&(n[m[2]][0]=y)}}function arrayIndexOf(e,t,r){if(typeof Array.prototype.indexOf=="function")return Array.prototype.indexOf.call(e,t,r);var n,s=o.length;if(s===0)return-1;var a=0|r;if(a>=s)return-1;for(n=Math.max(a>=0?a:s-Math.abs(a),0);n<s;n++)if(n in o&&o[n]===t)return n;return-1}function base64Decode(e){for(var t,r,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),s=String(e).replace(/[=]+$/,""),a=0,l=0,u="";r=s.charAt(l++);~r&&(t=a%4?64*t+r:r,a++%4)?u+=String.fromCharCode(255&t>>(-2*a&6)):0)r=arrayIndexOf(n,r);return u}T.v=0,module.exports.r=function(symbols){for(var result=[],i=0;i<symbols.length;i++)try{result.push(eval(symbols[i]))}catch(e){result.push(void 0)}return result},module.exports.d=function(e){function t(){for(;p===l;)s.push(u),p++,l=n.shift(),u=n.shift()}if(typeof e[1]!="object")return e;for(var r=e[0],n=e[1],s=[],a=base64Decode(r),l=n.shift(),u=n.shift(),p=0,d=0;d<a.length;d++){var f=a.charAt(d).charCodeAt(0);t(),s.push(f),p++}return t(),s},module.exports.g=function(e){return e.shift()[0]},module.exports.v=T},"./aes.js":function(e,t,r){function n(M){return parseInt(M)===M}function s(M){if(!n(M.length))return!1;for(var D=0;D<M.length;D++)if(!n(M[D])||M[D]<0||M[D]>255)return!1;return!0}function a(M,D){if(M.buffer&&M.name==="Uint8Array")return D&&(M=M.slice?M.slice():Array.prototype.slice.call(M)),M;if(Array.isArray(M)){if(!s(M))throw new Error("Array contains invalid value: "+M);return new Uint8Array(M)}if(n(M.length)&&s(M))return new Uint8Array(M);throw new Error("unsupported array-like object")}function l(M){return new Uint8Array(M)}function u(M,D,N,F,U){F==null&&U==null||(M=M.slice?M.slice(F,U):Array.prototype.slice.call(M,F,U)),D.set(M,N)}function p(M){for(var D=[],N=0;N<M.length;N+=4)D.push(M[N]<<24|M[N+1]<<16|M[N+2]<<8|M[N+3]);return D}function d(M){M=a(M,!0);var D=16-M.length%16,N=l(M.length+D);u(M,N);for(var F=M.length;F<N.length;F++)N[F]=D;return N}function f(M){if(M=a(M,!0),M.length<16)throw new Error("PKCS#7 invalid length");var D=M[M.length-1];if(D>16)throw new Error("PKCS#7 padding byte out of range");for(var N=M.length-D,F=0;F<D;F++)if(M[N+F]!==D)throw new Error("PKCS#7 invalid padding byte");var U=l(N);return u(M,U,0,0,N),U}r.r(t),r.d(t,{default:function(){return B}});var _=function(){function M(N){var F=[],U=0;for(N=encodeURI(N);U<N.length;){var W=N.charCodeAt(U++);W===37?(F.push(parseInt(N.substr(U,2),16)),U+=2):F.push(W)}return a(F)}function D(N){for(var F=[],U=0;U<N.length;){var W=N[U];W<128?(F.push(String.fromCharCode(W)),U++):W>191&&W<224?(F.push(String.fromCharCode((31&W)<<6|63&N[U+1])),U+=2):(F.push(String.fromCharCode((15&W)<<12|(63&N[U+1])<<6|63&N[U+2])),U+=3)}return F.join("")}return{toBytes:M,fromBytes:D}}(),y=function(){function M(F){for(var U=[],W=0;W<F.length;W+=2)U.push(parseInt(F.substr(W,2),16));return U}function D(F){for(var U=[],W=0;W<F.length;W++){var Q=F[W];U.push(N[(240&Q)>>4]+N[15&Q])}return U.join("")}var N="0123456789abcdef";return{toBytes:M,fromBytes:D}}(),b={16:10,24:12,32:14},g=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],m=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],C=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],S=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],P=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],A=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],x=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],R=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],E=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],k=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],I=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],O=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],G=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],j=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],V=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925],z=function M(D){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:a(D,!0)}),this._prepare()};z.prototype._prepare=function(){var M=b[this.key.length];if(M==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var D=0;D<=M;D++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var N,F=4*(M+1),U=this.key.length/4,W=p(this.key),D=0;D<U;D++)N=D>>2,this._Ke[N][D%4]=W[D],this._Kd[M-N][D%4]=W[D];for(var Q,Z=0,re=U;re<F;){if(Q=W[U-1],W[0]^=m[Q>>16&255]<<24^m[Q>>8&255]<<16^m[255&Q]<<8^m[Q>>24&255]^g[Z]<<24,Z+=1,U!=8)for(var D=1;D<U;D++)W[D]^=W[D-1];else{for(var D=1;D<U/2;D++)W[D]^=W[D-1];Q=W[U/2-1],W[U/2]^=m[255&Q]^m[Q>>8&255]<<8^m[Q>>16&255]<<16^m[Q>>24&255]<<24;for(var D=U/2+1;D<U;D++)W[D]^=W[D-1]}for(var ne,ie,D=0;D<U&&re<F;)ne=re>>2,ie=re%4,this._Ke[ne][ie]=W[D],this._Kd[M-ne][ie]=W[D++],re++}for(var ne=1;ne<M;ne++)for(var ie=0;ie<4;ie++)Q=this._Kd[ne][ie],this._Kd[ne][ie]=O[Q>>24&255]^G[Q>>16&255]^j[Q>>8&255]^V[255&Q]},z.prototype.encrypt=function(M){if(M.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var D=this._Ke.length-1,N=[0,0,0,0],F=p(M),U=0;U<4;U++)F[U]^=this._Ke[0][U];for(var W=1;W<D;W++){for(var U=0;U<4;U++)N[U]=S[F[U]>>24&255]^P[F[(U+1)%4]>>16&255]^A[F[(U+2)%4]>>8&255]^x[255&F[(U+3)%4]]^this._Ke[W][U];F=N.slice()}for(var Q,Z=l(16),U=0;U<4;U++)Q=this._Ke[D][U],Z[4*U]=255&(m[F[U]>>24&255]^Q>>24),Z[4*U+1]=255&(m[F[(U+1)%4]>>16&255]^Q>>16),Z[4*U+2]=255&(m[F[(U+2)%4]>>8&255]^Q>>8),Z[4*U+3]=255&(m[255&F[(U+3)%4]]^Q);return Z},z.prototype.decrypt=function(M){if(M.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var D=this._Kd.length-1,N=[0,0,0,0],F=p(M),U=0;U<4;U++)F[U]^=this._Kd[0][U];for(var W=1;W<D;W++){for(var U=0;U<4;U++)N[U]=R[F[U]>>24&255]^E[F[(U+3)%4]>>16&255]^k[F[(U+2)%4]>>8&255]^I[255&F[(U+1)%4]]^this._Kd[W][U];F=N.slice()}for(var Q,Z=l(16),U=0;U<4;U++)Q=this._Kd[D][U],Z[4*U]=255&(C[F[U]>>24&255]^Q>>24),Z[4*U+1]=255&(C[F[(U+3)%4]>>16&255]^Q>>16),Z[4*U+2]=255&(C[F[(U+2)%4]>>8&255]^Q>>8),Z[4*U+3]=255&(C[255&F[(U+1)%4]]^Q);return Z};var q=function M(D,N){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",N){if(N.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)")}else N=l(16);this._lastCipherblock=a(N,!0),this._aes=new z(D)};q.prototype.encrypt=function(M){if(M=a(M),M.length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var D=l(M.length),N=l(16),F=0;F<M.length;F+=16){u(M,N,0,F,F+16);for(var U=0;U<16;U++)N[U]^=this._lastCipherblock[U];this._lastCipherblock=this._aes.encrypt(N),u(this._lastCipherblock,D,F)}return D},q.prototype.decrypt=function(M){if(M=a(M),M.length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var D=l(M.length),N=l(16),F=0;F<M.length;F+=16){u(M,N,0,F,F+16),N=this._aes.decrypt(N);for(var U=0;U<16;U++)D[F+U]=N[U]^this._lastCipherblock[U];u(M,this._lastCipherblock,0,F,F+16)}return D};var H=function M(D){if(!(this instanceof M))throw Error("Counter must be instanitated with `new`");D===0||D||(D=1),typeof D=="number"?(this._counter=l(16),this.setValue(D)):this.setBytes(D)};H.prototype.setValue=function(M){if(typeof M!="number"||parseInt(M)!=M)throw new Error("invalid counter value (must be an integer)");if(M>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var D=15;D>=0;--D)this._counter[D]=M%256,M=parseInt(M/256)},H.prototype.setBytes=function(M){if(M=a(M,!0),M.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=M},H.prototype.increment=function(){for(var M=15;M>=0;M--){if(this._counter[M]!==255){this._counter[M]++;break}this._counter[M]=0}};var L={AES:z,Counter:H,modeOfOperation:{cbc:q},utils:{hex:y,utf8:_},padding:{pkcs7:{pad:d,strip:f}},_arrayTest:{coerceArray:a,createArray:l,copyArray:u}},B=L},"./utils.js":function(e,t,r){function n(){for(var p="",d=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],f=0;f<32;f++)p+=d[s(0,15)];return p}function s(p,d){return Math.floor(Math.random()*(d-p+1)+p)}function a(p){return u.g(u.v(0,u.d(["PgQ0AjQDGA4+CjQCNAM0BDQFNAY0BzQINAlBACwLCRpzGnQachppGm4aZxZCHjQPGDc+Dx0DLQNBASwqADAPDy0EQRkwDw8tBUF7MA8PLQZBADAPDy0GL0EAKQkabBplGm4aZxp0Gmg2NQhCHnMPGOg7Dy0HQQApCRpjGmgaYRpyGkMabxpkGmUaQRp0NhAGLgEwDw8tBxAHQQEgEAUxMA8PLQctBwkadBpvGlMadBpyGmkabhpnGRAELgEwDw8tAwkacBp1GnMaaBkQBy4BDy0GFS8VKAEoAEEBCjAPDgAoABwPGFY0LQhBAikJGmYachpvGm0aQxpoGmEachpDGm8aZBplNhAEQWEKLgEwDw8tCS0DCRpqGm8aaRpuGRAILgEwDw8QCQMtAxcJAAAwDw8dAw==",[7,297]]),[function(){return p===void 0?void 0:p},function(){return typeof Array>"u"?void 0:Array},function(){return typeof String>"u"?void 0:String}])).call(this)}function l(p){return u.g(u.v(0,u.d(["PgQ0AjQDGDQ+DDQCNAM0BDQFNAY0BzQINAk0CjQLQQAsCwkacxp0GnIaaRpuGmcWQh44Dxg7Pg8dAy0DQQEsKgAwDw8tBEEBLCoAMA8PLQVBGTAPDy0GQXswDw8tB0ECKQkaZhpyGm8abRpDGmgaYRpyGkMabxpkGmU2EAVBYQouATAPDy0DQQApCRpzGnAabBppGnQ2EAcuATAPDy0IQQAwDw8tCC8tAwkabBplGm4aZxp0GmgZNQhCHsEPGDsPLQlBAyktAxAIGTUQBS4CMA8PLQkQCUEBIBAGMTAPDy0KQQIpCRpmGnIabxptGkMaaBphGnIaQxpvGmQaZTYQCS4BMA8PLQQJGnAadRpzGmgZEAouAQ8tCBUvFSgBKABBAQowDw4AKAAcDxilGC0LLQQJGmoabxppGm4ZCS4BMA8PEAsDLQMXCQAAMA8PHQM=",[7,326,191,303]]),[function(){return p===void 0?void 0:p},function(){return typeof Array>"u"?void 0:Array},function(){return typeof String>"u"?void 0:String},function(){return typeof parseInt>"u"?void 0:parseInt}])).call(this)}var u=r("./node_modules/@tencent/js-armor-loader/dist/runtime.js");Object.defineProperty(t,"__esModule",{value:!0}),t.genOverlay=n,t.getRandomInt=s,t.encrypto=a,t.decrypto=l},"./node_modules/charenc/charenc.js":function(e){var t={utf8:{stringToBytes:function(r){return t.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(t.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],s=0;s<r.length;s++)n.push(255&r.charCodeAt(s));return n},bytesToString:function(r){for(var n=[],s=0;s<r.length;s++)n.push(String.fromCharCode(r[s]));return n.join("")}}};e.exports=t},"./node_modules/crypt/crypt.js":function(e){(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,s){return n<<s|n>>>32-s},rotr:function(n,s){return n<<32-s|n>>>s},endian:function(n){if(n.constructor==Number)return 16711935&r.rotl(n,8)|4278255360&r.rotl(n,24);for(var s=0;s<n.length;s++)n[s]=r.endian(n[s]);return n},randomBytes:function(n){for(var s=[];n>0;n--)s.push(Math.floor(256*Math.random()));return s},bytesToWords:function(n){for(var s=[],a=0,l=0;a<n.length;a++,l+=8)s[l>>>5]|=n[a]<<24-l%32;return s},wordsToBytes:function(n){for(var s=[],a=0;a<32*n.length;a+=8)s.push(n[a>>>5]>>>24-a%32&255);return s},bytesToHex:function(n){for(var s=[],a=0;a<n.length;a++)s.push((n[a]>>>4).toString(16)),s.push((15&n[a]).toString(16));return s.join("")},hexToBytes:function(n){for(var s=[],a=0;a<n.length;a+=2)s.push(parseInt(n.substr(a,2),16));return s},bytesToBase64:function(n){for(var s=[],a=0;a<n.length;a+=3)for(var l=n[a]<<16|n[a+1]<<8|n[a+2],u=0;u<4;u++)8*a+6*u<=8*n.length?s.push(t.charAt(l>>>6*(3-u)&63)):s.push("=");return s.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var s=[],a=0,l=0;a<n.length;l=++a%4)l!=0&&s.push((t.indexOf(n.charAt(a-1))&Math.pow(2,-2*l+8)-1)<<2*l|t.indexOf(n.charAt(a))>>>6-2*l);return s}};e.exports=r})()},"./node_modules/is-buffer/index.js":function(e){function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function r(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))}e.exports=function(n){return n!=null&&(t(n)||r(n)||!!n._isBuffer)}},"./node_modules/jsencrypt/lib/JSEncrypt.js":function(e,t,r){r.r(t),r.d(t,{JSEncrypt:function(){return l}});var n=r("./node_modules/jsencrypt/lib/lib/jsbn/base64.js"),s=r("./node_modules/jsencrypt/lib/JSEncryptRSAKey.js"),a=r("./node_modules/jsencrypt/lib/version.json"),l=function(){function u(p){p=p||{},this.default_key_size=p.default_key_size?parseInt(p.default_key_size,10):1024,this.default_public_exponent=p.default_public_exponent||"010001",this.log=p.log||!1,this.key=null}return u.prototype.setKey=function(p){this.log&&this.key,this.key=new s.JSEncryptRSAKey(p)},u.prototype.setPrivateKey=function(p){this.setKey(p)},u.prototype.setPublicKey=function(p){this.setKey(p)},u.prototype.decrypt=function(p){try{return this.getKey().decrypt((0,n.b64tohex)(p))}catch(d){return!1}},u.prototype.encrypt=function(p){try{return(0,n.hex2b64)(this.getKey().encrypt(p))}catch(d){return!1}},u.prototype.sign=function(p,d,f){try{return(0,n.hex2b64)(this.getKey().sign(p,d,f))}catch(_){return!1}},u.prototype.verify=function(p,d,f){try{return this.getKey().verify(p,(0,n.b64tohex)(d),f)}catch(_){return!1}},u.prototype.getKey=function(p){if(!this.key){if(this.key=new s.JSEncryptRSAKey,p&&{}.toString.call(p)==="[object Function]")return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,p);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},u.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},u.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},u.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},u.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},u.version=a.version,u}()},"./node_modules/jsencrypt/lib/JSEncryptRSAKey.js":function(e,t,r){r.r(t),r.d(t,{JSEncryptRSAKey:function(){return _}});var n=r("./node_modules/jsencrypt/lib/lib/jsbn/base64.js"),s=r("./node_modules/jsencrypt/lib/lib/asn1js/hex.js"),a=r("./node_modules/jsencrypt/lib/lib/asn1js/base64.js"),l=r("./node_modules/jsencrypt/lib/lib/asn1js/asn1.js"),u=r("./node_modules/jsencrypt/lib/lib/jsbn/rsa.js"),p=r("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),d=r("./node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js"),f=function(){var y=function(b,g){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,C){m.__proto__=C}||function(m,C){for(var S in C)Object.prototype.hasOwnProperty.call(C,S)&&(m[S]=C[S])})(b,g)};return function(b,g){function m(){this.constructor=b}if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");y(b,g),b.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}}(),_=function(y){function b(g){var m=y.call(this)||this;return g&&(typeof g=="string"?m.parseKey(g):(b.hasPrivateKeyProperty(g)||b.hasPublicKeyProperty(g))&&m.parsePropertiesFrom(g)),m}return f(b,y),b.prototype.parseKey=function(g){try{var m=0,C=0,S=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,P=S.test(g)?s.Hex.decode(g):a.Base64.unarmor(g),A=l.ASN1.decode(P);if(A.sub.length===3&&(A=A.sub[2].sub[0]),A.sub.length===9){m=A.sub[1].getHexStringValue(),this.n=(0,p.parseBigInt)(m,16),C=A.sub[2].getHexStringValue(),this.e=parseInt(C,16);var x=A.sub[3].getHexStringValue();this.d=(0,p.parseBigInt)(x,16);var R=A.sub[4].getHexStringValue();this.p=(0,p.parseBigInt)(R,16);var E=A.sub[5].getHexStringValue();this.q=(0,p.parseBigInt)(E,16);var k=A.sub[6].getHexStringValue();this.dmp1=(0,p.parseBigInt)(k,16);var I=A.sub[7].getHexStringValue();this.dmq1=(0,p.parseBigInt)(I,16);var O=A.sub[8].getHexStringValue();this.coeff=(0,p.parseBigInt)(O,16)}else{if(A.sub.length!==2)return!1;var G=A.sub[1],j=G.sub[0];m=j.sub[0].getHexStringValue(),this.n=(0,p.parseBigInt)(m,16),C=j.sub[1].getHexStringValue(),this.e=parseInt(C,16)}return!0}catch(V){return!1}},b.prototype.getPrivateBaseKey=function(){var g={array:[new d.KJUR.asn1.DERInteger({int:0}),new d.KJUR.asn1.DERInteger({bigint:this.n}),new d.KJUR.asn1.DERInteger({int:this.e}),new d.KJUR.asn1.DERInteger({bigint:this.d}),new d.KJUR.asn1.DERInteger({bigint:this.p}),new d.KJUR.asn1.DERInteger({bigint:this.q}),new d.KJUR.asn1.DERInteger({bigint:this.dmp1}),new d.KJUR.asn1.DERInteger({bigint:this.dmq1}),new d.KJUR.asn1.DERInteger({bigint:this.coeff})]};return new d.KJUR.asn1.DERSequence(g).getEncodedHex()},b.prototype.getPrivateBaseKeyB64=function(){return(0,n.hex2b64)(this.getPrivateBaseKey())},b.prototype.getPublicBaseKey=function(){var g=new d.KJUR.asn1.DERSequence({array:[new d.KJUR.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new d.KJUR.asn1.DERNull]}),m=new d.KJUR.asn1.DERSequence({array:[new d.KJUR.asn1.DERInteger({bigint:this.n}),new d.KJUR.asn1.DERInteger({int:this.e})]}),C=new d.KJUR.asn1.DERBitString({hex:"00"+m.getEncodedHex()});return new d.KJUR.asn1.DERSequence({array:[g,C]}).getEncodedHex()},b.prototype.getPublicBaseKeyB64=function(){return(0,n.hex2b64)(this.getPublicBaseKey())},b.wordwrap=function(g,m){if(m=m||64,!g)return g;var C="(.{1,"+m+`})( +|$
  212. ?)|(.{1,`+m+"})";return g.match(RegExp(C,"g")).join(`
  213. `)},b.prototype.getPrivateKey=function(){var g=`-----BEGIN RSA PRIVATE KEY-----
  214. `;return g+=b.wordwrap(this.getPrivateBaseKeyB64())+`
  215. `,g+="-----END RSA PRIVATE KEY-----"},b.prototype.getPublicKey=function(){var g=`-----BEGIN PUBLIC KEY-----
  216. `;return g+=b.wordwrap(this.getPublicBaseKeyB64())+`
  217. `,g+="-----END PUBLIC KEY-----"},b.hasPublicKeyProperty=function(g){return g=g||{},g.hasOwnProperty("n")&&g.hasOwnProperty("e")},b.hasPrivateKeyProperty=function(g){return g=g||{},g.hasOwnProperty("n")&&g.hasOwnProperty("e")&&g.hasOwnProperty("d")&&g.hasOwnProperty("p")&&g.hasOwnProperty("q")&&g.hasOwnProperty("dmp1")&&g.hasOwnProperty("dmq1")&&g.hasOwnProperty("coeff")},b.prototype.parsePropertiesFrom=function(g){this.n=g.n,this.e=g.e,g.hasOwnProperty("d")&&(this.d=g.d,this.p=g.p,this.q=g.q,this.dmp1=g.dmp1,this.dmq1=g.dmq1,this.coeff=g.coeff)},b}(u.RSAKey)},"./node_modules/jsencrypt/lib/index.js":function(e,t,r){r.r(t),r.d(t,{JSEncrypt:function(){return n.JSEncrypt},default:function(){return s}});var n=r("./node_modules/jsencrypt/lib/JSEncrypt.js"),s=n.JSEncrypt},"./node_modules/jsencrypt/lib/lib/asn1js/asn1.js":function(e,t,r){function n(_,y){return _.length>y&&(_=_.substring(0,y)+a),_}r.r(t),r.d(t,{Stream:function(){return p},ASN1:function(){return d},ASN1Tag:function(){return f}});var s=r("./node_modules/jsencrypt/lib/lib/asn1js/int10.js"),a="…",l=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,u=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,p=function(){function _(y,b){this.hexDigits="0123456789ABCDEF",y instanceof _?(this.enc=y.enc,this.pos=y.pos):(this.enc=y,this.pos=b)}return _.prototype.get=function(y){if(y===void 0&&(y=this.pos++),y>=this.enc.length)throw new Error("Requesting byte offset "+y+" on a stream of length "+this.enc.length);return typeof this.enc=="string"?this.enc.charCodeAt(y):this.enc[y]},_.prototype.hexByte=function(y){return this.hexDigits.charAt(y>>4&15)+this.hexDigits.charAt(15&y)},_.prototype.hexDump=function(y,b,g){for(var m="",C=y;C<b;++C)if(m+=this.hexByte(this.get(C)),g!==!0)switch(15&C){case 7:m+=" ";break;case 15:m+=`
  218. `;break;default:m+=" "}return m},_.prototype.isASCII=function(y,b){for(var g=y;g<b;++g){var m=this.get(g);if(m<32||m>176)return!1}return!0},_.prototype.parseStringISO=function(y,b){for(var g="",m=y;m<b;++m)g+=String.fromCharCode(this.get(m));return g},_.prototype.parseStringUTF=function(y,b){for(var g="",m=y;m<b;){var C=this.get(m++);g+=C<128?String.fromCharCode(C):C>191&&C<224?String.fromCharCode((31&C)<<6|63&this.get(m++)):String.fromCharCode((15&C)<<12|(63&this.get(m++))<<6|63&this.get(m++))}return g},_.prototype.parseStringBMP=function(y,b){for(var g,m,C="",S=y;S<b;)g=this.get(S++),m=this.get(S++),C+=String.fromCharCode(g<<8|m);return C},_.prototype.parseTime=function(y,b,g){var m=this.parseStringISO(y,b),C=(g?l:u).exec(m);return C?(g&&(C[1]=+C[1],C[1]+=+C[1]<70?2e3:1900),m=C[1]+"-"+C[2]+"-"+C[3]+" "+C[4],C[5]&&(m+=":"+C[5],C[6]&&(m+=":"+C[6],C[7]&&(m+="."+C[7]))),C[8]&&(m+=" UTC",C[8]!="Z"&&(m+=C[8],C[9]&&(m+=":"+C[9]))),m):"Unrecognized time: "+m},_.prototype.parseInteger=function(y,b){for(var g,m=this.get(y),C=m>127,S=C?255:0,P="";m==S&&++y<b;)m=this.get(y);if((g=b-y)===0)return C?-1:0;if(g>4){for(P=m,g<<=3;!(128&(+P^S));)P=+P<<1,--g;P="("+g+` bit)
  219. `}C&&(m-=256);for(var A=new s.Int10(m),x=y+1;x<b;++x)A.mulAdd(256,this.get(x));return P+A.toString()},_.prototype.parseBitString=function(y,b,g){for(var m=this.get(y),C=(b-y-1<<3)-m,S="("+C+` bit)
  220. `,P="",A=y+1;A<b;++A){for(var x=this.get(A),R=A==b-1?m:0,E=7;E>=R;--E)P+=x>>E&1?"1":"0";if(P.length>g)return S+n(P,g)}return S+P},_.prototype.parseOctetString=function(y,b,g){if(this.isASCII(y,b))return n(this.parseStringISO(y,b),g);var m=b-y,C="("+m+` byte)
  221. `;g/=2,m>g&&(b=y+g);for(var S=y;S<b;++S)C+=this.hexByte(this.get(S));return m>g&&(C+=a),C},_.prototype.parseOID=function(y,b,g){for(var m="",C=new s.Int10,S=0,P=y;P<b;++P){var A=this.get(P);if(C.mulAdd(128,127&A),S+=7,!(128&A)){if(m==="")if((C=C.simplify())instanceof s.Int10)C.sub(80),m="2."+C.toString();else{var x=C<80?C<40?0:1:2;m=x+"."+(C-40*x)}else m+="."+C.toString();if(m.length>g)return n(m,g);C=new s.Int10,S=0}}return S>0&&(m+=".incomplete"),m},_}(),d=function(){function _(y,b,g,m,C){if(!(m instanceof f))throw new Error("Invalid tag value.");this.stream=y,this.header=b,this.length=g,this.tag=m,this.sub=C}return _.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},_.prototype.content=function(y){if(this.tag===void 0)return null;y===void 0&&(y=1/0);var b=this.posContent(),g=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(b,b+g,y);switch(this.tag.tagNumber){case 1:return this.stream.get(b)===0?"false":"true";case 2:return this.stream.parseInteger(b,b+g);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(b,b+g,y);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(b,b+g,y);case 6:return this.stream.parseOID(b,b+g,y);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return n(this.stream.parseStringUTF(b,b+g),y);case 18:case 19:case 20:case 21:case 22:case 26:return n(this.stream.parseStringISO(b,b+g),y);case 30:return n(this.stream.parseStringBMP(b,b+g),y);case 23:case 24:return this.stream.parseTime(b,b+g,this.tag.tagNumber==23)}return null},_.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},_.prototype.toPrettyString=function(y){y===void 0&&(y="");var b=y+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(b+="+"),b+=this.length,this.tag.tagConstructed?b+=" (constructed)":!this.tag.isUniversal()||this.tag.tagNumber!=3&&this.tag.tagNumber!=4||this.sub===null||(b+=" (encapsulates)"),b+=`
  222. `,this.sub!==null){y+=" ";for(var g=0,m=this.sub.length;g<m;++g)b+=this.sub[g].toPrettyString(y)}return b},_.prototype.posStart=function(){return this.stream.pos},_.prototype.posContent=function(){return this.stream.pos+this.header},_.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},_.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},_.decodeLength=function(y){var b=y.get(),g=127&b;if(g==b)return g;if(g>6)throw new Error("Length over 48 bits not supported at position "+(y.pos-1));if(g===0)return null;b=0;for(var m=0;m<g;++m)b=256*b+y.get();return b},_.prototype.getHexStringValue=function(){var y=this.toHexString(),b=2*this.header,g=2*this.length;return y.substr(b,g)},_.decode=function(y){var b;b=y instanceof p?y:new p(y,0);var g=new p(b),m=new f(b),C=_.decodeLength(b),S=b.pos,P=S-g.pos,A=null,x=function(){var E=[];if(C!==null){for(var k=S+C;b.pos<k;)E[E.length]=_.decode(b);if(b.pos!=k)throw new Error("Content size is not correct for container starting at offset "+S)}else try{for(;;){var I=_.decode(b);if(I.tag.isEOC())break;E[E.length]=I}C=S-b.pos}catch(O){throw new Error("Exception while decoding undefined length content: "+O)}return E};if(m.tagConstructed)A=x();else if(m.isUniversal()&&(m.tagNumber==3||m.tagNumber==4))try{if(m.tagNumber==3&&b.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");A=x();for(var R=0;R<A.length;++R)if(A[R].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(E){A=null}if(A===null){if(C===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+S);b.pos=S+Math.abs(C)}return new _(g,P,C,m,A)},_}(),f=function(){function _(y){var b=y.get();if(this.tagClass=b>>6,this.tagConstructed=(32&b)!=0,this.tagNumber=31&b,this.tagNumber==31){var g=new s.Int10;do b=y.get(),g.mulAdd(128,127&b);while(128&b);this.tagNumber=g.simplify()}}return _.prototype.isUniversal=function(){return this.tagClass===0},_.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},_}()},"./node_modules/jsencrypt/lib/lib/asn1js/base64.js":function(e,t,r){r.r(t),r.d(t,{Base64:function(){return s}});var n,s={decode:function(a){var l;if(n===void 0){var u=`= \f
  223. \r  \u2028\u2029`;for(n=Object.create(null),l=0;l<64;++l)n["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l)]=l;for(n["-"]=62,n._=63,l=0;l<u.length;++l)n[u.charAt(l)]=-1}var p=[],d=0,f=0;for(l=0;l<a.length;++l){var _=a.charAt(l);if(_=="=")break;if((_=n[_])!=-1){if(_===void 0)throw new Error("Illegal character at offset "+l);d|=_,++f>=4?(p[p.length]=d>>16,p[p.length]=d>>8&255,p[p.length]=255&d,d=0,f=0):d<<=6}}switch(f){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:p[p.length]=d>>10;break;case 3:p[p.length]=d>>16,p[p.length]=d>>8&255}return p},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(a){var l=s.re.exec(a);if(l)if(l[1])a=l[1];else{if(!l[2])throw new Error("RegExp out of sync");a=l[2]}return s.decode(a)}}},"./node_modules/jsencrypt/lib/lib/asn1js/hex.js":function(e,t,r){r.r(t),r.d(t,{Hex:function(){return s}});var n,s={decode:function(a){var l;if(n===void 0){var u="0123456789ABCDEF",p=` \f
  224. \r  \u2028\u2029`;for(n={},l=0;l<16;++l)n[u.charAt(l)]=l;for(u=u.toLowerCase(),l=10;l<16;++l)n[u.charAt(l)]=l;for(l=0;l<p.length;++l)n[p.charAt(l)]=-1}var d=[],f=0,_=0;for(l=0;l<a.length;++l){var y=a.charAt(l);if(y=="=")break;if((y=n[y])!=-1){if(y===void 0)throw new Error("Illegal character at offset "+l);f|=y,++_>=2?(d[d.length]=f,f=0,_=0):f<<=4}}if(_)throw new Error("Hex encoding incomplete: 4 bits missing");return d}}},"./node_modules/jsencrypt/lib/lib/asn1js/int10.js":function(e,t,r){r.r(t),r.d(t,{Int10:function(){return n}});var n=function(){function s(a){this.buf=[+a||0]}return s.prototype.mulAdd=function(a,l){var u,p,d=this.buf,f=d.length;for(u=0;u<f;++u)p=d[u]*a+l,p<1e13?l=0:(l=0|p/1e13,p-=1e13*l),d[u]=p;l>0&&(d[u]=l)},s.prototype.sub=function(a){var l,u,p=this.buf,d=p.length;for(l=0;l<d;++l)u=p[l]-a,u<0?(u+=1e13,a=1):a=0,p[l]=u;for(;p[p.length-1]===0;)p.pop()},s.prototype.toString=function(a){if((a||10)!=10)throw new Error("only base 10 is supported");for(var l=this.buf,u=l[l.length-1].toString(),p=l.length-2;p>=0;--p)u+=(1e13+l[p]).toString().substring(1);return u},s.prototype.valueOf=function(){for(var a=this.buf,l=0,u=a.length-1;u>=0;--u)l=1e13*l+a[u];return l},s.prototype.simplify=function(){var a=this.buf;return a.length==1?a[0]:this},s}()},"./node_modules/jsencrypt/lib/lib/jsbn/base64.js":function(e,t,r){function n(d){var f,_,y="";for(f=0;f+3<=d.length;f+=3)_=parseInt(d.substring(f,f+3),16),y+=u.charAt(_>>6)+u.charAt(63&_);for(f+1==d.length?(_=parseInt(d.substring(f,f+1),16),y+=u.charAt(_<<2)):f+2==d.length&&(_=parseInt(d.substring(f,f+2),16),y+=u.charAt(_>>2)+u.charAt((3&_)<<4));(3&y.length)>0;)y+=p;return y}function s(d){var f,_="",y=0,b=0;for(f=0;f<d.length&&d.charAt(f)!=p;++f){var g=u.indexOf(d.charAt(f));g<0||(y==0?(_+=(0,l.int2char)(g>>2),b=3&g,y=1):y==1?(_+=(0,l.int2char)(b<<2|g>>4),b=15&g,y=2):y==2?(_+=(0,l.int2char)(b),_+=(0,l.int2char)(g>>2),b=3&g,y=3):(_+=(0,l.int2char)(b<<2|g>>4),_+=(0,l.int2char)(15&g),y=0))}return y==1&&(_+=(0,l.int2char)(b<<2)),_}function a(d){var f,_=s(d),y=[];for(f=0;2*f<_.length;++f)y[f]=parseInt(_.substring(2*f,2*f+2),16);return y}r.r(t),r.d(t,{hex2b64:function(){return n},b64tohex:function(){return s},b64toBA:function(){return a}});var l=r("./node_modules/jsencrypt/lib/lib/jsbn/util.js"),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="="},"./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js":function(e,t,r){function n(){return new y(null)}function s(R,E){return new y(R,E)}function a(R,E){var k=x[R.charCodeAt(E)];return k==null?-1:k}function l(R){var E=n();return E.fromInt(R),E}function u(R){var E,k=1;return(E=R>>>16)!=0&&(R=E,k+=16),(E=R>>8)!=0&&(R=E,k+=8),(E=R>>4)!=0&&(R=E,k+=4),(E=R>>2)!=0&&(R=E,k+=2),(E=R>>1)!=0&&(R=E,k+=1),k}r.r(t),r.d(t,{BigInteger:function(){return y},nbi:function(){return n},parseBigInt:function(){return s},intAt:function(){return a},nbv:function(){return l},nbits:function(){return u}});var p,d=r("./node_modules/jsencrypt/lib/lib/jsbn/util.js"),f=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],_=(1<<26)/f[f.length-1],y=function(){function R(E,k,I){E!=null&&(typeof E=="number"?this.fromNumber(E,k,I):k==null&&typeof E!="string"?this.fromString(E,256):this.fromString(E,k))}return R.prototype.toString=function(E){if(this.s<0)return"-"+this.negate().toString(E);var k;if(E==16)k=4;else if(E==8)k=3;else if(E==2)k=1;else if(E==32)k=5;else{if(E!=4)return this.toRadix(E);k=2}var I,O=(1<<k)-1,G=!1,j="",V=this.t,z=this.DB-V*this.DB%k;if(V-- >0)for(z<this.DB&&(I=this[V]>>z)>0&&(G=!0,j=(0,d.int2char)(I));V>=0;)z<k?(I=(this[V]&(1<<z)-1)<<k-z,I|=this[--V]>>(z+=this.DB-k)):(I=this[V]>>(z-=k)&O,z<=0&&(z+=this.DB,--V)),I>0&&(G=!0),G&&(j+=(0,d.int2char)(I));return G?j:"0"},R.prototype.negate=function(){var E=n();return R.ZERO.subTo(this,E),E},R.prototype.abs=function(){return this.s<0?this.negate():this},R.prototype.compareTo=function(E){var k=this.s-E.s;if(k!=0)return k;var I=this.t;if((k=I-E.t)!=0)return this.s<0?-k:k;for(;--I>=0;)if((k=this[I]-E[I])!=0)return k;return 0},R.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+u(this[this.t-1]^this.s&this.DM)},R.prototype.mod=function(E){var k=n();return this.abs().divRemTo(E,null,k),this.s<0&&k.compareTo(R.ZERO)>0&&E.subTo(k,k),k},R.prototype.modPowInt=function(E,k){var I;return I=E<256||k.isEven()?new g(k):new m(k),this.exp(E,I)},R.prototype.clone=function(){var E=n();return this.copyTo(E),E},R.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},R.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},R.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},R.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},R.prototype.toByteArray=function(){var E=this.t,k=[];k[0]=this.s;var I,O=this.DB-E*this.DB%8,G=0;if(E-- >0)for(O<this.DB&&(I=this[E]>>O)!=(this.s&this.DM)>>O&&(k[G++]=I|this.s<<this.DB-O);E>=0;)O<8?(I=(this[E]&(1<<O)-1)<<8-O,I|=this[--E]>>(O+=this.DB-8)):(I=this[E]>>(O-=8)&255,O<=0&&(O+=this.DB,--E)),128&I&&(I|=-256),G==0&&(128&this.s)!=(128&I)&&++G,(G>0||I!=this.s)&&(k[G++]=I);return k},R.prototype.equals=function(E){return this.compareTo(E)==0},R.prototype.min=function(E){return this.compareTo(E)<0?this:E},R.prototype.max=function(E){return this.compareTo(E)>0?this:E},R.prototype.and=function(E){var k=n();return this.bitwiseTo(E,d.op_and,k),k},R.prototype.or=function(E){var k=n();return this.bitwiseTo(E,d.op_or,k),k},R.prototype.xor=function(E){var k=n();return this.bitwiseTo(E,d.op_xor,k),k},R.prototype.andNot=function(E){var k=n();return this.bitwiseTo(E,d.op_andnot,k),k},R.prototype.not=function(){for(var E=n(),k=0;k<this.t;++k)E[k]=this.DM&~this[k];return E.t=this.t,E.s=~this.s,E},R.prototype.shiftLeft=function(E){var k=n();return E<0?this.rShiftTo(-E,k):this.lShiftTo(E,k),k},R.prototype.shiftRight=function(E){var k=n();return E<0?this.lShiftTo(-E,k):this.rShiftTo(E,k),k},R.prototype.getLowestSetBit=function(){for(var E=0;E<this.t;++E)if(this[E]!=0)return E*this.DB+(0,d.lbit)(this[E]);return this.s<0?this.t*this.DB:-1},R.prototype.bitCount=function(){for(var E=0,k=this.s&this.DM,I=0;I<this.t;++I)E+=(0,d.cbit)(this[I]^k);return E},R.prototype.testBit=function(E){var k=Math.floor(E/this.DB);return k>=this.t?this.s!=0:(this[k]&1<<E%this.DB)!=0},R.prototype.setBit=function(E){return this.changeBit(E,d.op_or)},R.prototype.clearBit=function(E){return this.changeBit(E,d.op_andnot)},R.prototype.flipBit=function(E){return this.changeBit(E,d.op_xor)},R.prototype.add=function(E){var k=n();return this.addTo(E,k),k},R.prototype.subtract=function(E){var k=n();return this.subTo(E,k),k},R.prototype.multiply=function(E){var k=n();return this.multiplyTo(E,k),k},R.prototype.divide=function(E){var k=n();return this.divRemTo(E,k,null),k},R.prototype.remainder=function(E){var k=n();return this.divRemTo(E,null,k),k},R.prototype.divideAndRemainder=function(E){var k=n(),I=n();return this.divRemTo(E,k,I),[k,I]},R.prototype.modPow=function(E,k){var I,O,G=E.bitLength(),j=l(1);if(G<=0)return j;I=G<18?1:G<48?3:G<144?4:G<768?5:6,O=G<8?new g(k):k.isEven()?new C(k):new m(k);var V=[],z=3,q=I-1,H=(1<<I)-1;if(V[1]=O.convert(this),I>1){var L=n();for(O.sqrTo(V[1],L);z<=H;)V[z]=n(),O.mulTo(L,V[z-2],V[z]),z+=2}var B,M,D=E.t-1,N=!0,F=n();for(G=u(E[D])-1;D>=0;){for(G>=q?B=E[D]>>G-q&H:(B=(E[D]&(1<<G+1)-1)<<q-G,D>0&&(B|=E[D-1]>>this.DB+G-q)),z=I;!(1&B);)B>>=1,--z;if((G-=z)<0&&(G+=this.DB,--D),N)V[B].copyTo(j),N=!1;else{for(;z>1;)O.sqrTo(j,F),O.sqrTo(F,j),z-=2;z>0?O.sqrTo(j,F):(M=j,j=F,F=M),O.mulTo(F,V[B],j)}for(;D>=0&&!(E[D]&1<<G);)O.sqrTo(j,F),M=j,j=F,F=M,--G<0&&(G=this.DB-1,--D)}return O.revert(j)},R.prototype.modInverse=function(E){var k=E.isEven();if(this.isEven()&&k||E.signum()==0)return R.ZERO;for(var I=E.clone(),O=this.clone(),G=l(1),j=l(0),V=l(0),z=l(1);I.signum()!=0;){for(;I.isEven();)I.rShiftTo(1,I),k?(G.isEven()&&j.isEven()||(G.addTo(this,G),j.subTo(E,j)),G.rShiftTo(1,G)):j.isEven()||j.subTo(E,j),j.rShiftTo(1,j);for(;O.isEven();)O.rShiftTo(1,O),k?(V.isEven()&&z.isEven()||(V.addTo(this,V),z.subTo(E,z)),V.rShiftTo(1,V)):z.isEven()||z.subTo(E,z),z.rShiftTo(1,z);I.compareTo(O)>=0?(I.subTo(O,I),k&&G.subTo(V,G),j.subTo(z,j)):(O.subTo(I,O),k&&V.subTo(G,V),z.subTo(j,z))}return O.compareTo(R.ONE)!=0?R.ZERO:z.compareTo(E)>=0?z.subtract(E):z.signum()<0?(z.addTo(E,z),z.signum()<0?z.add(E):z):z},R.prototype.pow=function(E){return this.exp(E,new b)},R.prototype.gcd=function(E){var k=this.s<0?this.negate():this.clone(),I=E.s<0?E.negate():E.clone();if(k.compareTo(I)<0){var O=k;k=I,I=O}var G=k.getLowestSetBit(),j=I.getLowestSetBit();if(j<0)return k;for(G<j&&(j=G),j>0&&(k.rShiftTo(j,k),I.rShiftTo(j,I));k.signum()>0;)(G=k.getLowestSetBit())>0&&k.rShiftTo(G,k),(G=I.getLowestSetBit())>0&&I.rShiftTo(G,I),k.compareTo(I)>=0?(k.subTo(I,k),k.rShiftTo(1,k)):(I.subTo(k,I),I.rShiftTo(1,I));return j>0&&I.lShiftTo(j,I),I},R.prototype.isProbablePrime=function(E){var k,I=this.abs();if(I.t==1&&I[0]<=f[f.length-1]){for(k=0;k<f.length;++k)if(I[0]==f[k])return!0;return!1}if(I.isEven())return!1;for(k=1;k<f.length;){for(var O=f[k],G=k+1;G<f.length&&O<_;)O*=f[G++];for(O=I.modInt(O);k<G;)if(O%f[k++]==0)return!1}return I.millerRabin(E)},R.prototype.copyTo=function(E){for(var k=this.t-1;k>=0;--k)E[k]=this[k];E.t=this.t,E.s=this.s},R.prototype.fromInt=function(E){this.t=1,this.s=E<0?-1:0,E>0?this[0]=E:E<-1?this[0]=E+this.DV:this.t=0},R.prototype.fromString=function(E,k){var I;if(k==16)I=4;else if(k==8)I=3;else if(k==256)I=8;else if(k==2)I=1;else if(k==32)I=5;else{if(k!=4)return void this.fromRadix(E,k);I=2}this.t=0,this.s=0;for(var O=E.length,G=!1,j=0;--O>=0;){var V=I==8?255&+E[O]:a(E,O);V<0?E.charAt(O)=="-"&&(G=!0):(G=!1,j==0?this[this.t++]=V:j+I>this.DB?(this[this.t-1]|=(V&(1<<this.DB-j)-1)<<j,this[this.t++]=V>>this.DB-j):this[this.t-1]|=V<<j,(j+=I)>=this.DB&&(j-=this.DB))}I==8&&128&+E[0]&&(this.s=-1,j>0&&(this[this.t-1]|=(1<<this.DB-j)-1<<j)),this.clamp(),G&&R.ZERO.subTo(this,this)},R.prototype.clamp=function(){for(var E=this.s&this.DM;this.t>0&&this[this.t-1]==E;)--this.t},R.prototype.dlShiftTo=function(E,k){var I;for(I=this.t-1;I>=0;--I)k[I+E]=this[I];for(I=E-1;I>=0;--I)k[I]=0;k.t=this.t+E,k.s=this.s},R.prototype.drShiftTo=function(E,k){for(var I=E;I<this.t;++I)k[I-E]=this[I];k.t=Math.max(this.t-E,0),k.s=this.s},R.prototype.lShiftTo=function(E,k){for(var I=E%this.DB,O=this.DB-I,G=(1<<O)-1,j=Math.floor(E/this.DB),V=this.s<<I&this.DM,z=this.t-1;z>=0;--z)k[z+j+1]=this[z]>>O|V,V=(this[z]&G)<<I;for(var z=j-1;z>=0;--z)k[z]=0;k[j]=V,k.t=this.t+j+1,k.s=this.s,k.clamp()},R.prototype.rShiftTo=function(E,k){k.s=this.s;var I=Math.floor(E/this.DB);if(I>=this.t)return void(k.t=0);var O=E%this.DB,G=this.DB-O,j=(1<<O)-1;k[0]=this[I]>>O;for(var V=I+1;V<this.t;++V)k[V-I-1]|=(this[V]&j)<<G,k[V-I]=this[V]>>O;O>0&&(k[this.t-I-1]|=(this.s&j)<<G),k.t=this.t-I,k.clamp()},R.prototype.subTo=function(E,k){for(var I=0,O=0,G=Math.min(E.t,this.t);I<G;)O+=this[I]-E[I],k[I++]=O&this.DM,O>>=this.DB;if(E.t<this.t){for(O-=E.s;I<this.t;)O+=this[I],k[I++]=O&this.DM,O>>=this.DB;O+=this.s}else{for(O+=this.s;I<E.t;)O-=E[I],k[I++]=O&this.DM,O>>=this.DB;O-=E.s}k.s=O<0?-1:0,O<-1?k[I++]=this.DV+O:O>0&&(k[I++]=O),k.t=I,k.clamp()},R.prototype.multiplyTo=function(E,k){var I=this.abs(),O=E.abs(),G=I.t;for(k.t=G+O.t;--G>=0;)k[G]=0;for(G=0;G<O.t;++G)k[G+I.t]=I.am(0,O[G],k,G,0,I.t);k.s=0,k.clamp(),this.s!=E.s&&R.ZERO.subTo(k,k)},R.prototype.squareTo=function(E){for(var k=this.abs(),I=E.t=2*k.t;--I>=0;)E[I]=0;for(I=0;I<k.t-1;++I){var O=k.am(I,k[I],E,2*I,0,1);(E[I+k.t]+=k.am(I+1,2*k[I],E,2*I+1,O,k.t-I-1))>=k.DV&&(E[I+k.t]-=k.DV,E[I+k.t+1]=1)}E.t>0&&(E[E.t-1]+=k.am(I,k[I],E,2*I,0,1)),E.s=0,E.clamp()},R.prototype.divRemTo=function(E,k,I){var O=E.abs();if(!(O.t<=0)){var G=this.abs();if(G.t<O.t)return k!=null&&k.fromInt(0),void(I!=null&&this.copyTo(I));I==null&&(I=n());var j=n(),V=this.s,z=E.s,q=this.DB-u(O[O.t-1]);q>0?(O.lShiftTo(q,j),G.lShiftTo(q,I)):(O.copyTo(j),G.copyTo(I));var H=j.t,L=j[H-1];if(L!=0){var B=L*(1<<this.F1)+(H>1?j[H-2]>>this.F2:0),M=this.FV/B,D=(1<<this.F1)/B,N=1<<this.F2,F=I.t,U=F-H,W=k==null?n():k;for(j.dlShiftTo(U,W),I.compareTo(W)>=0&&(I[I.t++]=1,I.subTo(W,I)),R.ONE.dlShiftTo(H,W),W.subTo(j,j);j.t<H;)j[j.t++]=0;for(;--U>=0;){var Q=I[--F]==L?this.DM:Math.floor(I[F]*M+(I[F-1]+N)*D);if((I[F]+=j.am(0,Q,I,U,0,H))<Q)for(j.dlShiftTo(U,W),I.subTo(W,I);I[F]<--Q;)I.subTo(W,I)}k!=null&&(I.drShiftTo(H,k),V!=z&&R.ZERO.subTo(k,k)),I.t=H,I.clamp(),q>0&&I.rShiftTo(q,I),V<0&&R.ZERO.subTo(I,I)}}},R.prototype.invDigit=function(){if(this.t<1)return 0;var E=this[0];if(!(1&E))return 0;var k=3&E;return k=k*(2-(15&E)*k)&15,k=k*(2-(255&E)*k)&255,k=k*(2-((65535&E)*k&65535))&65535,k=k*(2-E*k%this.DV)%this.DV,k>0?this.DV-k:-k},R.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},R.prototype.exp=function(E,k){if(E>4294967295||E<1)return R.ONE;var I=n(),O=n(),G=k.convert(this),j=u(E)-1;for(G.copyTo(I);--j>=0;)if(k.sqrTo(I,O),(E&1<<j)>0)k.mulTo(O,G,I);else{var V=I;I=O,O=V}return k.revert(I)},R.prototype.chunkSize=function(E){return Math.floor(Math.LN2*this.DB/Math.log(E))},R.prototype.toRadix=function(E){if(E==null&&(E=10),this.signum()==0||E<2||E>36)return"0";var k=this.chunkSize(E),I=Math.pow(E,k),O=l(I),G=n(),j=n(),V="";for(this.divRemTo(O,G,j);G.signum()>0;)V=(I+j.intValue()).toString(E).substr(1)+V,G.divRemTo(O,G,j);return j.intValue().toString(E)+V},R.prototype.fromRadix=function(E,k){this.fromInt(0),k==null&&(k=10);for(var I=this.chunkSize(k),O=Math.pow(k,I),G=!1,j=0,V=0,z=0;z<E.length;++z){var q=a(E,z);q<0?E.charAt(z)=="-"&&this.signum()==0&&(G=!0):(V=k*V+q,++j>=I&&(this.dMultiply(O),this.dAddOffset(V,0),j=0,V=0))}j>0&&(this.dMultiply(Math.pow(k,j)),this.dAddOffset(V,0)),G&&R.ZERO.subTo(this,this)},R.prototype.fromNumber=function(E,k,I){if(typeof k=="number")if(E<2)this.fromInt(1);else for(this.fromNumber(E,I),this.testBit(E-1)||this.bitwiseTo(R.ONE.shiftLeft(E-1),d.op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(k);)this.dAddOffset(2,0),this.bitLength()>E&&this.subTo(R.ONE.shiftLeft(E-1),this);else{var O=[],G=7&E;O.length=1+(E>>3),k.nextBytes(O),G>0?O[0]&=(1<<G)-1:O[0]=0,this.fromString(O,256)}},R.prototype.bitwiseTo=function(E,k,I){var O,G,j=Math.min(E.t,this.t);for(O=0;O<j;++O)I[O]=k(this[O],E[O]);if(E.t<this.t){for(G=E.s&this.DM,O=j;O<this.t;++O)I[O]=k(this[O],G);I.t=this.t}else{for(G=this.s&this.DM,O=j;O<E.t;++O)I[O]=k(G,E[O]);I.t=E.t}I.s=k(this.s,E.s),I.clamp()},R.prototype.changeBit=function(E,k){var I=R.ONE.shiftLeft(E);return this.bitwiseTo(I,k,I),I},R.prototype.addTo=function(E,k){for(var I=0,O=0,G=Math.min(E.t,this.t);I<G;)O+=this[I]+E[I],k[I++]=O&this.DM,O>>=this.DB;if(E.t<this.t){for(O+=E.s;I<this.t;)O+=this[I],k[I++]=O&this.DM,O>>=this.DB;O+=this.s}else{for(O+=this.s;I<E.t;)O+=E[I],k[I++]=O&this.DM,O>>=this.DB;O+=E.s}k.s=O<0?-1:0,O>0?k[I++]=O:O<-1&&(k[I++]=this.DV+O),k.t=I,k.clamp()},R.prototype.dMultiply=function(E){this[this.t]=this.am(0,E-1,this,0,0,this.t),++this.t,this.clamp()},R.prototype.dAddOffset=function(E,k){if(E!=0){for(;this.t<=k;)this[this.t++]=0;for(this[k]+=E;this[k]>=this.DV;)this[k]-=this.DV,++k>=this.t&&(this[this.t++]=0),++this[k]}},R.prototype.multiplyLowerTo=function(E,k,I){var O=Math.min(this.t+E.t,k);for(I.s=0,I.t=O;O>0;)I[--O]=0;for(var G=I.t-this.t;O<G;++O)I[O+this.t]=this.am(0,E[O],I,O,0,this.t);for(var G=Math.min(E.t,k);O<G;++O)this.am(0,E[O],I,O,0,k-O);I.clamp()},R.prototype.multiplyUpperTo=function(E,k,I){--k;var O=I.t=this.t+E.t-k;for(I.s=0;--O>=0;)I[O]=0;for(O=Math.max(k-this.t,0);O<E.t;++O)I[this.t+O-k]=this.am(k-O,E[O],I,0,0,this.t+O-k);I.clamp(),I.drShiftTo(1,I)},R.prototype.modInt=function(E){if(E<=0)return 0;var k=this.DV%E,I=this.s<0?E-1:0;if(this.t>0)if(k==0)I=this[0]%E;else for(var O=this.t-1;O>=0;--O)I=(k*I+this[O])%E;return I},R.prototype.millerRabin=function(E){var k=this.subtract(R.ONE),I=k.getLowestSetBit();if(I<=0)return!1;var O=k.shiftRight(I);(E=E+1>>1)>f.length&&(E=f.length);for(var G=n(),j=0;j<E;++j){G.fromInt(f[Math.floor(Math.random()*f.length)]);var V=G.modPow(O,this);if(V.compareTo(R.ONE)!=0&&V.compareTo(k)!=0){for(var z=1;z++<I&&V.compareTo(k)!=0;)if(V=V.modPowInt(2,this),V.compareTo(R.ONE)==0)return!1;if(V.compareTo(k)!=0)return!1}}return!0},R.prototype.square=function(){var E=n();return this.squareTo(E),E},R.prototype.gcda=function(E,k){var I=this.s<0?this.negate():this.clone(),O=E.s<0?E.negate():E.clone();if(I.compareTo(O)<0){var G=I;I=O,O=G}var j=I.getLowestSetBit(),V=O.getLowestSetBit();if(V<0)return void k(I);j<V&&(V=j),V>0&&(I.rShiftTo(V,I),O.rShiftTo(V,O));var z=function q(){(j=I.getLowestSetBit())>0&&I.rShiftTo(j,I),(j=O.getLowestSetBit())>0&&O.rShiftTo(j,O),I.compareTo(O)>=0?(I.subTo(O,I),I.rShiftTo(1,I)):(O.subTo(I,O),O.rShiftTo(1,O)),I.signum()>0?setTimeout(q,0):(V>0&&O.lShiftTo(V,O),setTimeout(function(){k(O)},0))};setTimeout(z,10)},R.prototype.fromNumberAsync=function(E,k,I,O){if(typeof k=="number")if(E<2)this.fromInt(1);else{this.fromNumber(E,I),this.testBit(E-1)||this.bitwiseTo(R.ONE.shiftLeft(E-1),d.op_or,this),this.isEven()&&this.dAddOffset(1,0);var G=this,j=function q(){G.dAddOffset(2,0),G.bitLength()>E&&G.subTo(R.ONE.shiftLeft(E-1),G),G.isProbablePrime(k)?setTimeout(function(){O()},0):setTimeout(q,0)};setTimeout(j,0)}else{var V=[],z=7&E;V.length=1+(E>>3),k.nextBytes(V),z>0?V[0]&=(1<<z)-1:V[0]=0,this.fromString(V,256)}},R}(),b=function(){function R(){}return R.prototype.convert=function(E){return E},R.prototype.revert=function(E){return E},R.prototype.mulTo=function(E,k,I){E.multiplyTo(k,I)},R.prototype.sqrTo=function(E,k){E.squareTo(k)},R}(),g=function(){function R(E){this.m=E}return R.prototype.convert=function(E){return E.s<0||E.compareTo(this.m)>=0?E.mod(this.m):E},R.prototype.revert=function(E){return E},R.prototype.reduce=function(E){E.divRemTo(this.m,null,E)},R.prototype.mulTo=function(E,k,I){E.multiplyTo(k,I),this.reduce(I)},R.prototype.sqrTo=function(E,k){E.squareTo(k),this.reduce(k)},R}(),m=function(){function R(E){this.m=E,this.mp=E.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<E.DB-15)-1,this.mt2=2*E.t}return R.prototype.convert=function(E){var k=n();return E.abs().dlShiftTo(this.m.t,k),k.divRemTo(this.m,null,k),E.s<0&&k.compareTo(y.ZERO)>0&&this.m.subTo(k,k),k},R.prototype.revert=function(E){var k=n();return E.copyTo(k),this.reduce(k),k},R.prototype.reduce=function(E){for(;E.t<=this.mt2;)E[E.t++]=0;for(var k=0;k<this.m.t;++k){var I=32767&E[k],O=I*this.mpl+((I*this.mph+(E[k]>>15)*this.mpl&this.um)<<15)&E.DM;for(I=k+this.m.t,E[I]+=this.m.am(0,O,E,k,0,this.m.t);E[I]>=E.DV;)E[I]-=E.DV,E[++I]++}E.clamp(),E.drShiftTo(this.m.t,E),E.compareTo(this.m)>=0&&E.subTo(this.m,E)},R.prototype.mulTo=function(E,k,I){E.multiplyTo(k,I),this.reduce(I)},R.prototype.sqrTo=function(E,k){E.squareTo(k),this.reduce(k)},R}(),C=function(){function R(E){this.m=E,this.r2=n(),this.q3=n(),y.ONE.dlShiftTo(2*E.t,this.r2),this.mu=this.r2.divide(E)}return R.prototype.convert=function(E){if(E.s<0||E.t>2*this.m.t)return E.mod(this.m);if(E.compareTo(this.m)<0)return E;var k=n();return E.copyTo(k),this.reduce(k),k},R.prototype.revert=function(E){return E},R.prototype.reduce=function(E){for(E.drShiftTo(this.m.t-1,this.r2),E.t>this.m.t+1&&(E.t=this.m.t+1,E.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);E.compareTo(this.r2)<0;)E.dAddOffset(1,this.m.t+1);for(E.subTo(this.r2,E);E.compareTo(this.m)>=0;)E.subTo(this.m,E)},R.prototype.mulTo=function(E,k,I){E.multiplyTo(k,I),this.reduce(I)},R.prototype.sqrTo=function(E,k){E.squareTo(k),this.reduce(k)},R}(),S=typeof navigator<"u";S&&navigator.appName=="Microsoft Internet Explorer"?(y.prototype.am=function(R,E,k,I,O,G){for(var j=32767&E,V=E>>15;--G>=0;){var z=32767&this[R],q=this[R++]>>15,H=V*z+q*j;z=j*z+((32767&H)<<15)+k[I]+(1073741823&O),O=(z>>>30)+(H>>>15)+V*q+(O>>>30),k[I++]=1073741823&z}return O},p=30):S&&navigator.appName!="Netscape"?(y.prototype.am=function(R,E,k,I,O,G){for(;--G>=0;){var j=E*this[R++]+k[I]+O;O=Math.floor(j/67108864),k[I++]=67108863&j}return O},p=26):(y.prototype.am=function(R,E,k,I,O,G){for(var j=16383&E,V=E>>14;--G>=0;){var z=16383&this[R],q=this[R++]>>14,H=V*z+q*j;z=j*z+((16383&H)<<14)+k[I]+O,O=(z>>28)+(H>>14)+V*q,k[I++]=268435455&z}return O},p=28),y.prototype.DB=p,y.prototype.DM=(1<<p)-1,y.prototype.DV=1<<p,y.prototype.FV=Math.pow(2,52),y.prototype.F1=52-p,y.prototype.F2=2*p-52;var P,A,x=[];for(P="0".charCodeAt(0),A=0;A<=9;++A)x[P++]=A;for(P="a".charCodeAt(0),A=10;A<36;++A)x[P++]=A;for(P="A".charCodeAt(0),A=10;A<36;++A)x[P++]=A;y.ZERO=l(0),y.ONE=l(1)},"./node_modules/jsencrypt/lib/lib/jsbn/prng4.js":function(e,t,r){function n(){return new s}r.r(t),r.d(t,{Arcfour:function(){return s},prng_newstate:function(){return n},rng_psize:function(){return a}});var s=function(){function l(){this.i=0,this.j=0,this.S=[]}return l.prototype.init=function(u){var p,d,f;for(p=0;p<256;++p)this.S[p]=p;for(d=0,p=0;p<256;++p)d=d+this.S[p]+u[p%u.length]&255,f=this.S[p],this.S[p]=this.S[d],this.S[d]=f;this.i=0,this.j=0},l.prototype.next=function(){var u;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,u=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=u,this.S[u+this.S[this.i]&255]},l}(),a=256},"./node_modules/jsencrypt/lib/lib/jsbn/rng.js":function(e,t,r){function n(){if(s==null){for(s=(0,l.prng_newstate)();a<l.rng_psize;){var b=Math.floor(65536*Math.random());u[a++]=255&b}for(s.init(u),a=0;a<u.length;++a)u[a]=0;a=0}return s.next()}r.r(t),r.d(t,{SecureRandom:function(){return y}});var s,a,l=r("./node_modules/jsencrypt/lib/lib/jsbn/prng4.js"),u=null;if(u==null){u=[],a=0;var p=void 0;if(window.crypto&&window.crypto.getRandomValues){var d=new Uint32Array(256);for(window.crypto.getRandomValues(d),p=0;p<d.length;++p)u[a++]=255&d[p]}var f=0,_=function b(g){if((f=f||0)>=256||a>=l.rng_psize)return void(window.removeEventListener?window.removeEventListener("mousemove",b,!1):window.detachEvent&&window.detachEvent("onmousemove",b));try{var m=g.x+g.y;u[a++]=255&m,f+=1}catch(C){}};window.addEventListener?window.addEventListener("mousemove",_,!1):window.attachEvent&&window.attachEvent("onmousemove",_)}var y=function(){function b(){}return b.prototype.nextBytes=function(g){for(var m=0;m<g.length;++m)g[m]=n()},b}()},"./node_modules/jsencrypt/lib/lib/jsbn/rsa.js":function(e,t,r){function n(y,b){if(b<y.length+22)return null;for(var g=b-y.length-6,m="",C=0;C<g;C+=2)m+="ff";var S="0001"+m+"00"+y;return(0,p.parseBigInt)(S,16)}function s(y,b){if(b<y.length+11)return null;for(var g=[],m=y.length-1;m>=0&&b>0;){var C=y.charCodeAt(m--);C<128?g[--b]=C:C>127&&C<2048?(g[--b]=63&C|128,g[--b]=C>>6|192):(g[--b]=63&C|128,g[--b]=C>>6&63|128,g[--b]=C>>12|224)}g[--b]=0;for(var S=new d.SecureRandom,P=[];b>2;){for(P[0]=0;P[0]==0;)S.nextBytes(P);g[--b]=P[0]}return g[--b]=2,g[--b]=0,new p.BigInteger(g)}function a(y,b){for(var g=y.toByteArray(),m=0;m<g.length&&g[m]==0;)++m;if(g.length-m!=b-1||g[m]!=2)return null;for(++m;g[m]!=0;)if(++m>=g.length)return null;for(var C="";++m<g.length;){var S=255&g[m];S<128?C+=String.fromCharCode(S):S>191&&S<224?(C+=String.fromCharCode((31&S)<<6|63&g[m+1]),++m):(C+=String.fromCharCode((15&S)<<12|(63&g[m+1])<<6|63&g[m+2]),m+=2)}return C}function l(y){return _[y]||""}function u(y){for(var b in _)if(_.hasOwnProperty(b)){var g=_[b],m=g.length;if(y.substr(0,m)==g)return y.substr(m)}return y}r.r(t),r.d(t,{RSAKey:function(){return f}});var p=r("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),d=r("./node_modules/jsencrypt/lib/lib/jsbn/rng.js"),f=function(){function y(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return y.prototype.doPublic=function(b){return b.modPowInt(this.e,this.n)},y.prototype.doPrivate=function(b){if(this.p==null||this.q==null)return b.modPow(this.d,this.n);for(var g=b.mod(this.p).modPow(this.dmp1,this.p),m=b.mod(this.q).modPow(this.dmq1,this.q);g.compareTo(m)<0;)g=g.add(this.p);return g.subtract(m).multiply(this.coeff).mod(this.p).multiply(this.q).add(m)},y.prototype.setPublic=function(b,g){b!=null&&g!=null&&b.length>0&&g.length>0&&(this.n=(0,p.parseBigInt)(b,16),this.e=parseInt(g,16))},y.prototype.encrypt=function(b){var g=this.n.bitLength()+7>>3,m=s(b,g);if(m==null)return null;var C=this.doPublic(m);if(C==null)return null;for(var S=C.toString(16),P=S.length,A=0;A<2*g-P;A++)S="0"+S;return S},y.prototype.setPrivate=function(b,g,m){b!=null&&g!=null&&b.length>0&&g.length>0&&(this.n=(0,p.parseBigInt)(b,16),this.e=parseInt(g,16),this.d=(0,p.parseBigInt)(m,16))},y.prototype.setPrivateEx=function(b,g,m,C,S,P,A,x){b!=null&&g!=null&&b.length>0&&g.length>0&&(this.n=(0,p.parseBigInt)(b,16),this.e=parseInt(g,16),this.d=(0,p.parseBigInt)(m,16),this.p=(0,p.parseBigInt)(C,16),this.q=(0,p.parseBigInt)(S,16),this.dmp1=(0,p.parseBigInt)(P,16),this.dmq1=(0,p.parseBigInt)(A,16),this.coeff=(0,p.parseBigInt)(x,16))},y.prototype.generate=function(b,g){var m=new d.SecureRandom,C=b>>1;this.e=parseInt(g,16);for(var S=new p.BigInteger(g,16);;){for(;this.p=new p.BigInteger(b-C,1,m),this.p.subtract(p.BigInteger.ONE).gcd(S).compareTo(p.BigInteger.ONE)!=0||!this.p.isProbablePrime(10););for(;this.q=new p.BigInteger(C,1,m),this.q.subtract(p.BigInteger.ONE).gcd(S).compareTo(p.BigInteger.ONE)!=0||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var P=this.p;this.p=this.q,this.q=P}var A=this.p.subtract(p.BigInteger.ONE),x=this.q.subtract(p.BigInteger.ONE),R=A.multiply(x);if(R.gcd(S).compareTo(p.BigInteger.ONE)==0){this.n=this.p.multiply(this.q),this.d=S.modInverse(R),this.dmp1=this.d.mod(A),this.dmq1=this.d.mod(x),this.coeff=this.q.modInverse(this.p);break}}},y.prototype.decrypt=function(b){var g=(0,p.parseBigInt)(b,16),m=this.doPrivate(g);return m==null?null:a(m,this.n.bitLength()+7>>3)},y.prototype.generateAsync=function(b,g,m){var C=new d.SecureRandom,S=b>>1;this.e=parseInt(g,16);var P=new p.BigInteger(g,16),A=this,x=function R(){var E=function(){if(A.p.compareTo(A.q)<=0){var O=A.p;A.p=A.q,A.q=O}var G=A.p.subtract(p.BigInteger.ONE),j=A.q.subtract(p.BigInteger.ONE),V=G.multiply(j);V.gcd(P).compareTo(p.BigInteger.ONE)==0?(A.n=A.p.multiply(A.q),A.d=P.modInverse(V),A.dmp1=A.d.mod(G),A.dmq1=A.d.mod(j),A.coeff=A.q.modInverse(A.p),setTimeout(function(){m()},0)):setTimeout(R,0)},k=function O(){A.q=(0,p.nbi)(),A.q.fromNumberAsync(S,1,C,function(){A.q.subtract(p.BigInteger.ONE).gcda(P,function(G){G.compareTo(p.BigInteger.ONE)==0&&A.q.isProbablePrime(10)?setTimeout(E,0):setTimeout(O,0)})})},I=function O(){A.p=(0,p.nbi)(),A.p.fromNumberAsync(b-S,1,C,function(){A.p.subtract(p.BigInteger.ONE).gcda(P,function(G){G.compareTo(p.BigInteger.ONE)==0&&A.p.isProbablePrime(10)?setTimeout(k,0):setTimeout(O,0)})})};setTimeout(I,0)};setTimeout(x,0)},y.prototype.sign=function(b,g,m){var C=l(m),S=C+g(b).toString(),P=n(S,this.n.bitLength()/4);if(P==null)return null;var A=this.doPrivate(P);if(A==null)return null;var x=A.toString(16);return 1&x.length?"0"+x:x},y.prototype.verify=function(b,g,m){var C=(0,p.parseBigInt)(g,16),S=this.doPublic(C);return S==null?null:u(S.toString(16).replace(/^1f+00/,""))==m(b).toString()},y}(),_={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"}},"./node_modules/jsencrypt/lib/lib/jsbn/util.js":function(e,t,r){function n(_){return f.charAt(_)}function s(_,y){return _&y}function a(_,y){return _|y}function l(_,y){return _^y}function u(_,y){return _&~y}function p(_){if(_==0)return-1;var y=0;return!(65535&_)&&(_>>=16,y+=16),!(255&_)&&(_>>=8,y+=8),!(15&_)&&(_>>=4,y+=4),!(3&_)&&(_>>=2,y+=2),!(1&_)&&++y,y}function d(_){for(var y=0;_!=0;)_&=_-1,++y;return y}r.r(t),r.d(t,{int2char:function(){return n},op_and:function(){return s},op_or:function(){return a},op_xor:function(){return l},op_andnot:function(){return u},lbit:function(){return p},cbit:function(){return d}});var f="0123456789abcdefghijklmnopqrstuvwxyz"},"./node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js":function(e,t,r){r.r(t),r.d(t,{KJUR:function(){return a}});var n=r("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),s=r("./node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js"),a={};typeof a.asn1<"u"&&a.asn1||(a.asn1={}),a.asn1.ASN1Util=new function(){this.integerToByteHex=function(l){var u=l.toString(16);return u.length%2==1&&(u="0"+u),u},this.bigIntToMinTwosComplementsHex=function(l){var u=l.toString(16);if(u.substr(0,1)!="-")u.length%2==1?u="0"+u:u.match(/^[0-7]/)||(u="00"+u);else{var p=u.substr(1),d=p.length;d%2==1?d+=1:u.match(/^[0-7]/)||(d+=2);for(var f="",_=0;_<d;_++)f+="f";u=new n.BigInteger(f,16).xor(l).add(n.BigInteger.ONE).toString(16).replace(/^-/,"")}return u},this.getPEMStringFromHex=function(l,u){return hextopem(l,u)},this.newObject=function(l){var u=a,p=u.asn1,d=p.DERBoolean,f=p.DERInteger,_=p.DERBitString,y=p.DEROctetString,b=p.DERNull,g=p.DERObjectIdentifier,m=p.DEREnumerated,C=p.DERUTF8String,S=p.DERNumericString,P=p.DERPrintableString,A=p.DERTeletexString,x=p.DERIA5String,R=p.DERUTCTime,E=p.DERGeneralizedTime,k=p.DERSequence,I=p.DERSet,O=p.DERTaggedObject,G=p.ASN1Util.newObject,j=Object.keys(l);if(j.length!=1)throw"key of param shall be only one.";var V=j[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+V+":")==-1)throw"undefined key: "+V;if(V=="bool")return new d(l[V]);if(V=="int")return new f(l[V]);if(V=="bitstr")return new _(l[V]);if(V=="octstr")return new y(l[V]);if(V=="null")return new b(l[V]);if(V=="oid")return new g(l[V]);if(V=="enum")return new m(l[V]);if(V=="utf8str")return new C(l[V]);if(V=="numstr")return new S(l[V]);if(V=="prnstr")return new P(l[V]);if(V=="telstr")return new A(l[V]);if(V=="ia5str")return new x(l[V]);if(V=="utctime")return new R(l[V]);if(V=="gentime")return new E(l[V]);if(V=="seq"){for(var z=l[V],q=[],H=0;H<z.length;H++){var L=G(z[H]);q.push(L)}return new k({array:q})}if(V=="set"){for(var z=l[V],q=[],H=0;H<z.length;H++){var L=G(z[H]);q.push(L)}return new I({array:q})}if(V=="tag"){var B=l[V];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var M=G(B[2]);return new O({tag:B[0],explicit:B[1],obj:M})}var D={};if(B.explicit!==void 0&&(D.explicit=B.explicit),B.tag!==void 0&&(D.tag=B.tag),B.obj===void 0)throw"obj shall be specified for 'tag'.";return D.obj=G(B.obj),new O(D)}},this.jsonToASN1HEX=function(l){return this.newObject(l).getEncodedHex()}},a.asn1.ASN1Util.oidHexToInt=function(l){for(var f="",u=parseInt(l.substr(0,2),16),p=Math.floor(u/40),d=u%40,f=p+"."+d,_="",y=2;y<l.length;y+=2){var b=parseInt(l.substr(y,2),16),g=("00000000"+b.toString(2)).slice(-8);_+=g.substr(1,7),g.substr(0,1)=="0"&&(f=f+"."+new n.BigInteger(_,2).toString(10),_="")}return f},a.asn1.ASN1Util.oidIntToHex=function(l){var u=function(y){var b=y.toString(16);return b.length==1&&(b="0"+b),b};if(!l.match(/^[0-9.]+$/))throw"malformed oid string: "+l;var p="",d=l.split("."),f=40*parseInt(d[0])+parseInt(d[1]);p+=u(f),d.splice(0,2);for(var _=0;_<d.length;_++)p+=function(y){var b="",g=new n.BigInteger(y,10),m=g.toString(2),C=7-m.length%7;C==7&&(C=0);for(var S="",P=0;P<C;P++)S+="0";m=S+m;for(var P=0;P<m.length-1;P+=7){var A=m.substr(P,7);P!=m.length-7&&(A="1"+A),b+=u(parseInt(A,2))}return b}(d[_]);return p},a.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var l=this.hV.length/2,u=l.toString(16);if(u.length%2==1&&(u="0"+u),l<128)return u;var p=u.length/2;if(p>15)throw"ASN.1 length too long to represent by 8x: n = "+l.toString(16);return(128+p).toString(16)+u},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},a.asn1.DERAbstractString=function(l){a.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(this.s)},this.setStringHex=function(u){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"?this.setString(l):typeof l.str<"u"?this.setString(l.str):typeof l.hex<"u"&&this.setStringHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DERAbstractString,a.asn1.ASN1Object),a.asn1.DERAbstractTime=function(l){a.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(u){return utc=u.getTime()+6e4*u.getTimezoneOffset(),new Date(utc)},this.formatDate=function(u,p,d){var f=this.zeroPadding,_=this.localDateToUTC(u),y=String(_.getFullYear());p=="utc"&&(y=y.substr(2,2));var b=f(String(_.getMonth()+1),2),g=f(String(_.getDate()),2),m=f(String(_.getHours()),2),C=f(String(_.getMinutes()),2),S=f(String(_.getSeconds()),2),P=y+b+g+m+C+S;if(d===!0){var A=_.getMilliseconds();if(A!=0){var x=f(String(A),3);x=x.replace(/[0]+$/,""),P=P+"."+x}}return P+"Z"},this.zeroPadding=function(u,p){return u.length>=p?u:new Array(p-u.length+1).join("0")+u},this.getString=function(){return this.s},this.setString=function(u){this.hTLV=null,this.isModified=!0,this.s=u,this.hV=stohex(u)},this.setByDateValue=function(u,p,d,f,_,y){var b=new Date(Date.UTC(u,p-1,d,f,_,y,0));this.setByDate(b)},this.getFreshValueHex=function(){return this.hV}},s.YAHOO.lang.extend(a.asn1.DERAbstractTime,a.asn1.ASN1Object),a.asn1.DERAbstractStructured=function(l){a.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array=u},this.appendASN1Object=function(u){this.hTLV=null,this.isModified=!0,this.asn1Array.push(u)},this.asn1Array=new Array,l!==void 0&&typeof l.array<"u"&&(this.asn1Array=l.array)},s.YAHOO.lang.extend(a.asn1.DERAbstractStructured,a.asn1.ASN1Object),a.asn1.DERBoolean=function(){a.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},s.YAHOO.lang.extend(a.asn1.DERBoolean,a.asn1.ASN1Object),a.asn1.DERInteger=function(l){a.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var p=new n.BigInteger(String(u),10);this.setByBigInteger(p)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.bigint<"u"?this.setByBigInteger(l.bigint):typeof l.int<"u"?this.setByInteger(l.int):typeof l=="number"?this.setByInteger(l):typeof l.hex<"u"&&this.setValueHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DERInteger,a.asn1.ASN1Object),a.asn1.DERBitString=function(l){if(l!==void 0&&typeof l.obj<"u"){var u=a.asn1.ASN1Util.newObject(l.obj);l.hex="00"+u.getEncodedHex()}a.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(p){this.hTLV=null,this.isModified=!0,this.hV=p},this.setUnusedBitsAndHexValue=function(p,d){if(p<0||7<p)throw"unused bits shall be from 0 to 7: u = "+p;var f="0"+p;this.hTLV=null,this.isModified=!0,this.hV=f+d},this.setByBinaryString=function(p){p=p.replace(/0+$/,"");var d=8-p.length%8;d==8&&(d=0);for(var f=0;f<=d;f++)p+="0";for(var _="",f=0;f<p.length-1;f+=8){var y=p.substr(f,8),b=parseInt(y,2).toString(16);b.length==1&&(b="0"+b),_+=b}this.hTLV=null,this.isModified=!0,this.hV="0"+d+_},this.setByBooleanArray=function(p){for(var d="",f=0;f<p.length;f++)p[f]==1?d+="1":d+="0";this.setByBinaryString(d)},this.newFalseArray=function(p){for(var d=new Array(p),f=0;f<p;f++)d[f]=!1;return d},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"&&l.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(l):typeof l.hex<"u"?this.setHexValueIncludingUnusedBits(l.hex):typeof l.bin<"u"?this.setByBinaryString(l.bin):typeof l.array<"u"&&this.setByBooleanArray(l.array))},s.YAHOO.lang.extend(a.asn1.DERBitString,a.asn1.ASN1Object),a.asn1.DEROctetString=function(l){if(l!==void 0&&typeof l.obj<"u"){var u=a.asn1.ASN1Util.newObject(l.obj);l.hex=u.getEncodedHex()}a.asn1.DEROctetString.superclass.constructor.call(this,l),this.hT="04"},s.YAHOO.lang.extend(a.asn1.DEROctetString,a.asn1.DERAbstractString),a.asn1.DERNull=function(){a.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},s.YAHOO.lang.extend(a.asn1.DERNull,a.asn1.ASN1Object),a.asn1.DERObjectIdentifier=function(l){var u=function(d){var f=d.toString(16);return f.length==1&&(f="0"+f),f},p=function(d){var f="",_=new n.BigInteger(d,10),y=_.toString(2),b=7-y.length%7;b==7&&(b=0);for(var g="",m=0;m<b;m++)g+="0";y=g+y;for(var m=0;m<y.length-1;m+=7){var C=y.substr(m,7);m!=y.length-7&&(C="1"+C),f+=u(parseInt(C,2))}return f};a.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(d){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=d},this.setValueOidString=function(d){if(!d.match(/^[0-9.]+$/))throw"malformed oid string: "+d;var f="",_=d.split("."),y=40*parseInt(_[0])+parseInt(_[1]);f+=u(y),_.splice(0,2);for(var b=0;b<_.length;b++)f+=p(_[b]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=f},this.setValueName=function(d){var f=a.asn1.x509.OID.name2oid(d);if(f==="")throw"DERObjectIdentifier oidName undefined: "+d;this.setValueOidString(f)},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l=="string"?l.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(l):this.setValueName(l):l.oid!==void 0?this.setValueOidString(l.oid):l.hex!==void 0?this.setValueHex(l.hex):l.name!==void 0&&this.setValueName(l.name))},s.YAHOO.lang.extend(a.asn1.DERObjectIdentifier,a.asn1.ASN1Object),a.asn1.DEREnumerated=function(l){a.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(u){this.hTLV=null,this.isModified=!0,this.hV=a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(u)},this.setByInteger=function(u){var p=new n.BigInteger(String(u),10);this.setByBigInteger(p)},this.setValueHex=function(u){this.hV=u},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.int<"u"?this.setByInteger(l.int):typeof l=="number"?this.setByInteger(l):typeof l.hex<"u"&&this.setValueHex(l.hex))},s.YAHOO.lang.extend(a.asn1.DEREnumerated,a.asn1.ASN1Object),a.asn1.DERUTF8String=function(l){a.asn1.DERUTF8String.superclass.constructor.call(this,l),this.hT="0c"},s.YAHOO.lang.extend(a.asn1.DERUTF8String,a.asn1.DERAbstractString),a.asn1.DERNumericString=function(l){a.asn1.DERNumericString.superclass.constructor.call(this,l),this.hT="12"},s.YAHOO.lang.extend(a.asn1.DERNumericString,a.asn1.DERAbstractString),a.asn1.DERPrintableString=function(l){a.asn1.DERPrintableString.superclass.constructor.call(this,l),this.hT="13"},s.YAHOO.lang.extend(a.asn1.DERPrintableString,a.asn1.DERAbstractString),a.asn1.DERTeletexString=function(l){a.asn1.DERTeletexString.superclass.constructor.call(this,l),this.hT="14"},s.YAHOO.lang.extend(a.asn1.DERTeletexString,a.asn1.DERAbstractString),a.asn1.DERIA5String=function(l){a.asn1.DERIA5String.superclass.constructor.call(this,l),this.hT="16"},s.YAHOO.lang.extend(a.asn1.DERIA5String,a.asn1.DERAbstractString),a.asn1.DERUTCTime=function(l){a.asn1.DERUTCTime.superclass.constructor.call(this,l),this.hT="17",this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},l!==void 0&&(l.str!==void 0?this.setString(l.str):typeof l=="string"&&l.match(/^[0-9]{12}Z$/)?this.setString(l):l.hex!==void 0?this.setStringHex(l.hex):l.date!==void 0&&this.setByDate(l.date))},s.YAHOO.lang.extend(a.asn1.DERUTCTime,a.asn1.DERAbstractTime),a.asn1.DERGeneralizedTime=function(l){a.asn1.DERGeneralizedTime.superclass.constructor.call(this,l),this.hT="18",this.withMillis=!1,this.setByDate=function(u){this.hTLV=null,this.isModified=!0,this.date=u,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},l!==void 0&&(l.str!==void 0?this.setString(l.str):typeof l=="string"&&l.match(/^[0-9]{14}Z$/)?this.setString(l):l.hex!==void 0?this.setStringHex(l.hex):l.date!==void 0&&this.setByDate(l.date),l.millis===!0&&(this.withMillis=!0))},s.YAHOO.lang.extend(a.asn1.DERGeneralizedTime,a.asn1.DERAbstractTime),a.asn1.DERSequence=function(l){a.asn1.DERSequence.superclass.constructor.call(this,l),this.hT="30",this.getFreshValueHex=function(){for(var u="",p=0;p<this.asn1Array.length;p++)u+=this.asn1Array[p].getEncodedHex();return this.hV=u,this.hV}},s.YAHOO.lang.extend(a.asn1.DERSequence,a.asn1.DERAbstractStructured),a.asn1.DERSet=function(l){a.asn1.DERSet.superclass.constructor.call(this,l),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var u=new Array,p=0;p<this.asn1Array.length;p++){var d=this.asn1Array[p];u.push(d.getEncodedHex())}return this.sortFlag==1&&u.sort(),this.hV=u.join(""),this.hV},l!==void 0&&typeof l.sortflag<"u"&&l.sortflag==0&&(this.sortFlag=!1)},s.YAHOO.lang.extend(a.asn1.DERSet,a.asn1.DERAbstractStructured),a.asn1.DERTaggedObject=function(l){a.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(u,p,d){this.hT=p,this.isExplicit=u,this.asn1Object=d,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=d.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,p),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},l!==void 0&&(typeof l.tag<"u"&&(this.hT=l.tag),typeof l.explicit<"u"&&(this.isExplicit=l.explicit),typeof l.obj<"u"&&(this.asn1Object=l.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},s.YAHOO.lang.extend(a.asn1.DERTaggedObject,a.asn1.ASN1Object)},"./node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js":function(e,t,r){r.r(t),r.d(t,{YAHOO:function(){return n}});var n={};n.lang={extend:function(s,a,l){if(!a||!s)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var u=function(){};if(u.prototype=a.prototype,s.prototype=new u,s.prototype.constructor=s,s.superclass=a.prototype,a.prototype.constructor==Object.prototype.constructor&&(a.prototype.constructor=a),l){var p;for(p in l)s.prototype[p]=l[p];var d=function(){},f=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(d=function(_,y){for(p=0;p<f.length;p+=1){var b=f[p],g=y[b];typeof g=="function"&&g!=Object.prototype[b]&&(_[b]=g)}})}catch(_){}d(s.prototype,l)}}}},"./node_modules/jsencrypt/lib/version.json":function(e){e.exports={version:"3.2.0"}},"./node_modules/md5/md5.js":function(e,t,r){(function(){var n=r("./node_modules/crypt/crypt.js"),s=r("./node_modules/charenc/charenc.js").utf8,a=r("./node_modules/is-buffer/index.js"),l=r("./node_modules/charenc/charenc.js").bin,u=function p(d,f){d.constructor==String?d=f&&f.encoding==="binary"?l.stringToBytes(d):s.stringToBytes(d):a(d)?d=Array.prototype.slice.call(d,0):Array.isArray(d)||d.constructor===Uint8Array||(d=d.toString());for(var _=n.bytesToWords(d),y=8*d.length,b=1732584193,g=-271733879,m=-1732584194,C=271733878,S=0;S<_.length;S++)_[S]=16711935&(_[S]<<8|_[S]>>>24)|4278255360&(_[S]<<24|_[S]>>>8);_[y>>>5]|=128<<y%32,_[14+(y+64>>>9<<4)]=y;for(var P=p._ff,A=p._gg,x=p._hh,R=p._ii,S=0;S<_.length;S+=16){var E=b,k=g,I=m,O=C;b=P(b,g,m,C,_[S+0],7,-680876936),C=P(C,b,g,m,_[S+1],12,-389564586),m=P(m,C,b,g,_[S+2],17,606105819),g=P(g,m,C,b,_[S+3],22,-1044525330),b=P(b,g,m,C,_[S+4],7,-176418897),C=P(C,b,g,m,_[S+5],12,1200080426),m=P(m,C,b,g,_[S+6],17,-1473231341),g=P(g,m,C,b,_[S+7],22,-45705983),b=P(b,g,m,C,_[S+8],7,1770035416),C=P(C,b,g,m,_[S+9],12,-1958414417),m=P(m,C,b,g,_[S+10],17,-42063),g=P(g,m,C,b,_[S+11],22,-1990404162),b=P(b,g,m,C,_[S+12],7,1804603682),C=P(C,b,g,m,_[S+13],12,-40341101),m=P(m,C,b,g,_[S+14],17,-1502002290),g=P(g,m,C,b,_[S+15],22,1236535329),b=A(b,g,m,C,_[S+1],5,-165796510),C=A(C,b,g,m,_[S+6],9,-1069501632),m=A(m,C,b,g,_[S+11],14,643717713),g=A(g,m,C,b,_[S+0],20,-373897302),b=A(b,g,m,C,_[S+5],5,-701558691),C=A(C,b,g,m,_[S+10],9,38016083),m=A(m,C,b,g,_[S+15],14,-660478335),g=A(g,m,C,b,_[S+4],20,-405537848),b=A(b,g,m,C,_[S+9],5,568446438),C=A(C,b,g,m,_[S+14],9,-1019803690),m=A(m,C,b,g,_[S+3],14,-187363961),g=A(g,m,C,b,_[S+8],20,1163531501),b=A(b,g,m,C,_[S+13],5,-1444681467),C=A(C,b,g,m,_[S+2],9,-51403784),m=A(m,C,b,g,_[S+7],14,1735328473),g=A(g,m,C,b,_[S+12],20,-1926607734),b=x(b,g,m,C,_[S+5],4,-378558),C=x(C,b,g,m,_[S+8],11,-2022574463),m=x(m,C,b,g,_[S+11],16,1839030562),g=x(g,m,C,b,_[S+14],23,-35309556),b=x(b,g,m,C,_[S+1],4,-1530992060),C=x(C,b,g,m,_[S+4],11,1272893353),m=x(m,C,b,g,_[S+7],16,-155497632),g=x(g,m,C,b,_[S+10],23,-1094730640),b=x(b,g,m,C,_[S+13],4,681279174),C=x(C,b,g,m,_[S+0],11,-358537222),m=x(m,C,b,g,_[S+3],16,-722521979),g=x(g,m,C,b,_[S+6],23,76029189),b=x(b,g,m,C,_[S+9],4,-640364487),C=x(C,b,g,m,_[S+12],11,-421815835),m=x(m,C,b,g,_[S+15],16,530742520),g=x(g,m,C,b,_[S+2],23,-995338651),b=R(b,g,m,C,_[S+0],6,-198630844),C=R(C,b,g,m,_[S+7],10,1126891415),m=R(m,C,b,g,_[S+14],15,-1416354905),g=R(g,m,C,b,_[S+5],21,-57434055),b=R(b,g,m,C,_[S+12],6,1700485571),C=R(C,b,g,m,_[S+3],10,-1894986606),m=R(m,C,b,g,_[S+10],15,-1051523),g=R(g,m,C,b,_[S+1],21,-2054922799),b=R(b,g,m,C,_[S+8],6,1873313359),C=R(C,b,g,m,_[S+15],10,-30611744),m=R(m,C,b,g,_[S+6],15,-1560198380),g=R(g,m,C,b,_[S+13],21,1309151649),b=R(b,g,m,C,_[S+4],6,-145523070),C=R(C,b,g,m,_[S+11],10,-1120210379),m=R(m,C,b,g,_[S+2],15,718787259),g=R(g,m,C,b,_[S+9],21,-343485551),b=b+E>>>0,g=g+k>>>0,m=m+I>>>0,C=C+O>>>0}return n.endian([b,g,m,C])};u._ff=function(p,d,f,_,y,b,g){var m=p+(d&f|~d&_)+(y>>>0)+g;return(m<<b|m>>>32-b)+d},u._gg=function(p,d,f,_,y,b,g){var m=p+(d&_|f&~_)+(y>>>0)+g;return(m<<b|m>>>32-b)+d},u._hh=function(p,d,f,_,y,b,g){var m=p+(d^f^_)+(y>>>0)+g;return(m<<b|m>>>32-b)+d},u._ii=function(p,d,f,_,y,b,g){var m=p+(f^(d|~_))+(y>>>0)+g;return(m<<b|m>>>32-b)+d},u._blocksize=16,u._digestsize=16,e.exports=function(p,d){if(p==null)throw new Error("Illegal argument "+p);var f=n.wordsToBytes(u(p,d));return d&&d.asBytes?f:d&&d.asString?l.bytesToString(f):n.bytesToHex(f)}})()}},__webpack_module_cache__={};(function(){__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),function(){__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__webpack_require__.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var __webpack_exports__={};return function(){function e(b){return b&&b.__esModule?b:{default:b}}function t(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function r(b,g){for(var m=0;m<g.length;m++){var C=g[m];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(b,C.key,C)}}function n(b,g,m){return g&&r(b.prototype,g),m&&r(b,m),b}function s(b,g,m){return g in b?Object.defineProperty(b,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):b[g]=m,b}var a=__webpack_exports__,l=__webpack_require__("./node_modules/@tencent/js-armor-loader/dist/runtime.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var u=e(__webpack_require__("./node_modules/jsencrypt/lib/index.js")),p=__webpack_require__("./utils.js"),d=e(__webpack_require__("./aes.js")),f=e(__webpack_require__("./node_modules/md5/md5.js")),_=function(){function b(){t(this,b),s(this,"handleWatermarkElementAdd",function(g){g.options.keep?g.waterMarkWillAdd||(g.waterMarkWillAdd=!0,setTimeout(function(){g.player&&g.player.el()&&g.player.el().appendChild(g.containerElement),g.waterMarkWillAdd=!1,g.isFirstShow=!1},1e3*(g.isFirstShow?g.ghostCycle.firstShow:g.ghostCycle.ghostOff))):g.player.$(".tcp-dynamic-watermark-container")?g.player.$(".tcp-dynamic-watermark-content")||g.containerElement.appendChild(g.markContentElement):g.player.el()&&g.player.el().appendChild(g.containerElement)})}return n(b,[{key:"base64ToHex",value:function(g){for(var m=atob(g),C="",S=0;S<m.length;S++){var P=m.charCodeAt(S).toString(16);C+=P.length===2?P:"0"+P}return C}},{key:"checkEnvironment",value:function(){return!(!Hls||!Hls.isSupported())}},{key:"checksum",value:function(g,m){return l.g(l.v(0,l.d(["PgQ0AjQDGDo+BTQCNAM0BC0DQQApCRpnGmUadBpSGmUacxpwGm8abhpzGmUaSBplGmEaZBplGnI2CRpYGi0aVhpvGmQaLRpDGmgaZRpjGmsacxp1Gm0uATAPDy0EQQAOASkJGmQaZRpmGmEadRpsGnQ2NUEADgIpCRpkGmUaYxpyGnkacBp0Gm82NS0ACRpvGnYaZRpyGmwaYRp5GksaZRp5GTU6AUEADgIpCRpkGmUaYxpyGnkacBp0Gm82NS0ACRpvGnYaZRpyGmwaYRp5Gkkadhk1OgEKQQMpCRp0GnIaaRptNi4ACjoBMA8PEAMe9Rj8Gg8QBBADFkIeDxgODzIDPwMtAxcJAAAwDw8dAw==",[7,263,253,258,256,261]]),[function(){return g===void 0?void 0:g},function(){return f===void 0?void 0:f},function(){return p===void 0?void 0:p},function(){return m===void 0?void 0:m}])).call(this)}},{key:"generatePlayCgiUrl",value:function(g,m){return l.g(l.v(0,l.d(["PgQ0AjQDGDg+CTQCNAM0BDQFNAY0BzQILQNBAA4AKQkaZxplGm4aTxp2GmUachpsGmEaeTY1OgAwDw8tBEEADgApCRpnGmUabhpPGnYaZRpyGmwaYRp5NjU6ADAPDy0FQQEpCRpkGmUaZhphGnUabBp0NjsAMA8PLQYJGk0aSRpHGmYaTRpBGjAaRxpDGlMacRpHGlMaSRpiGjMaRBpRGkUaQhpBGlEaVRpBGkEaNBpHGk4aQRpEGkMaQhppGlEaSxpCGmcaURpDGjMacBpEGkEaNxpHGlQaeBpPGnYaThpiGlgaUhpHGk0aaRo5GlEaUxpJGnoaURpFGkkaKxpFGk0aRBoxGkgaYxpVGlAaShpTGlEaUxpGGnUaUhprGloaaxpXGm8aNBpWGlEaRRpDGnUaUBpSGmcaLxp4GlYaahpxGncaWBoxGnkaVRpyGkgaVRp2GkcaURpKGnMaQhp3GlQaUxovGjYaTBpJGmMaURppGlMadxpZGnMaTxpxGmYaKxo4GlQaVxp4GkcaURpPGkoaeRpXGjQaNhpnGlAaUBpRGlYaehpUGmoaThpUGmkaVRpvGnEaNBozGjUaURpCGjAadhoxGjEabBpOGngadhpLGlcaQhpRGkkaWhpMGm0aYRpjGlUaWhoyGnIaMRpBGlAadBphGjcaaRovGk0aWRo0GkwaeBo5GlgabBpaGlYaTRpaGk4aVRpkGlUaeRp3GkkaRBpBGlEaQRpCMA8PLQUJGnMaZRp0GlAadRpiGmwaaRpjGksaZRp5GRAGLgEPLQctAAkaYhphGnMaZRo2GjQaVBpvGkgaZRp4GS0FCRplGm4aYxpyGnkacBp0GRADLgEuATAPDy0ILQAJGmIaYRpzGmUaNho0GlQabxpIGmUaeBktBQkaZRpuGmMachp5GnAadBkQBC4BLgEwDw4CKQkaTRplGmQaaRphGlMabxp1GnIaYxplNjUeDxgeD0ECKQkaTRplGmQaaRphGlMabxp1GnIaYxplNgkacBpyGm8adBpvGnQaeRpwGmU2CRplGm4aZBpPGmYaUxp0GnIaZRphGm02CRp0Gm8aUxp0GnIaaRpuGmc2LgAJGnIaZRpwGmwaYRpjGmVDQQMsCRpcGnMJGmc6AgkuAgkaZhp1Gm4aYxp0GmkabxpuGmUabhpkGk8aZhpTGnQachplGmEabRooGikaexpbGm4aYRp0GmkadhplGmMabxpkGmUaXRp9FkIeDgIpCRpNGmUaZBppGmEaUxpvGnUachpjGmU2CRpwGnIabxp0Gm8adBp5GnAaZTYJGmEaZBpkGlMabxp1GnIaYxplGkIadRpmGmYaZRpyNgkadBpvGlMadBpyGmkabhpnNi4ACRpyGmUacBpsGmEaYxplQ0EDLAkaXBpzCRpnOgIJLgIJGmYadRpuGmMadBppGm8abhphGmQaZBpTGm8adRpyGmMaZRpCGnUaZhpmGmUachooGikaexpbGm4aYRp0GmkadhplGmMabxpkGmUaXRp9FkIeDxgtDy0HLQAJGmIaYRpzGmUaNho0GlQabxpIGmUaeBktBQkaZRpuGmMachp5GnAadBlBAA4AKQkaZxplGm4aTxp2GmUachpsGmEaeTY1OgAuAS4BMA8PLQgtAAkaYhphGnMaZRo2GjQaVBpvGkgaZRp4GS0FCRplGm4aYxpyGnkacBp0GUEADgApCRpnGmUabhpPGnYaZRpyGmwaYRp5NjU6AC4BLgEwDw9BBCkVNQkaJhpjGmkacBpoGmUachplGmQaTxp2GmUachpsGmEaeRpLGmUaeRo9CRpjGm8abhpjGmEadEMQBwkaJhpjGmkacBpoGmUachplGmQaTxp2GmUachpsGmEaeRpJGnYaPS4CCRpjGm8abhpjGmEadEMQCAkaJhprGmUaeRpJGmQaPRoxLgIKEigADw4FKQkaSRpTGl8aRRpOGkEaQhpMGkUaRBpfGk0aUxpFNjUeGC4PQQUpCRpJGlMaXxpUGkIaUzY1Qh4YNA9BBSkJGkkaUxpfGk0aURpRGkI2NUIeGCYPQQUpCRpJGlMaXxpTGkEaRhpBGlIaSTY1Qh4YLQ9BBSkJGkkaRRpfGlYaRRpSGlMaSRpPGk42NR4YLg9BBSkJGkkaRRpfGlYaRRpSGlMaSRpPGk42NUELCEJCQh4PGBAPQQQpFTUJGiYabRpzGmUaPRpvGmYaZgoSKAAPDgQpFTUJGiYacRpzGmkaZxpuGj1BAA4GKQkaZBplGmYaYRp1GmwadDY1CRpvGnYaZRpyGmwaYRp5GksaZRp5Gj0JGmMabxpuGmMaYRp0QxADCRomGm8adhplGnIabBphGnkaSRp2Gj0uAgkaYxpvGm4aYxphGnRDEAQJGiYabRpzGmUaPRpvGmYaZi4COgEKChIPDy0ACRpvGnYaZRpyGmwaYRp5GksaZRp5GUEADgApCRplGm4aYxpyGnkacBp0Gm82NRADOgESDw8tAAkabxp2GmUachpsGmEaeRpJGnYZQQAOACkJGmUabhpjGnIaeRpwGnQabzY1EAQ6ARIoAA8OBCwDLQMXCQAAMA8PHQM=",[7,1944,730,735,733,1319,933,1146,1147,1152,1150,1319,1497,1501,1499,1521,1522,1526,1524,1548,1549,1553,1551,1579,1580,1584,1582,1648,1612,1616,1614,1647,1650,1655,1653,1831]]),[function(){return p===void 0?void 0:p},function(){return u===void 0?void 0:u},function(){return typeof window>"u"?void 0:window},function(){return typeof RegExp>"u"?void 0:RegExp},function(){return g===void 0?void 0:g},function(){return m===void 0?void 0:m},function(){return f===void 0?void 0:f}])).call(this)}},{key:"generateKey",value:function(g){var m,C=new Uint8Array(g);if(this.overlayKey&&this.overlayIv){for(var S=[],P=[],A=0;A<16;A++){var x=this.overlayKey.substring(2*A,2*A+2),R=this.overlayIv.substring(2*A,2*A+2);S.push(parseInt(x,16)),P.push(parseInt(R,16))}m=new d.default.modeOfOperation.cbc(S,P).decrypt(C)}return m||C}},{key:"calculateGhost",value:function(g){var m,C=g/4;m=C<=15?g/2:C<=450?g/4:450;var S=m/4,P=m-S;return{firstShow:localStorage.getItem("ghostWatermarkFirstShow")||Math.random()*P+.01,ghostOn:S,ghostOff:P}}}],[{key:"elemManage",value:function(g){var m=this,C=this;g.on("dispose",function(){clearInterval(C.timer)}),this.timer=setInterval(function(){var S=document.querySelector(".safe-check-element");S&&S.style.display!=="none"||(clearInterval(m.timer),g.dispose())},5e3)}}]),b}(),y=_;a.default=y}(),__webpack_exports__=__webpack_exports__.default}()})}),Enc=unwrapExports(enc),strictUriEncode=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})},getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty$1=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable,objectAssign=shouldUseNative()?Object.assign:function(e,t){for(var r,n,s=toObject(e),a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var l in r)hasOwnProperty$1.call(r,l)&&(s[l]=r[l]);if(getOwnPropertySymbols){n=getOwnPropertySymbols(r);for(var u=0;u<n.length;u++)propIsEnumerable.call(r,n[u])&&(s[n[u]]=r[n[u]])}}return s},token="%[a-f0-9]{2}",singleMatcher=new RegExp(token,"gi"),multiMatcher=new RegExp("("+token+")+","gi"),decodeUriComponent=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return customDecodeURIComponent(e)}},extract_1=extract,parse_1=parse,stringify=function(e,t){t=objectAssign({encode:!0,strict:!0,arrayFormat:"none"},t),t.sort===!1&&(t.sort=function(){});var r=encoderForArrayFormat(t);return e?Object.keys(e).sort(t.sort).map(function(n){var s=e[n];if(s===void 0)return"";if(s===null)return encode(n,t);if(Array.isArray(s)){var a=[];return s.slice().forEach(function(l){l!==void 0&&a.push(r(n,l,a.length))}),a.join("&")}return encode(n,t)+"="+encode(s,t)}).filter(function(n){return n.length>0}).join("&"):""},parseUrl$1=function(e,t){return{url:e.split("?")[0]||"",query:parse(extract(e),t)}},queryString={extract:extract_1,parse:parse_1,stringify,parseUrl:parseUrl$1},count=0,MediaAsyncLoader=function(e){function t(r,n,s){classCallCheck(this,t),log$2("MediaAsyncLoader initializing");var a=mergeOptions({createEl:!1},n),l=possibleConstructorReturn(this,e.call(this,r,a,s));l.enModule=new Enc;var u=a.playerOptions||a;return l.getInfo(u),r.loadVideoByID=bind(l,l.loadVideoByID),log$2("MediaAsyncLoader initialized"),l}return inherits(t,e),t.prototype.getInfo=function(r){r&&r.fileID&&r.appID&&(performance&&typeof performance.mark=="function"&&performance.mark("firstFrameStart"),r.playDefinition?this.getInfoV3(r):r.sign||r.ssign?this.getInfoV2(r):this.getInfoV4(r))},t.prototype.getInfoV2=function(r){var n=this.player(),s=this.assemblyPath("getplayinfo",r.appID,r.fileID),a=r.t,l=r.us,u=r.exper,p=r.sign,d={};r.ssign?d.super_sign=r.ssign:p&&(d={t:a,sign:p},(l||l==0)&&(d.us=l),(u||u==0)&&(d.exper=u,n.trigger({type:"feature",data:"exper"})),n.trigger({type:"feature",data:"key"})),r.playerID&&(d.playerid=r.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi loading");var f=queryString.stringify(d);f&&(s+=(~s.indexOf("?")?"&":"?")+f,s=s.replace("?&","?")),this.getInfoRetryTimes=0,this.getInfoRequest=function(_){_&&(s=s.replace(SERVER_PATH,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:d,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResult)):xhr({url:s,timeout:3e3},bind(this,this.onResult))},this.getInfoRequest()},t.prototype.onResult=function(r,n,s){try{s?n=JSON.parse(s):r||n||(r=new Error("ServerError"))}catch(f){r=new Error("ServerError")}var a=this.player();if(r){if(log$2("playcgi loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}});var l=12;switch(r.message){case"XMLHttpRequest timeout":case"Timeout":l=10;break;case"ServerError":l=11}this.player().error({code:l})}else{if(a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}}),n.code!=0)return log$2("playcgi loaded failure"),void this.player().error({code:n.code});log$2("playcgi loaded success");var u=n.coverInfo,p=n.videoInfo,d=n.playerInfo;this.setPoster(u),this.setLogo(d),this.setSrc(n),this.setPatch(d),this.setVttThumbnail(n),this.setDots(n),this.setOriginDuration(p),this.setPlayList(d)}},t.prototype.getInfoV3=function(r){var n=this.player(),s=this.assemblyPathV3("getplayinfo",r.appID,r.fileID,r.playDefinition),a=r.t,l=r.us,u=r.rlimit,p=r.sign,d={};r.ssign?d.super_sign=r.ssign:p&&(d={t:a,sign:p},(l||l==0)&&(d.us=l),u&&(d.rlimit=u),n.trigger({type:"feature",data:"key"})),r.playerID&&(d.playerid=r.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi v3 loading");var f=queryString.stringify(d);f&&(s+=(~s.indexOf("?")?"&":"?")+f,s=s.replace("?&","?")),this.getInfoRetryTimes=0,this.getInfoRequest=function(_){_&&(s=s.replace(SERVER_PATH_V3,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:d,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResultV3)):xhr({url:s,timeout:3e3},bind(this,this.onResultV3))},this.getInfoRequest()},t.prototype.onResultV3=function(r,n,s){try{s?n=JSON.parse(s):r||n.body||(r=new Error("ServerError"))}catch(d){r=new Error("ServerError")}var a=this.player();if(r){if(log$2("playcgi v3 loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}});var l=12;switch(r.message){case"XMLHttpRequest timeout":case"Timeout":l=10;break;case"ServerError":l=11}this.player().error({code:l})}else{if(a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}}),n.code!=0)return log$2("playcgi v3 loaded failure"),void this.player().error({code:n.code});log$2("playcgi v3 loaded success");var u=n.mediaInfo,p=n.playerInfo;this.setPoster({coverUrl:u.basicInfo.coverUrl}),this.setLogo(p),this.setSrcV3(u),this.setPatch(p),this.setVttThumbnail(u),this.setDots(u)}},t.prototype.setSrcV3=function(r,n){var s=this,a=this.player(),l=a.options_.plugins,u=a.DRM().options||l.DRM,p=void 0,d=void 0,f=void 0,_=[],y={},b={};if(n=n||(u?u.skipPlan:""),r.previewStreamingInfo&&r.previewStreamingInfo.previewStreamingList.length>0)r.previewStreamingInfo.previewStreamingList.forEach(function(C,S){C.mineType=s.getMIMEType(C.url),y[getFileExtension(C.url)]=C});else{if(!(r.dynamicStreamingInfo.adaptiveStreamingInfoList&&r.dynamicStreamingInfo.adaptiveStreamingInfoList.length>0))return void this.player().error({code:13,message:"no video stream"});if(r.dynamicStreamingInfo.adaptiveStreamingInfoList.forEach(function(C,S){C.mineType=s.getMIMEType(C.url),b[C.drmType.toLowerCase()||getFileExtension(C.url)]=C}),u&&u.token?(p=u.token,f=u.certificateUri,n=IS_SAFARI&&!f?"fairplay":n,d=window_1.encodeURIComponent(p)):n="all",(IS_CHROME||IS_FIREFOX)&&window_1.navigator.requestMediaKeySystemAccess&&b.widevine&&n!="widevine"&&n!="all"?(_.push({src:unifyProtocol(b.widevine.url),type:this.getMIMEType(b.widevine.url),keySystems:{"com.widevine.alpha":{serverURL:LICENSE_PATH+"?token="+d+"&drmType="+b.widevine.drmType}}}),log$2("DRM source widevine",_)):IS_SAFARI&&!IS_MQQB&&b.fairplay&&n!="fairplay"&&n!="all"&&(_.push({src:unifyProtocol(b.fairplay.url),type:this.getMIMEType(b.fairplay.url),keySystems:{"com.apple.fps.1_0":{certificateUri:f,licenseUri:LICENSE_PATH+"?token="+d+"&drmType="+b.fairplay.drmType}}}),log$2("DRM source fairplay",_)),b.simpleaes&&n!="all"){var g=b.simpleaes.url.split("/");g[g.length-1]="voddrm.token."+d+"."+g[g.length-1],_.push({src:unifyProtocol(g.join("/")),type:this.getMIMEType(b.simpleaes.url)}),log$2("DRM source simpleaes",_)}b.m3u8&&_.push({src:unifyProtocol(b.m3u8.url),type:this.getMIMEType(b.m3u8.url)}),b.mpd&&_.push({src:unifyProtocol(b.mpd.url),type:this.getMIMEType(b.mpd.url)})}if(!(_.length>0))return void this.player().error({code:4});a.src(_);var m=function(C){return log$2("DRM init Error",_),C.data.code!==5&&C.data.code!==2||!_[0].keySystems["com.widevine.alpha"]?C.data.code===3&&_[0].keySystems["com.apple.fps.1_0"]?void s.setSrcV3(r,"fairplay"):C.data.code===14||C.data.code===3?void s.setSrcV3(r,"all"):void 0:void s.setSrcV3(r,"widevine")};n!=="all"&&(window_1.setTimeout(function(){a.one("error",m)},0),a.one("playing",function(C){}))},t.prototype.getInfoV4=function(r){var n=this.player(),s=this.assemblyPathV4("getplayinfo",r.appID,r.fileID),a=r.t,l=r.us,u=r.rlimit,p=r.psign,d=r.exper,f={};r.ssign?f.super_sign=r.ssign:p&&(f={t:a,psign:p},(l||l==0)&&(f.us=l),u&&(f.rlimit=u),d&&(f.exper=d)),r.playerConfig&&(f.pcfg=r.playerConfig),r.playerID&&(f.playerid=r.playerID),this.requestTimestamp=+new Date().getTime(),n.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi v4 loading");var _=queryString.stringify(f);_?(s+=(~s.indexOf("?")?"&":"?")+_,s=s.replace("?&","?")):s+=~s.indexOf("?")?"":"?",s=this.enModule.generatePlayCgiUrl(s,browser),this.getInfoRetryTimes=0,this.getInfoRequest=function(y){y&&(s=s.replace(SERVER_PATH_V4,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:f,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResultV4)):xhr({url:s,timeout:3e3},bind(this,this.onResultV4))},this.getInfoRequest()},t.prototype.onResultV4=function(r,n,s){var a=n,l=a.rawRequest;try{s?n=JSON.parse(s):r||n.body||(r=new Error("ServerError"))}catch(b){r=new Error("ServerError")}var u=this.player();if(r){if(log$2("playcgi v4 loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});u.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}});var p=12;switch(r.message){case"XMLHttpRequest timeout":case"Timeout":p=10;break;case"ServerError":p=11}this.player().error({code:p})}else{if(u.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:r,result:n}}),n.code!=0){if(log$2("playcgi v4 loaded failure"),n.code>=2e3&&n.code<3e3){if(this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<6)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0})}return void this.player().error({code:n.code})}if(log$2("playcgi v4 loaded success",n),!this.enModule.checksum(l,s))return this.player().error({code:1012}),!1;if(n.version===4){var d=n.media;this.setPoster({coverUrl:d.basicInfo.coverUrl}),this.setSrcV4(d),this.setVttThumbnailV4(d),this.setDots(d),this.setOriginDurationV4(d),this.setGhostContent(d.ghostWatermarkInfo)}else if(n.version===2){var f=n.coverInfo,_=n.videoInfo,y=n.playerInfo;this.setPoster(f),this.setLogo(y),this.setSrc(n),this.setPatch(y),this.setVttThumbnail(n),this.setDots(n),this.setOriginDuration(_)}}},t.prototype.setSrcV4=function(r,n){var s=this,a=this.player(),l=a.options_,u=void 0,p=a.options_.plugins,d=a.DRM().options||p.DRM,f=[],_="plain";n=n||(d?d.skipPlan:"");var y=[],b=[];if(r.audioVideoType==="Original"||r.audioVideoType==="Transcode")return this.setSrc(r),!1;if(!r.streamingInfo)return void this.player().error({code:13,message:"no stream info"});if(r.streamingInfo){if(r.streamingInfo.drmOutput&&Array.isArray(r.streamingInfo.drmOutput)){for(var g=r.streamingInfo.drmOutput,m=0;m<g.length;m++)b.push(g[m].type);if(IS_ANY_SAFARI&&!IS_MQQB&&b.indexOf("FairPlay")!==-1&&n!="fairplay"&&n!="all"){var C=b.indexOf("FairPlay"),S=g[C].subStreams;f.push(S),y.push({src:unifyProtocol(g[C].url),type:this.getMIMEType(g[C].url),qualityLabelList:S,keySystems:{"com.apple.fps.1_0":{certificateUri:r.streamingInfo.fairPlayCertificateUrl||(d||{}).certificateUri,licenseUri:r.streamingInfo.fairplayLicenseUrl}}}),log$2("DRM source fairplay",u)}else if(window_1.navigator.requestMediaKeySystemAccess&&b.indexOf("Widevine")!==-1&&!IS_SAFARI&&n!=="widevine"&&n!=="all"){var P=b.indexOf("Widevine"),A=g[P].subStreams,x=A[A.length-1];(x.type==="audio"||x.width===0&&x.height===0)&&A.pop(),f.push(A),y.push({src:unifyProtocol(g[P].url),type:this.getMIMEType(g[P].url),qualityLabelList:A,keySystems:{"com.widevine.alpha":{serverURL:r.streamingInfo.widevineLicenseUrl}}}),log$2("DRM source widevine",u)}if(b.indexOf("SimpleAES")!==-1&&n!="all"){var R,E=b.indexOf("SimpleAES");_="SimpleAES";var k=g[E].url.split("/");k[k.length-1]="voddrm.token."+r.streamingInfo.drmToken+"."+k[k.length-1],u=k.join("/");var I=g[E].subStreams;f.push(g[E].subStreams),u&&y.push({src:unifyProtocol(u),type:EXT_MIME.m3u8,qualityLabelList:I,keySystems:(R={},R[_]={},R)})}}else if(r.streamingInfo.plainOutput){var O;u=r.streamingInfo.plainOutput.url;var G=r.streamingInfo.plainOutput.subStreams;f.push(r.streamingInfo.plainOutput.subStreams),u&&y.push({src:unifyProtocol(u),type:EXT_MIME.m3u8,qualityLabelList:G,keySystems:(O={},O[_]={},O)})}this.setHlsConfig(l,f[0],!1),y.length>0?a.src(y):b.length!==0?!n&&this.player().error({code:18}):this.player().error({code:13,message:"no stream info"}),this.setQualityLabelList(f[0])}var j=function(V){return log$2("DRM init Error",y),y[0].keySystems["com.widevine.alpha"]?void s.setSrcV4(r,"widevine"):y[0].keySystems["com.apple.fps.1_0"]?void s.setSrcV4(r,"fairplay"):V.data.code===14||V.data.code===3?void s.setSrcV4(r,"all"):void 0};n!=="all"&&window_1.setTimeout(function(){a.one("error",j)},0)},t.prototype.setHlsConfig=function(r,n,s){var a={};!IS_ENABLED_MSE||IS_TBS||IS_MQQB||IS_SAFARI||IE_VERSION&&IE_VERSION<11||(a={overlayKey:this.enModule&&this.enModule.overlayKey,overlayIv:this.enModule&&this.enModule.overlayIv}),r.hlsConfig?(r.hlsConfig.qualityLabelList=n,r.hlsConfig.startLevel||(r.hlsConfig.startLevel=n?n.length-1:5)):r.hlsConfig={qualityLabelList:n,startLevel:n?n.length-1:5},Object.assign(r.hlsConfig,a,{forbid:s})},t.prototype.setQualityLabelList=function(r){this.player().QualitySwitcher().setOptions({qualityLabelList:{video:r}})},t.prototype.setLogo=function(r){var n=this.player();r.logoPic?(n.logoImage.update({img:{url:unifyProtocol(r.logoPic),position:r.logoLocation},link:unifyProtocol(r.logoUrl)}),n.trigger({type:"feature",data:"logo"})):n.logoImage.reset()},t.prototype.setPoster=function(r){var n=this.player();r&&r.coverUrl?n.poster(unifyProtocol(r.coverUrl)):n.options_.playerOptions.poster||n.poster("")},t.prototype.setDots=function(r){var n=this.player();if(n.options_.dots=null,r.keyFrameDescInfo&&r.keyFrameDescInfo.keyFrameDescList&&r.keyFrameDescInfo.keyFrameDescList.length>0){var s=r.keyFrameDescInfo.keyFrameDescList;n.options_.dots=s}var a=n.options_.plugins;a&&a.ProgressMarker&&a.ProgressMarker.markers&&a.ProgressMarker.markers.length>0&&(n.options_.dots=n.options_.dots.concat(a.ProgressMarker.markers)),n.ProgressMarker().init()},t.prototype.setSrc=function(r){var n=this.player(),s=r.videoInfo||{};if(r.audioVideoType==="Original"&&(s.sourceVideo=r.originalInfo),r.audioVideoType==="Transcode"&&(s.sourceVideo=r.transcodeInfo),(n.options_.definition!=null||n.options_.definition!=null)&&s.transcodeList&&s.transcodeList.length>0){n.trigger({type:"feature",data:"definition"});var a=this.getSrcByDefinition(s,n.options_.definition);if(a)return n.src({src:unifyProtocol(a.url),type:this.getMIMEType(a.url)}),!0}if(n.MultiResolution().reset(),s.masterPlayList){n.src(this.getMasterSouces(s));var l=n.options_.hlsConfig;l?l.forbid=!0:Object.assign(n.options_,{hlsConfig:{forbid:!0}}),this.setQualityLabelList([]),n.MultiResolution().store(this.getMultiResolutionData(r))}else if(s.transcodeList&&s.transcodeList.length>0){var u=this.getMultiResolutionData(r);if(u.showOrder.length>0)n.MultiResolution().init(u);else{var p=s.transcodeList[0].url;n.src({src:unifyProtocol(p),type:this.getMIMEType(p)})}}else s.sourceVideo&&this.getMIMEType(s.sourceVideo.url)?n.src({src:unifyProtocol(s.sourceVideo.url),type:this.getMIMEType(s.sourceVideo.url)}):this.player().error({code:13})},t.prototype.setPatch=function(r){var n=this.player();r.patchInfo?n.ImagePatch().init(r.patchInfo):n.ImagePatch().reset()},t.prototype.setVttThumbnail=function(r){var n=this.player();r.imageSpriteInfo&&r.imageSpriteInfo.imageSpriteList?n.ready(bind(this,function(){n.VttThumbnail().init({vttUrl:unifyProtocol(r.imageSpriteInfo.imageSpriteList[0].webVttUrl)})})):n.VttThumbnail().reset()},t.prototype.setVttThumbnailV4=function(r){var n=this.player();r.imageSpriteInfo&&r.imageSpriteInfo.webVttUrl?n.ready(bind(this,function(){n.VttThumbnail().init({vttUrl:unifyProtocol(r.imageSpriteInfo.webVttUrl)})})):n.VttThumbnail().reset()},t.prototype.setOriginDuration=function(r){var n=this.player();if(n.options_.exper>0){var s=r.sourceVideo?r.sourceVideo.floatDuration:r.transcodeList[0].floatDuration;n.one("play",function(){n.duration(s)})}},t.prototype.setOriginDurationV4=function(r){var n=this,s=this.player();s.cache_.originDuration=r.basicInfo.duration,s.off("durationchange",this.keepOriginDuration),s.one("durationchange",function(a){(!s.duration()||s.duration()>0&&Math.floor(s.cache_.originDuration)!==Math.floor(s.duration()))&&(n.keepOriginDuration(a),s.on("durationchange",n.keepOriginDuration))})},t.prototype.setGhostContent=function(r){if(r){var n=this.player(),s=n&&n.DynamicWatermark();s.options.content=r.text,s.options.keep=!0,s.init()}},t.prototype.keepOriginDuration=function(r){var n=this.player(),s=n.cache_.originDuration;Math.floor(s)!==Math.floor(n.duration())&&(log$2("试看视频"),n.duration(Math.round(s)))},t.prototype.getMasterSouces=function(r){var n=r.masterPlayList,s=[];return s.push({src:unifyProtocol(n.url),type:EXT_MIME.m3u8}),s},t.prototype.getMultiResolutionData=function(r){var n={sources:{},labels:{},showOrder:[],defaultRes:""},s=[],a=r.videoInfo.transcodeList,l=this;return r.playerInfo.videoClassification.forEach(function(u,p){a.length>0&&(a=a.filter(function(d){if(!(u.definitionList.indexOf(d.definition)>-1))return!0;s[u.id]||(n.showOrder.push(u.id),n.labels[u.id]=u.name,s[u.id]=[]),s[u.id].push({src:unifyProtocol(d.url),type:l.getMIMEType(d.url)})}))}),n.sources=s,n.defaultRes=r.playerInfo.defaultVideoClassification||Object.keys(s)[0],n},t.prototype.getSrcByDefinition=function(r,n){var s=r.transcodeList,a=r.sourceVideo;if(n==0)return a;for(var l=0;l<s.length;l++)if(s[l].definition==n)return s[l]},t.prototype.getMIMEType=function(r){var n=EXT_MIME[getFileExtension(r)];return n||(log$2.error("MIME type no found! Ext = "+getFileExtension(r)),"")},t.prototype.assemblyPath=function(r,n,s){var a=window_1.location.protocol;return a!="http:"&&a!="https:"&&(a="https:"),""+a+SERVER_PATH+"/"+r+"/v2/"+n+"/"+s},t.prototype.assemblyPathV3=function(r,n,s,a){var l=window_1.location.protocol;return l!="http:"&&l!="https:"&&(l="https:"),""+l+SERVER_PATH_V3+"/"+r+"/v3/"+n+"/"+s+"/"+a},t.prototype.assemblyPathV4=function(r,n,s){var a=window_1.location.protocol;return a!="http:"&&a!="https:"&&(a="https:"),""+a+SERVER_PATH_V4+"/"+r+"/v4/"+n+"/"+s},t.prototype.customHost=function(r){var n=this.player();n.options_.customHost&&/^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/.test(n.options_.customHost)&&(r.masterPlayList&&(r.masterPlayList.url=replaceHost(r.masterPlayList.url,n.options_.customHost)),r.sourceVideo&&(r.sourceVideo.url=replaceHost(r.sourceVideo.url,n.options_.customHost)),r.transcodeList.length>0&&r.transcodeList.forEach(function(s,a){s.url=replaceHost(s.url,n.options_.customHost)}),n.trigger({type:"feature",data:"customHost"}))},t.prototype.loadVideoByID=function(r){var n=this.player();n.trigger({type:"loadnewvideo"}),n.hasStarted(!1),this.getInfo(r),n.duration(0),n.playbackRate(1),n.options_.appID=r.appID,n.options_.fileID=r.fileID,n.options_.psign=r.psign,r.definition&&(n.options_.definition=r.definition),n.bigPlayButton&&n.bigPlayButton.show(),n.options_.plugins.ContinuePlay&&n.ContinuePlay().init()},t.prototype.setPlayList=function(r){this.player().options_.plugins.PlayList||r.playlist&&r.playlist.data instanceof Array&&r.playlist.data.length>0&&this.player_.PlayList(r.playlist)},t}(Component);Component.registerComponent("MediaAsyncLoader",MediaAsyncLoader),videojs.getComponent("Component");var ClickableComponent$2=videojs.getComponent("ClickableComponent"),positionMap=["left-top","left-bottom","right-top","right-bottom"],LogoImage=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return r.on("logochange",videojs.bind(s,function(a){this.update(a.data)})),n.img&&s.update(n),s}return inherits(t,e),t.prototype.createEl=function(){var r=videojs.dom.createEl("div",{className:"tcp-logo vjs-hidden"}),n=videojs.dom.createEl("a",{className:"tcp-logo-link",target:"_blank"}),s=videojs.dom.createEl("img",{className:"tcp-logo-img"});return this.linkEl_=n,this.imgEl_=s,n.appendChild(s),r.appendChild(n),r},t.prototype.update=function(r){var n=r.img,s=r.link;this.setImg(n),this.setHref(s),this.options_=videojs.mergeOptions(this.options_,r),this.show()},t.prototype.setImg=function(r){if(this.imgEl_){this.imgEl_.src=r.url;var n=positionMap[r.position]||r.position||"left-top";videojs.dom.addClass(this.el_,n)}},t.prototype.setHref=function(r){this.linkEl_&&r&&(this.linkEl_.href=r)},t.prototype.reset=function(){this.hide(),this.imgEl_.removeAttribute("src"),this.linkEl_.removeAttribute("href")},t}(ClickableComponent$2);videojs.registerComponent("LogoImage",LogoImage);var Component$3=videojs.getComponent("Component"),Button$2=videojs.getComponent("Button"),ContinuePlayTips=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.init(n),s}return inherits(t,e),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-continue-play-tips"})},t.prototype.close=function(){this.hide()},t.prototype.init=function(r){var n=this.addChild("closeButton",{controlText:"Close"});this.on(n,"close",this.close),this.addChild("ContinuePlayTipsContent",r);var s=this.addChild("ContinuePlayButton",r);this.on(s,["tap","click"],this.close),this.setTimeout(function(){this.close()},3500)},t}(Component$3);videojs.registerComponent("ContinuePlayTips",ContinuePlayTips);var ContinuePlayTipsContent=function(e){function t(r,n){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.createEl=function(){var r=videojs.dom.createEl("span",{className:"tcp-continue-play-tips-content"}),n=videojs.dom.createEl("span",{className:"tcp-text",textContent:this.localize(this.options_.text||"Last time play at ")}),s=videojs.dom.createEl("span",{className:"tcp-time",textContent:videojs.formatTime(this.options_.time)});return this.textEl_=n,this.timeEl_=s,r.appendChild(n),r.appendChild(s),r},t}(Component$3);videojs.registerComponent("ContinuePlayTipsContent",ContinuePlayTipsContent);var ContinuePlayButton=function(e){function t(r,n){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"button",{className:"tcp-continue-play-buttom",textContent:this.localize(this.options_.btnText||"Resume play")})},t.prototype.handleClick=function(){this.options_.resumeCallback.call()},t}(Button$2);videojs.registerComponent("ContinuePlayButton",ContinuePlayButton);var Component$4=videojs.getComponent("Component"),LevelSwitchTips=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.playing=!1,s.timeoutID=void 0,s.levelSwitch=r.options_.plugins.ContextMenu.levelSwitch,s.init(),r.on("playing",videojs.bind(s,function(){s.playing=!0})),r.on("resolutionswitching",videojs.bind(s,function(a){if(s.playing)if(a.data.label)s.switchHandler(s.createSwitching(a.data.label),2e3);else{var l=s.player().QualitySwitcher().options.qualityData;if(l){var u=l.video.filter(function(p){return a.data.newQuality===p.id})[0];s.switchHandler(s.createSwitching(u.label),2e3)}}})),r.on("resolutionswitched",videojs.bind(s,function(){s.playing&&s.switchHandler(s.createSwitched(),2e3)})),r.on("levelSwitchError",videojs.bind(s,function(){s.switchHandler(s.createSwitchError(),2e3)})),s}return inherits(t,e),t.prototype.switchHandler=function(r,n){var s=this;this.timeoutID&&clearTimeout(this.timeoutID),this.textNode.innerText=r,this.show(),this.timeoutID=setTimeout(function(){s.hide()},n)},t.prototype.createEl=function(){var r=videojs.dom.createEl("div",{className:"tcp-switch vjs-hidden"});return this.textNode=videojs.dom.createEl("div",{innerText:""}),r.appendChild(this.textNode),r},t.prototype.init=function(){var r=this.addChild("closeButton",{controlText:"Close"});this.on(r,"close",this.hide)},t.prototype.createSwitching=function(r){return this.levelSwitch.switchingText?this.levelSwitch.switchingText+r:"正在为您切换至"+r},t.prototype.createSwitched=function(){return this.levelSwitch.switchedText?this.levelSwitch.switchedText:"切换成功"},t.prototype.createSwitchError=function(){return this.levelSwitch.switchErrorText?this.levelSwitch.switchErrorText:"切换失败"},t.prototype.show=function(){e.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){e.prototype.hide.call(this),this.popped=!1},t}(Component$4);videojs.registerComponent("LevelSwitchTips",LevelSwitchTips);var Component$7=videojs.getComponent("Component"),mapKey={fileID:"file ID",requestID:"request ID",mediaType:"media type",mimeType:"mime type",provider:"provider",resolution:"resolution",rate:"rate",frames:"frames",buffer:"buffer",connectionSpeed:"connection speed",info:"info"},VideoTextItem=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.display=!1,s.displayData="loading",s}return inherits(t,e),t.prototype.createEl=function(){var r=videojs.dom.createEl("div",{className:"tcp-statistic-line vjs-hidden"}),n=videojs.dom.createEl("span",{className:"tcp-statistic-title",innerText:mapKey[this.options_.key]+":"}),s=videojs.dom.createEl("span",{className:"tcp-statistic-data",innerText:this.options_.data});return r.appendChild(n),r.appendChild(s),r},t.prototype.updateTextNode_=function(){for(var r=this.el_.lastChild;r.firstChild;)r.removeChild(r.firstChild);this.displayData&&this.show(),this.textNode_=document_1.createTextNode(this.displayData||""),r.appendChild(this.textNode_)},t.prototype.updateContent=function(r){r!==this.displayData&&(this.displayData=r,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.isDisplay=function(){return this.display},t.prototype.show=function(){e.prototype.show.call(this),this.display=!0,this.popped=!0},t.prototype.hide=function(){e.prototype.hide.call(this),this.display=!1,this.popped=!1},t.prototype.reset=function(){e.prototype.hide.call(this),this.display=!1,this.displayData=""},t}(Component$7);videojs.registerComponent("VideoTextItem",VideoTextItem);var defaultConfig={enableRecoverMediaError:!0,recoverMediaErrorMaxRetry:5,fragLoadingMaxRetry:3},Html5HlsJS=function(){function e(t,r,n){var s=this;classCallCheck(this,e);var a={};t.keySystems&&t.keySystems["com.widevine.alpha"]&&t.keySystems["com.widevine.alpha"].serverURL?(n.hlsConfig.widevineLicenseUrl=t.keySystems["com.widevine.alpha"].serverURL,n.hlsConfig.enableWorker=!0,n.hlsConfig.emeEnabled=!0,n.hlsConfig.startLevel=(n.hlsConfig.qualityLabelList||[]).length-1,a=n.hlsConfig):a=r.player_.options_.hlsConfig||n.hlsConfig||{},a.forbid&&(delete a.overlayKey,delete a.overlayIv),this.drmBackup=n.hlsConfig&&n.hlsConfig.drmBackup;var l=function(){var u=window.Hls,p=new u(videojs.mergeOptions(defaultConfig,a)),d=r.el();s.Hls=u,s.tech=r,s.hls=p,s.switchStatus="",s.manifests=[],s.subtitlesLoadedCount=0,s.audioTrackLoadedCount=0,s.subtitles=[],s.audioTracks=[],s.hlsjsErrorHandler=s.errorHandlerFactory(),p.on(u.Events.ERROR,s.onError.bind(s)),p.on(u.Events.MANIFEST_PARSED,videojs.bind(s,s.onMetaData)),p.on(u.Events.MANIFEST_LOADED,s.loadSubtiles.bind(s)),p.on(u.Events.MANIFEST_LOADED,s.loadAudioTracks.bind(s)),p.on(u.Events.LEVEL_LOADED,s.onLevelLoaded.bind(s));var f=s.tech.player();f.on("ready",s.addHlsSubtitles.bind(s));for(var _ in u.Events)p.on(u.Events[_],videojs.bind(s,s.onEvent));p.attachMedia(d),p.loadSource(t.src),window.Hls&&n.xp2pConfig&&n.xp2pConfig.useXP2P&&f.XP2PHlsjsPlugin&&f.XP2PHlsjsPlugin().startHLSP2P(s.hls,window.HLSP2P,function(y){})};Promise.all([function(){return n.xp2pConfig&&n.xp2pConfig.useXP2P&&n.xp2pConfig.format==="hls"&&!window.HLSP2P?new Promise(function(u){loadScript(XP2P_HLS_PATH,function(){u()})}):Promise.resolve()}(),function(){return window.Hls?Promise.resolve():new Promise(function(u){loadScript(HLS_PATH,function(){u()})})}()]).then(function(){l()})}return e.prototype.switchQuality=function(t){t.id!=this.hls.currentLevel&&(this.switchStatus="switching",this.switchData=t,this.tech.trigger({type:"hlsresolutionswitching",data:this.switchData}),this.hls.nextLevel=t.id)},e.prototype.dispose=function(){this.hls.destroy()},e.prototype.onSubtitleLoaded=function(t,r){var n=this,s=this.tech.player(),a=this.subtitlesLoadedCount,l=this.hls.subtitleTracks;this.subtitles[a].url=r.details.fragments[0].url,++this.subtitlesLoadedCount<l.length?this.hls.trigger(this.Hls.Events.SUBTITLE_TRACK_LOADING,{url:l[this.subtitlesLoadedCount].url,id:l[this.subtitlesLoadedCount].id}):s.ready(function(){n.addHlsSubtitles()})},e.prototype.onAudioTrackLoaded=function(t,r){var n=this,s=this.tech.player(),a=this.audioTrackLoadedCount,l=this.hls.audioTracks;this.audioTracks[a].url=r.details.fragments[0].url,++this.audioTrackLoadedCount<l.length?this.hls.trigger(this.Hls.Events.AUDIO_TRACK_LOADING,{url:l[this.audioTrackLoadedCount].url,id:l[this.audioTrackLoadedCount].id}):s.ready(function(){n.addAudioTracks()})},e.prototype.loadAudioTracks=function(){var t=this,r=this.hls.audioTracks;if(r.length){r.forEach(function(s){t.audioTracks.push({id:s.id,name:s.name,lang:s.lang,loaded:!1,default:s.default})});var n=r[0];this.hls.trigger(this.Hls.Events.AUDIO_TRACK_LOADING,{url:n.url,id:n.id}),this.hls.on(this.Hls.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded.bind(this))}},e.prototype.loadSubtiles=function(){var t=this,r=this.hls.subtitleTracks;if(r.length){r.forEach(function(s){t.subtitles.push({name:s.name,lang:s.lang,loaded:!1})});var n=r[0];this.hls.on(this.Hls.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleLoaded.bind(this)),this.hls.trigger(this.Hls.Events.SUBTITLE_TRACK_LOADING,{url:n.url,id:n.id})}},e.prototype.addAudioTracks=function(){var t=this;this.audioTracks.length&&this.audioTracks.some(function(r){return!r.loaded})&&this.audioTracks.forEach(function(r){var n=t.tech.addAudioTrack({id:r.id,src:r.url,kind:"audio",srclang:r.lang,label:r.name,enabled:r.default},!0);n.addEventListener("load",function(){r.loaded=!0})})},e.prototype.addHlsSubtitles=function(){var t=this;this.subtitles.length&&this.subtitles.some(function(r){return!r.loaded})&&this.subtitles.forEach(function(r){var n=t.tech.addRemoteTextTrack({src:r.url,kind:"subtitles",srclang:r.lang,label:r.name},!0);n.addEventListener("load",function(){r.loaded=!0})})},e.prototype.onEvent=function(t,r){this.tech.trigger({type:t,data:r});var n=this.tech.player();switch(t){case this.Hls.Events.MANIFEST_LOADED:this.manifests.push(r.networkDetails.response||r.networkDetails.responseText);break;case this.Hls.Events.LEVEL_SWITCHING:break;case this.Hls.Events.LEVEL_SWITCHED:this.switchStatus=="switching"&&(this.switchStatus="switched",this.tech.trigger({type:"hlsresolutionswitched",data:this.switchData}),this.switchData=null);break;case this.Hls.Events.LEVEL_SWITCH_ERROR:n.trigger({type:"levelSwitchError"})}},e.prototype.onMetaData=function(t,r){var n=[],s=this.hls,a=this;if(r.levels.length>1){var l={id:-1,label:"auto",selected:s.manualLevel===-1};n.push(l),r.levels.forEach(function(p,d){var f={};f.id=d,f.selected=d===s.manualLevel,f.label=a.getLevelLabel(p),n.push(f)});var u={qualityData:{video:n},callbacks:{video:videojs.bind(this,this.switchQuality)}};this.tech.setTimeout(function(){this.trigger({type:"masterplaylistchange",data:u})},1)}},e.prototype.getLevelLabel=function(t){return t.height?t.height+"p":t.width?Math.round(9*t.width/16)+"p":t.bitrate?t.bitrate/1e3+"kbps":0},e.prototype.onLevelLoaded=function(t,r){this._duration=r.details.live?1/0:r.details.totalduration},e.prototype.onError=function(t,r){var n=this.tech.player();if(r.fatal)switch(r.type){case this.Hls.ErrorTypes.NETWORK_ERROR:n.error({code:14,source:r});break;case this.Hls.ErrorTypes.MEDIA_ERROR:this.hls.config.enableRecoverMediaError?this.hlsjsErrorHandler(r):n.error({code:15,source:r});break;case this.Hls.ErrorTypes.MUX_ERROR:n.error({code:16,source:r});break;case this.Hls.ErrorTypes.OTHER_ERROR:default:n.error({code:17,source:r}),this.drmBackup&&r.type==="keySystemError"&&n.error(null)}else switch(r.details){case this.Hls.ErrorDetails.KEY_LOAD_ERROR:}},e.prototype.errorHandlerFactory=function(){var t=this.hls,r=this.tech.player(),n=null,s=null,a=0;return function(l){var u=Date.now();a==t.config.recoverMediaErrorMaxRetry?r.error({code:15,source:l}):(!n||u-n>2e3?(n=u,t.recoverMediaError()):(!s||u-s>2e3)&&(s=u,t.swapAudioCodec(),t.recoverMediaError()),a++)}},e.prototype.duration=function(){return this._duration},e}(),hlsTypeRE=/^application\/(x-mpegURL|vnd\.apple\.mpegURL)$/i,hlsExtRE=/.m3u8(?![^?])/i,HlsSourceHandler={name:"hlsSourceHandler",canHandleSource:function(e){return e.skipHlsJs||e.keySystems&&e.keySystems["com.apple.fps.1_0"]?"":hlsTypeRE.test(e.type)&&hlsExtRE.test(e.src)?"probably":hlsExtRE.test(e.src)?"maybe":""},handleSource:function(e,t,r){return t.hlsProvider?(t.hlsProvider.dispose(),t.hlsProvider=null):r.hlsConfig&&r.hlsConfig.autoStartLoad===!1&&t.on("play",function(){this.player().hasStarted()||this.hlsProvider.hls.startLoad()}),t.hlsProvider=new Html5HlsJS(e,t,r),t.hlsProvider},canPlayType:function(e){return hlsTypeRE.test(e)?"probably":""}};TCPlayer.mountHlsProvider=mountHlsProvider,mountHlsProvider();var Html5DashJS=function(){function e(t,r,n){var s=this;classCallCheck(this,e);var a=function(){var l=window_1.dashjs;if(s.dashjs=l,n=n||r.options_,s.player=videojs(n.playerId),s.player.dash=s.player.dash||{},s.tech_=r,s.el_=r.el(),s.elParent_=s.el_.parentNode,s.hasFiniteDuration_=!1,t.src){r.isReady_=!1,e.updateSourceData&&(videojs.log.warn('updateSourceData has been deprecated. Please switch to using hook("updatesource", callback).'),t=e.updateSourceData(t)),e.hooks("updatesource").forEach(function(p){t=p(t)});var u=t.src;s.keySystemOptions_=e.buildDashJSProtData(t.keySystemOptions||t.keySystems),s.player.dash.mediaPlayer=l.MediaPlayer().create(),s.mediaPlayer_=s.player.dash.mediaPlayer,e.useVideoJSDebug&&(videojs.log.warn('useVideoJSDebug has been deprecated. Please switch to using hook("beforeinitialize", callback).'),e.useVideoJSDebug(s.mediaPlayer_)),e.beforeInitialize&&(videojs.log.warn('beforeInitialize has been deprecated. Please switch to using hook("beforeinitialize", callback).'),e.beforeInitialize(s.player,s.mediaPlayer_)),e.hooks("beforeinitialize").forEach(function(p){p(s.player,s.mediaPlayer_)}),s.mediaPlayer_.initialize(),s.retriggerError_=function(p){if(p.error==="capability"&&p.event==="mediasource")s.player.error({code:4,message:"The media cannot be played because it requires a feature that your browser does not support."});else if(p.error!=="manifestError"||p.event.id!=="createParser"&&p.event.id!=="codec"&&p.event.id!=="nostreams"&&p.event.id!=="nostreamscomposed"&&p.event.id!=="parse"&&p.event.id!=="multiplexedrep")if(p.error==="mediasource")p.event.match("MEDIA_ERR_ABORTED")?s.player.error({code:1,message:p.event}):p.event.match("MEDIA_ERR_NETWORK")?s.player.error({code:2,message:p.event}):p.event.match("MEDIA_ERR_DECODE")?s.player.error({code:3,message:p.event}):p.event.match("MEDIA_ERR_SRC_NOT_SUPPORTED")?s.player.error({code:4,message:p.event}):p.event.match("MEDIA_ERR_ENCRYPTED")?s.player.error({code:5,message:p.event}):(p.event.match("UNKNOWN"),s.player.error({code:4,message:p.event}));else if(p.error==="capability"&&p.event==="encryptedmedia")s.player.error({code:5,message:"The media cannot be played because it requires encryption features that your browser does not support."});else if(p.error==="key_session")s.player.error({code:5,message:p.event});else if(p.error==="download")s.player.error({code:2,message:"The media playback was aborted because too many consecutive download errors occurred."});else{if(p.error!=="mssError")return;s.player.error({code:3,message:p.event})}else s.player.error({code:4,message:p.event.message});setTimeout(function(){s.mediaPlayer_.reset()},10)},s.mediaPlayer_.on(l.MediaPlayer.events.ERROR,s.retriggerError_),s.getDuration_=function(p){var d=p.data.Period_asArray,f=s.hasFiniteDuration_;p.data.mediaPresentationDuration||d[d.length-1].duration?s.hasFiniteDuration_=!0:s.hasFiniteDuration_=!1,s.hasFiniteDuration_!==f&&s.player.trigger("durationchange")},s.mediaPlayer_.on(l.MediaPlayer.events.MANIFEST_LOADED,s.getDuration_),s.mediaPlayer_.on(l.MediaPlayer.events.STREAM_INITIALIZED,videojs.bind(s,s.onMetaData)),s.currentQuality={video:"",audio:""},Object.keys(l.MediaPlayer.events).forEach(function(p){s.mediaPlayer_.on(l.MediaPlayer.events[p],videojs.bind(s,s.onEvent))}),n.dashConfig&&Object.keys(n.dashConfig).forEach(function(p){var d,f="set"+p.charAt(0).toUpperCase()+p.slice(1),_=n.dashConfig[p];if(s.mediaPlayer_.hasOwnProperty(f)&&(videojs.log.warn("Using dash options in videojs-contrib-dash without the set prefix has been deprecated. Change '"+p+"' to '"+f+"'"),p=f),!s.mediaPlayer_.hasOwnProperty(p))return void videojs.log.warn("Warning: dash configuration option unrecognized: "+p);Array.isArray(_)||(_=[_]),(d=s.mediaPlayer_)[p].apply(d,_)}),s.mediaPlayer_.attachView(s.el_),s.mediaPlayer_.setAutoPlay(!1),setupAudioTracks.call(null,s.player,r),setupTextTracks.call(null,s.player,r,n),s.mediaPlayer_.setProtectionData(s.keySystemOptions_),s.mediaPlayer_.attachSource(u),s.tech_.triggerReady()}};window_1.dashjs?a():loadScript(DASH_PATH,function(){a()})}return e.buildDashJSProtData=function(t){var r={};if(!t)return null;if(Array.isArray(t))for(var n=0;n<t.length;n++){var s=t[n],a=videojs.mergeOptions({},s.options);a.licenseUrl&&(a.serverURL=a.licenseUrl,delete a.licenseUrl),r[s.name]=a}else r=t;return r},e.prototype.dispose=function(){var t=this;this.mediaPlayer_&&(this.mediaPlayer_.off(this.dashjs.MediaPlayer.events.ERROR,this.retriggerError_),this.mediaPlayer_.off(this.dashjs.MediaPlayer.events.MANIFEST_LOADED,this.getDuration_),Object.keys(this.dashjs.MediaPlayer.events).forEach(function(r){t.mediaPlayer_.off(t.dashjs.MediaPlayer.events[r],videojs.bind(t,t.onEvent))}),this.mediaPlayer_.reset()),this.player.dash&&delete this.player.dash},e.prototype.duration=function(){return this.mediaPlayer_?this.mediaPlayer_.isDynamic()&&!this.hasFiniteDuration_?1/0:this.mediaPlayer_.duration():0},e.hooks=function(t,r){return e.hooks_[t]=e.hooks_[t]||[],r&&(e.hooks_[t]=e.hooks_[t].concat(r)),e.hooks_[t]},e.hook=function(t,r){e.hooks(t,r)},e.removeHook=function(t,r){var n=e.hooks(t).indexOf(r);return n!==-1&&(e.hooks_[t]=e.hooks_[t].slice(),e.hooks_[t].splice(n,1),!0)},e.prototype.onMetaData=function(t){var r=this,n=this.mediaPlayer_,s=n.getBitrateInfoListFor("video"),a=n.getSettings(),l=a.streaming.abr.autoSwitchBitrate.video,u=[];if(s.length>0){u.push({id:-1,label:"auto",selected:l}),s.forEach(function(d,f){u.push({id:f,label:r.getLevelLabel(d),selected:!l&&r.currentQuality.video===f})});var p={qualityData:{video:u},callbacks:{video:videojs.bind(this,this.switchQuality)}};this.tech_.setTimeout(function(){this.trigger({type:"masterplaylistchange",data:p})},1)}},e.prototype.switchQuality=function(t){var r=this.mediaPlayer_;t.id===-1?r.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}}):t.id!=this.currentQuality[t.trackType]&&(r.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}}),r.setQualityFor(t.trackType,t.id))},e.prototype.getLevelLabel=function(t){return t.height?t.height+"p":t.width?Math.round(9*t.width/16)+"p":t.bitrate?t.bitrate/1e3+"kbps":0},e.prototype.onEvent=function(t){switch(this.tech_.trigger({type:"dash_"+t.type,data:t}),t.type){case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_REQUESTED:this.tech_.trigger({type:"dashqualityswitching",data:t});break;case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_RENDERED:this.tech_.trigger({type:"dashqualityswitched",data:t}),this.currentQuality[t.mediaType]=t.newQuality}},e}();Html5DashJS.hooks_={};var canHandleKeySystems=function(e){e=JSON.parse(JSON.stringify(e)),Html5DashJS.updateSourceData&&(videojs.log.warn('updateSourceData has been deprecated. Please switch to using hook("updatesource", callback).'),e=Html5DashJS.updateSourceData(e)),Html5DashJS.hooks("updatesource").forEach(function(r){e=r(e)});var t=document_1.createElement("video");return!(e.keySystemOptions&&!window_1.navigator.requestMediaKeySystemAccess&&!t.msSetMediaKeys)};videojs.DashSourceHandler=function(){return{name:"dashSourceHandler",canHandleSource:function(e){var t=/\.mpd/i;return canHandleKeySystems(e)?videojs.DashSourceHandler.canPlayType(e.type)?"probably":t.test(e.src)?"maybe":"":""},handleSource:function(e,t,r){return new Html5DashJS(e,t,r)},canPlayType:function(e){return videojs.DashSourceHandler.canPlayType(e)}}},videojs.DashSourceHandler.canPlayType=function(e){return/^application\/dash\+xml/i.test(e)?"probably":""},TCPlayer.mountDashProvider=mountDashProvider,mountDashProvider(),videojs.Html5DashJS=Html5DashJS;var Component$6=videojs.getComponent("Component"),hlsOption=["fileID","requestID","mediaType","mimeType","provider","resolution","rate","frames","buffer","connectionSpeed"],mp4Option=["fileID","requestID","mediaType","mimeType","resolution","rate","buffer"],dashOption=["fileID","requestID","mediaType","mimeType","resolution","rate","buffer","provider","connectionSpeed"],infoOption=["info"],VideoStatisticWrapper=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.nodelist={},s.status={fileID:"",requestID:"",mediaType:"",mimeType:"",provider:"",resolution:"",rate:"",frames:"",buffer:"",connectionSpeed:"",info:""},r.on("playcgiend",function(){clearTimeout(s.timeoutID),Object.keys(s.status).forEach(function(a){s.nodelist[a].reset()})}),r.on("statistic",videojs.bind(s,function(a){a.data.action==="open"?s.tick():s.clearTimeout(s.timeoutID)})),s.init(),s}return inherits(t,e),t.prototype.tick=function(){var r=this;this.timeoutID=setTimeout(videojs.bind(this,function(){r.tick()}),1e3),this.updatePanel()},t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-statistic-wrapper"})},t.prototype.init=function(){var r=this;Object.keys(this.status).forEach(function(n){var s=new VideoTextItem(r,{key:n,data:r.status[n]});r.nodelist[n]=s,r.addChild(s)})},t.prototype.updatePanel=function(){var r=this;if(this.player().techName_==="Html5")switch(this.getStatus(),this.status.mediaType){case"m3u8":hlsOption.forEach(function(n){r.nodelist[n].updateContent(r.status[n])});break;case"mp4":mp4Option.forEach(function(n){r.nodelist[n].updateContent(r.status[n])});break;case"mpd":dashOption.forEach(function(n){r.nodelist[n].updateContent(r.status[n])})}else this.player().techName_==="Flash"&&(this.getFlashStatus(),infoOption.forEach(function(n){n==="info"&&r.nodelist[n].updateContent(r.status[n])}))},t.prototype.getStatus=function(){this.getFileID(),this.getRequestID(),this.getMediaType(),this.getMIMEType(),this.getResolution(),this.getRate(),this.getProvider(),this.getBuffer(),this.status.mediaType==="m3u8"&&(this.getFrames(),this.getConnectionSpeed()),this.status.mediaType==="mpd"&&this.getConnectionSpeed()},t.prototype.getFlashStatus=function(){this.status.mediaType="flash",this.getSupport()},t.prototype.getFileID=function(){var r=this.player().options_.fileID||"";return this.status.fileID=r,r},t.prototype.getRequestID=function(){var r=this.player().PlayerMetrics().playStatus;if(r){var n=r.requestID;return this.status.requestID=n,n}},t.prototype.getMediaType=function(){this.player_.src()&&/\/(.+)\.(.+)\?|\/(.+)\.(.+)/.test(this.player_.src());var r=RegExp.$2||RegExp.$4||"";return this.status.mediaType=r,r},t.prototype.getMIMEType=function(){var r=this.player().src(),n=EXT_MIME[getFileExtension(r)]||"";return this.status.mimeType=n,n},t.prototype.getResolution=function(){var r=this.player_.tech_.el_.videoHeight||0,n=this.player_.tech_.el_.videoWidth||0,s=n+" x "+r;return this.status.resolution=s,s},t.prototype.getRate=function(){var r=this.player().playbackRate()||1;return this.status.rate=r+"x",r},t.prototype.getBuffer=function(){var r=this.player_.bufferedEnd().toFixed(1)||0,n=this.player_.duration().toFixed(1)||0,s=(r/n*100).toFixed(1)+"%",a=r+" / "+n+" ("+s+")";return this.status.buffer=a,a},t.prototype.getSupport=function(){var r=void 0;return r=this.status.mediaType!=="m3u8"&&this.status.mediaType!=="mp4"&&this.status.mediaType!=="dash"?"视频统计功能不支持当前视频格式":"",this.status.info=r,r},t.prototype.getProvider=function(){var r=this.player_.tech_.sourceHandler_;return r instanceof Html5HlsJS?(this.status.provider="HlsJS","HlsJS"):r instanceof Html5DashJS?(this.status.provider="DashJS","DashJS"):""},t.prototype.getFrames=function(){var r=this.player_.getVideoPlaybackQuality(),n=(r.droppedVideoFrames||0)+" dropped of "+(r.totalVideoFrames||0);return this.status.frames=n,n},t.prototype.getConnectionSpeed=function(){var r=void 0;if(this.status.mediaType==="m3u8"){var n=this.player_.tech_.hlsProvider.hls.abrController._bwEstimator;r=n&&n.getEstimate()?(125e-6*n.getEstimate()).toFixed(0)+"KB/s":"0KB/s",this.status.connectionSpeed=r}if(this.status.mediaType==="mpd"){var s=this.player_.dash.mediaPlayer,a=s.getDashMetrics(),l=s.getDashAdapter(),u=s.getActiveStream().getStreamInfo(),p=u.index,d=a.getCurrentRepresentationSwitch("video").to,f=l.getBandwidthForRepresentation(d,p);r=f?(125e-6*f).toFixed(0)+"KB/s":"0KB/s",this.status.connectionSpeed=r}return r},t}(Component$6);videojs.registerComponent("VideoStatisticWrapper",VideoStatisticWrapper);var Component$5=videojs.getComponent("Component"),VideoStatisticPanel=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return r.on("statistic",videojs.bind(s,function(a){a.data.action==="open"?s.show():s.hide()})),r.on("playcgistart",function(){r.trigger({type:"statistic",data:{action:"close"}})}),s.init(),s}return inherits(t,e),t.prototype.createEl=function(){var r=this,n=videojs.dom.createEl("div",{className:"tcp-statistic vjs-hidden"}),s=videojs.dom.createEl("div",{className:"tcp-statistic-close",innerText:"[X]"});return s.addEventListener("click",function(){r.hide(),r.player().trigger({type:"statistic",data:{action:"close"}})}),n.appendChild(s),n},t.prototype.init=function(){this.addChild("VideoStatisticWrapper")},t.prototype.show=function(){e.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){e.prototype.hide.call(this),this.popped=!1},t}(Component$5);videojs.registerComponent("VideoStatisticPanel",VideoStatisticPanel);var MenuItem$3=videojs.getComponent("MenuItem"),MirrorMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass("tc-menu-list"),s.open=!1,s.hasOpen=!1,s.player=r,s.setup(),s}return inherits(t,e),t.prototype.setup=function(){var r=this;this.on(["tap","click"],function(){var n=r.player.tech().el();r.hasOpen||(window.MtaH5&&MtaH5.clickStat("mirror",{appid:r.player.options_.appID,fileid:r.player.options_.fileID}),r.player.trigger({type:"feature",data:"mirror"})),r.open?(videojs.dom.removeClass(n,"tcp-mirror"),videojs.dom.removeClass(r.el_,"tcp-menu-item-select")):(videojs.dom.addClass(n,"tcp-mirror"),videojs.dom.addClass(r.el_,"tcp-menu-item-select"),r.hasOpen=!0),r.open=!r.open})},t}(MenuItem$3);videojs.registerComponent("MirrorMenuItem",MirrorMenuItem);var MenuItem$4=videojs.getComponent("MenuItem"),PoweredByMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass("tc-menu-list"),s}return inherits(t,e),t}(MenuItem$4);videojs.registerComponent("PoweredByMenuItem",PoweredByMenuItem);var MenuItem$5=videojs.getComponent("MenuItem"),StatusMenuItem=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass("tc-menu-list"),s.hasOpen=!1,s.player=r,r.on("statistic",videojs.bind(s,function(a){a.data.action==="close"&&(videojs.dom.removeClass(s.el_,"tcp-menu-item-select"),s.hasOpen=!1)})),s.setup(),s}return inherits(t,e),t.prototype.setup=function(){var r=this;this.on(["tap","click"],function(){r.hasOpen?(videojs.dom.removeClass(r.el_,"tcp-menu-item-select"),r.player.trigger({type:"statistic",data:{action:"close"}}),r.hasOpen=!1):(videojs.dom.addClass(r.el_,"tcp-menu-item-select"),r.player.trigger({type:"statistic",data:{action:"open"}}),r.hasOpen=!0,window.MtaH5&&MtaH5.clickStat("mirror",{appid:r.player.options_.appID,fileid:r.player.options_.fileID}),r.player.trigger({type:"feature",data:"statistic"}))})},t}(MenuItem$5);videojs.registerComponent("StatusMenuItem",StatusMenuItem),videojs.getComponent("Component");var Menu$2=videojs.getComponent("Menu");videojs.getComponent("MenuItem");var RightClickPopupMenu=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));s.hide(),s.addChild("PoweredByMenuItem",{label:"Powered by Tencent Cloud."}),!n.statistic||IS_IOS||IS_ANDROID||s.addChild("StatusMenuItem",{label:"Video statistic"}),n.mirror&&s.addChild("MirrorMenuItem",{label:"Mirror"}),r.on("contextmenu",videojs.bind(s,s.onContextmenu)),r.on(["tap","click"],videojs.bind(s,function(l){if(this.popped)return this.hide(),l.stopPropagation(),l.preventDefault(),!1})),videojs.on(document,["tap","click"],videojs.bind(s,function(l){this.popped&&this.hide()}));var a=s;return s.children().forEach(function(l){l.on(["tap","click"],function(){a.hide()})}),s}return inherits(t,e),t.prototype.createEl=function(){var r=e.prototype.createEl.call(this);return videojs.dom.addClass(r,"tcp-right-click-popup-menu"),r},t.prototype.show=function(){e.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){e.prototype.hide.call(this),this.popped=!1},t.prototype.onContextmenu=function(r){r.preventDefault(),this.show();var n=this.el(),s=r.clientX,a=r.clientY,l=getViewportSize(),u=l.width,p=l.height,d=s+n.offsetWidth-u+5;d=Math.max(0,d);var f=a+n.offsetHeight-p+5;f=Math.max(0,f);var _=this.player().el().getBoundingClientRect();n.style.left=Math.max(0,s-_.left-d)+"px",n.style.top=Math.max(0,a-_.top-f)+"px"},t}(Menu$2);videojs.registerComponent("RightClickPopupMenu",RightClickPopupMenu);var clickableComponent=videojs.getComponent("ClickableComponent"),TimeTooltip$2=videojs.getComponent("TimeTooltip"),Component$9=videojs.getComponent("Component"),dom=videojs.dom,formatTime$2=videojs.formatTime,COMMENT_WIDTH=140,COMMENT_HEIGHT_SINGLE_LINE=23,COMMENT_SHOW_ON_THE_LEFT={POPUP_CONTAINER_OFFSET:-130,POPUP_CONTAINER_OFFSET_WITHOUTGIT:-100,TRIANGLE_OFFEST:96,TRIANGLE_OFFEST_WITHOUTGIF:95},COMMENT_SHOW_ON_THE_RIGHT={TRIANGLE_OFFEST:6,POPUP_CONTAINER_OFFSET:0},ProgressMarkerGenerator=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.duration=0,s.registerListener(),s}return inherits(t,e),t.prototype.registerListener=function(){this.player_.one("canplay",videojs.bind(this,this.resetDotsElement))},t.prototype.resetDotsElement=function(){var r=this.player_;this.duration=r.duration(),dom.emptyEl(this.el_),this.resetEl()},t.prototype.resetEl=function(){this.setUpEl()},t.prototype.dotMouseLeave=function(){var r=event.currentTarget,n=r.getAttribute("container-id");this.getChildById(n).hide()},t.prototype.dotHover=function(){var r=event.currentTarget.parentElement.offsetWidth,n=event.currentTarget.offsetLeft+COMMENT_WIDTH,s=this.getChildById(event.currentTarget.getAttribute("container-id")),a=s.getAttribute("class").search("tcp-without-gif")>=0,l=s.el_.querySelector(".tcp-triangle-both")||s.el_.querySelector(".tcp-triangle");n>r?a?(s.el_.style.left=COMMENT_SHOW_ON_THE_LEFT.POPUP_CONTAINER_OFFSET_WITHOUTGIT+"px",l.style.left=COMMENT_SHOW_ON_THE_LEFT.TRIANGLE_OFFEST_WITHOUTGIF+"%"):(s.el_.style.left=COMMENT_SHOW_ON_THE_LEFT.POPUP_CONTAINER_OFFSET+"px",l.style.left=COMMENT_SHOW_ON_THE_LEFT.TRIANGLE_OFFEST+"%"):event.currentTarget.offsetLeft<=COMMENT_WIDTH&&!a&&(s.el_.style.left=COMMENT_SHOW_ON_THE_RIGHT.POPUP_CONTAINER_OFFSET+"px",l.style.left=COMMENT_SHOW_ON_THE_RIGHT.TRIANGLE_OFFEST+"px");var u=s.getChild("DotImage");if(u){var p=u.el_.getElementsByClassName("tcp-dot-timestamp")[0],d=event.currentTarget.getAttribute("dotinsecond"),f=formatTime$2(d);p.innerHTML=f}s.show()},t.prototype.setChildInTheContainer=function(r,n){var s=r.content&&r.content!==""?decodeURIComponent(r.content.replace(/\+/g," ")):"";if(s!==""){var a=n.addChild("DotComment");a.el_.innerHTML=encodeHTML(s)}if(r.img){n.el_.querySelector(".tcp-triangle").setAttribute("class","tcp-triangle-both");var l=n.addChild("DotImage");l.el_.firstChild.setAttribute("src",r.img),s==""?(n.addClass("tcp-only-gif"),l.el_.firstChild.className="tcp-image-in-container-only-image"):this.countContentSize(s)<=20&&(n.addClass("tcp-single-line"),a.el_.style.height=COMMENT_HEIGHT_SINGLE_LINE+"px")}else if(s!==""){var u=this.countContentSize(s);u<=14?n.addClass("tcp-single-line"):u<=28&&n.addClass("tcp-two-lines"),n.addClass("tcp-without-gif"),a.addClass("tcp-large-comment")}},t.prototype.markSetUp=function(r){var n=r.timeOffset>0?r.timeOffset/1e3:0,s=this.duration?this.duration:0;if(!(typeof n!="number"||n>s)){var a=document.createElement("div");a.className="tcp-dot-basic-style",a.setAttribute("dotinsecond",n.toString()),r.class&&(a.className+=" "+r.class);var l=this.addChild("PopUpContainer");return a.setAttribute("container-id",l.id_),this.setChildInTheContainer(r,l),a.appendChild(l.el_),a.style.left=n/s*100+"%",a.addEventListener("mouseover",videojs.bind(this,this.dotHover)),a.addEventListener("mouseleave",videojs.bind(this,this.dotMouseLeave)),a}},t.prototype.setUpEl=function(){var r=this,n=this.player_.options_.dots||0,s=this.el_||e.prototype.createEl.call(this);return videojs.dom.addClass(s,"tcp-dot-component"),n&&n instanceof Array&&n.length>0&&n.forEach(function(a){var l=a.content||"";if(l&&l!=""||a.img){var u=r.markSetUp(a);u&&s.appendChild(u)}}),s},t.prototype.countContentSize=function(r){for(var n=0,s=r.length,a=-1,l=0;l<s;l++)a=r.charCodeAt(l),n+=a>=0&&a<=128?1:2;return n},t.prototype.createEl=function(){return this.setUpEl()},t}(clickableComponent);videojs.registerComponent("ProgressMarkerGenerator",ProgressMarkerGenerator);var DotComment=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass("tcp-dot-comment"),s}return inherits(t,e),t}(Component$9);videojs.registerComponent("DotComment",DotComment);var DotImage=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));s.addClass("tcp-dot-image");var a=s.el_||e.prototype.createEl.call(s),l=dom.createEl("img");l.className="tcp-image-in-container",a.appendChild(l);var u=dom.createEl("span");return u.className="tcp-dot-timestamp",u.innerHTML="",a.appendChild(u),s}return inherits(t,e),t}(Component$9);videojs.registerComponent("DotImage",DotImage);var PopUpContainer=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));s.addClass("tcp-popup-container");var a=dom.createEl("div");return a.setAttribute("class","tcp-triangle"),s.el_.appendChild(a),s.hide(),s}return inherits(t,e),t}(TimeTooltip$2);videojs.registerComponent("PopUpContainer",PopUpContainer);var Plugin$2=videojs.getPlugin("plugin"),SpeedUp=function(e){function t(r){classCallCheck(this,t);var n=possibleConstructorReturn(this,e.call(this,r));return n.TARGET_LANTENCY=1,n.MAX_LATENCY=3,n.RATEVALUE=1.1,r.ready(videojs.bind(n,n.init)),n}return inherits(t,e),t.prototype.checkLatency=function(){var r=this.player.bufferedEnd()-this.player.currentTime();r>this.MAX_LATENCY&&this.player.playbackRate(this.RATEVALUE),r<this.TARGET_LANTENCY&&this.player.playbackRate(1)},t.prototype.init=function(){var r=this,n=this.player,s=void 0;n.on("playing",function(){n.duration()===1/0&&(s=setInterval(r.checkLatency.bind(r),1e3))}),n.on("waiting",function(){r.reset(s)}),n.on("pause",function(){r.reset(s)})},t.prototype.reset=function(r){this.player.playbackRate(1),clearInterval(r)},t}(Plugin$2);videojs.registerPlugin("SpeedUp",SpeedUp);var Button$3=videojs.getComponent("Button"),BigPlayButton$2=videojs.getComponent("BigPlayButton");BigPlayButton$2.prototype.createEl=function(){var e=Button$3.prototype.createEl.call(this),t=getTemplate();return(this.options_.shapeType||this.options_.styleType)&&(t=getTemplate(this.options_.shapeType,this.options_.styleType)),e.appendChild(videojs.dom.createEl("div",{className:"vjs-button-icon",innerHTML:t})),e},BigPlayButton$2.prototype.controlText_="Play";var Component$10=videojs.getComponent("Component"),VideoStatisticWrapper$1=videojs.getComponent("VideoStatisticWrapper"),LoadingSpinner$2=videojs.getComponent("LoadingSpinner");LoadingSpinner$2.prototype.createEl=function(){function e(s,a){var l=new VideoStatisticWrapper$1(s);if(l.getMediaType(),(l.getBuffer()||"").indexOf("100.0%")>-1)return a.innerText="",!1;a.innerText=l.getConnectionSpeed()}var t=this,r=Component$10.prototype.createEl.call(this,"div",{className:"tcp-loading-spinner",dir:"ltr"});if(!this.player_.options_.loadingSpeed)return r;var n=null;return this.player_.on("waiting",function(){n=setInterval(function(){e(t.player_,r)},100)}),this.player_.on("timeupdate",function(){n&&clearInterval(n)}),r};var Plugin$3=videojs.getPlugin("plugin"),log$3=videojs.log,Skin=function(e){function t(r,n){classCallCheck(this,t),log$3("Skin initializing");var s=possibleConstructorReturn(this,e.call(this,r));return s.player.addClass("tcp-skin"),log$3("Skin initialized"),s}return inherits(t,e),t}(Plugin$3);videojs.registerPlugin("Skin",Skin);var Plugin$4=videojs.getPlugin("plugin"),log$4=videojs.log,VID=function(e){function t(r,n){classCallCheck(this,t),log$4("VID initializing");var s=possibleConstructorReturn(this,e.call(this,r));return s.init(s.player.options_),log$4("VID initialized"),s}return inherits(t,e),t.prototype.init=function(r){var n=(this.player,r.sources);r&&r.appID&&r.fileID||r.plugins.DRM&&n.length==0?r.children.splice(0,r.children[0]=="mediaLoader"?1:0,"mediaAsyncLoader"):r.children[0]!="mediaLoader"&&r.children.unshift("mediaLoader")},t}(Plugin$4);videojs.registerPlugin("VID",VID);var isObject_1=isObject$2,freeGlobal=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=_freeGlobal||freeSelf||Function("return this")(),_root=root,now=function(){return _root.Date.now()},now_1=now,reWhitespace=/\s/,_trimmedEndIndex=trimmedEndIndex,reTrimStart=/^\s+/,_baseTrim=baseTrim,Symbol$1=_root.Symbol,_Symbol=Symbol$1,objectProto=Object.prototype,hasOwnProperty$2=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag$1=_Symbol?_Symbol.toStringTag:void 0,_getRawTag=getRawTag,objectProto$1=Object.prototype,nativeObjectToString$1=objectProto$1.toString,_objectToString=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:void 0,_baseGetTag=baseGetTag,isObjectLike_1=isObjectLike,symbolTag="[object Symbol]",isSymbol_1=isSymbol,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,toNumber_1=toNumber,FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min,debounce_1=debounce,FUNC_ERROR_TEXT="Expected a function",throttle_1=throttle$1,Component$11=videojs.getComponent("Component"),DvrProgressControl=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.on("mousemove",s.handleMouseMove),s.on("mouseup",s.handleMouseUp),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control tcp-dvr-progress-control"})},t.prototype.update=function(r){this.getChild("DvrSeekBar").update(r)},t.prototype.handleMouseMove=function(r){var n=this.getChild("DvrSeekBar"),s=n.calculateDistance(r),a=n.getChild("DvrMouseTimeDisplay");a&&a.update(videojs.dom.getBoundingClientRect(n.el()),s)},t.prototype.handleMouseUp=function(r){this.getChild("DvrSeekBar").handleMouseUp(r)},t}(Component$11);DvrProgressControl.prototype.options_={children:["DvrSeekBar"]},videojs.registerComponent("DvrProgressControl",DvrProgressControl);var Slider$2=videojs.getComponent("Slider"),DvrSeekBar=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.percent_=1,s.update=throttle_1(videojs.bind(s,s.update),50),s.on(r,"seekToLive",videojs.bind(s,function(a){this.update(a.data)})),s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update=function(r){r!=null&&(this.percent_=r,this.bar.update(videojs.dom.getBoundingClientRect(this.el_),r),this.updateAriaAttributes(r))},t.prototype.handleMouseDown=function(r){e.prototype.handleMouseDown.call(this,r),this.isMouseDown=!0},t.prototype.handleMouseMove=function(r){var n=this.calculateDistance(r);this.update(n)},t.prototype.handleMouseUp=function(r){e.prototype.handleMouseUp.call(this);var n=this.calculateDistance(r);this.update(n),this.player().Dvr().timeShift(n)},t.prototype.stepBack=function(){},t.prototype.stepForward=function(){},t.prototype.updateAriaAttributes=function(r){this.el().setAttribute("aria-valuenow",(100*r).toFixed(2))},t.prototype.getPercent=function(){return this.percent_},t}(Slider$2);DvrSeekBar.prototype.options_={children:["DvrMouseTimeDisplay","DvrTimeShiftBar"],barName:"DvrTimeShiftBar"},videojs.registerComponent("DvrSeekBar",DvrSeekBar);var DvrTimeShiftBar=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.el_.style.width="100%",s}return inherits(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar tcp-dvr-time-shift",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 100%</span>"})},t.prototype.update=function(r,n){var s=(100*n).toFixed(2)+"%";this.el_.style.width=s},t}(Component$11);videojs.registerComponent("DvrTimeShiftBar",DvrTimeShiftBar);var MouseTimeDisplay$2=videojs.getComponent("MouseTimeDisplay"),DvrMouseTimeDisplay=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.update=function(r,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player().Dvr().dvrData.maxTimeShift,l=videojs.formatTime((1-n)*a,a);s.el_.style.left=r.width*n+"px",s.getChild("timeTooltip").update(r,n,l)})},t}(MouseTimeDisplay$2);videojs.registerComponent("DvrMouseTimeDisplay",DvrMouseTimeDisplay);var Button$4=videojs.getComponent("Button"),LiveButton=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){var r=Button$4.prototype.createEl.call(this,"button",{className:"vjs-live-control vjs-control"});return this.contentEl_=videojs.dom.createEl("div",{className:"vjs-live-display",innerHTML:this.localize("LIVE")},{"aria-live":"off"}),r.appendChild(this.contentEl_),r},t.prototype.update=function(){},t.prototype.updateControlText=function(r){this.controlText(r?"直播中":"返回直播")},t.prototype.handleClick=function(r){this.player().Dvr().seekToLive()},t}(Button$4);LiveButton.prototype.controlText_="返回直播",videojs.registerComponent("LiveButton",LiveButton);var Plugin$5=videojs.getPlugin("plugin"),Dvr=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));s.isInit=!1,s.options=n;var a=s;return r.ready(function(){var l=r.tech(!0),u=l&&l.hlsProvider;if(u&&u.Hls){var p=u.Hls;l.one(p.Events.MANIFEST_LOADED,function(d){}),l.one(p.Events.LEVEL_LOADED,function(d){}),r.one("loadedmetadata",function(d){l.el_.setAttribute("poster",""),a.init(),a.options.liveURL&&a.seekToLive()})}}),s}return inherits(t,e),t.prototype.init=function(){var r=this.player,n=r.tech(!0).hlsProvider;if(this.parseM3u8(n.manifests[0]),!this.dvrData.startTime&&!this.isInit)return void r.one("loadedmetadata",videojs.bind(this,function(s){this.init()}));this.initControl(),this.delay=getParams("delay",r.tech_.currentSource_.src)||0,this.updateControl(!this.isLive()),r.on("loadedmetadata",videojs.bind(this,function(){this.parseM3u8(n.manifests[0]),this.delay=getParams("delay",r.tech_.currentSource_.src)||0,this.updateControl()})),this.isInit=!0},t.prototype.initControl=function(){var r=this.player;r.addClass("vjs-dvr"),r.controlBar.getChild("ProgressControl").hide(),r.controlBar.getChild("LiveDisplay").hide(),r.controlBar.addChild("DvrProgressControl",{},5),r.controlBar.addChild("liveButton",{},6)},t.prototype.updateControl=function(r){var n=this.player,s=n.controlBar.getChild("ProgressControl"),a=n.controlBar.getChild("LiveDisplay"),l=n.controlBar.getChild("DvrProgressControl"),u=n.controlBar.getChild("LiveButton");n.toggleClass("vjs-dvr-live",this.isLive()),u.updateControlText(this.isLive()),r&&l.update(1-this.delay/this.dvrData.maxTimeShift),this.dvrData.startTime?(l.show(),u.show(),s.hide(),a.hide()):(l.hide(),u.hide(),s.show(),a.show())},t.prototype.seekToLive=function(){this.isLive()||(this.timeShift(1),this.player.trigger({type:"seekToLive",data:1}))},t.prototype.isLive=function(){return!(this.delay>0)},t.prototype.timeShift=function(r){var n=this.player,s=(n.getChild("ControlBar").getChild("LiveButton"),n.tech_.currentSource_),a=Math.floor(this.dvrData.maxTimeShift*(1-r));this.delay=a,a==0&&this.options.liveURL?n.src(this.options.liveURL):(s.src=(this.options.shiftURL||s.src).replace(/delay=*(\d+)/,"delay="+a),n.src(n.tech_.currentSource_.src)),n.bigPlayButton.hide(),n.posterImage.hide(),n.tech_.one("hlsManifestParsed",videojs.bind(this,function(){n.play()}))},t.prototype.parseM3u8=function(r){this.dvrData={};for(var n=new RegExp([/#EXT-TX-TS-START-TIME:*(.+)/.source,/|#EXT-TX-TS-DURATION:*(.+)/.source].join(""),"g"),s=void 0;(s=n.exec(r))!==null;)s[1]?this.dvrData.startTime=s[1]:s[2]&&(this.dvrData.duration=s[2]);this.dvrData.startTime&&(this.dvrData.maxTimeShift=Math.min(Math.floor(new Date().getTime()/1e3-this.dvrData.startTime),this.dvrData.duration))},t}(Plugin$5);videojs.registerPlugin("Dvr",Dvr);var Menu$4=videojs.getComponent("Menu"),QualitySwitcherMenu=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.addItem=function(r){e.prototype.addItem.call(this,r)},t}(Menu$4),MenuItem$6=videojs.getComponent("MenuItem"),QualitySwitcherMenuItem=function(e){function t(r,n){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.handleClick=function(r){if(e.prototype.handleClick.call(this,r),this.updateItems(),this.options_.callback(this.options_),this.options_.trackType=="video"){var n=this.player().controlBar.getChild(this.options_.trackType+"QualitySwitcherMenuButton");n.updateLabel(this.options_),n.unpressButton()}},t.prototype.updateItems=function(){for(var r=this.player().controlBar.getChild(this.options_.trackType+"QualitySwitcherMenuButton"),n=r.getChild(this.options_.trackType+"QualitySwitcherMenu"),s=n.children(),a=0;a<s.length;a++){var l=s[a];this!==l?(l.selected(!1),l.options_.selected=!1):l.options_.selected=!0}},t}(MenuItem$6),MenuButton$2=videojs.getComponent("MenuButton");videojs.getComponent("Menu");var QualitySwitcherMenuButton=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,e.apply(this,arguments))}return inherits(t,e),t.prototype.createEl=function(){var r=e.prototype.createEl.call(this);return this.labelEl_=videojs.dom.createEl("div",{className:"tcp-quality-switcher-value",innerHTML:""}),r.appendChild(this.labelEl_),r},t.prototype.createMenu=function(){for(var r=this.options_.qualityList,n=new QualitySwitcherMenu(this.player(),{name:this.options_.trackType+"QualitySwitcherMenu"}),s=void 0,a=r.length-1;a>-1;a--){var l=r[a];s=videojs.mergeOptions(l,{trackType:this.options_.trackType,callback:this.options_.callback,selectable:!0}),n.addItem(new QualitySwitcherMenuItem(this.player(),s)),l.selected&&this.updateLabel(l)}return n},t.prototype.updateLabel=function(r){this.labelEl_.innerHTML="<p>"+this.localize(r.label)+"</p>"},t}(MenuButton$2),Plugin$6=videojs.getPlugin("plugin"),TRACK_TYPES=["video","audio","subtitle"],TRACK_CLASS={video:"tcp-video-quality-switcher",audio:"tcp-audio-quality-switcher",subtitle:"tcp-subtitle-quality-switcher"},log$5=videojs.log,QualitySwitcher=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,r.on("qualitydataloaded",videojs.bind(s,s.init)),s}return inherits(t,e),t.prototype.init=function(r){log$5("QualitySwitcher initializing",r);var n=this.player,s=r.data.qualityData,a=r.data.callbacks;if(this.setOptions({qualityData:s,callbacks:a}),!n.controlBar)return void log$5("QualitySwitcher can not initialize without control bar");for(var l=0;l<TRACK_TYPES.length;l++){var u=TRACK_TYPES[l],p=u+"QualitySwitcherMenuButton",d=n.controlBar.getChild(p);s[u]&&s[u].length>0&&n.controlBar.options_.QualitySwitcherMenuButton&&(d&&d.el()&&(d.dispose(),n.controlBar.removeChild(d)),this.repleaceLabel(u,s),d=new QualitySwitcherMenuButton(n,{name:p,qualityList:s[u],callback:a[u],trackType:u}),d.addClass(TRACK_CLASS[u]),n.controlBar.addChild(d,{},10))}log$5("QualitySwitcher initialized",r,this)},t.prototype.setOptions=function(r){this.options=videojs.mergeOptions(this.options,r)},t.prototype.setVideoQuality=function(r){if(this.options.qualityData&&this.options.callbacks.video){for(var n=this.options.qualityData.video,s=0;s<n.length;s++)n[s].selected&&(n[s].selected=!1),n[s].id===r.id&&(n[s].selected=!0);this.options.callbacks.video(r)}},t.prototype.getVideoQualityData=function(){return this.options.qualityData?this.options.qualityData.video:void 0},t.prototype.repleaceLabel=function(r,n){if(this.options.qualityLabelList){var s=this.options.qualityLabelList[r],a=n[r];if(a&&a.length>0&&s&&s.length>0)for(var l=0;l<a.length;l++){var u=a[l].label;u=u.slice(0,u.length-1);for(var p=0;p<s.length;p++)if(s[p].height==u){a[l].label=s[p].resolutionName;break}}}},t.prototype.reset=function(){for(var r=this.player,n=0;n<TRACK_TYPES.length;n++){var s=TRACK_TYPES[n],a=r.controlBar&&r.controlBar.getChild(s+"QualitySwitcherMenuButton");a&&a.el()&&(a.dispose(),r.controlBar.removeChild(a))}},t}(Plugin$6);videojs.registerPlugin("QualitySwitcher",QualitySwitcher);var Plugin$7=videojs.getPlugin("plugin"),log$6=videojs.log,defaultOptions={labels:{FLU:"流畅",SD:"标清",HD:"高清",FHD:"超清"},showOrder:["FLU","SD","HD","FHD"],defaultRes:"SD"},MultiResolution=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,n.useManualOption&&(s.manualOptions=extend({},n)),s.hasInit=!1,r.on("multiresolutionchange",videojs.bind(s,function(a){a.data&&this.update(data)})),r.on(["resolutionswitching","resolutionswitched"],videojs.bind(s,function(a){a.type=="resolutionswitching"?this.player.addClass("tcp-res-switching"):this.player.removeClass("tcp-res-switching")})),r.ready(videojs.bind(s,function(){var a=r.tech(!0);a&&(a.on("masterplaylistchange",videojs.bind(this,this.onMasterPlaylistChange)),a.on("hlsresolutionswitching",videojs.bind(this,this.onHlsLevelChange)),a.on("hlsresolutionswitched",videojs.bind(this,this.onHlsLevelChange)),a.on("dashqualityswitching",videojs.bind(this,this.onDashQualityChange)),a.on("dashqualityswitched",videojs.bind(this,this.onDashQualityChange))),this.hasInit=!0})),s.init(s.player.options_.multiResolution),s}return inherits(t,e),t.prototype.init=function(r){var n={};this.player.options_.label&&(n.label=this.player.options_.label),this.player.options_.showOrder&&(n.showOrder=this.player.options_.showOrder),this.player.options_.defaultRes&&(n.defaultRes=this.player.options_.defaultRes);var s=this.player,a=extend({},defaultOptions,r,this.manualOptions,n),l=a&&a.sources;if(this.options=a,l){log$6("MultiResolution initializing",a);var u=void 0;if(this.currentID=a.defaultRes=l[a.defaultRes]?a.defaultRes:Object.keys(l).shift(),u=l[this.currentID],s.options_.children[0]!="mediaLoader"||this.hasInit)s.src(u);else{var p;(p=s.options_.sources).push.apply(p,u)}this.hasInit||(this.hasInit=!0),s.ready(videojs.bind(this,function(){s.trigger({type:"qualitydataloaded",data:this.initQualityData(a)}),s.one("loadedmetadata",function(){var d=this.tech(!0);d.name_!="flash"&&d.el_.getAttribute("poster")&&(d.el_.removeAttribute("poster"),delete d.el_.poster)})})),log$6("MultiResolution initialized")}},t.prototype.reset=function(){this.player.QualitySwitcher().reset()},t.prototype.update=function(r){this.init(r)},t.prototype.store=function(r){if(!r)return this.options;this.options=videojs.mergeOptions(defaultOptions,this.options,r)},t.prototype.onMasterPlaylistChange=function(r){this.player.trigger({type:"qualitydataloaded",data:r.data})},t.prototype.onHlsLevelChange=function(r){r.type=="hlsresolutionswitching"?this.player.trigger({type:"resolutionswitching",data:r.data}):r.type=="hlsresolutionswitched"&&this.player.trigger({type:"resolutionswitched",data:r.data})},t.prototype.onDashQualityChange=function(r){r.type=="dashqualityswitching"?this.player.trigger({type:"resolutionswitching",data:r.data}):r.type=="dashqualityswitched"&&this.player.trigger({type:"resolutionswitched",data:r.data})},t.prototype.switchResolution=function(r){if(this.currentID!=r.id){var n=this.player,s=n.currentTime(),a=(n.paused(),n.duration()===1/0);if(n.trigger({type:"resolutionswitching",data:r}),a)n.bigPlayButton&&n.bigPlayButton.hide(),n.posterImage&&n.posterImage.hide(),n.one("loadstart",function(){n.play(),n.trigger({type:"resolutionswitched",data:r})});else{var l=n.ended(),u=n.playbackRate(),p=n.controlBar&&n.controlBar.progressControl&&n.controlBar.progressControl.seekBar.playProgressBar.el().style.width||0,d=videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?"loadeddata":"loadedmetadata";n.one(d,function(){n.controlBar&&n.controlBar.progressControl&&(n.controlBar.progressControl.seekBar.playProgressBar.el().style.width=p),l||n.currentTime(s),n.techName_=="Flash"?(n.play(),n.tech(!0).trigger("seeked")):(n.play(),n.playbackRate()!=u&&n.playbackRate(u)),n.trigger({type:"resolutionswitched",data:r})}),n.bigPlayButton&&n.bigPlayButton.hide(),n.posterImage&&n.posterImage.hide(),n.options_.preload=="none"&&n.one("suspend",function(){n.load()})}n.src(this.options.sources[r.id]),a&&setTimeout(function(){n.play(),setTimeout(function(){n.play()},900)},100),this.currentID=r.id}},t.prototype.initQualityData=function(r){var n=[],s=(r.sources,r.labels),a=r.showOrder;return a.length>0&&a.forEach(function(l,u){var p={};p.id=l,p.selected=r.defaultRes===l,p.label=s[l]||l,n.push(p)}),{qualityData:{video:n},callbacks:{video:videojs.bind(this,this.switchResolution)}}},t.prototype.sortSourceOrder=function(r){return[]},t}(Plugin$7);videojs.registerPlugin("MultiResolution",MultiResolution),videojs.getComponent("Flash");var defaultDismiss=!videojs.browser.IS_IPHONE,registerPlugin=videojs.registerPlugin||videojs.plugin,defaults$1={header:"",code:"",message:"",timeout:45e3,dismiss:defaultDismiss,progressDisabled:!1,errors:{1:{type:"MEDIA_ERR_ABORTED"},2:{type:"MEDIA_ERR_NETWORK"},3:{type:"MEDIA_ERR_DECODE"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED"},5:{type:"MEDIA_ERR_ENCRYPTED"},unknown:{type:"MEDIA_ERR_UNKNOWN"},"-1":{type:"PLAYER_ERR_NO_SRC",message:"No video has been loaded."},"-2":{type:"PLAYER_ERR_TIMEOUT",message:"Could not download the video."},10:{type:"SERVER_ERR",message:"Request timed out."},11:{type:"SERVER_ERR",message:"Server is not respond."},12:{type:"DATA_ERR",message:"Server respond error data."},13:{type:"DATA_ERR",message:"No video transcoding information found."},14:{type:"HLS_NETWORK_ERR",message:"A network error caused the media download to fail part-way."},15:{type:"HLS_MEDIA_ERR",message:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support."},16:{type:"HLS_MUX_ERR",message:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support."},17:{type:"HLS_OTHER_ERR",message:"Rise an internal exception when playing HLS."},18:{type:"DRM_ERR",message:"Current browser not support DRM."},403:{type:"SERVER_ERR",message:"Authentication failed."},500:{type:"SERVER_ERR",message:"Server failed."},1001:{type:"SERVER_ERR",message:"The media file does not exist. Please check if the fileID is correct."},1002:{type:"SERVER_ERR",message:"The trial duration is illegal. The trial duration must be within the video duration."},1003:{type:"SERVER_ERR",message:"Param pcfg is not unique."},1004:{type:"SERVER_ERR",message:"The license has expired. Please check whether the expiration time setting is reasonable."},1005:{type:"SERVER_ERR",message:"Did not find an adaptive stream that can be played."},1006:{type:"SERVER_ERR",message:"Invalid request format, please check the request format."},1007:{type:"SERVER_ERR",message:"AppID is not exist, Please check if the AppID is correct."},1008:{type:"SERVER_ERR",message:"Without anti-leech information."},1009:{type:"SERVER_ERR",message:"psign check failed."},1010:{type:"SERVER_ERR",message:"Other errors."},1021:{type:"SERVER_ERR",message:"qsign invalid."},1012:{type:"DATA_ERR",message:"Response data verification failed."},2001:{type:"SERVER_ERR",message:"Internal error."},10008:{type:"SERVER_ERR",message:"The media file does not exist. Please check if the fileID is correct."},"-2001":{type:"SERVER_ERR",message:"Current browser not support play this stream, please select another one."},"-2002":{type:"SERVER_ERR",message:"Server respond error data.(eg. stream not exist)"},"-2003":{type:"SERVER_ERR",message:"Video play failed, please refresh to start play again."},"-2004":{type:"SERVER_ERR",message:"Connection to the server has failed and the number of connection retries has exceeded the set value."},"-2005":{type:"SERVER_ERR",message:"Video decoding failure."},PLAYER_ERR_DOMAIN_RESTRICTED:{message:"This video is restricted from playing on your current domain."},PLAYER_ERR_IP_RESTRICTED:{message:"This video is restricted at your current IP address."},PLAYER_ERR_GEO_RESTRICTED:{message:"This video is restricted from playing in your current geographic region."}}},initPlugin=function e(t,r){var n=void 0,s=void 0,a=void 0,l=[];videojs.getComponent("ErrorDisplay").prototype.options_.fillAlways=!1;var u=function(m){r.errors=videojs.mergeOptions(r.errors,m),Object.keys(r.errors).forEach(function(C){var S=r.errors[C];S.type||(S.type=C)})};u();var p=function(){t.clearTimeout(s),a&&(a=!1,t.removeClass("vjs-waiting")),s=t.setTimeout(function(){t.error()||t.paused()||t.ended()||(a=!0,t.addClass("vjs-waiting"))},1e3),t.clearTimeout(n),n=t.setTimeout(function(){t.error()||t.paused()||t.ended()||t.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},r.timeout),t.error()&&t.error().code===-2&&t.error(null)},d=function(){for(var m=void 0;l.length;)m=l.shift(),t.off(m[0],m[1]);t.clearTimeout(n),t.clearTimeout(s)},f=function(m,C){var S=function(){if(!t.error()){var P=t.$(".vjs-tech");if(P&&P.type==="application/x-shockwave-flash"&&!P.vjs_getProperty)return void t.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});if(t.paused()||t.ended())return p()}C.call(this)};t.on(m,S),l.push([m,S])},_=function(){var m=0;d(),p(),f(["timeupdate","adtimeupdate"],function(){var C=t.currentTime();C!==m&&(m=C,p())}),r.progressDisabled||f("progress",p)},y=function(m){var C="",S=t.error(),P=document_1.createElement("div"),A="";if(S){S=videojs.mergeOptions(S,r.errors[S.code||0]),S.message&&(C='<div class="vjs-errors-message">'+t.localize(S.message)+"</div>"),S.code&&(C+='<div class="vjs-errors-code">'+this.localize("Error Code")+" : "+S.code+"</div>"),S.type&&(C+='<div class="vjs-errors-type">'+this.localize("Error Type")+" : "+S.type+"</div>"),S.code!="10"&&S.code!="11"||(C+='<a href="https://ping.huatuo.qq.com/playvideo.qcloud.com" target="_blank" class="vjs-error-check-network">诊断网络</a>'),P.className="vjs-errors-dialog",A=`<div class="vjs-errors-content-container">
  225. `+C+`
  226. </div>`;var x=t.getChild("errorDisplay");x.closeable(!("dismiss"in S)||S.dismiss)?(P.innerHTML=A,x.fillWith(P),x.contentEl().firstChild.appendChild(x.getChild("closeButton").el())):(P.innerHTML=A,x.fillWith(P)),x.one("modalclose",function(){return t.error(null)})}},b=function m(){d(),t.removeClass("vjs-errors"),t.off("dispose",m),t.off(["aderror","error"],y)},g=function(m){b(),e(t,videojs.mergeOptions(defaults$1,m))};g.extend=function(m){return u(m)},g.getAll=function(){return videojs.mergeOptions(r.errors)},g.disableProgress=function(m){r.progressDisabled=m,_()},t.on("dispose",b),t.on(["aderror","error"],y),t.ready(function(){t.addClass("vjs-errors")}),t.errors=g},errors=function(e){initPlugin(this,videojs.mergeOptions(defaults$1,e))};["extend","getAll","disableProgress"].forEach(function(e){errors[e]=function(){videojs.log.warn("The errors."+e+"() method is not available until the plugin has been initialized!")}}),registerPlugin("Errors",errors);var Plugin$8=videojs.getPlugin("plugin"),cgiSeq={},STATUS_CODE_REPORT_URL="//report.huatuo.qq.com/code.cgi",log$7=videojs.log,Reporter=function(e){function t(r,n){classCallCheck(this,t),log$7("Reporter initilaizing");var s=possibleConstructorReturn(this,e.call(this,r));if(!r.options_.plugins.Reporter){var a;return a=!1,possibleConstructorReturn(s,a)}return s.reportContent={status:"idle"},s.mtaReportCache=[],log$7("Reporter initilaized"),s}return inherits(t,e),t.prototype.setStorage=function(r,n){localStorage.setItem(r,n)},t.prototype.getStorage=function(r){localStorage.getItem(r)},t.prototype.sender=function(r){var n=new Image;n.onload=n.onerror=n.onabort=function(){n.onload=n.onerror=n.onabort=null,n=null},n.src=r},t.prototype.initPlayCgiCodeReport=function(){var r=this.player;r.on("playcgistart",videojs.bind(this,this.onPlayCgiStart)),r.on("playcgiend",videojs.bind(this,this.onPlayCgiEnd))},t.prototype.onPlayCgiStart=function(r){cgiSeq[r.data.time]=cgiSeq[r.data.time]||{},cgiSeq[r.data.time].startTime=r.data.time,cgiSeq[r.data.time].url=r.data.url},t.reportPlayMetrics=function(r,n){xhr.post("https://datacenter.live.qcloud.com",{body:JSON.stringify(r)},function(){n&&n()})},t.prototype.onPlayCgiEnd=function(r){if(cgiSeq[r.data.startTime]){var n=r.data,s=void 0,a=void 0,l=void 0;if(n.error)switch(a=2,n.error.message){case"Timeout":s=10;break;case"ServerError":s=11}else n.result.code==0?(a=1,s=0):(a=3,s=n.result.code),l=n.result.requestId;this.reportPlayCgiToISD("","",a,s,r.data.time-cgiSeq[r.data.startTime].startTime,l,void 0,void 0)}},t.prototype.reportPlayCgiToISD=function(r,n,s,a,l,u,p,d){var f={domain:r||"playvideo.qcloud.com",cgi:n||"/getplayinfo/v2",type:s,code:a,time:l,appid:20370,platform:videojs.browser.IS_IOS?"ios":videojs.browser.IS_ANDROID?"android":"pc",expansion1:u,expansion2:p,expansion3:d};this.sender(unifyProtocol(STATUS_CODE_REPORT_URL)+"?"+serializeParams(f))},t.prototype.reportMTA=function(r,n){window.MtaH5?(this.mtaReportCache.length>0&&(this.mtaReportCache.forEach(function(s){s.call()}),this.mtaReportCache=0),MtaH5.clickStat(r,n)):this.mtaReportCache.push(function(){MtaH5.clickStat(r,n)})},t}(Plugin$8);videojs.registerPlugin("Reporter",Reporter);var store2=createCommonjsModule(function(e){(function(t,r){var n={version:"2.12.0",areas:{},apis:{},inherit:function(a,l){for(var u in a)l.hasOwnProperty(u)||Object.defineProperty(l,u,Object.getOwnPropertyDescriptor(a,u));return l},stringify:function(a){return a===void 0||typeof a=="function"?a+"":JSON.stringify(a)},parse:function(a,l){try{return JSON.parse(a,l||n.revive)}catch(u){return a}},fn:function(a,l){n.storeAPI[a]=l;for(var u in n.apis)n.apis[u][a]=l},get:function(a,l){return a.getItem(l)},set:function(a,l,u){a.setItem(l,u)},remove:function(a,l){a.removeItem(l)},key:function(a,l){return a.key(l)},length:function(a){return a.length},clear:function(a){a.clear()},Store:function(a,l,u){var p=n.inherit(n.storeAPI,function(d,f,_){return arguments.length===0?p.getAll():typeof f=="function"?p.transact(d,f,_):f!==void 0?p.set(d,f,_):typeof d=="string"||typeof d=="number"?p.get(d):typeof d=="function"?p.each(d):d?p.setAll(d,f):p.clear()});p._id=a;try{l.setItem("__store2_test","ok"),p._area=l,l.removeItem("__store2_test")}catch(d){p._area=n.storage("fake")}return p._ns=u||"",n.areas[a]||(n.areas[a]=p._area),n.apis[p._ns+p._id]||(n.apis[p._ns+p._id]=p),p},storeAPI:{area:function(a,l){var u=this[a];return u&&u.area||(u=n.Store(a,l,this._ns),this[a]||(this[a]=u)),u},namespace:function(a,l){if(!a)return this._ns?this._ns.substring(0,this._ns.length-1):"";var u=a,p=this[u];if(!(p&&p.namespace||(p=n.Store(this._id,this._area,this._ns+u+"."),this[u]||(this[u]=p),l)))for(var d in n.areas)p.area(d,n.areas[d]);return p},isFake:function(){return this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(a){return this._area.has?this._area.has(this._in(a)):this._in(a)in this._area},size:function(){return this.keys().length},each:function(a,l){for(var u=0,p=n.length(this._area);u<p;u++){var d=this._out(n.key(this._area,u));if(d!==void 0&&a.call(this,d,this.get(d),l)===!1)break;p>n.length(this._area)&&(p--,u--)}return l||this},keys:function(a){return this.each(function(l,u,p){p.push(l)},a||[])},get:function(a,l){var u,p=n.get(this._area,this._in(a));return typeof l=="function"&&(u=l,l=null),p!==null?n.parse(p,u):l!=null?l:p},getAll:function(a){return this.each(function(l,u,p){p[l]=u},a||{})},transact:function(a,l,u){var p=this.get(a,u),d=l(p);return this.set(a,d===void 0?p:d),this},set:function(a,l,u){var p=this.get(a);return p!=null&&u===!1?l:n.set(this._area,this._in(a),n.stringify(l),u)||p},setAll:function(a,l){var u,p;for(var d in a)p=a[d],this.set(d,p,l)!==p&&(u=!0);return u},add:function(a,l){var u=this.get(a);if(u instanceof Array)l=u.concat(l);else if(u!==null){var p=typeof u;if(p===typeof l&&p==="object"){for(var d in l)u[d]=l[d];l=u}else l=u+l}return n.set(this._area,this._in(a),n.stringify(l)),l},remove:function(a,l){var u=this.get(a,l);return n.remove(this._area,this._in(a)),u},clear:function(){return this._ns?this.each(function(a){n.remove(this._area,this._in(a))},1):n.clear(this._area),this},clearAll:function(){var a=this._area;for(var l in n.areas)n.areas.hasOwnProperty(l)&&(this._area=n.areas[l],this.clear());return this._area=a,this},_in:function(a){return typeof a!="string"&&(a=n.stringify(a)),this._ns?this._ns+a:a},_out:function(a){return this._ns?a&&a.indexOf(this._ns)===0?a.substring(this._ns.length):void 0:a}},storage:function(a){return n.inherit(n.storageAPI,{items:{},name:a})},storageAPI:{length:0,has:function(a){return this.items.hasOwnProperty(a)},key:function(a){var l=0;for(var u in this.items)if(this.has(u)&&a===l++)return u},setItem:function(a,l){this.has(a)||this.length++,this.items[a]=l},removeItem:function(a){this.has(a)&&(delete this.items[a],this.length--)},getItem:function(a){return this.has(a)?this.items[a]:null},clear:function(){for(var a in this.items)this.removeItem(a)}}},s=n.Store("local",function(){try{return localStorage}catch(a){}}());s.local=s,s._=n,s.area("session",function(){try{return sessionStorage}catch(a){}}()),s.area("page",n.storage("page")),typeof r=="function"&&r.amd!==void 0?r("store2",[],function(){return s}):e.exports?e.exports=s:(t.store&&(n.conflict=t.store),t.store=s)})(commonjsGlobal$1,commonjsGlobal$1&&commonjsGlobal$1.define)}),Plugin$9=videojs.getPlugin("plugin"),log$8=videojs.log,ContinuePlay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,s.init(),s}return inherits(t,e),t.prototype.init=function(){var r=this.player,n=r.options_,s=void 0;r.ready(videojs.bind(this,function(){s=n&&n.appID&&n.fileID?n.fileID:this.options.playID,this.playID=s,r.cache_&&r.cache_.source&&r.cache_.source.src&&(this.source=r.cache_.source.src.split("?")[0]),(s||this.source)&&(log$8("ContinuePlay initializing"),this.lastTime=store2.get(this.getStoreKey()),r.off("timeupdate",videojs.bind(this,this.onTimeUpdate)),r.on("timeupdate",videojs.bind(this,this.onTimeUpdate)),r.one(this.getTriggerEvent(),videojs.bind(this,this.onPlay)),!this.options.auto&&r.getChild("ContinuePlayTips")&&r.getChild("ContinuePlayTips").close(),log$8("ContinuePlay initialized"),r.trigger({type:"feature",data:"continue"}))}))},t.prototype.onTimeUpdate=function(r){store2.set(this.getStoreKey(),this.player.currentTime())},t.prototype.onPlay=function(r){var n=this.player;Math.round(this.lastTime)>1&&this.player.duration()>1&&this.player.duration()!==1/0&&Math.round(this.lastTime)!=Math.round(this.player.duration())?this.options.auto?this.start():n.addChild("ContinuePlayTips",videojs.mergeOptions(this.options,{time:this.lastTime,resumeCallback:videojs.bind(this,this.start)})):n.techName_=="Flash"&&Math.round(this.lastTime)>1&&Math.round(this.lastTime)!=Math.round(this.player.duration())&&this.player.duration()!==1/0&&!this.player.duration()&&n.one("loadedmetadata",videojs.bind(this,this.onPlay))},t.prototype.start=function(){var r=this.player;r.currentTime(this.lastTime),r.techName_=="Flash"&&r.tech(!0).trigger("seeked"),r.trigger({type:"continueplay",data:{lastTime:this.lastTime}})},t.prototype.generatePlayID=function(){},t.prototype.getStoreKey=function(){return"tcplayer-lpt-"+(this.playID||this.source)},t.prototype.getTriggerEvent=function(){var r=this.player,n=r.options_;return n.autoplay&&r.techName_=="Flash"?"loadedmetadata":"playing"},t}(Plugin$9);videojs.registerPlugin("ContinuePlay",ContinuePlay);var defaults$2={align:"top-left",className:"",content:"",debug:!1,showBackground:!0,attachToControlBar:!1,overlays:[]},Component$12=videojs.getComponent("Component"),dom$1=videojs.dom||videojs,registerPlugin$1=videojs.registerPlugin||videojs.plugin,isNumber=function(e){return typeof e=="number"&&e===e},hasNoWhitespace=function(e){return typeof e=="string"&&/^\S+$/.test(e)},Overlay=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return["start","end"].forEach(function(a){var l=s.options_[a];if(isNumber(l))s[a+"Event_"]="timeupdate";else if(hasNoWhitespace(l))s[a+"Event_"]=l;else if(a==="start")throw new Error('invalid "start" option; expected number or string')}),["endListener_","rewindListener_","startListener_"].forEach(function(a){s[a]=function(l){return t.prototype[a].call(s,l)}}),s.startEvent_==="timeupdate"&&s.on(r,"timeupdate",s.rewindListener_),s.debug('created, listening to "'+s.startEvent_+'" for "start" and "'+(s.endEvent_||"nothing")+'" for "end"'),s.hide(),s}return inherits(t,e),t.prototype.createEl=function(){var r=this.options_,n=r.content,s=r.showBackground?"tcp-overlay-background":"tcp-overlay-no-background",a=dom$1.createEl("div",{className:`
  227. tcp-overlay
  228. tcp-overlay-`+r.align+`
  229. `+r.className+`
  230. `+s+`
  231. vjs-hidden
  232. `});return typeof n=="string"?a.innerHTML=n:videojs.browser.IS_IE8||n instanceof window_1.DocumentFragment?a.appendChild(n):dom$1.appendContent(a,n),a},t.prototype.debug=function(){if(this.options_.debug){for(var r=videojs.log,n=r,s=arguments.length,a=Array(s),l=0;l<s;l++)a[l]=arguments[l];r.hasOwnProperty(a[0])&&typeof r[a[0]]=="function"&&(n=r[a.shift()]),n.apply(void 0,["overlay#"+this.id()+": "].concat(a))}},t.prototype.hide=function(){return e.prototype.hide.call(this),this.debug("hidden"),this.debug('bound `startListener_` to "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('unbound `endListener_` from "'+this.endEvent_+'"'),this.off(this.player(),this.endEvent_,this.endListener_)),this.options_.once?(videojs.browser.IS_IOS&&videojs.browser.IS_WECHAT?this.player().hasStarted()||this.player().ready(videojs.bind(this,function(){this.startListener_({type:this.startEvent_})})):this.player().hasStarted()||this.on(this.player(),this.startEvent_,this.startListener_),this):(this.startEvent_==="pause"?this.on(this.player(),this.startEvent_,this.startOnPause_):this.on(this.player(),this.startEvent_,this.startListener_),this)},t.prototype.startOnPause_=function(r){var n=this.player();r.type==="pause"?n.seeking()||n.ended()||this.startListener_({type:"pause"}):n.paused()&&this.startListener_({type:"pause"})},t.prototype.shouldHide_=function(r,n){var s=this.options_.end;return isNumber(s)?r>=s:s===n},t.prototype.show=function(){return e.prototype.show.call(this),this.startEvent_==="pause"&&this.off(this.player(),this.startEvent_,this.startOnPause_),this.off(this.player(),this.startEvent_,this.startListener_),this.debug("shown"),this.debug('unbound `startListener_` from "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('bound `endListener_` to "'+this.endEvent_+'"'),this.on(this.player(),this.endEvent_,this.endListener_)),this},t.prototype.shouldShow_=function(r,n){var s=this.options_.start,a=this.options_.end;return isNumber(s)?isNumber(a)?r>=s&&r<a:this.hasShownSinceSeek_?Math.floor(r)===s:(this.hasShownSinceSeek_=!0,r>=s):s===n},t.prototype.startListener_=function(r){var n=this.player().currentTime();this.shouldShow_(n,r.type)&&this.show()},t.prototype.endListener_=function(r){var n=this.player().currentTime();this.shouldHide_(n,r.type)&&this.hide()},t.prototype.rewindListener_=function(r){var n=this.player().currentTime(),s=this.previousTime_,a=this.options_.start,l=this.options_.end;n<s&&(this.debug("rewind detected"),isNumber(l)&&!this.shouldShow_(n)?(this.debug("hiding; "+l+" is an integer and overlay should not show at this time"),this.hasShownSinceSeek_=!1,this.hide()):hasNoWhitespace(l)&&n<a&&(this.debug("hiding; show point ("+a+") is before now ("+n+") and end point ("+l+") is an event"),this.hasShownSinceSeek_=!1,this.hide())),this.previousTime_=n},t}(Component$12);videojs.registerComponent("Overlay",Overlay);var plugin=function(e){var t=this,r=videojs.mergeOptions(defaults$2,e);Array.isArray(this.overlays_)&&this.overlays_.forEach(function(s){t.removeChild(s),t.controlBar&&t.controlBar.removeChild(s),s.dispose()});var n=r.overlays;delete r.overlays,this.overlays_=n.map(function(s){var a=videojs.mergeOptions(r,s);return a.attachToControlBar&&t.controlBar&&a.align.indexOf("bottom")!==-1?t.controlBar.addChild("overlay",a):t.addChild("overlay",a)})};registerPlugin$1("Patch",plugin);var Plugin$10=videojs.getPlugin("plugin"),log$9=videojs.log,locations=["start","pause","ended"],startEvent=["loadstart","pause","ended"],endEvent=["play","play","play"],ImagePatch=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.hasInit=!1,s.init(n),s}return inherits(t,e),t.prototype.init=function(r){var n=this,s=this.player,a={showBackground:!1,overlays:[]};Array.isArray(r)&&r.length>0&&(log$9("ImagePatch initializing"),r.forEach(function(l){var u=void 0,p=void 0,d=void 0,f=void 0,_=document.createDocumentFragment();d=document.createElement("a"),d.className="tcp-overlay-link",d.target="_blank",l.link&&(d.href=l.link),l.url&&(f=n.loadImg(unifyProtocol(l.url),videojs.bind(n,n.onImgLoaded)),f.className="tcp-overlay-img",d.appendChild(f),videojs.browser.IS_IE8?(u=document.createElement("div"),u.className="tcp-overlay-table",p=document.createElement("div"),p.className="tcp-overlay-cell",p.appendChild(d),u.appendChild(p),_.appendChild(u)):_.appendChild(d),a.overlays.push({content:_,className:"tcp-image-patch tcp-image-patch-"+locations[l.location],start:startEvent[l.location],end:endEvent[l.location],once:l.location==0,align:"center"}))}),a.overlays.length>0?(s.Patch(a),s.trigger({type:"feature",data:"patch"}),this.hasInit=!0):this.reset(),log$9("ImagePatch initialized"))},t.prototype.loadImg=function(r,n){var s,a,l,u,p,d=new Image;return d.src=r,d.complete?(n&&n.call(n,d),d):(a=d.width,l=d.height,d.onerror=function(){s.end=!0,d=d.onload=d.onerror=null},s=function(){u=d.width,p=d.height,(u!==a||p!==l||u*p>1024)&&(n&&n.call(n,d),s.end=!0)},s(),d.onload=function(){!s.end&&s(),d=d.onload=d.onerror=null},d)},t.prototype.onImgLoaded=function(r){if(videojs.browser.IE_VERSION){var n=parseInt(this.player.el().currentStyle.width),s=parseInt(this.player.el().currentStyle.height);if(r.width>n||r.height>s){var a=n/(r.width/r.height);r.width/r.height>n/s||(r.style.marginTop=(s-a)/2+"px"),r.style.width="100%",r.style.height="auto"}}},t.prototype.reset=function(){this.hasInit&&(log$9("ImagePatch reset"),this.player.Patch(),this.hasInit=!1)},t}(Plugin$10);videojs.registerPlugin("ImagePatch",ImagePatch);var Plugin$11=videojs.getPlugin("plugin"),log$10=videojs.log,ContextMenu=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,log$10("ContextMenu initializing"),s.init(),log$10("ContextMenu initialized"),s}return inherits(t,e),t.prototype.init=function(){this.player.addChild("RightClickPopupMenu",this.options)},t}(Plugin$11);videojs.registerPlugin("ContextMenu",ContextMenu);var Plugin$12=videojs.getPlugin("plugin"),LevelSwitch=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,s.init(),s}return inherits(t,e),t.prototype.init=function(){var r=this.player,n=r.options_.plugins.ContextMenu;n&&n.levelSwitch&&n.levelSwitch.open&&r.addChild("LevelSwitchTips",this.options)},t}(Plugin$12);videojs.registerPlugin("LevelSwitch",LevelSwitch);var Plugin$13=videojs.getPlugin("plugin"),log$12=videojs.log,defaults$3={width:0,height:0,basePath:""},VttThumbnail=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.hasInit=!1,n.vttUrl&&r.ready(videojs.bind(s,function(){this.init(n)})),s}return inherits(t,e),t.prototype.loadTrackFile=function(r){var n=this,s=this.player,a=s.addRemoteTextTrack({src:r.vttUrl,kind:"metadata"},!0);a&&a.addEventListener("load",function(){n.trackInfo=a})},t.prototype.init=function(r){if(!videojs.browser.IS_IOS&&!videojs.browser.IS_ANDROID&&this.player.controlBar&&this.player.controlBar.progressControl){if(log$12("VttThumbnail initializing",r),!this.player.controlBar)return void log$12("VttThumbnail can not initialize without control bar");this.options=r;var n=this.player,s=n.controlBar.progressControl;this.loadTrackFile(r),defaults$3.basePath=parseBasePath(r.vttUrl),this.initUI(),s.on("mouseenter",videojs.bind(this,this.onMouseEnter)),s.on("mousemove",videojs.bind(this,this.onMouseMove)),s.on("mouseleave",videojs.bind(this,this.onMouseOut)),this.hasInit=!0,log$12("VttThumbnail initialized"),n.trigger({type:"feature",data:"thumbnail"})}},t.prototype.initTrackFile=function(r){r.track,this.trackInfo=r},t.prototype.initUI=function(){var r=videojs.dom.createEl("div",{className:"tcp-vtt-thumbnail-container"}),n=videojs.dom.createEl("img",{className:"tcp-vtt-thumbnail-img"});r.appendChild(n),this.containerEl=r,this.imgEl=n,this.player.controlBar.progressControl.el().appendChild(r)},t.prototype.onMouseEnter=function(){this.containerEl.style.display="block"},t.prototype.onMouseMove=function(r){if(!this.trackInfo)return!1;var n=void 0,s=void 0,a=void 0,l=void 0,u=void 0,p=void 0,d=void 0,f=void 0,_=0,y=void 0,b=void 0,g=void 0,m=void 0;for(a=this.player.controlBar.progressControl,l=this.player.controlBar.progressControl.seekBar,u=offsetParent(a.el()).getBoundingClientRect(),p=offsetParent(l.el()).getBoundingClientRect(),n=r.clientX,f=this.player.duration(),d=((n-p.left)/l.width()*f).toFixed(3),y=this.trackInfo.track||this.trackInfo;_<y.cues.length;){if(b=y.cues[_],b.startTime<=d&&b.endTime>=d){g=parseImageLink(b.text);break}_++}if(!g)return this.onMouseOut(),!1;m=n-p.left+g.w/2-l.width(),m=Math.max(0,m),s=n-u.left-g.w/2-m,s=Math.max(l.el().offsetLeft,s),g.left=s,this.setView(g)},t.prototype.onMouseOut=function(){this.containerEl.style.display="none"},t.prototype.setView=function(r){var n=this.containerEl,s=this.imgEl,a=this.options;n.style.width==r.w&&n.style.height==r.h||(n.style.width=r.w+"px",n.style.height=r.h+"px"),n.style.left=r.left+"px",a.imgUrl&&s.src!=a.imgUrl?s.src=a.imgUrl:s.src=r.src,s.style.left=-r.x+"px",s.style.top=-r.y+"px",s.style.clip="rect("+r.y+"px,"+(r.w+r.x)+"px,"+(r.y+r.h)+"px,"+r.x+"px)"},t.prototype.reset=function(){if(this.hasInit){log$12("VttThumbnail reset");var r=this.player,n=r.controlBar.progressControl;n.off("mousemove",videojs.bind(this,this.onMouseMove)),n.off("mouseleave",videojs.bind(this,this.onMouseOut)),this.hasInit=!1}},t}(Plugin$13),getComputedStyle=function(e,t){return function(r){return window.getComputedStyle?window.getComputedStyle(e,t)[r]:e.currentStyle[r]}},offsetParent=function e(t){return t.nodeName!=="HTML"&&getComputedStyle(t)("position")==="static"?e(t.offsetParent):t},parseImageLink=function(e){var t=void 0,r=void 0,n=void 0;if((r=e.indexOf("#"))===-1)return{src:e,w:0,h:0,x:0,y:0};if(t=e.substring(0,r),/^(http:|https:|\/\/)/.test(t)||(t=defaults$3.basePath+t),n=e.substring(r+1),n.substring(0,5)!=="xywh=")return{src:t,w:0,h:0,x:0,y:0};var s=n.substring(5).split(",");return{src:t,w:parseInt(s[2]),h:parseInt(s[3]),x:parseInt(s[0]),y:parseInt(s[1])}},parseBasePath=function(e){/^(\/\/)/.test(e)&&(e="https:"+e);var t=/(\w+):\/\/([^\:|\/]+)(\:\d*)?(.*\/)([^#|\?|\n]+)?(#.*)?(\?.*)?/i,r=e.match(t);if(r&&r[2]&&r[4])return"//"+r[2]+r[4]};videojs.registerPlugin("VttThumbnail",VttThumbnail);var Plugin$14=videojs.getPlugin("plugin"),log$13=videojs.log,PlayerMetrics=function(e){function t(r,n){classCallCheck(this,t),log$13("PlayerMetrics initializing");var s=possibleConstructorReturn(this,e.call(this,r));if(r.options_.reportable===!1){var a;return a=!1,possibleConstructorReturn(s,a)}return s.player=r,s.checkPrevData(),s.initData(),s.registerListener(),log$13("PlayerMetrics initialized"),s}return inherits(t,e),t.prototype.checkPrevData=function(){var r=localStorage.getItem("tcplayer_data");if(r){var n=JSON.parse(r);Reporter.reportPlayMetrics(n,function(){localStorage.removeItem("tcplayer_data")})}},t.prototype.initData=function(){this.bytes_token=guid(),this.vodBaseData={uint32_service:2,uint32_platform:3,bytes_version:String(version),uint64_appid:0,bytes_bizid:this.guid("dev_uuid"),bytes_stream_id:"",uint32_module_id:1011,uint32_data_type:1,uint32_command:40303,uint64_data_time:0,bytes_token:this.bytes_token,token:this.bytes_token,dev_uuid:this.guid("dev_uuid"),str_app_name:"",str_app_version:"",str_stream_url:"",str_brand_type:this.getDevice(),str_device_resolution:screen.width+"_"+screen.height,str_device_type:"",str_package_name:"",str_sdk_name:"TCPlayer",str_user_id:this.guid("dev_uuid"),sys_type:this.getSystem(),sys_version:String(this.getSystemVer()),str_user_agent:USER_AGENT,str_browser_version:String(this.getBrowserVer()),str_browser_model:String(this.getBrowser()),u32_app_id:String(this.player.options_.appID),str_fileid:String(this.player.options_.fileID),u32_network_type:this.getNetworkType()},this.liveBaseData={str_user_id:this.guid("dev_uuid"),dev_uuid:this.guid("dev_uuid"),str_session_id:this.bytes_token,bytes_token:this.bytes_token,str_device_type:"",str_os_info:this.getSystem(),str_package_name:"",u32_network_type:this.getNetworkType()!=="0xFF"?this.getNetworkType():"",u32_server_ip:"",str_stream_url:this.player.cache_.src,u64_timestamp:this.player.startTime,u32_link_type:1,u32_channel_type:1,str_app_version:"",platform:3,uint32_platform:3,str_browser_version:this.getBrowserVer(),str_browser_model:this.getBrowser(),str_user_agent:USER_AGENT,u32_video_drop:"",u32_drop_usage:"",float64_rtt:""},this.features=[],this.afterCanplay=!1,this.videoDuration=0,this.consumeDuration=0,this.playScene=2,this.timing={},this.playStatus={isFirstPlay:!1,pauseDuration:0},this.contentComputTimePoint=[],this.firstFrameDuration=0,this.firstIFrameDuration=0,this.blockInterval=5e3,this.bufferBlock=[],this.u32_drm_type="plain",this.resetLagStatus(),this.resetBlockData()},t.prototype.getComsumeDuration=function(r){var n=getTimeStamp()-this.timing.firstPlaying;this.consumeDuration=n-this.lagStatus.lagDuration-this.playStatus.pauseDuration,r&&this.consumeDuration<0&&(this.consumeDuration=n>0?n:0)},t.prototype.registerListener=function(){var r=this.player;r.on("loadedmetadata",videojs.bind(this,this.onLoadedmetadata)),r.one("canplay",videojs.bind(this,this.oneCanplay)),r.one("play",videojs.bind(this,this.onePlay)),r.on("play",videojs.bind(this,this.onPlay)),r.on("playing",videojs.bind(this,this.onPlaying)),r.on("seeking",videojs.bind(this,this.onSeeking)),r.on("seeked",videojs.bind(this,this.onSeeked)),r.on("error",videojs.bind(this,this.onError)),r.on("resolutionswitching",videojs.bind(this,this.onResolutionSwitching)),r.on("pause",videojs.bind(this,this.onPause)),r.on("playcgiend",videojs.bind(this,this.onPlaycgiend)),r.on("ended",videojs.bind(this,this.onEnded)),r.on("feature",videojs.bind(this,this.onFeature)),r.on("dispose",videojs.bind(this,this.onDispose)),document.addEventListener("visibilitychange",videojs.bind(this,this.onVisibilityChange)),window.addEventListener("pagehide",videojs.bind(this,this.onPageHide))},t.prototype.onPageHide=function(){this.saveData()},t.prototype.onVisibilityChange=function(){document.visibilityState==="hidden"&&this.saveData()},t.prototype.saveData=function(){this.bytes_token&&this.playScene!==3&&this.player&&(this.getComsumeDuration(),this.report(this.playScene===2?40304:40102,{},function(r){localStorage.setItem("tcplayer_data",JSON.stringify(r))}))},t.prototype.onLoadedmetadata=function(){this.player.tech_.webrtcProvider?this.playScene=3:this.playScene=this.player.duration()===1/0?1:2,this.videoDuration=parseInt(this.player.duration())||0,videojs.bind(this,this.calculateFirstFrameDuration)(),this.playScene===2&&this.report(40303)},t.prototype.oneCanplay=function(){videojs.bind(this,this.calculateFirstFrameDuration)(),this.playScene===1&&this.report(40101)},t.prototype.calculateFirstFrameDuration=function(){var r=getperformance();r.mark&&r.measure&&r.getEntriesByName&&(r.mark("firstIFrameEnd"),r.measure("firstIFrame","firstFrameStart","firstIFrameEnd"),this.firstIFrameDuration=r.getEntriesByName("firstIFrame")[0].duration)},t.prototype.onePlay=function(){var r=this;this.setTimingData({firstPlay:getTimeStamp()});var n=this.player.el_.firstChild;this.bufferStart=n&&n.buffered&&n.buffered.length>0?n.buffered.start(n.buffered.length-1):0,this.bufferBlock=[this.bufferStart];var s=this.player.getVideoPlaybackQuality();this.recvFrames=s.totalVideoFrames,this.renderedFrames=s.totalVideoFrames-s.droppedVideoFrames,this.blockStartTime=getTimeStamp(),this.blockTimer=setInterval(function(){if(r.playScene===2)return!1;if(r.lagStatus.lagging&&r.lagStatus.lagStart){var a=getTimeStamp()-r.lagStatus.lagStart;a>r.blockInterval?r.blockData.lagBlockDuration=r.blockInterval:r.blockData.lagBlockDuration+=a}r.blockStartTime=getTimeStamp();var l=n&&n.buffered&&n.buffered.length>0?n.buffered.end(n.buffered.length-1):0,u=r.player.getVideoPlaybackQuality(),p=u.totalVideoFrames,d=u.totalVideoFrames-u.droppedVideoFrames;Object.assign(r.blockData,{buffer_avg:parseInt(1e3*(l-r.bufferStart)),recv_frames:p-r.recvFrames,render_frames:d-r.renderedFrames}),r.bufferBlock.push(r.blockData.buffer_avg),r.bufferStart=l,r.recvFrames=p,r.renderedFrames=d,r.report(40100)},this.blockInterval)},t.prototype.onDispose=function(){clearInterval(this.blockTimer)},t.prototype.onPlay=function(){this.playStatus.pauseTime&&(this.playStatus.pauseDuration=this.playStatus.pauseDuration+getTimeStamp()-this.playStatus.pauseTime,this.playStatus.pauseTime=0)},t.prototype.onPlaying=function(){var r=this;if(!this.playStatus.isFirstPlay&&(this.playStatus.isFirstPlay=!0,this.setTimingData({firstPlaying:getTimeStamp()}),this.player.on("waiting",function(){r.lagStatus.lagging||r.player.seeking()||r.lagStatus.skip||(r.lagStatus.lagging=!0,r.lagStatus.lagStart=getTimeStamp())}),this.player.currentSource().keySystems)){var n=this.player.currentSource().keySystems;n.plain&&(this.u32_drm_type="plain"),n.SimpleAES&&(this.u32_drm_type="SimpleAES")}this.lagStatus.lagging&&(this.lagStatus.lagEnd=getTimeStamp())-this.lagStatus.lagStart>this.lagStatus.lagInterval&&(this.lagStatus.lagging=!1,this.lagStatus.lagCount++,this.lagStatus.lagAvg.push(this.lagStatus.lagEnd-this.lagStatus.lagStart),this.lagStatus.lagDuration+=this.lagStatus.lagEnd-this.lagStatus.lagStart,this.lagStatus.lagStart<this.blockStartTime&&(this.blockData.lagBlockDuration=this.lagStatus.lagEnd-this.blockStartTime),this.lagStatus.lagStart>=this.blockStartTime&&(this.blockData.lagBlockDuration+=this.lagStatus.lagEnd-this.lagStatus.lagStart),this.lagStatus.lagEnd=this.lagStatus.lagStart=0,this.lagStatus.isFirstLag||(this.lagStatus.isFirstLag=!0,this.setTimingData({firstLag:getTimeStamp()}))),[60,200,500,1e3].forEach(function(s){r.lagStatus.lagging&&(r.lagStatus.lagEnd=getTimeStamp())-r.lagStatus.lagStart>s&&r.blockData["lagCount_"+s]++}),this.lagStatus.skip=!1},t.prototype.onSeeking=function(){this.contentComputTimePoint.push({type:"end",time:this.player.currentTime()})},t.prototype.onSeeked=function(){this.contentComputTimePoint.push({type:"start",time:this.player.currentTime()})},t.prototype.onError=function(r){this.getComsumeDuration(!0);var n={u64_err_code:r.data.code,str_err_info:r.data.message||(defaults$1.errors[r.data.code]||{}).message},s=(this.player.cache_.src||"").indexOf("vod")>-1||this.player.options_.fileID;r&&r.data&&r.data.code&&(this.playScene===2&&s?this.report(40304,n):this.afterCanplay?this.report(40102,n):this.report(40101,n))},t.prototype.onResolutionSwitching=function(){this.lagStatus.skip=!0},t.prototype.onPause=function(){this.playStatus.pauseTime=getTimeStamp(),this.lagStatus.lagging&&(this.lagStatus.skip=!0)},t.prototype.onPlaycgiend=function(r){var n=this,s=r.data;s.result&&s.result.code==0&&(this.playStatus.requestID=s.result.requestId,setTimeout(function(){if(n.player.currentSources().length>0&&n.player.currentSources()[0].keySystems){var a=n.player.currentSources()[0].keySystems;a["com.widevine.alpha"]&&n.reportMTA("drm",{initialized:"Widevine"}),a["com.apple.fps.1_0"]&&n.reportMTA("drm",{initialized:"FairPlay"})}else n.player.options_.plugins.DRM&&n.player.options_.plugins.DRM.token&&n.reportMTA("drm",{initialized:"SimpleAES"})},0)),this.setTimingData({cgiStart:r.data.startTime,cgiEnd:r.data.time})},t.prototype.onEnded=function(){this.getComsumeDuration(),this.playScene===1?this.report(40102):this.report(40304)},t.prototype.onFeature=function(r){this.features.indexOf(r.data)==-1&&this.features.push(r.data)},t.prototype.guid=function(r){var n=localStorage.getItem(r);return n||(n=guid(),localStorage.setItem(r,n)),n},t.prototype.report=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments[2];if(this.playScene===3)return!1;r&&this["report_"+r](n,s)},t.prototype.report_40101=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.player)return!1;var n={uint64_data_time:getTimeStampBySecond(),str_stream_url:this.player.cache_.src,u64_timestamp:this.player.startTime,u32_dns_time:"",u32_connect_server_time:parseInt(this.firstFrameDuration),u32_video_decode_type:0,u32_first_frame_down:parseInt(this.firstFrameDuration),u32_first_video_decode_time:parseInt(this.firstIFrameDuration),u32_first_i_frame:parseInt(this.firstIFrameDuration),u32_first_audio_frame_down:parseInt(this.firstFrameDuration),u32_first_audio_render_time:parseInt(this.firstIFrameDuration),u64_err_code:r.u64_err_code||"",str_err_info:r.str_err_info||""},s={app_id:0,data:[Object.assign({},this.liveBaseData,n,r)],module_id:1005,command:40101};Reporter.reportPlayMetrics(s)},t.prototype.report_40100=function(r){var n=this,s=this.player||{};this.blockData=this.blockData||{};var a={u32_cpu_usage:"",u32_app_cpu_usage:"",u32_avg_memory:"",u32_avg_cpu_usage:"",str_stream_url:s.cache_&&s.cache_.src,uint64_data_time:getTimeStampBySecond(),u32_recv_av_diff_time:0,u32_play_av_diff_time:0,u64_playtime:getTimeStamp()-this.timing.firstPlaying,u32_audio_decode_type:2,u32_audio_block_count:this.blockData.lagCount_500,u32_audio_cache_time:this.blockData.buffer_avg,u32_audio_drop:"",u32_video_decode_type:0,u32_video_recv_fps:this.blockData.recv_frames,u32_fps:this.blockData.render_frames,u32_video_cache_time:this.blockData.buffer_avg,u32_avg_cache_count:0,u32_video_block_count:this.blockData.lagCount_1000,u32_avg_net_speed:"",u32_video_light_block_count:this.blockData.lagCount_200,u32_video_large_block_count:this.blockData.lagCount_500,u32_audio_jitter_60ms_count:this.blockData.lagCount_60,u32_video_decode_fail:"",u32_audio_decode_fail:"",u32_avg_video_bitrate:0,u32_avg_audio_bitrate:0,u32_block_usage:1e3*parseInt(this.blockData.lagBlockDuration/this.blockInterval)},l={app_id:0,data:[Object.assign({},this.liveBaseData,a,r)],module_id:1005,command:40100};Reporter.reportPlayMetrics(l,function(){n.resetBlockData()})},t.prototype.report_40102=function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.player||{},l=0,u=0,p=0;JSON.stringify(a)!=="{}"?(l=this.lagStatus.lagAvg.length>0?this.lagStatus.lagAvg.reduce(function(_,y){return _+y},0)/this.lagStatus.lagAvg.length:0,u=this.bufferBlock.length>0?this.bufferBlock.reduce(function(_,y){return _+y},0)/this.bufferBlock.length:0,p=(a.getVideoPlaybackQuality&&a.getVideoPlaybackQuality()||{}).totalVideoFrames/n.duration):this.resetLagStatus();var d={uint64_data_time:getTimeStampBySecond(),str_stream_url:a.cache_&&a.cache_.src,u64_timestamp:getTimeStamp(),u32_avg_cpu_usage:"",u32_avg_memory:"",u64_begin_timestamp:a.startTime,u32_result:this.consumeDuration,u64_err_code:n.u64_err_code,u32_speed_cnt:0,u32_avg_cache_time:u,u32_max_load:Math.max.apply(Math,this.lagStatus.lagAvg),u32_audio_block_time:this.lagStatus.lagDuration,u32_avg_load:l,u32_load_cnt:this.lagStatus.lagAvg.length||0,u32_nodata_cnt:this.lagStatus.lagAvg.length||0,u32_first_i_frame:this.firstIFrameDuration,u32_video_width:a.width_,u32_video_height:a.height_,u32_video_avg_fps:p,u32_avg_block_time:l,u64_block_count:this.lagStatus.lagAvg.length||0,u32_video_block_time:this.lagStatus.lagDuration,u64_jitter_cache_max:0,u64_block_duration_max:Math.max.apply(Math,this.lagStatus.lagAvg),u64_jitter_cache_avg:0,u32_ip_count_quic:"",u32_connect_count_quic:"",u32_connect_count_tcp:"",u32_is_real_time:"",u32_first_frame_black:"",u32_delay_report:0},f={app_id:0,data:[Object.assign({},this.liveBaseData,d,n)],module_id:1005,command:40102};return n.u32_delay_report?(localStorage.setItem("tcplayer_data",JSON.stringify(f)),!1):s?(f.data.u32_delay_report=1,s(f)):void Reporter.reportPlayMetrics(f,function(){r.bytes_token=null,localStorage.removeItem("tcplayer_data")})},t.prototype.report_40303=function(){this.setTimingData({initEnd:getTimeStamp()});var r={msg_client_ip:{uint32_ip:""},uint32_service:this.playScene,uint64_data_time:getTimeStampBySecond(),str_stream_url:this.player.cache_.src,uint32_command:40303},n={app_id:0,data:[Object.assign({},this.vodBaseData,r)],module_id:1011,command:40303};Reporter.reportPlayMetrics(n)},t.prototype.report_40304=function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.lagStatus.lagAvg.length>0?this.lagStatus.lagAvg.reduce(function(p,d){return p+d},0)/this.lagStatus.lagAvg.length:0,l={uint64_data_time:getTimeStampBySecond(),uint32_command:40304,str_stream_url:this.player.cache_.src,u32_timeuse:String(parseInt(this.consumeDuration/1e3)||0),u32_videotime:String(this.videoDuration),u32_avg_load:String(a),u32_load_cnt:String(this.lagStatus.lagCount),u32_max_load:this.lagStatus.lagAvg.length>0?String(Math.max.apply(Math,this.lagStatus.lagAvg)):String(0),u32_avg_block_time:String(this.lagStatus.lagDuration),u32_player_type:String(4),u32_dns_time:"",u32_tcp_did_connect:"",u32_first_video_packet:String(parseInt(this.firstFrameDuration)),u32_first_i_frame:String(parseInt(this.firstIFrameDuration)),u32_server_ip:"",u32_drm_type:this.u32_drm_type,u32_playmode:String(1),u64_err_code:String(n.u64_err_code||""),str_err_info:String(n.str_err_info||""),u32_video_decode_type:String(0),u32_speed:this.player&&String(100*this.player.playbackRate())||"1000"},u={app_id:0,data:[Object.assign({},this.vodBaseData,l)],module_id:1011,command:40304};if(s)return s(u);Reporter.reportPlayMetrics(u,function(){r.bytes_token=null,localStorage.removeItem("tcplayer_data")})},t.prototype.setTimingData=function(r){this.timing=videojs.mergeOptions(this.timing,r)},t.prototype.reset=function(){this.playStatus={isFirstPlay:!1}},t.prototype.resetLagStatus=function(){this.lagStatus={lagCount:0,lagging:!1,lagStart:0,lagEnd:0,lagInterval:500,lagDuration:0,lagAvg:[],isFirstLag:!1,skip:!1}},t.prototype.resetBlockData=function(){this.blockData={lagCount_60:0,lagCount_200:0,lagCount_500:0,lagCount_1000:0,lagBlockDuration:0,buffer_avg:0,recv_frames:0,render_frames:0}},t.prototype.reportMTA=function(r,n){},t.prototype.getSystem=function(){return IS_IOS?"ios":IS_ANDROID?"android":IS_WIN?"win":IS_MAC?"mac":"other"},t.prototype.getSystemVer=function(){var r=this.getSystem();return r=="ios"?IOS_VERSION:r=="android"?ANDROID_VERSION:r=="win"?WIN_VER:r=="mac"?MAC_VER:void 0},t.prototype.getBrowser=function(){return IS_FIREFOX?"firefox":IS_EDGE?"edge":IS_MQQB?"mqq":IS_QQB?"qq":IS_TBS?"tbs":IS_CHROME?"chrome":IE_VERSION?"ie":IS_SAFARI?"safari":"other"},t.prototype.getBrowserVer=function(){var r=this.getBrowser();return r=="firefox"?FIREFOX_VER:r=="edge"?EDGE_VER:r=="chrome"?CHROME_VER:r=="ie"?IE_VERSION:r=="safari"?SAFARI_VER:r=="qq"||r=="mqq"?QQ_VER:r=="tbs"?TBS_VERSION:"other"},t.prototype.getDevice=function(){return IS_IOS?"IPHONE":IS_HUAWEI?"HUAWEI":IS_XIAOMI?"XIAOMI":IS_OPPO?"OPPO":IS_VIVO?"VIVO":IS_SX?"SUMSUNG":IS_CP?"COOLPAD":IS_ONE?"ONEPLUS":IS_ZX?"ZTE":"OTHER"},t.prototype.getMediaType=function(){return this.player.src()&&/\/(.+)\.(.+)\?|\/(.+)\.(.+)/.test(this.player.src()),RegExp.$2||RegExp.$4},t.prototype.getNetworkType=function(){var r=navigator.userAgent,n=r.match(/NetType\/\w+/)?r.match(/NetType\/\w+/)[0]:"NetType/other";n=n.toLowerCase().replace("nettype/","");var s;switch(n){case"wifi":s="1";break;case"4g":s="2";break;case"3g":case"3gnet":s="3";break;case"2g":s="4";break;default:s="0xFF"}return s},t}(Plugin$14);videojs.registerPlugin("PlayerMetrics",PlayerMetrics);var Plugin$15=videojs.getPlugin("plugin"),log$14=videojs.log,ProgressMarker=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return r.ready(videojs.bind(s,s.init)),s}return inherits(t,e),t.prototype.init=function(){function r(){Array.isArray(n.options_.dots)&&n.options_.dots.length>0&&(n.options_.dots.forEach(function(a){!a.emitted&&a.timeOffset-1e3*(n.currentTime()||0)<500&&(a.emitted=!0,n.trigger("marker",a.content))}),n.options_.dots[n.options_.dots.length-1].emitted||window.requestAnimationFrame(r))}var n=this.player;if(n.options_.dots){if(window.requestAnimationFrame(r),IS_IOS||IS_ANDROID)return!1;if(!n.controlBar||!this.player.controlBar.progressControl)return void log$14("ProgressMarker can not initialize without control bar or progress control");log$14("ProgressMarker initializing");var s=n.controlBar.getChild("ProgressControl").getChild("SeekBar");s.getChild("ProgressMarkerGenerator")&&s.removeChild("ProgressMarkerGenerator"),n.options_.plugins.ProgressMarker&&(s.addChild("ProgressMarkerGenerator"),log$14("ProgressMarker initialized"),n.trigger({type:"feature",data:"marker"}))}},t}(Plugin$15);videojs.registerPlugin("ProgressMarker",ProgressMarker);var Component$15=videojs.getComponent("Component"),PlayListItem=function(e){function t(r,n){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.createEl=function(){var r=this.options_,n=videojs.dom.createEl("div",{className:"tcp-playlist-item"}),s=videojs.dom.createEl("div",{className:"tcp-playlist-item-video",innerHTML:r.img?'<img src="'+r.img+'" class="tcp-playlist-item-img">':'<img src="https://imgcache.qq.com/open_proj/proj_qcloud_v2/mc_2014/video/console/v2/css/img/vod/default-cover.png" height="100" class="tcp-playlist-item-img">'}),a=videojs.dom.createEl("div",{className:"tcp-playlist-item-duration",textContent:this.timeFormat(r.duration)});s.appendChild(a);var l=videojs.dom.createEl("div",{className:"tcp-playlist-item-desc",textContent:r.text});return n.appendChild(s),n.appendChild(l),this.bindEvent(n),n},t.prototype.bindEvent=function(r){var n=this;videojs.on(r,["click"],function(){n.player_.trigger({type:"playItem",data:n.options_})})},t.prototype.timeFormat=function(r){var n="",s=Math.floor(r/3600);s!=0&&(r-=3600*s,s<10&&(s="0"+s),n+=s+":");var a=Math.floor(r/60);return a<10&&(a="0"+a),r-=60*a,r<10&&(r="0"+r),n+=a+":"+r},t}(Component$15);videojs.registerComponent("PlayListItem",PlayListItem);var Component$16=videojs.getComponent("Component"),PlayListTitle=function(e){function t(r,n){return classCallCheck(this,t),possibleConstructorReturn(this,e.call(this,r,n))}return inherits(t,e),t.prototype.createEl=function(){var r=this.options_;return videojs.dom.createEl("div",{className:"tcp-playlist-title",textContent:r.title})},t}(Component$16);videojs.registerComponent("PlayListTitle",PlayListTitle);var Component$14=videojs.getComponent("Component"),PlayListBox=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.init(),s.activeIndex=-1,s}return inherits(t,e),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-playlist-box"})},t.prototype.init=function(){var r=this,n=this.options_.data;this.addChild("PlayListTitle",{title:this.options_.title}),n.forEach(function(s,a){s.index=a,r.addChild("PlayListItem",s)}),this.player_.on("ready",function(){r.options_.loop&&(r.activeIndex=0,r.player_.on("ended",videojs.bind(r,function(){r.player_.trigger({type:"playItem"})})))}),this.player_.on("playItem",function(s){var a=s.data,l=void 0;r.activeIndex=a?a.index:(r.activeIndex+1)%n.length,l=n[r.activeIndex],r.player_.loadVideoByID({fileID:l.fileID,appID:l.appID,psign:l.psign}),r.player_.one("loadedmetadata",videojs.bind(r,function(){r.player_.play()})),document.querySelectorAll(".tcp-playlist-item").forEach(function(p){videojs.dom.removeClass(p,"tcp-playlist-item-active")});var u=document.querySelectorAll(".tcp-playlist-item")[r.activeIndex];videojs.dom.addClass(u,"tcp-playlist-item-active")})},t}(Component$14);videojs.registerComponent("PlayListBox",PlayListBox);var Component$17=videojs.getComponent("Component"),PlayListToggle=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.status=0,s}return inherits(t,e),t.prototype.createEl=function(){var r=videojs.dom.createEl("div",{className:"tcp-playlist-toggle",textContent:"<"});return this.bindEvent(r),r},t.prototype.bindEvent=function(r){var n=this;videojs.on(r,["click"],function(s){n.status=!n.status;var a=document.querySelector(".tcp-playlist");n.status?(r.textContent=">",videojs.dom.addClass(a,"tcp-playlist-open"),videojs.dom.removeClass(a,"tcp-playlist-close")):(videojs.dom.addClass(a,"tcp-playlist-close"),videojs.dom.removeClass(a,"tcp-playlist-open"),r.textContent="<")})},t}(Component$17);videojs.registerComponent("PlayListToggle",PlayListToggle);var Component$13=videojs.getComponent("Component"),PlayList$1=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.init(),s}return inherits(t,e),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-playlist tcp-playlist-close"})},t.prototype.init=function(){this.addChild("PlayListToggle"),this.addChild("PlayListBox",this.options_)},t}(Component$13);videojs.registerComponent("PlayList",PlayList$1);var Button$5=videojs.getComponent("Button"),PlayNextButton=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r,n));return s.addClass(),s}return inherits(t,e),t.prototype.addClass=function(){videojs.dom.addClass(this.el_,"vjs-play-next")},t.prototype.update=function(){},t.prototype.handleClick=function(r){this.player_.trigger({type:"playItem"})},t}(Button$5);PlayNextButton.prototype.controlText_="Play Next",videojs.registerComponent("PlayNextButton",PlayNextButton);var Plugin$16=videojs.getPlugin("plugin"),log$15=videojs.log,PlayList=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return IS_IOS||IS_ANDROID?possibleConstructorReturn(s):(s.options=n,n&&n.data instanceof Array&&n.data.length>0&&r.ready(videojs.bind(s,s.init)),s)}return inherits(t,e),t.prototype.init=function(){log$15("PlayList initializing"),this.player.addChild("PlayList",this.options),this.player.controlBar.addChild("PlayNextButton",{},1),log$15("PlayList initialized"),this.player.trigger({type:"feature",data:"playlist"})},t}(Plugin$16);videojs.registerPlugin("PlayList",PlayList);var Plugin$17=videojs.getPlugin("plugin"),log$16=videojs.log,HLSToken=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return log$16("HLSToken",r,n),s.init(n),s}return inherits(t,e),t.prototype.init=function(r){log$16("HLSToken init",r,this.player);var n=this.player;r.token&&(this.options=r,n.on("playcgiend",videojs.bind(this,function(s){this.modifyData(s.data)})))},t.prototype.modifyData=function(r){var n=this;if(log$16("HLSToken modifyData",r),r.result.code===0){var s=r.result.videoInfo;if(s.masterPlayList){var a=s.masterPlayList.url.split("/");a[a.length-1]="voddrm.token."+this.options.token+"."+a[a.length-1],s.masterPlayList.url=a.join("/")}s.transcodeList&&s.transcodeList.length>0&&(s.transcodeList=s.transcodeList.map(function(l){var u=l.url.split("/");return u[u.length-1]="voddrm.token."+n.options.token+"."+u[u.length-1],l.url=u.join("/"),l}))}},t}(Plugin$17);videojs.registerPlugin("HLSToken",HLSToken);var getMessageContents=function(e){var t=new window_1.DOMParser().parseFromString(String.fromCharCode.apply(null,new Uint16Array(e)),"application/xml"),r=t.getElementsByTagName("HttpHeaders")[0],n={};if(r)for(var s=r.getElementsByTagName("name"),a=r.getElementsByTagName("value"),l=0;l<s.length;l++)n[s[l].childNodes[0].nodeValue]=a[l].childNodes[0].nodeValue;var u=t.getElementsByTagName("Challenge")[0],p=void 0;return u&&(p=window_1.atob(u.childNodes[0].nodeValue)),{headers:n,message:p}},requestPlayreadyLicense=function(e,t,r){var n=getMessageContents(t),s=n.headers,a=n.message;videojs.xhr({uri:e,method:"post",headers:s,body:a,responseType:"arraybuffer"},r)},getSupportedKeySystem=function(e){var t=void 0;return Object.keys(e).forEach(function(r){var n={},s=e[r].audioContentType,a=e[r].videoContentType;s&&(n.audioCapabilities=[{contentType:s}]),a&&(n.videoCapabilities=[{contentType:a}]),t=t?t.catch(function(l){return window_1.navigator.requestMediaKeySystemAccess(r,[n])}):window_1.navigator.requestMediaKeySystemAccess(r,[n])}),t},makeNewRequest=function(e){var t=e.mediaKeys,r=e.initDataType,n=e.initData,s=e.options,a=e.getLicense,l=e.removeSession,u=e.eventBus,p=t.createSession();p.addEventListener("message",function(d){a(s,d.message).then(function(f){return p.update(f)}).catch(videojs.log.error.bind(videojs.log.error,"failed to get and set license"))},!1),p.addEventListener("keystatuseschange",function(d){var f=!1;p.keyStatuses.forEach(function(_,y){switch(u.trigger({keyId:y,status:_,target:p,type:"keystatuschange"}),_){case"expired":f=!0;break;case"internal-error":videojs.log.warn(`Key status reported as "internal-error." Leaving the session open since we don't have enough details to know if this error is fatal.`,d)}}),f&&p.close().then(function(){l(n)})},!1),p.generateRequest(r,n).catch(videojs.log.error.bind(videojs.log.error,"Unable to create or initialize key session"))},addSession=function(e){var t=e.video,r=e.initDataType,n=e.initData,s=e.options,a=e.getLicense,l=e.removeSession,u=e.eventBus;t.mediaKeysObject?makeNewRequest({mediaKeys:t.mediaKeysObject,initDataType:r,initData:n,options:s,getLicense:a,removeSession:l,eventBus:u}):t.pendingSessionData.push({initDataType:r,initData:n})},setMediaKeys=function(e){var t=e.video,r=e.certificate,n=e.createdMediaKeys,s=e.options,a=e.getLicense,l=e.removeSession,u=e.eventBus;t.mediaKeysObject=n,r&&n.setServerCertificate(r);for(var p=0;p<t.pendingSessionData.length;p++){var d=t.pendingSessionData[p];makeNewRequest({mediaKeys:t.mediaKeysObject,initDataType:d.initDataType,initData:d.initData,options:s,getLicense:a,removeSession:l,eventBus:u})}return t.pendingSessionData=[],t.setMediaKeys(n)},defaultPlayreadyGetLicense=function(e){return function(t,r,n){requestPlayreadyLicense(e,r,function(s,a,l){if(s)return void n(s);n(null,l)})}},defaultGetLicense=function(e){return function(t,r,n){videojs.xhr({uri:e,method:"POST",responseType:"arraybuffer",body:r,headers:{"Content-type":"application/octet-stream"}},function(s,a,l){if(s)return void n(s);n(null,l)})}},promisifyGetLicense=function(e,t){return function(r,n){return new Promise(function(s,a){e(r,n,function(l,u){t&&t.trigger("licenserequestattempted"),l&&a(l),s(u)})})}},standardizeKeySystemOptions=function(e,t){if(typeof t=="string"&&(t={url:t}),!t.url&&!t.getLicense)throw new Error("Neither URL nor getLicense function provided to get license");return t.url&&!t.getLicense&&(t.getLicense=e==="com.microsoft.playready"?defaultPlayreadyGetLicense(t.url):defaultGetLicense(t.url)),t},standard5July2016=function(e){var t=e.video,r=e.initDataType,n=e.initData,s=e.options,a=e.removeSession,l=e.eventBus,u=Promise.resolve();if(typeof t.mediaKeysObject>"u"){t.mediaKeysObject=null,t.pendingSessionData=[];var p=void 0,d=void 0;if(!(u=getSupportedKeySystem(s.keySystems)))return videojs.log.error("No supported key system found"),Promise.resolve();u=u.then(function(f){return new Promise(function(_,y){if(t.keySystem=f.keySystem,d=standardizeKeySystemOptions(f.keySystem,s.keySystems[f.keySystem]),!d.getCertificate)return void _(f);d.getCertificate(s,function(b,g){if(b)return void y(b);p=g,_(f)})})}).then(function(f){return f.createMediaKeys()}).then(function(f){return setMediaKeys({video:t,certificate:p,createdMediaKeys:f,options:s,getLicense:promisifyGetLicense(d.getLicense,l),removeSession:a,eventBus:l})}).catch(videojs.log.error.bind(videojs.log.error,"Failed to create and initialize a MediaKeys object"))}return u.then(function(){addSession({video:t,initDataType:r,initData:n,options:s,getLicense:t.keySystem?promisifyGetLicense(standardizeKeySystemOptions(t.keySystem,s.keySystems[t.keySystem]).getLicense,l):null,removeSession:a,eventBus:l})})},stringToUint16Array=function(e){for(var t=new ArrayBuffer(2*e.length),r=new Uint16Array(t),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r},uint8ArrayToString=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},getHostnameFromUri=function(e){var t=document_1.createElement("a");return e=e.match(/.*(skd\:\/\/.+)/i)[1],t.href=e,t.hostname},arrayBuffersEqual=function(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(var r=new DataView(e),n=new DataView(t),s=0;s<r.byteLength;s++)if(r.getUint8(s)!==n.getUint8(s))return!1;return!0},arrayBufferFrom=function(e){return e instanceof Uint8Array||e instanceof Uint16Array?e.buffer:e},FAIRPLAY_KEY_SYSTEM="com.apple.fps.1_0",concatInitDataIdAndCertificate=function(e){var t=e.initData,r=e.id,n=e.cert;typeof r=="string"&&(r=stringToUint16Array(r));var s=0,a=new ArrayBuffer(t.byteLength+4+r.byteLength+4+n.byteLength),l=new DataView(a);new Uint8Array(a,s,t.byteLength).set(t),s+=t.byteLength,l.setUint32(s,r.byteLength,!0),s+=4;var u=new Uint16Array(a,s,r.length);return u.set(r),s+=u.byteLength,l.setUint32(s,n.byteLength,!0),s+=4,new Uint8Array(a,s,n.byteLength).set(n),new Uint8Array(a,0,a.byteLength)},addKey=function(e){var t=e.video,r=e.contentId,n=e.initData,s=e.cert,a=e.options,l=e.getLicense,u=e.eventBus;return new Promise(function(p,d){if(t.webkitKeys||t.webkitSetMediaKeys(new window_1.WebKitMediaKeys(FAIRPLAY_KEY_SYSTEM)),!t.webkitKeys)return void d("Could not create MediaKeys");var f=t.webkitKeys.createSession("video/mp4",concatInitDataIdAndCertificate({id:r,initData:n,cert:s}));if(!f)return void d("Could not create key session");f.contentId=r,f.addEventListener("webkitkeymessage",function(_){l(a,r,_,function(y,b){if(u&&u.trigger("licenserequestattempted"),y)return void d(y);f.update(new Uint8Array(b))})}),f.addEventListener("webkitkeyadded",function(_){p(_)}),f.addEventListener("webkitkeyerror",function(_){d(_)})})},defaultGetCertificate=function(e){return function(t,r){videojs.xhr({uri:e,responseType:"arraybuffer"},function(n,s,a){if(n)return void r(n);r(null,new Uint8Array(a))})}},defaultGetContentId=function(e,t){return getHostnameFromUri(uint8ArrayToString(t))},defaultGetLicense$1=function(e){return function(t,r,n,s){videojs.xhr({uri:e,method:"POST",responseType:"arraybuffer",body:n.message,headers:{"Content-type":"application/x-www-form-urlencoded"}},function(a,l,u){if(a)return void s(a);s(null,u)})}},fairplay=function(e){var t=e.video,r=e.initData,n=e.options,s=e.eventBus,a=n.keySystems[FAIRPLAY_KEY_SYSTEM],l=a.getCertificate||defaultGetCertificate(a.certificateUri),u=a.getContentId||defaultGetContentId,p=a.getLicense||defaultGetLicense$1(a.licenseUri);return new Promise(function(d,f){l(n,function(_,y){if(_)return void f(_);d(y)})}).then(function(d){return addKey({video:t,cert:d,initData:r,getLicense:p,options:n,contentId:u(n,r),eventBus:s})}).catch(function(d){s.player_.error({code:3,message:d})})},PLAYREADY_KEY_SYSTEM="com.microsoft.playready",addKeyToSession=function(e,t,r,n){var s=e.keySystems[PLAYREADY_KEY_SYSTEM];if(typeof s.getKey=="function")return void s.getKey(e,r.destinationURL,r.message.buffer,function(l,u){if(l)return void videojs.log.error("Unable to get key: "+l);t.update(u)});typeof s=="string"&&(s={url:s});var a=s.url||r.destinationURL;requestPlayreadyLicense(a,r.message.buffer,function(l,u){if(n&&n.trigger("licenserequestattempted"),l)return void videojs.log.error("Unable to request key from url: "+a);t.update(new Uint8Array(u.body))})},createSession=function(e,t,r,n){var s=e.msKeys.createSession("video/mp4",t);if(!s)return void videojs.log.error("Could not create key session.");s.addEventListener("mskeymessage",function(a){addKeyToSession(r,s,a,n)}),s.addEventListener("mskeyerror",function(a){videojs.log.error("Unexpected key error from key session with code: "+s.error.code+" and systemCode: "+s.error.systemCode)})},msPrefixed=function(e){var t=e.video,r=e.initData,n=e.options,s=e.eventBus;t.msKeys&&delete t.msKeys;try{t.msSetMediaKeys(new window_1.MSMediaKeys(PLAYREADY_KEY_SYSTEM))}catch(a){return void videojs.log.error("Unable to create media keys for PlayReady key system. Error: "+a.message)}createSession(t,r,n,s)},Plugin$18=videojs.getPlugin("plugin"),hasSession=function(e,t){for(var r=0;r<e.length;r++)if(e[r].initData){var n=arrayBufferFrom(e[r].initData),s=arrayBufferFrom(t);if(arrayBuffersEqual(n,s))return!0}return!1},removeSession=function(e,t){for(var r=0;r<e.length;r++)if(e[r].initData===t)return void e.splice(r,1)},handleEncryptedEvent=function(e,t,r,n){if(!t||!t.keySystems||t.src&&t.src.indexOf("m3u8")>-1)return Promise.resolve();var s=e.initData;return getSupportedKeySystem(t.keySystems).then(function(a){var l=a.keySystem;if(t.keySystems[l]&&t.keySystems[l].pssh&&(s=t.keySystems[l].pssh),!hasSession(r,s)&&s)return r.push({initData:s}),standard5July2016({video:e.target,initDataType:e.initDataType,initData:s,options:t,removeSession:removeSession.bind(null,r),eventBus:n})})},handleWebKitNeedKeyEvent=function(e,t,r){if(t.keySystems&&t.keySystems[FAIRPLAY_KEY_SYSTEM]&&e.initData)return fairplay({video:e.target,initData:e.initData,options:t,eventBus:r})},handleMsNeedKeyEvent=function(e,t,r,n){if(t.keySystems&&t.keySystems[PLAYREADY_KEY_SYSTEM]&&!r.reduce(function(a,l){return a||l.playready},!1)){var s=e.initData;t.keySystems[PLAYREADY_KEY_SYSTEM]&&t.keySystems[PLAYREADY_KEY_SYSTEM].pssh&&(s=t.keySystems[PLAYREADY_KEY_SYSTEM].pssh),s&&(r.push({playready:!0,initData:s}),msPrefixed({video:e.target,initData:s,options:t,eventBus:n}))}},getOptions=function(e){return videojs.mergeOptions(e.currentSource(),e.eme.options)},setupSessions=function(e){var t=e.src();t!==e.eme.activeSrc&&(e.eme.activeSrc=t,e.eme.sessions=[])},onPlayerReady=function(e){e.$(".vjs-tech").tagName.toLowerCase()==="video"&&e.tech_&&(setupSessions(e),e.tech_.el_.addEventListener("encrypted",function(t){if(e.currentSource().keySystems&&e.currentSource().keySystems["com.widevine.alpha"]&&e.currentSource().type==="application/dash+xml")return!1;setupSessions(e),handleEncryptedEvent(t,getOptions(e),e.eme.sessions,e.tech_)}),e.tech_.el_.addEventListener("webkitneedkey",function(t){setupSessions(e),handleWebKitNeedKeyEvent(t,getOptions(e),e.tech_)}),videojs.browser.IS_EDGE||e.tech_.el_.addEventListener("msneedkey",function(t){setupSessions(e),handleMsNeedKeyEvent(t,getOptions(e),e.eme.sessions,e.tech_)}))},DRM=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,r.ready(function(){return onPlayerReady(r)}),r.eme={initializeMediaKeys:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},u=videojs.mergeOptions(r.currentSource(),n,a),p={initDataType:"cenc",initData:null,target:r.tech_.el_};setupSessions(r),r.tech_.el_.setMediaKeys?handleEncryptedEvent(p,u,r.eme.sessions,r.tech_).then(function(){return l()}).catch(function(d){return l(d)}):r.tech_.el_.msSetMediaKeys&&(handleMsNeedKeyEvent(p,u,r.eme.sessions,r.tech_),l())},options:n},s}return inherits(t,e),t.prototype.setOptions=function(r){this.options=r,this.player.options_.plugins.DRM=r},t}(Plugin$18),registerPlugin$2=videojs.registerPlugin||videojs.plugin;registerPlugin$2("DRM",DRM);var Plugin$19=videojs.getPlugin("plugin"),dom$2=videojs.dom;if(!window.requestAnimationFrame){var lastTime=0;window.requestAnimationFrame=function(e){var t=new Date().getTime(),r=Math.max(0,16.7-(t-lastTime)),n=window.setTimeout(function(){e(t+r)},r);return lastTime=t+r,n}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)});var DynamicWatermark=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n||{},s.options.content&&s.init(),s}return inherits(t,e),t.prototype.dispose=function(){this.stopAnimation(),this.player.$(".tcp-dynamic-watermark-container")&&this.player.el().removeChild(this.containerElement),e.prototype.dispose.call(this)},t.prototype.init=function(){var r=this,n=this.player;this.isFirstShow=!0,this.initUI(),this.initStyle(),this.initSpeed(),n.on("loadedmetadata",function(){r.calculateStyle(),r.setStyle(),dom$2.removeClass(r.containerElement,"vjs-hidden")}),n.one("play",function(){r.encModule=new Enc,r.ghostCycle=r.encModule.calculateGhost(r.player.duration()),r.startAnimation()}),n.on(["fullscreenchange","playerresize"],function(){setTimeout(function(){r.calculateStyle()},200)})},t.prototype.initUI=function(){var r=this.player,n=dom$2.createEl("div",{className:"tcp-dynamic-watermark-container vjs-hidden"}),s=dom$2.createEl("div",{innerHTML:encodeHTML(this.options.content),className:"tcp-dynamic-watermark-content"});if(n.appendChild(s),this.options.keep||r.el().appendChild(n),this.containerElement=n,this.markContentElement=s,this.options.type==="image"){var a=document.createElement("img");this.options.width&&(a.style.width=this.options.width),this.options.height&&(a.style.height=this.options.height),a.setAttribute("src",this.options.content),this.markContentElement.innerHTML="",this.markContentElement.appendChild(a)}},t.prototype.initStyle=function(){this.style={containerWidth:"",containerHeight:"",containerLeft:"",containerTop:"",contentLeft:80*Math.random(),contentTop:80*Math.random(),margin:0,padding:0,display:"block",visibility:"visible",opacity:.5,position:"absolute",color:"rgba(255, 255, 255)"}},t.prototype.initSpeed=function(){this.speed=this.options.keep&&this.options.speed===0?.2:this.options.speed},t.prototype.calculateStyle=function(){var r=this.player,n=this.style,s=r.videoWidth(),a=r.videoHeight(),l=dom$2.getBoundingClientRect(r.el()),u=l.width,p=l.height,d=(u/p).toFixed(2),f=(s/a).toFixed(2),_=void 0,y=void 0;f<d?(y=p,_=y*f):f>d?(_=u,y=_/f):f==d&&(_=u,y=p),n.containerLeft=(u-_)/2/u*100,n.containerTop=(p-y)/2/p*100,n.containerWidth=_/u*100,n.containerHeight=y/p*100},t.prototype.setStyle=function(){var r=this.containerElement,n=this.markContentElement,s=this.style;r.style.left=s.containerLeft+"%",r.style.top=s.containerTop+"%",r.style.width=s.containerWidth+"%",r.style.height=s.containerHeight+"%",r.style.display=n.style.display=s.display,r.style.visibility=n.style.visibility=s.visibility,r.style.opacity=n.style.opacity=s.opacity,r.style.position=n.style.position=s.position,r.style.margin=n.style.margin=s.margin,r.style.padding=n.style.padding=s.padding,n.style.left=this.options.left||s.contentLeft+"%",n.style.top=this.options.top||s.contentTop+"%",this.options.right&&(n.style.right=this.options.right),this.options.bottom&&(n.style.bottom=this.options.bottom),n.style.color=this.options.color||s.color,this.options.keep||(r.style.opacity=n.style.opacity=this.options.opacity||s.opacity),this.options.type==="text"&&(n.style.fontSize=this.options.fontSize||"12px",n.innerHTML=encodeHTML(this.options.content))},t.prototype.setContent=function(r){this.options.content=r},t.prototype.startAnimation=function(){var r=this;if(!this.rafID){var n=this.player,s=this.style,a=this.containerElement,l=this.markContentElement,u=1,p=1,d=Math.random(),f=function _(){try{if(!r.isPauseAnimation){var y=Math.min(1,r.speed===0?0:r.speed?r.speed:.2),b=dom$2.getBoundingClientRect(a),g=dom$2.getBoundingClientRect(l),m=g.left-b.left,C=g.top-b.top;m+=y*u*d,C+=y*p*(1-d),m+g.width>b.width?(u=-1,d=Math.random()):m<0&&(u=1,d=Math.random()),C+g.height>b.height?(p=-1,d=Math.random()):C<0&&(p=1,d=Math.random()),m=Math.min(b.width-g.width,m),C=Math.min(b.height-g.height,C),s.contentLeft=m/b.width*100,s.contentTop=C/b.height*100,r.setStyle(),r.options.keep&&(r.waterMarkWillRemove||(r.waterMarkWillRemove=!0,setTimeout(function(){n.el()&&n.el().removeChild(a),r.waterMarkWillRemove=!1},1e3*r.ghostCycle.ghostOn)))}}catch(S){r.player&&r.encModule.handleWatermarkElementAdd(r)}if(r.isStopAnimation)return r.isStopAnimation=!1,cancelAnimationFrame(r.rafID),void(r.rafID=null);r.speed!==0&&requestAnimationFrame(_)};this.rafID=requestAnimationFrame(f)}},t.prototype.resumeAnimation=function(){this.isPauseAnimation=!1},t.prototype.pauseAnimation=function(){this.isPauseAnimation=!0},t.prototype.stopAnimation=function(){this.isStopAnimation=!0},t}(Plugin$19);videojs.registerPlugin("DynamicWatermark",DynamicWatermark);var Plugin$20=videojs.getPlugin("plugin"),XP2PHlsjsPlugin=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,s.hlsp2p=null,s}return inherits(t,e),t.prototype.startHLSP2P=function(r,n,s){var a=this,l=this.player.tech_,u=l.options_,p=u.xp2pConfig;if(n.isSupported()&&!window.hlsp2p){for(var d=["videoType","xp2pPackage","xp2pAppId","tencentCloudAppId"],y=d,f=Array.isArray(y),_=0,y=f?y:y[Symbol.iterator]();;){var b;if(f){if(_>=y.length)break;b=y[_++]}else{if(_=y.next(),_.done)break;b=_.value}var g=b;if(p[g]===void 0)return}var m={videoId:u.playerId+"_html5_api",url:u.source.src,videoType:p.videoType,cloudAppId:p.tencentCloudAppId,domain:p.xp2pPackage,xp2pAppId:p.xp2pAppId,p2pStartDelay:1e3},C=HLSP2P.create(r,Object.assign(m,p));C.on(HLSP2P.Events.Rollback,function(S){a.destroy(),s&&s(S)}),this.hlsp2p=C}},t.prototype.destroy=function(){this.hlsp2p&&(this.hlsp2p.destroy(),this.hlsp2p=null,window.hlsp2p=void 0)},t.prototype.dispose=function(){this.destroy()},t}(Plugin$20);videojs.registerPlugin("XP2PHlsjsPlugin",XP2PHlsjsPlugin);var Plugin$21=videojs.getPlugin("plugin"),XP2PFlvjsPlugin=function(e){function t(r,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,e.call(this,r));return s.options=n,s}return inherits(t,e),t.prototype.createLoader=function(r,n,s){var a=this.player.tech();return function(l){function u(p,d){classCallCheck(this,u);var f=possibleConstructorReturn(this,l.call(this));return f._qvbp2p=null,f._receivedLength=0,f._config=d,f}return inherits(u,l),u.isSupported=function(){return n&&n.isSupported()},u.prototype.destroy=function(){this._destroyQVBP2P(),l.prototype.destroy.call(this)},u.prototype.open=function(p){this._createQVBP2P(),this._qvbp2p.on(n.ComEvents.STATE_CHANGE,this._onQVBP2PStateChange.bind(this)),this._qvbp2p.setMediaElement(a.el());var d={src:p.url};this._qvbp2p.loadSource(d)},u.prototype.abort=function(){this._destroyQVBP2P()},u.prototype._onQVBP2PStateChange=function(p,d){var f=n.ComCodes;switch(d.code){case f.RECEIVE_BUFFER:this._receiveBuffer(d.payload);break;case f.ROLLBACK:this._rollback(d)}},u.prototype._receiveBuffer=function(p){var d=this._receivedLength;this._receivedLength+=p.byteLength,this._onDataArrival&&this._onDataArrival(p,d,this._receivedLength)},u.prototype._rollback=function(p){s&&s(p)},u.prototype._createQVBP2P=function(){this._qvbp2p&&this._destroyQVBP2P(),this._qvbp2p=n.create(this._config.xp2pConfig),window.qvbp2p=this._qvbp2p},u.prototype._destroyQVBP2P=function(){this._qvbp2p&&(this._qvbp2p.destroy(),this._qvbp2p=null,window.qvbp2p=null)},u}(r.BaseLoader)},t}(Plugin$21);videojs.registerPlugin("XP2PFlvjsPlugin",XP2PFlvjsPlugin);var defaultConfig$1={enableStashBuffer:!1},Html5FlvJS=function(){function e(t,r,n){var s=this;classCallCheck(this,e);var a=function(){var l=window.flvjs;s.flvjs=l;var u=videojs.mergeOptions(defaultConfig$1,n.flvConfig,{xp2pConfig:n.xp2pConfig}),p=r.player();if(window.QVBP2P&&n.xp2pConfig&&n.xp2pConfig.useXP2P&&p.XP2PFlvjsPlugin){var d=p.XP2PFlvjsPlugin().createLoader(l,window.QVBP2P,function(y){s.dispose(),n.xp2pConfig.useXP2P=!1;var b=s.tech.player(),g=s.tech.currentSource_.src;b.src(g)});s.xp2pFlvLoader=d,u.customLoader=d}var f=new l.createPlayer({isLive:!1,url:t.src,type:"flv"},u);s.tech=r,f.on(l.Events.ERROR,videojs.bind(s,s.onError));for(var _ in l.Events)(function(y){f.on(l.Events[y],videojs.bind(s,function(b){this.onEvent(y,b)}))})(_);s.flv=f,s._id=new Date().getTime(),r.el().srcObject&&(r.el().srcObject=null),f.attachMediaElement(r.el()),f.load()};Promise.all([function(){return n.xp2pConfig&&n.xp2pConfig.useXP2P&&n.xp2pConfig.format==="flv"&&!window.QVBP2P?new Promise(function(l){loadScript(XP2P_FLV_PATH,function(){l()})}):Promise.resolve()}(),function(){return window.flvjs?Promise.resolve():new Promise(function(l){loadScript(FLV_PATH,function(){l()})})}()]).then(function(){a()})}return e.prototype.onError=function(t,r,n){var s=this.tech.player();t===this.flvjs.ErrorTypes.NETWORK_ERROR&&s.error({code:2,source:n}),t===this.flvjs.ErrorTypes.MEDIA_ERROR&&s.error({code:3,source:n})},e.prototype.onEvent=function(t,r){this.tech.player().trigger({type:"FLVJS_EVENT",data:{type:t,data:r}})},e.prototype.dispose=function(){if(this.tech.player().pause(),this.tech.flvProvider)try{this.flv.destroy()}catch(t){}this.tech.flvProvider=null},e}(),flvTypeRE=/^video\/flv$/i,flvExtRE=/.flv(?![^?])/i,flvProtoRE=/^(ws:\/\/)/i,FlvSourceHandler={name:"flvSourceHandler",canHandleSource:function(e){return flvTypeRE.test(e.type)?"probably":flvExtRE.test(e.src)||flvProtoRE.test(e.src)?"maybe":""},handleSource:function(e,t,r){return t.flvProvider&&t.flvProvider.dispose(),t.flvProvider=new Html5FlvJS(e,t,r),t.flvProvider},canPlayType:function(e){if(flvTypeRE.test(e))return"probably"}};TCPlayer.mountFlvProvider=mountFlvProvider,mountFlvProvider();var defaultConfig$2={receiveVideo:!0,receiveAudio:!0,showLog:!1},WebRTCProvider=function(){function e(t,r,n){var s=this;classCallCheck(this,e);var a=function(){s.tech=r,s.player=s.tech.player(),s.playerMetrics=s.player.PlayerMetrics(),s.report=s.player.options_.reportable;var l=window.TXLivePlayer;s.TXLivePlayer=l;var u=videojs.mergeOptions(defaultConfig$2,n.webrtcConfig);n.xp2pConfig&&n.xp2pConfig.format==="webrtc"&&n.xp2pConfig.useXP2P&&Object.assign(u,{p2pEnable:n.xp2pConfig.useXP2P,p2pConfig:{cloudAppid:n.xp2pConfig.tencentCloudAppId,xp2pAppid:n.xp2pConfig.xp2pAppId,appKey:n.xp2pConfig.xp2pAppKey,xp2pDomain:n.xp2pConfig.xp2pPackage}});var p=new l;p.setPlayerView(r.el()),p.setConfig(u),p.setPlayListener({onPlayEvent:videojs.bind(s,s.onPlayEvent),onPlayStats:videojs.bind(s,s.onPlayStats),onPlayReport:videojs.bind(s,s.onPlayReport)}),p.startPlay(t.src),s.webrtcPlayer=p};window.TXLivePlayer?a():loadScript(WEBRTC_PATH,function(){a()})}return e.prototype.onPlayStats=function(t){this.tech.player().trigger({type:"webrtcstats",data:t})},e.prototype.onPlayEvent=function(t,r){var n=this.tech.player();if(t<-2e3){if(t===-2003&&r&&r.videoActive&&(n.trigger("blocked"),n.trigger({type:"webrtcevent",data:{code:2005}})),t===-2003)return!1;if(t===-2005||t===-2001||t===-2004){var s=n.options_.webrtcConfig;if(!s||s.fallback!==!1)return this.switchPlaySource(),!1}return n.error({code:t,source:r}),!1}n.trigger({type:"webrtcevent",data:{code:t,data:r}})},e.prototype.onPlayReport=function(t){if(this.report===!1)return!1;t.uint32_command===40101&&this.playerMetrics.report_40101(t),t.uint32_command===40100&&this.playerMetrics.report_40100(t),t.uint32_command===40102&&this.playerMetrics.report_40102(t)},e.prototype.dispose=function(){this.webrtcPlayer&&(this.webrtcPlayer.setPlayListener({onPlayEvent:function(){},onPlayStats:function(){}}),this.webrtcPlayer.stopPlay(),this.webrtcPlayer.setPlayerView(videojs.dom.createEl("video"))),this.webrtcPlayer=null},e.prototype.setSource=function(t){var r=this;this.webrtcPlayer.startPlay(t.src),this.tech.player().one("webrtcevent",function(n){n.data.code===-1002&&r.tech.player().play()})},e.prototype.recovery=function(){var t=this,r=this.tech.player(),n=void 0;r.one("waiting",function(){n=setTimeout(function(){r.one("webrtcevent",function(s){if(s.data.code===1004){t.webrtcPlayer&&t.webrtcPlayer.startPlay(r.src()),r.play();var a=function l(u){u.data.code===1002&&(r.play(),r.off("webrtcevent",l))};r.on("webrtcevent",a)}}),t.webrtcPlayer&&t.webrtcPlayer.stopPlay()},2e3)}),r.one("playing",function(){n&&clearTimeout(n)})},e.prototype.switchPlaySource=function(){var t=this.tech.player(),r=this.tech.currentSource_.src,n=this.convertProtocol(r);t.bigPlayButton&&t.bigPlayButton.hide(),t.posterImage&&t.posterImage.hide(),t.src(n);var s=videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?"loadeddata":"loadedmetadata",a=function l(){t.play(),t.one("progress",function(){t.play(),t.off(s,l)})};t.on(s,a)},e.prototype.convertProtocol=function(t){var r=[];if(t.indexOf(".sdp")>-1)t=t.replace(".sdp",".flv"),r.push(t.replace(".sdp",".m3u8"));else{var n=t.replace("webrtc://","https://").replace("?",".flv?");n.indexOf("?")===-1&&n.indexOf(".flv")===-1&&(n+=".flv"),hlsSrc=t.replace("webrtc://","https://").replace("?",".m3u8?"),hlsSrc.indexOf("?")===-1&&hlsSrc.indexOf(".m3u8")===-1&&(hlsSrc+=".m3u8"),r.push(hlsSrc)}return r},e}(),webrtcTypeRE=/^webrtc/i,webrtcExtRE=/\.sdp/i,webrtcProtoRE=/^(webrtc:\/\/)/i,sourceHandler={name:"webrtcSourceHandler",canHandleSource:function(e){return webrtcTypeRE.test(e.type)?"probably":webrtcExtRE.test(e.src)||webrtcProtoRE.test(e.src)?"maybe":""},handleSource:function(e,t,r){return t.webrtcProvider&&t.webrtcProvider.dispose(),t.webrtcProvider=new WebRTCProvider(e,t,r),t.webrtcProvider},canPlayType:function(e){if(webrtcTypeRE.test(e))return"probably"}};mountWebRTCProvider();for(var Tech$2=videojs.getComponent("Tech"),Dom$1=videojs.dom,Url$1=videojs.url,createTimeRange=videojs.createTimeRange,mergeOptions$1=videojs.mergeOptions,navigator$2=window_1&&window_1.navigator||{},Flash=function(e){function t(r,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,e.call(this,r,n,s));return n.source&&a.ready(function(){this.setSource(n.source)},!0),n.startTime&&a.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),window_1.videojs=window_1.videojs||{},window_1.videojs.Flash=window_1.videojs.Flash||{},window_1.videojs.Flash.onReady=t.onReady,window_1.videojs.Flash.onEvent=t.onEvent,window_1.videojs.Flash.onError=t.onError,a.on("seeked",function(){this.lastSeekTarget_=void 0}),a}return inherits(t,e),t.prototype.createEl=function(){var r=this.options_;r.swf||(r.swf=unifyProtocol("//imgcache.qq.com/open/qcloud/video/tcplayer/player.swf"));var n=r.techId,s=mergeOptions$1({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:r.autoplay,preload:r.preload,loop:r.loop,muted:r.muted},r.flashVars),a=mergeOptions$1({wmode:"opaque",bgcolor:"#000000"},r.params),l=mergeOptions$1({id:n,name:n,class:"vjs-tech"},r.attributes);return this.el_=t.embed(r.swf,s,a,l),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(r){return r===void 0?this.currentSrc():this.setSrc(r)},t.prototype.setSrc=function(r){var n=this;r=Url$1.getAbsoluteURL(r),this.el_.vjs_src(r),this.autoplay()&&this.setTimeout(function(){return n.play()},0)},t.prototype.seeking=function(){return this.lastSeekTarget_!==void 0},t.prototype.setCurrentTime=function(r){var n=this.seekable();n.length&&(r=r>n.start(0)?r:n.start(0),r=r<n.end(n.length-1)?r:n.end(n.length-1),this.lastSeekTarget_=r,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",r),e.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.duration=function(){if(this.readyState()===0)return NaN;var r=this.el_.vjs_getProperty("duration");return r>=0?r:1/0},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var r=this.duration();return r===0?createTimeRange():createTimeRange(0,r)},t.prototype.buffered=function(){var r=this.el_.vjs_getProperty("buffered");return r.length===0?createTimeRange():createTimeRange(r[0][0],r[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t.prototype.getVideoPlaybackQuality=function(){var r=this.el_.vjs_getProperty("getVideoPlaybackQuality");return window_1.performance&&typeof window_1.performance.now=="function"?r.creationTime=window_1.performance.now():window_1.performance&&window_1.performance.timing&&typeof window_1.performance.timing.navigationStart=="number"&&(r.creationTime=window_1.Date.now()-window_1.performance.timing.navigationStart),r},t}(Tech$2),_readWrite=["rtmpConnection","rtmpStream","preload","defaultPlaybackRate","playbackRate","autoplay","loop","controls","volume","muted","defaultMuted"],_readOnly=["networkState","readyState","initialTime","startOffsetTime","paused","ended","videoWidth","videoHeight"],_api=Flash.prototype,i$2=0;i$2<_readWrite.length;i$2++)_createGetter(_readWrite[i$2]),_createSetter(_readWrite[i$2]);for(var _i$1=0;_i$1<_readOnly.length;_i$1++)_createGetter(_readOnly[_i$1]);Flash.isSupported=function(){return Flash.version()[0]>=10},Tech$2.withSourceHandlers(Flash),Flash.nativeSourceHandler={},Flash.nativeSourceHandler.canPlayType=function(e){return e in Flash.formats?"maybe":""},Flash.nativeSourceHandler.canHandleSource=function(e,t){var r=void 0;return r=e.type?e.type.replace(/;.*/,"").toLowerCase():function(n){var s=Url$1.getFileExtension(n);return s?"video/"+s:""}(e.src),Flash.nativeSourceHandler.canPlayType(r)},Flash.nativeSourceHandler.handleSource=function(e,t,r){t.setSrc(e.src)},Flash.nativeSourceHandler.dispose=function(){},Flash.registerSourceHandler(Flash.nativeSourceHandler),Flash.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},Flash.onReady=function(e){var t=Dom$1.$("#"+e),r=t&&t.tech;r&&r.el()&&Flash.checkReady(r)},Flash.checkReady=function(e){e.el()&&(e.el().vjs_getProperty?e.triggerReady():this.setTimeout(function(){Flash.checkReady(e)},50))},Flash.onEvent=function(e,t){var r=Dom$1.$("#"+e).tech,n=Array.prototype.slice.call(arguments,2);r.setTimeout(function(){r.trigger(t,n)},1)},Flash.onError=function(e,t){var r=Dom$1.$("#"+e).tech;if(t==="srcnotfound")return r.error(4);r.error("FLASH: "+t)},Flash.version=function(){var e="0,0,0";try{e=new window_1.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{navigator$2.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(e=(navigator$2.plugins["Shockwave Flash 2.0"]||navigator$2.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(r){}}return e.split(",")},Flash.embed=function(e,t,r,n){var s=Flash.getEmbedCode(e,t,r,n);return Dom$1.createEl("div",{innerHTML:s}).childNodes[0]},Flash.getEmbedCode=function(e,t,r,n){var s="",a="",l="";return t&&Object.getOwnPropertyNames(t).forEach(function(u){s+=u+"="+t[u]+"&amp;"}),r=mergeOptions$1({movie:e,flashvars:s,allowScriptAccess:"always",allowNetworking:"all"},r),Object.getOwnPropertyNames(r).forEach(function(u){a+='<param name="'+u+'" value="'+r[u]+'" />'}),n=mergeOptions$1({data:e,width:"100%",height:"100%"},n),Object.getOwnPropertyNames(n).forEach(function(u){l+=u+'="'+n[u]+'" '}),'<object type="application/x-shockwave-flash" '+l+">"+a+"</object>"},FlashRtmpDecorator(Flash),Tech$2.getTech("Flash")?(videojs.log.warn("Not using videojs-flash as it appears to already be registered"),videojs.log.warn("videojs-flash should only be used with video.js@6 and above")):videojs.registerTech("Flash",Flash);var FlashlsSourceHandler={},mpegurlRE$1=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;FlashlsSourceHandler.canPlayType=function(e){return mpegurlRE$1.test(e)?"maybe":""},FlashlsSourceHandler.canHandleSource=function(e,t){return FlashlsSourceHandler.canPlayType(e.type)==="maybe"},FlashlsSourceHandler.handleSource=function(e,t,r){t.setSrc(e.src)},FlashlsSourceHandler.dispose=function(){},videojs.getTech("Flash").registerSourceHandler(FlashlsSourceHandler,0),FlashlsSourceHandler.VERSION="__VERSION__";var Play="播放",Pause="暂停",LIVE="直播",Loaded="加载完毕",Progress="进度",Fullscreen="全屏",Mute="静音",Unmute="取消静音",Subtitles="字幕",Captions="内嵌字幕",Chapters="节目段落",Descriptions="描述",Close="关闭",Replay="重播",Text="文字",White="白",Black="黑",Red="红",Green="绿",Blue="蓝",Yellow="黄",Magenta="紫红",Cyan="青",Background="背景",Window="视窗",Transparent="透明",Opaque="不透明",None="无",Raised="浮雕",Depressed="压低",Uniform="均匀",Dropshadow="下阴影",Casual="舒适",Script="手写体",Reset="重启",Done="完成",auto="自动",Mirror="镜像",CN={Play,Pause,LIVE,Loaded,Progress,Fullscreen,Mute,Unmute,Subtitles,Captions,Chapters,Descriptions,Close,Replay,Text,White,Black,Red,Green,Blue,Yellow,Magenta,Cyan,Background,Window,Transparent,Opaque,None,Raised,Depressed,Uniform,Dropshadow,Casual,Script,Reset,Done,auto,Mirror,"Current Time":"当前时间","Duration Time":"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型","Non-Fullscreen":"退出全屏","Playback Rate":"播放速度","subtitles off":"关闭字幕","captions off":"关闭内嵌字幕","Close Modal Dialog":"关闭弹窗","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源或者当前环境无法播放该视频。","The media is encrypted and we do not have the keys to decrypt it.":"视频已加密,无法解密。","Play Video":"播放视频","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器","Progress Bar":"进度小节","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定","Semi-Transparent":"半透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体","Small Caps":"小型大写字体","restore all settings to the default values":"恢复全部设定至预设值","Caption Settings Dialog":"字幕设定视窗","Beginning of dialog window. Escape will cancel and close the window.":"开始对话视窗。离开会取消及关闭视窗","End of dialog window.":"结束对话视窗","Request timed out.":"请求超时,请稍后再试。","Could not download the video.":"无法加载视频,请检查网络。","Server is not respond.":"服务器请求失败,请稍后再试。","Server respond error data.":"服务器返回数据有误,请稍后再试。","Last time play at ":"上次看到 ","Resume play":"恢复播放","Powered by Tencent Cloud.":"腾讯云提供技术支持","Rise an internal exception when playing HLS.":"播放 HLS 时出现内部异常。","Authentication failed.":"防盗链参数鉴权失败。","Server failed.":"媒体服务器错误。","Get file error.":"媒体服务器获取文件错误。","The media file does not exist. Please check if the fileID is correct.":"媒体文件不存在,请检查 fileID 是否正确。","No video transcoding information found.":"没有找到视频转码信息。","Current browser not support DRM.":"浏览器不支持当前 DRM 方案。","The trial duration is illegal. The trial duration must be within the video duration.":"试看时长不合法,试看时长要在视频时长范围内。","Param pcfg is not unique.":"pcfg 不唯一。","The license has expired. Please check whether the expiration time setting is reasonable.":"license 过期,请检查过期时间设置是否合理。","Did not find an adaptive stream that can be played.":"没有找到可以播放的自适应码流,<a href='https://cloud.tencent.com/document/product/266/34071' style='color: white;' target='_blank'>查看文档</a>。","Invalid request format, please check the request format.":"请求格式不合法,请检查请求格式。","AppID is not exist, Please check if the AppID is correct.":"AppID 不存在,请检查 AppID 是否正确。","Without anti-leech information.":"没带防盗链检测。","qsign invalid.":"播放参数 qsign 校验失败","psign check failed.":"播放参数 psign 校验失败,<a href='https://cloud.tencent.com/document/product/266/45554' style='color: white' target='_blank'>查看文档</a>。","Other errors.":"其他错误。","Internal error.":"内部错误。","Response data verification failed.":"响应数据校验失败","Video statistic":"视频统计信息","Play Next":"下一个","Current browser not support play this stream, please select another one.":"无法找到此视频兼容的源或者当前环境无法播放该视频,请选择其他视频播放。","Server respond error data.(eg. stream not exist)":"媒体服务器获取数据异常,可能该视频不存在,请选择其他视频播放。","Video play failed, please refresh to start play again.":"视频播放器失败,请刷新并重新播放。","Connection to the server has failed and the number of connection retries has exceeded the set value.":"媒体服务器连接异常,并达到最大重试次数,请检查网络是否正常并刷新重试","Video decoding failure.":"视频解码失败,请选择其他视频播放。"},log=videojs.log;if(Function.prototype.bind&&(typeof console>"u"?"undefined":_typeof(console))=="object"&&_typeof(console.log)=="object")for(var logFns=["log","info","warn","error","assert","dir","clear","profile","profileEnd"],i=0;i<logFns.length;i++){var method=logFns[i];console[method]=Function.prototype.call.bind(console[method],console)}return videojs.addLanguage("zh-CN",CN),Object.keys(videojs).forEach(function(e){TCPlayer[e]=videojs[e]}),TCPlayer})})(tcplayer_v4_8_0_min);var tcplayer_v4_8_0_minExports=tcplayer_v4_8_0_min.exports;const TCPlayer=getDefaultExportFromCjs(tcplayer_v4_8_0_minExports),tcplayer_min="",iconplay=""+new URL("icon-play-6bc42262.svg",import.meta.url).href,iconpause=""+new URL("icon-pause-fe805220.svg",import.meta.url).href,VideoItem=defineComponent({name:"video-play",props:{item:{type:Object,default:()=>({})},pageVisibility:{type:String,default:""},show:{type:Boolean,default:!1},showModel:{type:Boolean,default:!1},isEmtry:{type:Boolean,default:!1}},emits:["loadedmetadata","togglePlay","ended","reset","close","error"],setup(e,{emit:t,expose:r}){const n="video"+Date.now()+Math.floor(Math.random()*100),s=ref(),{item:a,isEmtry:l}=toRefs(e),u=reactive({timer:null,currentTime:0,duration:0,loop:!1,playState:"pause",vudio:null,reload:!1}),p=ref();watch(()=>e.show,g=>{f("pause")}),watch(()=>e.pageVisibility,g=>{g==="hidden"&&e.show&&f("pause")});let d=null;const f=g=>{var m;clearTimeout(d),g==="play"?d=setTimeout(()=>{var C;(C=s.value)==null||C.play(),u.playState="play"},100):((m=s.value)==null||m.pause(),u.playState="pause"),t("togglePlay",u.playState)},_=()=>{s.value&&(s.value.src(a.value.content),t("reset"))},y=g=>{u.currentTime=g,clearTimeout(u.timer),u.timer=setTimeout(()=>{s.value.currentTime(g),u.timer=null},300)},b=()=>{s.value=TCPlayer(n,{appID:"",controls:!1}),s.value&&(console.log(s.value),s.value.poster(e.item.coverImg),s.value.src(l.value?"":a.value.content),s.value.one("loadedmetadata",g=>{console.log(" Loading metadata",g),u.reload=!1,u.duration=s.value.duration(),t("loadedmetadata",s.value)}),s.value.on("timeupdate",()=>{u.timer||(u.currentTime=s.value.currentTime())}),s.value.on("ended",()=>{u.playState="pause",t("ended")}),s.value.on("pause",()=>{u.playState="pause"}),s.value.on("playing",()=>{u.playState="play"}),s.value.on("canplay",g=>{console.log("canplay",g)}),s.value.on("error",g=>{t("error"),console.log(g,"error")}))};return onMounted(()=>{b()}),r({onPlay:_}),()=>createVNode("div",{class:styles$1.videoWrap},[createVNode("div",{class:styles$1.content},[createVNode("div",{ref:p,class:styles$1.contentWrap},[!u.reload&&createVNode("video",{style:{width:"100%",height:"100%"},poster:e.item.coverImg,src:l.value?"":a.value.content,id:n,preload:"auto",playsinline:!0,"webkit-playsinline":!0},null)]),createVNode("div",{class:styles$1.videoSection},null)]),createVNode("div",{class:[styles$1.controls,e.showModel?"":styles$1.hide],onClick:g=>{g.stopPropagation()},onTouchmove:g=>{t("close")}},[createVNode("div",{class:styles$1.time},[createVNode("div",null,[getSecondRPM(u.currentTime)]),createVNode("div",null,[getSecondRPM(u.duration)])]),createVNode("div",{class:styles$1.slider},[createVNode(NSlider,{tooltip:!1,step:.01,class:styles$1.timeProgress,value:u.currentTime,max:u.duration,"onUpdate:value":g=>y(g)},null)]),createVNode("div",{class:styles$1.actions,onClick:()=>t("close")},[createVNode("div",{class:styles$1.actionBtn,onClick:()=>f(u.playState==="pause"?"play":"pause")},[createVNode("img",{src:u.playState==="pause"?iconplay:iconpause},null)]),createVNode("div",{class:styles$1.actionBtn,onClick:()=>u.loop=!u.loop},[createVNode("img",{src:u.loop?iconLoopActive:iconLoop},null)])])])])}}),container="_container_1l0gk_1",pointHead="_pointHead_1l0gk_12",content="_content_1l0gk_24",collapse="_collapse_1l0gk_34",collapseItem="_collapseItem_1l0gk_34",item="_item_1l0gk_49",arrow="_arrow_1l0gk_58",itemImage="_itemImage_1l0gk_63",activeItem="_activeItem_1l0gk_68",itemActive="_itemActive_1l0gk_76",styles={container,pointHead,content,collapse,collapseItem,item,arrow,itemImage,activeItem,itemActive},iconMenuChapter=""+new URL("icon-menu-chapter-bd664df8.svg",import.meta.url).href,chapterDown=""+new URL("chapter-down-arrow-ed70546b.svg",import.meta.url).href,chapterDefault=""+new URL("chapter-default-arrow-a8515aa3.svg",import.meta.url).href,chapterVideo=""+new URL("chapter-video-91c7709a.svg",import.meta.url).href;function _isSlot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const Chapter=defineComponent({name:"chapter",props:{detail:{type:Object,default:()=>[]},itemActive:{type:String,default:""},active:{type:String,default:""}},emits:["handleSelect"],setup(e,{emit:t}){const{detail:r,itemActive:n,active:s}=toRefs(e),a=reactive({active:s.value});return watch(()=>e.itemActive,()=>{a.active=s.value}),()=>{let l;return createVNode("div",{class:styles.container},[createVNode("div",{class:styles.pointHead},[createVNode("img",{src:iconMenuChapter},null),createTextVNode("切换章节")]),createVNode("div",{class:styles.content},[createVNode(Collapse,{class:styles.collapse,modelValue:a.active,"onUpdate:modelValue":u=>{a.active=u},border:!1,accordion:!0},_isSlot(l=r.value.map(u=>createVNode(CollapseItem,{center:!0,class:[styles.collapseItem,a.active===u.id?styles.activeItem:""],border:!1,isLink:!1,title:u.name,titleClass:"van-ellipsis",titleStyle:{width:"80%"},name:u.id},{default:()=>createVNode(Fragment,null,[u.knowledgeList.map(p=>createVNode("div",{class:[styles.item,n.value==p.id?styles.itemActive:""],onClick:()=>{var f,_,y,b;if(n.value==p.id)return;if(!p.containMaterial){showToast("该章节暂无课件");return}t("handleSelect",{itemActive:p.id,itemName:p.name,tabActive:u.id,tabName:u.name});const d="lastTime"+((b=(y=(_=(f=state)==null?void 0:f.user)==null?void 0:_.data)==null?void 0:y.phone)!=null?b:"");localStorage.setItem(d,p.id)}},[createVNode(Image$1,{src:chapterVideo,class:styles.itemImage},null),createVNode("span",{style:{width:"80%"},class:"van-ellipsis"},[p.name])]))]),icon:()=>createVNode("img",{class:styles.arrow,src:a.active===u.id?chapterDown:chapterDefault},null)})))?l:{default:()=>[l]})])])}}}),index=defineComponent({name:"CoursewarePlay",setup(){var j,V,z,q;const e=usePageVisibility(),t="lastTime"+((q=(z=(V=(j=state)==null?void 0:j.user)==null?void 0:V.data)==null?void 0:z.phone)!=null?q:""),r=reactive({width:"100vw"}),n=()=>{let H=Math.min(screen.width,screen.height),L=Math.max(screen.width,screen.height),B=H*(16/9);if(B>L){r.width="100vw";return}else r.width=B+"px"},s=(H=0)=>{n(),postMessage({api:"setStatusBarVisibility",content:{isVisibility:H}}),postMessage({api:"keepScreenLongLight",content:{isOpenLight:!!H}})};s(),onUnmounted(()=>{s(1),window.removeEventListener("message",y)});const a=async()=>{var H,L;try{if(l.query.tab=="course"){const B=await api_classLessonCoursewareDetail({id:f.courseId,subjectId:f.subjectId});(B==null?void 0:B.code)==200&&Array.isArray((H=B==null?void 0:B.data)==null?void 0:H.lessonList)&&(d.courseDetails=B.data.lessonList||[],console.log("🚀 ~ data.details course:",d.courseDetails))}else{const B=await api_lessonCoursewareDetail({id:l.query.lessonCoursewareId,subjectId:f.subjectId});(B==null?void 0:B.code)==200&&Array.isArray((L=B==null?void 0:B.data)==null?void 0:L.lessonList)&&(d.courseDetails=B.data.lessonList||[])}console.log(d.courseDetails,"data.courseDetails")}catch(B){}},l=useRoute(),u=ref(),p=ref(!1),d=reactive({knowledgePointList:[],courseDetails:[],itemList:[],videoRefs:{}}),f=reactive({isAutoPlay:!0,subjectId:l.query.subjectId,lessonCoursewareId:l.query.lessonCoursewareId,lessonCoursewareDetailId:l.query.lessonCoursewareDetailId,coursewareDetailKnowledgeId:l.query.id,courseId:l.query.courseId,nowTime:0,model:!0,isAnimation:!0,videoBtns:!0,currentTime:0,duration:0,timer:null,item:null}),_=async()=>{let H=[];if(l.query.tab=="course"){const L=await api_classLessonCoursewareQuery({coursewareDetailKnowledgeId:f.coursewareDetailKnowledgeId,subjectId:f.subjectId,page:1,rows:-1});(L==null?void 0:L.code)===200&&Array.isArray(L.data.rows)&&(L.data.rows||[]).forEach(M=>{H.push({content:M.content,coverImg:M.coverImg,id:M.id,materialId:M.materialId,name:M.materialName,relOrder:0,sourceFrom:M.source,type:M.materialType})})}else{const L=await api_lessonCoursewareKnowledgeDetailDetail({lessonCoursewareKnowledgeDetailId:f.coursewareDetailKnowledgeId,subjectId:f.subjectId});(L==null?void 0:L.code)===200&&Array.isArray(L.data)&&(H=L.data||[])}H.length>0&&(d.knowledgePointList=H.map(L=>({...L,url:L.type==="SONG"?"https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687916228530.png":L.coverImg}))),d.itemList=d.knowledgePointList.map((L,B)=>(m.itemActive||(m.itemActive=L.id,m.itemName=L.name),{...L,iframeRef:null,videoEle:null,autoPlay:!1,isprepare:!1,isRender:!1}))},y=H=>{var L,B;((L=H.data)==null?void 0:L.api)==="headerTogge"&&(f.model=H.data.show||H.data.playState!="play"),((B=H.data)==null?void 0:B.api)==="api_fingerPreView"&&(clearInterval(f.timer),f.model=!H.data.state)};onMounted(()=>{postMessage({api:"courseLoading",content:{show:!1,type:"fullscreen"}}),_(),a(),window.addEventListener("message",y)});const b=ref(),g=()=>{var H;try{(H=b.value)==null||H.handleOut()}catch(L){}postMessage({api:"goBack"})},m=reactive({open:!1,activeIndex:0,itemActive:"",itemName:"",itemPointName:l.query.name,chapterOpen:!1}),C=H=>{const L=d.itemList.findIndex(B=>B.id==H);L>-1&&E(L)},S=()=>{clearTimeout(f.timer),closeToast(),f.model=!f.model,f.timer=setTimeout(()=>{f.model=!1},4e3)},P=H=>{H&&["VIDEO"].includes(H.type)&&console.log("双击")},A=ref(3),x=[{prev:{transform:"translate3d(0, 0, -800px) rotateX(180deg)"},next:{transform:"translate3d(0, 0, -800px) rotateX(-180deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px)"},next:{transform:"translate3d(100%, 0, -800px)"}},{prev:{transform:"translate3d(-50%, 0, -800px) rotateY(80deg)"},next:{transform:"translate3d(50%, 0, -800px) rotateY(-80deg)"}},{prev:{transform:"translate3d(-100%, 0, -800px) rotateY(-120deg)",opacity:0},next:{transform:"translate3d(100%, 0, -800px) rotateY(120deg)",opacity:0}},{prev:{transform:"translate3d(-50%, 50%, -800px) rotateZ(-14deg)",opacity:0},next:{transform:"translate3d(50%, 50%, -800px) rotateZ(14deg)",opacity:0}},{prev:{transform:"translateZ(-800px) rotate3d(0, -1, 0, 90deg)",opacity:0},next:{transform:"translateZ(-800px) rotate3d(0, 1, 0, 90deg)",opacity:0},current:{transitionDelay:"700ms"}}],R=ref(),E=H=>{var B;if(m.activeIndex==H)return;clearTimeout(R.value);const L=d.itemList[H];m.activeIndex=H,m.itemActive=L.id,m.itemName=L.name,L.type=="MUSIC"?f.model=!0:L.type=="VIDEO"&&L.error&&((B=d.videoRefs[H])==null||B.onPlay())},k=async H=>{var L,B,M,D,N,F,U,W,Q,Z,re,ne;if(H==="up"){if(m.activeIndex>0){E(m.activeIndex-1);return}let ie=d.courseDetails.findIndex(ae=>ae.id==f.lessonCoursewareDetailId);const le=((L=d.courseDetails[ie])==null?void 0:L.knowledgeList)||[];let oe=le.findIndex(ae=>ae.id==f.coursewareDetailKnowledgeId),ce=!1,he="",te="",X="";for(;oe>=0&&(oe--,oe>=0&&le[oe].containMaterial&&(ce=!0,he=le[oe].lessonCoursewareDetailId,te=le[oe].id,X=le[oe].name),!ce););if(ce){p.value=!0,f.coursewareDetailKnowledgeId=te,f.lessonCoursewareDetailId=he,await _(),m.activeIndex=d.itemList.length-1||0,m.itemActive=((B=d.knowledgePointList[d.itemList.length-1])==null?void 0:B.id)||((M=d.knowledgePointList[0])==null?void 0:M.id),m.itemPointName=X,m.itemName=((D=d.knowledgePointList[d.itemList.length-1])==null?void 0:D.name)||((N=d.knowledgePointList[0])==null?void 0:N.name),localStorage.setItem(t,te),m.chapterOpen=!1,p.value=!1;return}let de=!1;for(;ie>=0;){ie--;const ae=((F=d.courseDetails[ie])==null?void 0:F.knowledgeList)||[];let ue=ae.length;for(;ue>0&&(ae[ue-1].containMaterial&&(de=!0,he=ae[ue-1].lessonCoursewareDetailId,te=ae[ue-1].id,X=ae[ue-1].name),ue--,!de););if(de)break}if(de){p.value=!0,f.coursewareDetailKnowledgeId=te,f.lessonCoursewareDetailId=he,await _(),m.activeIndex=d.itemList.length-1||0,m.itemActive=((U=d.knowledgePointList[d.itemList.length-1])==null?void 0:U.id)||((W=d.knowledgePointList[0])==null?void 0:W.id),localStorage.setItem(t,te),m.itemPointName=X,m.itemName=((Q=d.knowledgePointList[d.itemList.length-1])==null?void 0:Q.name)||((Z=d.knowledgePointList[0])==null?void 0:Z.name),m.chapterOpen=!1,p.value=!1;return}}else{if(m.activeIndex<d.itemList.length-1){E(m.activeIndex+1);return}let ie=d.courseDetails.findIndex(ae=>ae.id==f.lessonCoursewareDetailId);const le=((re=d.courseDetails[ie])==null?void 0:re.knowledgeList)||[];let oe=le.findIndex(ae=>ae.id==f.coursewareDetailKnowledgeId),ce=!1,he="",te="",X="";for(;oe<le.length-1&&(oe++,oe>=0&&le[oe].containMaterial&&(ce=!0,he=le[oe].lessonCoursewareDetailId,te=le[oe].id,X=le[oe].name),!ce););if(ce){p.value=!0,f.coursewareDetailKnowledgeId=te,f.lessonCoursewareDetailId=he,await _(),m.activeIndex=0,m.itemActive=d.knowledgePointList[0].id,m.itemName=d.knowledgePointList[0].name,localStorage.setItem(t,te),m.itemPointName=X,m.chapterOpen=!1,p.value=!1;return}let de=!1;for(;ie<=d.courseDetails.length-1;){ie++;const ae=((ne=d.courseDetails[ie])==null?void 0:ne.knowledgeList)||[];let ue=0;for(;ue<=ae.length-1&&(ae[ue].containMaterial&&(de=!0,he=ae[ue].lessonCoursewareDetailId,te=ae[ue].id,X=ae[ue].name),ue++,!de););if(de)break}if(de){p.value=!0,f.coursewareDetailKnowledgeId=te,f.lessonCoursewareDetailId=he,await _(),m.activeIndex=0,m.itemActive=d.knowledgePointList[0].id,localStorage.setItem(t,te),m.itemName=d.knowledgePointList[0].name,m.itemPointName=X,m.chapterOpen=!1,p.value=!1;return}}},I=()=>{},O=computed(()=>{var N,F;if(m.activeIndex>0)return!0;let H=d.courseDetails.findIndex(U=>U.id==f.lessonCoursewareDetailId);const L=((N=d.courseDetails[H])==null?void 0:N.knowledgeList)||[];let B=L.findIndex(U=>U.id==f.coursewareDetailKnowledgeId);if(H<=0&&B<=0)return!1;let M=!1;for(;B>=0;)B--,B>=0&&L[B].containMaterial&&(M=!0);if(M)return!0;if(H<=0)return!1;let D=!1;for(;H>=0;){H--;const U=((F=d.courseDetails[H])==null?void 0:F.knowledgeList)||[];let W=U.length;for(;W>0;)U[W-1].containMaterial&&(D=!0),W--;if(D)return!0}return!1}),G=computed(()=>{var N,F;if(m.activeIndex<d.itemList.length-1)return!0;let H=d.courseDetails.findIndex(U=>U.id==f.lessonCoursewareDetailId);const L=((N=d.courseDetails[H])==null?void 0:N.knowledgeList)||[];let B=L.findIndex(U=>U.id==f.coursewareDetailKnowledgeId);if(H>=d.courseDetails.length-1&&B>=L.length-1)return!1;let M=!1;for(;B<L.length-1;)B++,B>=0&&L[B].containMaterial&&(M=!0);if(M)return!0;if(H>=d.courseDetails.length-1)return!1;let D=!1;for(;H<d.courseDetails.length-1;){H++;const U=((F=d.courseDetails[H])==null?void 0:F.knowledgeList)||[];let W=0;for(;W<=U.length-1;)U[W].containMaterial&&(D=!0),W++;if(D)return!0}return!1});return()=>createVNode("div",{id:"playContent",class:styles$5.playContent},[createVNode("div",{class:styles$5.coursewarePlay,style:{width:r.width},onClick:()=>S()},[!p.value&&createVNode("div",{class:styles$5.wraps},[d.itemList.map((H,L)=>{const B=H.isRender||Math.abs(m.activeIndex-L)<2,M=Math.abs(m.activeIndex-L)>4;return B&&(H.isRender=!0),B?createVNode("div",{key:"index"+L,class:[styles$5.itemDiv,m.activeIndex===L&&styles$5.itemActive,f.isAnimation&&styles$5.acitveAnimation,Math.abs(m.activeIndex-L)<2?styles$5.show:styles$5.hide],style:L<m.activeIndex?x[A.value].prev:L>m.activeIndex?x[A.value].next:{},onClick:D=>{if(Date.now()-f.nowTime<300){P(H);return}f.nowTime=Date.now()}},[H.type==="IMG"&&createVNode("img",{src:H.content},null),H.type==="VIDEO"&&createVNode(VideoItem,{ref:D=>d.videoRefs[L]=D,item:H,show:m.activeIndex===L,pageVisibility:e.value,showModel:f.model,isEmtry:M,onLoadedmetadata:()=>{H.isprepare=!0,H.error=!1},onEnded:()=>{const D=m.activeIndex+1;D<d.itemList.length&&E(D)},onReset:()=>{H.error=!1},onError:()=>{H.isprepare=!0,H.error=!0}},null),H.type==="SONG"&&createVNode(AudioItem,{item:H,show:m.activeIndex===L,pageVisibility:e.value,showModel:f.model,isEmtry:M,onEnded:()=>{const D=m.activeIndex+1;D<d.itemList.length&&E(D)},onClose:()=>{clearTimeout(f.timer),f.timer=setTimeout(()=>{f.model=!1},4e3)}},null),H.type==="MUSIC"&&createVNode(MusicScore,{pageVisibility:e.value,show:m.activeIndex===L,activeModel:f.model,"data-vid":H.id,music:H},null),H.type==="VIDEO"&&createVNode(Transition,{name:"van-fade"},{default:()=>[!H.isprepare&&createVNode("div",{class:styles$5.loadWrap},[createVNode(Vue3Lottie,{style:{width:"100%",height:"100%"},animationData:playLoadData},null)])]})]):createVNode("div",{key:"index"+L,class:[styles$5.itemDiv,m.activeIndex===L&&styles$5.itemActive,f.isAnimation&&styles$5.acitveAnimation,Math.abs(m.activeIndex-L)<2?styles$5.show:styles$5.hide],style:L<m.activeIndex?x[A.value].prev:L>m.activeIndex?x[A.value].next:{}},null)})]),createVNode(Transition,{name:"right"},{default:()=>[f.model&&createVNode("div",{class:styles$5.rightFixedBtns,onClick:H=>{H.stopPropagation(),clearTimeout(f.timer)}},[createVNode("div",{class:[styles$5.fullBtn,styles$5.point],onClick:()=>m.chapterOpen=!0},[createVNode("img",{src:iconChange},null),createVNode("span",null,[createTextVNode("切换")])]),createVNode("div",{class:[styles$5.fullBtn,styles$5.point],onClick:()=>m.open=!0},[createVNode("img",{src:iconMenu},null),createVNode("span",null,[createTextVNode("课件")])]),createVNode("div",{class:[styles$5.fullBtn,!O.value&&styles$5.btnsDisabled],onClick:()=>k("up")},[createVNode("img",{src:iconUp},null),createVNode("span",{style:{textAlign:"center"}},[createTextVNode("上一个")])]),createVNode("div",{class:[styles$5.fullBtn,!G.value&&styles$5.btnsDisabled],onClick:()=>k("down")},[createVNode("span",{style:{textAlign:"center"}},[createTextVNode("下一个")]),createVNode("img",{src:iconDown},null)])])]})]),createVNode("div",{style:{transform:f.model?"":"translateY(-100%)"},class:styles$5.headerContainer,ref:u},[createVNode("div",{class:styles$5.backBtn,onClick:()=>g()},[createVNode(Icon,{name:iconBack},null),createTextVNode("返回")]),createVNode("div",{class:styles$5.menu},[m.itemName])]),createVNode(Popup,{class:styles$5.popup,style:{background:"rgba(0,0,0, 0.75)"},overlayClass:styles$5.overlayClass,position:"right",round:!0,show:m.open,"onUpdate:show":H=>m.open=H,onClose:I},{default:()=>[createVNode(Points,{data:d.knowledgePointList,itemActive:m.itemActive,itemName:m.itemPointName,onHandleSelect:H=>{m.open=!1,C(H.itemActive)}},null)]}),createVNode(Popup,{class:styles$5.popup,style:{background:"rgba(0,0,0, 0.75)"},overlayClass:styles$5.overlayClass,position:"right",round:!0,show:m.chapterOpen,"onUpdate:show":H=>m.chapterOpen=H,onClose:I},{default:()=>[createVNode(Chapter,{detail:d.courseDetails,itemActive:f.coursewareDetailKnowledgeId,active:f.lessonCoursewareDetailId,onHandleSelect:async H=>{p.value=!0,f.coursewareDetailKnowledgeId=H.itemActive,f.lessonCoursewareDetailId=H.tabActive,await _(),m.activeIndex=0,m.itemActive=d.knowledgePointList[0].id,m.itemName=d.knowledgePointList[0].name,m.itemPointName=H.itemName,m.chapterOpen=!1,p.value=!1}},null)]})])}});export{index as default};