>1,F=23===K?Math.pow(2,-24)-Math.pow(2,-77):0,U=C?0:t-1,i=C?1:-1,_=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(r=isNaN(o)?1:0,e=a):(e=Math.floor(Math.log(o)/Math.LN2),o*(B=Math.pow(2,-e))<1&&(e--,B*=2),(o+=e+n>=1?F/B:F*Math.pow(2,1-n))*B>=2&&(e++,B/=2),e+n>=a?(r=0,e=a):e+n>=1?(r=(o*B-1)*Math.pow(2,K),e+=n):(r=o*Math.pow(2,n-1)*Math.pow(2,K),e=0));K>=8;A[g+U]=255&r,U+=i,r/=256,K-=8);for(e=e<0;A[g+U]=255&e,U+=i,e/=256,Q-=8);A[g+U-i]|=128*_}},1248:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(A){_useWebWorker=!!A},getWebWorker=function(){return _useWebWorker},setLocationHref=function(A){locationHref=A},getLocationHref=function(){return locationHref};function createTag(A){return document.createElement(A)}function extendPrototype(A,o){var g,C,K=A.length;for(g=0;g 1?g[1]=1:g[1]<=0&&(g[1]=0),HSVtoRGB(g[0],g[1],g[2])}function addBrightnessToRGB(A,o){var g=RGBtoHSV(255*A[0],255*A[1],255*A[2]);return g[2]+=o,g[2]>1?g[2]=1:g[2]<0&&(g[2]=0),HSVtoRGB(g[0],g[1],g[2])}function addHueToRGB(A,o){var g=RGBtoHSV(255*A[0],255*A[1],255*A[2]);return g[0]+=o/360,g[0]>1?g[0]-=1:g[0]<0&&(g[0]+=1),HSVtoRGB(g[0],g[1],g[2])}var rgbToHex=function(){var A,o,g=[];for(A=0;A<256;A+=1)o=A.toString(16),g[A]=1===o.length?"0"+o:o;return function(A,o,C){return A<0&&(A=0),o<0&&(o=0),C<0&&(C=0),"#"+g[A]+g[o]+g[C]}}(),setSubframeEnabled=function(A){subframeEnabled=!!A},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(A){expressionsPlugin=A},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(A){expressionsInterfaces=A},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(A){defaultCurveSegments=A},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(A){idPrefix$1=A},getIdPrefix=function(){return idPrefix$1};function createNS(A){return document.createElementNS(svgNS,A)}function _typeof$5(A){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},_typeof$5(A)}var dataManager=function(){var A,o,g=1,C=[],K={onmessage:function(){},postMessage:function(o){A({data:o})}},t={postMessage:function(A){K.onmessage({data:A})}};function e(){o||(o=function(o){if(window.Worker&&window.Blob&&getWebWorker()){var g=new Blob(["var _workerSelf = self; self.onmessage = ",o.toString()],{type:"text/javascript"}),C=URL.createObjectURL(g);return new Worker(C)}return A=o,K}((function(A){if(t.dataManager||(t.dataManager=function(){function A(K,t){var e,r,B,Q,a,n,F,U=K.length;for(r=0;r=0;o-=1)if("sh"===A[o].ty)if(A[o].ks.k.i)C(A[o].ks.k);else for(t=A[o].ks.k.length,K=0;K g[0]||!(g[0]>A[0])&&(A[1]>g[1]||!(g[1]>A[1])&&(A[2]>g[2]||!(g[2]>A[2])&&null))}var t,e=function(){var A=[4,4,14];function o(A){var o,g,C,K=A.length;for(o=0;o =0;g-=1)if("sh"===A[g].ty)if(A[g].ks.k.i)A[g].ks.k.c=A[g].closed;else for(K=A[g].ks.k.length,C=0;C 500)&&(this._imageLoaded(),clearInterval(g)),o+=1}.bind(this),50)}function t(A){var o={assetData:A},g=C(A,this.assetsPath,this.path);return dataManager.loadData(g,function(A){o.img=A,this._footageLoaded()}.bind(this),function(){o.img={},this._footageLoaded()}.bind(this)),o}function e(){this._imageLoaded=o.bind(this),this._footageLoaded=g.bind(this),this.testImageLoaded=K.bind(this),this.createFootageData=t.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return e.prototype={loadAssets:function(A,o){var g;this.imagesLoadedCb=o;var C=A.length;for(g=0;g this.animationData.op&&(this.animationData.op=A.op,this.totalFrames=Math.floor(A.op-this.animationData.ip));var o,g,C=this.animationData.layers,K=C.length,t=A.layers,e=t.length;for(g=0;g this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(A){this.triggerRenderFrameError(A)}},AnimationItem.prototype.play=function(A){A&&this.name!==A||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(A){A&&this.name!==A||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(A){A&&this.name!==A||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(A){A&&this.name!==A||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(A){for(var o,g=0;g =this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?o>=this.totalFrames?(this.playCount+=1,this.checkSegments(o%this.totalFrames)||(this.setCurrentRawFrameValue(o%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(o):this.checkSegments(o>this.totalFrames?o%this.totalFrames:0)||(g=!0,o=this.totalFrames-1):o<0?this.checkSegments(o%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(g=!0,o=0):(this.setCurrentRawFrameValue(this.totalFrames+o%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(o),g&&(this.setCurrentRawFrameValue(o),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(A,o){this.playCount=0,A[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=A[0]-A[1],this.timeCompleted=this.totalFrames,this.firstFrame=A[1],this.setCurrentRawFrameValue(this.totalFrames-.001-o)):A[1]>A[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=A[1]-A[0],this.timeCompleted=this.totalFrames,this.firstFrame=A[0],this.setCurrentRawFrameValue(.001+o)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(A,o){var g=-1;this.isPaused&&(this.currentRawFrame+this.firstFrameo&&(g=o-A)),this.firstFrame=A,this.totalFrames=o-A,this.timeCompleted=this.totalFrames,-1!==g&&this.goToAndStop(g,!0)},AnimationItem.prototype.playSegments=function(A,o){if(o&&(this.segments.length=0),"object"===_typeof$4(A[0])){var g,C=A.length;for(g=0;g =0;g-=1)o[g].animation.destroy(A)},A.freeze=function(){e=!0},A.unfreeze=function(){e=!1,i()},A.setVolume=function(A,g){var K;for(K=0;K =.001?function(A,o,g,C){for(var K=0;K<4;++K){var t=B(o,g,C);if(0===t)return o;o-=(r(o,g,C)-A)/t}return o}(A,Q,o,C):0===a?Q:function(A,o,g,C,K){var t,e,B=0;do{(t=r(e=o+(g-o)/2,C,K)-A)>0?g=e:o=e}while(Math.abs(t)>1e-7&&++B<10);return e}(A,t,t+g,o,C)}},A}(),pooling={double:function(A){return A.concat(createSizedArray(A.length))}},poolFactory=function(A,o,g){var C=0,K=A,t=createSizedArray(K);return{newElement:function(){return C?t[C-=1]:o()},release:function(A){C===K&&(t=pooling.double(t),K*=2),g&&g(A),t[C]=A,C+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(A){var o,g=A.lengths.length;for(o=0;o -.001&&e<.001}var g=function(A,o,g,C){var K,t,e,r,B,Q,a=getDefaultCurveSegments(),n=0,F=[],U=[],i=bezierLengthPool.newElement();for(e=g.length,K=0;Ke?-1:1,Q=!0;Q;)if(C[t]<=e&&C[t+1]>e?(r=(e-C[t])/(C[t+1]-C[t]),Q=!1):t+=B,t<0||t>=K-1){if(t===K-1)return g[t];Q=!1}return g[t]+(g[t+1]-g[t])*r}var B=createTypedArray("float32",8);return{getSegmentsLength:function(A){var o,C=segmentsLengthPool.newElement(),K=A.c,t=A.v,e=A.o,r=A.i,B=A._length,Q=C.lengths,a=0;for(o=0;o 1&&(t=1);var a,n=r(t,Q),F=r(e=e>1?1:e,Q),U=o.length,i=1-n,_=1-F,s=i*i*i,l=n*i*i*3,c=n*n*i*3,E=n*n*n,u=i*i*_,d=n*i*_+i*n*_+i*i*F,f=n*n*_+i*n*F+n*i*F,I=n*n*F,p=i*_*_,h=n*_*_+i*F*_+i*_*F,m=n*F*_+i*F*F+n*_*F,S=n*F*F,N=_*_*_,v=F*_*_+_*F*_+_*_*F,y=F*F*_+_*F*F+F*_*F,b=F*F*F;for(a=0;aU?F>i?F-U-i:i-U-F:i>U?i-U-F:U-F-i)>-1e-4&&n<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var A=initialDefaultFrame,o=Math.abs;function g(A,o){var g,K=this.offsetTime;"multidimensional"===this.propType&&(g=createTypedArray("float32",this.pv.length));for(var t,e,r,B,Q,a,n,F,U,i=o.lastIndex,_=i,s=this.keyframes.length-1,l=!0;l;){if(t=this.keyframes[_],e=this.keyframes[_+1],_===s-1&&A>=e.t-K){t.h&&(t=e),i=0;break}if(e.t-K>A){i=_;break}_ =N||A =N?y.points.length-1:0;for(Q=y.points[b].point.length,B=0;B =R&&w=N)g[0]=c[0],g[1]=c[1],g[2]=c[2];else if(A<=v)g[0]=t.s[0],g[1]=t.s[1],g[2]=t.s[2];else{E=g,u=function(A,o,g){var C,K,t,e,r,B=[],Q=A[0],a=A[1],n=A[2],F=A[3],U=o[0],i=o[1],_=o[2],s=o[3];return(K=Q*U+a*i+n*_+F*s)<0&&(K=-K,U=-U,i=-i,_=-_,s=-s),1-K>1e-6?(C=Math.acos(K),t=Math.sin(C),e=Math.sin((1-g)*C)/t,r=Math.sin(g*C)/t):(e=1-g,r=g),B[0]=e*Q+r*U,B[1]=e*a+r*i,B[2]=e*n+r*_,B[3]=e*F+r*s,B}(C(t.s),C(c),(A-v)/(N-v)),d=u[0],f=u[1],I=u[2],p=u[3],h=Math.atan2(2*f*p-2*d*I,1-2*f*f-2*I*I),m=Math.asin(2*d*f+2*I*p),S=Math.atan2(2*d*p-2*f*I,1-2*d*d-2*I*I),E[0]=h/degToRads,E[1]=m/degToRads,E[2]=S/degToRads}else for(_=0;_ =N?a=1:A=C&&o>=C||this._caching.lastFrame =o&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var K=this.interpolateValue(o,this._caching);this.pv=K}return this._caching.lastFrame=o,this.pv}function t(A){var g;if("unidimensional"===this.propType)g=A*this.mult,o(this.v-g)>1e-5&&(this.v=g,this._mdf=!0);else for(var C=0,K=this.v.length;C 1e-5&&(this.v[C]=g,this._mdf=!0),C+=1}function e(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var A;this.lock=!0,this._mdf=this._isFirstFrame;var o=this.effectsSequence.length,g=this.kf?this.pv:this.data.k;for(A=0;A =this._maxLength&&this.doubleArrayLength(),g){case"v":t=this.v;break;case"i":t=this.i;break;case"o":t=this.o;break;default:t=[]}(!t[C]||t[C]&&!K)&&(t[C]=pointPool.newElement()),t[C][0]=A,t[C][1]=o},ShapePath.prototype.setTripleAt=function(A,o,g,C,K,t,e,r){this.setXYAt(A,o,"v",e,r),this.setXYAt(g,C,"o",e,r),this.setXYAt(K,t,"i",e,r)},ShapePath.prototype.reverse=function(){var A=new ShapePath;A.setPathData(this.c,this._length);var o=this.v,g=this.o,C=this.i,K=0;this.c&&(A.setTripleAt(o[0][0],o[0][1],C[0][0],C[0][1],g[0][0],g[0][1],0,!1),K=1);var t,e=this._length-1,r=this._length;for(t=K;t =U[U.length-1].t-this.offsetTime)C=U[U.length-1].s?U[U.length-1].s[0]:U[U.length-2].e[0],t=!0;else{for(var i,_,s,l=F,c=U.length-1,E=!0;E&&(i=U[l],!((_=U[l+1]).t-this.offsetTime>A));)l =_.t-this.offsetTime)a=1;else if(A C&&o>C)||(this._caching.lastIndex=K 0||A>-1e-6&&A<0?C(1e4*A)/1e4:A}function M(){var A=this.props;return"matrix("+b(A[0])+","+b(A[1])+","+b(A[4])+","+b(A[5])+","+b(A[12])+","+b(A[13])+")"}return function(){this.reset=K,this.rotate=t,this.rotateX=e,this.rotateY=r,this.rotateZ=B,this.skew=a,this.skewFromAxis=n,this.shear=Q,this.scale=F,this.setTransform=U,this.translate=i,this.transform=_,this.applyToPoint=u,this.applyToX=d,this.applyToY=f,this.applyToZ=I,this.applyToPointArray=N,this.applyToTriplePoints=S,this.applyToPointStringified=v,this.toCSS=y,this.to2dCSS=M,this.clone=c,this.cloneFromProps=E,this.equals=l,this.inversePoints=m,this.inversePoint=h,this.getInverseMatrix=p,this._t=this.transform,this.isIdentity=s,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(A){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},_typeof$3(A)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(A){setLocationHref(A)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(A){setSubframeEnabled(A)}function setPrefix(A){setIdPrefix(A)}function loadAnimation(A){return!0===standalone&&(A.animationData=JSON.parse(animationData)),animationManager.loadAnimation(A)}function setQuality(A){if("string"==typeof A)switch(A){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(A)&&A>1&&setDefaultCurveSegments(A);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(A,o){"expressions"===A&&setExpressionsPlugin(o)}function getFactory(A){switch(A){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(A){for(var o=queryString.split("&"),g=0;g =1?t.push({s:A-1,e:o-1}):(t.push({s:A,e:1}),t.push({s:0,e:o-1}));var e,r,B=[],Q=t.length;for(e=0;e C+g||(a=r.s*K<=C?0:(r.s*K-C)/g,n=r.e*K>=C+g?1:(r.e*K-C)/g,B.push([a,n]))}return B.length||B.push([0,0]),B},TrimModifier.prototype.releasePathsData=function(A){var o,g=A.length;for(o=0;o1?1+t:this.s.v<0?0+t:this.s.v+t)>(g=this.e.v>1?1+t:this.e.v<0?0+t:this.e.v+t)){var e=o;o=g,g=e}o=1e-4*Math.round(1e4*o),g=1e-4*Math.round(1e4*g),this.sValue=o,this.eValue=g}else o=this.sValue,g=this.eValue;var r,B,Q,a,n,F=this.shapes.length,U=0;if(g===o)for(K=0;K =0;K-=1)if((i=this.shapes[K]).shape._mdf){for((_=i.localShapeCollection).releaseShapes(),2===this.m&&F>1?(l=this.calculateShapeEdges(o,g,i.totalShapeLength,u,U),u+=i.totalShapeLength):l=[[c,E]],B=l.length,r=0;r=1?s.push({s:i.totalShapeLength*(c-1),e:i.totalShapeLength*(E-1)}):(s.push({s:i.totalShapeLength*c,e:i.totalShapeLength}),s.push({s:0,e:i.totalShapeLength*(E-1)}));var d=this.addShapes(i,s[0]);if(s[0].s!==s[0].e){if(s.length>1)if(i.shape.paths.shapes[i.shape.paths._length-1].c){var f=d.pop();this.addPaths(d,_),d=this.addShapes(i,s[1],f)}else this.addPaths(d,_),d=this.addShapes(i,s[1]);this.addPaths(d,_)}}i.shape.paths=_}}},TrimModifier.prototype.addPaths=function(A,o){var g,C=A.length;for(g=0;g o.e){g.c=!1;break}o.s<=i&&o.e>=i+e.addedLength?(this.addSegment(F[C].v[K-1],F[C].o[K-1],F[C].i[K],F[C].v[K],g,r,s),s=!1):(Q=bez.getNewSegment(F[C].v[K-1],F[C].v[K],F[C].o[K-1],F[C].i[K],(o.s-i)/e.addedLength,(o.e-i)/e.addedLength,B[K-1]),this.addSegmentFromArray(Q,g,r,s),s=!1,g.c=!1),i+=e.addedLength,r+=1}if(F[C].c&&B.length){if(e=B[K-1],i<=o.e){var l=B[K-1].addedLength;o.s<=i&&o.e>=i+l?(this.addSegment(F[C].v[K-1],F[C].o[K-1],F[C].i[0],F[C].v[0],g,r,s),s=!1):(Q=bez.getNewSegment(F[C].v[K-1],F[C].v[0],F[C].o[K-1],F[C].i[0],(o.s-i)/l,(o.e-i)/l,B[K-1]),this.addSegmentFromArray(Q,g,r,s),s=!1,g.c=!1)}else g.c=!1;i+=e.addedLength,r+=1}if(g._length&&(g.setXYAt(g.v[a][0],g.v[a][1],"i",a),g.setXYAt(g.v[g._length-1][0],g.v[g._length-1][1],"o",g._length-1)),i>o.e)break;C =this.p.keyframes[this.p.keyframes.length-1].t?(C=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/g,0),K=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/g,0)):(C=this.p.pv,K=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/g,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){C=[],K=[];var t=this.px,e=this.py;t._caching.lastFrame+t.offsetTime<=t.keyframes[0].t?(C[0]=t.getValueAtTime((t.keyframes[0].t+.01)/g,0),C[1]=e.getValueAtTime((e.keyframes[0].t+.01)/g,0),K[0]=t.getValueAtTime(t.keyframes[0].t/g,0),K[1]=e.getValueAtTime(e.keyframes[0].t/g,0)):t._caching.lastFrame+t.offsetTime>=t.keyframes[t.keyframes.length-1].t?(C[0]=t.getValueAtTime(t.keyframes[t.keyframes.length-1].t/g,0),C[1]=e.getValueAtTime(e.keyframes[e.keyframes.length-1].t/g,0),K[0]=t.getValueAtTime((t.keyframes[t.keyframes.length-1].t-.01)/g,0),K[1]=e.getValueAtTime((e.keyframes[e.keyframes.length-1].t-.01)/g,0)):(C=[t.pv,e.pv],K[0]=t.getValueAtTime((t._caching.lastFrame+t.offsetTime-.01)/g,t.offsetTime),K[1]=e.getValueAtTime((e._caching.lastFrame+e.offsetTime-.01)/g,e.offsetTime))}else C=K=A;this.v.rotate(-Math.atan2(C[1]-K[1],C[0]-K[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}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}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)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],o),o.prototype.addDynamicProperty=function(A){this._addDynamicProperty(A),this.elem.addDynamicProperty(A),this._isDirty=!0},o.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(A,g,C){return new o(A,g,C)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(A,o){return 1e5*Math.abs(A-o)<=Math.min(Math.abs(A),Math.abs(o))}function floatZero(A){return Math.abs(A)<=1e-5}function lerp(A,o,g){return A*(1-g)+o*g}function lerpPoint(A,o,g){return[lerp(A[0],o[0],g),lerp(A[1],o[1],g)]}function quadRoots(A,o,g){if(0===A)return[];var C=o*o-4*A*g;if(C<0)return[];var K=-o/(2*A);if(0===C)return[K];var t=Math.sqrt(C)/(2*A);return[K-t,K+t]}function polynomialCoefficients(A,o,g,C){return[3*o-A-3*g+C,3*A-6*o+3*g,-3*A+3*o,A]}function singlePoint(A){return new PolynomialBezier(A,A,A,A,!1)}function PolynomialBezier(A,o,g,C,K){K&&pointEqual(A,o)&&(o=lerpPoint(A,C,1/3)),K&&pointEqual(g,C)&&(g=lerpPoint(A,C,2/3));var t=polynomialCoefficients(A[0],o[0],g[0],C[0]),e=polynomialCoefficients(A[1],o[1],g[1],C[1]);this.a=[t[0],e[0]],this.b=[t[1],e[1]],this.c=[t[2],e[2]],this.d=[t[3],e[3]],this.points=[A,o,g,C]}function extrema(A,o){var g=A.points[0][o],C=A.points[A.points.length-1][o];if(g>C){var K=C;C=g,g=K}for(var t=quadRoots(3*A.a[o],2*A.b[o],A.c[o]),e=0;e 0&&t[e]<1){var r=A.point(t[e])[o];r C&&(C=r)}return{min:g,max:C}}function intersectData(A,o,g){var C=A.boundingBox();return{cx:C.cx,cy:C.cy,width:C.width,height:C.height,bez:A,t:(o+g)/2,t1:o,t2:g}}function splitData(A){var o=A.bez.split(.5);return[intersectData(o[0],A.t1,A.t),intersectData(o[1],A.t,A.t2)]}function boxIntersect(A,o){return 2*Math.abs(A.cx-o.cx) =t||A.width<=C&&A.height<=C&&o.width<=C&&o.height<=C)K.push([A.t,o.t]);else{var e=splitData(A),r=splitData(o);intersectsImpl(e[0],r[0],g+1,C,K,t),intersectsImpl(e[0],r[1],g+1,C,K,t),intersectsImpl(e[1],r[0],g+1,C,K,t),intersectsImpl(e[1],r[1],g+1,C,K,t)}}function crossProduct(A,o){return[A[1]*o[2]-A[2]*o[1],A[2]*o[0]-A[0]*o[2],A[0]*o[1]-A[1]*o[0]]}function lineIntersection(A,o,g,C){var K=[A[0],A[1],1],t=[o[0],o[1],1],e=[g[0],g[1],1],r=[C[0],C[1],1],B=crossProduct(crossProduct(K,t),crossProduct(e,r));return floatZero(B[2])?null:[B[0]/B[2],B[1]/B[2]]}function polarOffset(A,o,g){return[A[0]+Math.cos(o)*g,A[1]-Math.sin(o)*g]}function pointDistance(A,o){return Math.hypot(A[0]-o[0],A[1]-o[1])}function pointEqual(A,o){return floatEqual(A[0],o[0])&&floatEqual(A[1],o[1])}function ZigZagModifier(){}function setPoint(A,o,g,C,K,t,e){var r=g-Math.PI/2,B=g+Math.PI/2,Q=o[0]+Math.cos(g)*C*K,a=o[1]-Math.sin(g)*C*K;A.setTripleAt(Q,a,Q+Math.cos(r)*t,a-Math.sin(r)*t,Q+Math.cos(B)*e,a-Math.sin(B)*e,A.length())}function getPerpendicularVector(A,o){var g=[o[0]-A[0],o[1]-A[1]],C=.5*-Math.PI;return[Math.cos(C)*g[0]-Math.sin(C)*g[1],Math.sin(C)*g[0]+Math.cos(C)*g[1]]}function getProjectingAngle(A,o){var g=0===o?A.length()-1:o-1,C=(o+1)%A.length(),K=getPerpendicularVector(A.v[g],A.v[C]);return Math.atan2(0,1)-Math.atan2(K[1],K[0])}function zigZagCorner(A,o,g,C,K,t,e){var r=getProjectingAngle(o,g),B=o.v[g%o._length],Q=o.v[0===g?o._length-1:g-1],a=o.v[(g+1)%o._length],n=2===t?Math.sqrt(Math.pow(B[0]-Q[0],2)+Math.pow(B[1]-Q[1],2)):0,F=2===t?Math.sqrt(Math.pow(B[0]-a[0],2)+Math.pow(B[1]-a[1],2)):0;setPoint(A,o.v[g%o._length],r,e,C,F/(2*(K+1)),n/(2*(K+1)),t)}function zigZagSegment(A,o,g,C,K,t){for(var e=0;e 1&&o.length>1&&(K=getIntersection(A[0],o[o.length-1]))?[[A[0].split(K[0])[0]],[o[o.length-1].split(K[1])[1]]]:[g,C]}function pruneIntersections(A){for(var o,g=1;g 1&&(o=pruneSegmentIntersection(A[A.length-1],A[0]),A[A.length-1]=o[0],A[0]=o[1]),A}function offsetSegmentSplit(A,o){var g,C,K,t,e=A.inflectionPoints();if(0===e.length)return[offsetSegment(A,o)];if(1===e.length||floatEqual(e[1],1))return g=(K=A.split(e[0]))[0],C=K[1],[offsetSegment(g,o),offsetSegment(C,o)];g=(K=A.split(e[0]))[0];var r=(e[1]-e[0])/(1-e[0]);return t=(K=K[1].split(r))[0],C=K[1],[offsetSegment(g,o),offsetSegment(t,o),offsetSegment(C,o)]}function OffsetPathModifier(){}function getFontProperties(A){for(var o=A.fStyle?A.fStyle.split(" "):[],g="normal",C="normal",K=o.length,t=0;t 0;)g-=1,this._elements.unshift(o[g]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(A){var o,g=A.length;for(o=0;o 0?Math.floor(F):Math.ceil(F),_=this.pMatrix.props,s=this.rMatrix.props,l=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var c,E,u=0;if(F>0){for(;ui;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),u-=1;U&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-U,!0),u-=U)}for(C=1===this.data.m?0:this._currentCopies-1,K=1===this.data.m?1:-1,t=this._currentCopies;t;){if(E=(g=(o=this.elemsData[C].it)[o.length-1].transform.mProps.v.props).length,o[o.length-1].transform.mProps._mdf=!0,o[o.length-1].transform.op._mdf=!0,o[o.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(C/(this._currentCopies-1)),0!==u){for((0!==C&&1===K||C!==this._currentCopies-1&&-1===K)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),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(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15]),this.matrix.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),c=0;c 0&&C<1?[o]:[]:[o-C,o+C].filter((function(A){return A>0&&A<1}))},PolynomialBezier.prototype.split=function(A){if(A<=0)return[singlePoint(this.points[0]),this];if(A>=1)return[this,singlePoint(this.points[this.points.length-1])];var o=lerpPoint(this.points[0],this.points[1],A),g=lerpPoint(this.points[1],this.points[2],A),C=lerpPoint(this.points[2],this.points[3],A),K=lerpPoint(o,g,A),t=lerpPoint(g,C,A),e=lerpPoint(K,t,A);return[new PolynomialBezier(this.points[0],o,K,e,!0),new PolynomialBezier(e,t,C,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var A=this.bounds();return{left:A.x.min,right:A.x.max,top:A.y.min,bottom:A.y.max,width:A.x.max-A.x.min,height:A.y.max-A.y.min,cx:(A.x.max+A.x.min)/2,cy:(A.y.max+A.y.min)/2}},PolynomialBezier.prototype.intersections=function(A,o,g){void 0===o&&(o=2),void 0===g&&(g=7);var C=[];return intersectsImpl(intersectData(this,0,1),intersectData(A,0,1),0,o,C,g),C},PolynomialBezier.shapeSegment=function(A,o){var g=(o+1)%A.length();return new PolynomialBezier(A.v[o],A.o[o],A.i[g],A.v[g],!0)},PolynomialBezier.shapeSegmentInverted=function(A,o){var g=(o+1)%A.length();return new PolynomialBezier(A.v[g],A.i[g],A.o[o],A.v[o],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(A,o){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(A,o.s,0,null,this),this.frequency=PropertyFactory.getProp(A,o.r,0,null,this),this.pointsType=PropertyFactory.getProp(A,o.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(A,o,g,C){var K=A._length,t=shapePool.newElement();if(t.c=A.c,A.c||(K-=1),0===K)return t;var e=-1,r=PolynomialBezier.shapeSegment(A,0);zigZagCorner(t,A,0,o,g,C,e);for(var B=0;B =0;t-=1)r=PolynomialBezier.shapeSegmentInverted(A,t),Q.push(offsetSegmentSplit(r,o));Q=pruneIntersections(Q);var a=null,n=null;for(t=0;t 0&&(a=!1),a){var n=createTag("style");n.setAttribute("f-forigin",C[g].fOrigin),n.setAttribute("f-origin",C[g].origin),n.setAttribute("f-family",C[g].fFamily),n.type="text/css",n.innerText="@font-face {font-family: "+C[g].fFamily+"; font-style: normal; src: url('"+C[g].fPath+"');}",o.appendChild(n)}}else if("g"===C[g].fOrigin||1===C[g].origin){for(B=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Q=0;Q A?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var A,o=this.renderableComponents.length;for(A=0;A 0&&(this.maskElement.setAttribute("id",s),this.element.maskedElement.setAttribute(c,"url("+getLocationHref()+"#"+s+")"),t.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(A,o){var g;this.data=A,this.effectElements=[],this.initDynamicPropertyContainer(o);var C,K=this.data.ef.length,t=this.data.ef;for(g=0;g .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(A){this.audio.rate(A)},AudioElement.prototype.volume=function(A){this._volumeMultiplier=A,this._previousVolume=A*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(){},BaseRenderer.prototype.checkLayers=function(A){var o,g,C=this.layers.length;for(this.completeLayers=!0,o=C-1;o>=0;o-=1)this.elements[o]||(g=this.layers[o]).ip-g.st<=A-this.layers[o].st&&g.op-g.st>A-this.layers[o].st&&this.buildItem(o),this.completeLayers=!!this.elements[o]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(A){switch(A.ty){case 2:return this.createImage(A);case 0:return this.createComp(A);case 1:return this.createSolid(A);case 3:default:return this.createNull(A);case 4:return this.createShape(A);case 5:return this.createText(A);case 6:return this.createAudio(A);case 13:return this.createCamera(A);case 15:return this.createFootage(A)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(A){return new AudioElement(A,this.globalData,this)},BaseRenderer.prototype.createFootage=function(A){return new FootageElement(A,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var A,o=this.layers.length;for(A=0;A 1&&(t+=" C"+o.o[C-1][0]+","+o.o[C-1][1]+" "+o.i[0][0]+","+o.i[0][1]+" "+o.v[0][0]+","+o.v[0][1]),g.lastPath!==t){var e="";g.elem&&(o.c&&(e=A.inv?this.solidPath+t:t),g.elem.setAttribute("d",e)),g.lastPath=t}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory={createFilter:function(A,o){var g=createNS("filter");return g.setAttribute("id",A),!0!==o&&(g.setAttribute("filterUnits","objectBoundingBox"),g.setAttribute("x","0%"),g.setAttribute("y","0%"),g.setAttribute("width","100%"),g.setAttribute("height","100%")),g},createAlphaToLuminanceFilter:function(){var A=createNS("feColorMatrix");return A.setAttribute("type","matrix"),A.setAttribute("color-interpolation-filters","sRGB"),A.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),A}},featureSupport=function(){var A={maskType:!0};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))&&(A.maskType=!1),A}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(A){var o,g,C="SourceGraphic",K=A.data.ef?A.data.ef.length:0,t=createElementID(),e=filtersFactory.createFilter(t,!0),r=0;for(this.filters=[],o=0;o =0&&!this.shapeModifiers[A].processShapes(this._isFirstFrame);A-=1);}},searchProcessedElement:function(A){for(var o=this.processedElements,g=0,C=o.length;g .01)return!1;g+=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 A=0,o=this.data.k.k.length;A 0;)B=C.transformers[_].mProps._mdf||B,i-=1,_-=1;if(B)for(i=l-C.styles[a].lvl,_=C.transformers.length-1;i>0;)U=C.transformers[_].mProps.v.props,F.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),i-=1,_-=1}else F=A;if(e=(n=C.sh.paths)._length,B){for(r="",t=0;t =1?c=.99:c<=-1&&(c=-.99);var E=r*c,u=Math.cos(l+o.a.v)*E+a[0],d=Math.sin(l+o.a.v)*E+a[1];B.setAttribute("fx",u),B.setAttribute("fy",d),Q&&!o.g._collapsable&&(o.of.setAttribute("fx",u),o.of.setAttribute("fy",d))}}function B(A,o,g){var C=o.style,K=o.d;K&&(K._mdf||g)&&K.dashStr&&(C.pElem.setAttribute("stroke-dasharray",K.dashStr),C.pElem.setAttribute("stroke-dashoffset",K.dashoffset[0])),o.c&&(o.c._mdf||g)&&C.pElem.setAttribute("stroke","rgb("+bmFloor(o.c.v[0])+","+bmFloor(o.c.v[1])+","+bmFloor(o.c.v[2])+")"),(o.o._mdf||g)&&C.pElem.setAttribute("stroke-opacity",o.o.v),(o.w._mdf||g)&&(C.pElem.setAttribute("stroke-width",o.w.v),C.msElem&&C.msElem.setAttribute("stroke-width",o.w.v))}return{createRenderFunction:function(A){switch(A.ty){case"fl":return t;case"gf":return r;case"gs":return e;case"st":return B;case"sh":case"el":case"rc":case"sr":return K;case"tr":return g;case"no":return C;default:return null}}}}();function SVGShapeElement(A,o,g){this.shapes=[],this.shapesData=A.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(A,o,g),this.prevViewData=[]}function LetterProps(A,o,g,C,K,t){this.o=A,this.sw=o,this.sc=g,this.fc=C,this.m=K,this.p=t,this._mdf={o:!0,sw:!!o,sc:!!g,fc:!!C,m:!0,p:!0}}function TextProperty(A,o){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=o,this.elem=A,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)}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 A,o,g,C,K=this.shapes.length,t=this.stylesList.length,e=[],r=!1;for(g=0;g 1&&r&&this.setShapesAsAnimated(e)}},SVGShapeElement.prototype.setShapesAsAnimated=function(A){var o,g=A.length;for(o=0;o =0;r-=1){if((F=this.searchProcessedElement(A[r]))?o[r]=g[F-1]:A[r]._render=e,"fl"===A[r].ty||"st"===A[r].ty||"gf"===A[r].ty||"gs"===A[r].ty||"no"===A[r].ty)F?o[r].style.closed=!1:o[r]=this.createStyleElement(A[r],K),A[r]._render&&o[r].style.pElem.parentNode!==C&&C.appendChild(o[r].style.pElem),_.push(o[r].style);else if("gr"===A[r].ty){if(F)for(Q=o[r].it.length,B=0;B 1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(A){this.effectsSequence.push(A),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(A){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||A){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var o=this.currentData,g=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var C;this.lock=!0,this._mdf=!1;var K=this.effectsSequence.length,t=A||this.data.d.k[this.keysIndex].s;for(C=0;Co);)g+=1;return this.keysIndex!==g&&(this.keysIndex=g),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(A){for(var o,g,C=[],K=0,t=A.length,e=!1;K =55296&&o<=56319?(g=A.charCodeAt(K+1))>=56320&&g<=57343?(e||FontManager.isModifier(o,g)?(C[C.length-1]+=A.substr(K,2),e=!1):C.push(A.substr(K,2)),K+=1):C.push(A.charAt(K)):o>56319?(g=A.charCodeAt(K+1),FontManager.isZeroWidthJoiner(o,g)?(e=!0,C[C.length-1]+=A.substr(K,2),K+=1):C.push(A.charAt(K))):FontManager.isZeroWidthJoiner(o)?(C[C.length-1]+=A.charAt(K),e=!0):C.push(A.charAt(K)),K+=1;return C},TextProperty.prototype.completeTextData=function(A){A.__complete=!0;var o,g,C,K,t,e,r,B=this.elem.globalData.fontManager,Q=this.data,a=[],n=0,F=Q.m.g,U=0,i=0,_=0,s=[],l=0,c=0,E=B.getFontByName(A.f),u=0,d=getFontProperties(E);A.fWeight=d.weight,A.fStyle=d.style,A.finalSize=A.s,A.finalText=this.buildFinalText(A.t),g=A.finalText.length,A.finalLineHeight=A.lh;var f,I=A.tr/1e3*A.finalSize;if(A.sz)for(var p,h,m=!0,S=A.sz[0],N=A.sz[1];m;){p=0,l=0,g=(h=this.buildFinalText(A.t)).length,I=A.tr/1e3*A.finalSize;var v=-1;for(o=0;o S&&" "!==h[o]?(-1===v?g+=1:o=v,p+=A.finalLineHeight||1.2*A.finalSize,h.splice(o,v===o?1:0,"\r"),v=-1,l=0):(l+=u,l+=I);p+=E.ascent*A.finalSize/100,this.canResize&&A.finalSize>this.minimumFontSize&&N c?l:c,l=-2*I,K="",C=!0,_+=1):K=y,B.chars?(r=B.getCharData(y,E.fStyle,B.getFontByName(A.f).fFamily),u=C?0:r.w*A.finalSize/100):u=B.measureText(K,A.f,A.finalSize)," "===y?b+=u+I:(l+=u+I+b,b=0),a.push({l:u,an:u,add:U,n:C,anIndexes:[],val:K,line:_,animatorJustifyOffset:0}),2==F){if(U+=u,""===K||" "===K||o===g-1){for(""!==K&&" "!==K||(U-=u);i<=o;)a[i].an=U,a[i].ind=n,a[i].extra=u,i+=1;n+=1,U=0}}else if(3==F){if(U+=u,""===K||o===g-1){for(""===K&&(U-=u);i<=o;)a[i].an=U,a[i].ind=n,a[i].extra=u,i+=1;U=0,n+=1}}else a[n].ind=n,a[n].extra=0,n+=1;if(A.l=a,c=l>c?l:c,s.push(l),A.sz)A.boxWidth=A.sz[0],A.justifyOffset=0;else switch(A.boxWidth=c,A.j){case 1:A.justifyOffset=-A.boxWidth;break;case 2:A.justifyOffset=-A.boxWidth/2;break;default:A.justifyOffset=0}A.lineWidths=s;var M,w,R,D,X=Q.a;e=X.length;var T=[];for(t=0;t
0?K=this.ne.v/100:t=-this.ne.v/100,this.xe.v>0?e=1-this.xe.v/100:r=1+this.xe.v/100;var B=BezierFactory.getBezierEasing(K,t,e,r).get,Q=0,a=this.finalS,n=this.finalE,F=this.data.sh;if(2===F)Q=B(Q=n===a?C>=n?1:0:A(0,o(.5/(n-a)+(C-a)/(n-a),1)));else if(3===F)Q=B(Q=n===a?C>=n?0:1:1-A(0,o(.5/(n-a)+(C-a)/(n-a),1)));else if(4===F)n===a?Q=0:(Q=A(0,o(.5/(n-a)+(C-a)/(n-a),1)))<.5?Q*=2:Q=1-2*(Q-.5),Q=B(Q);else if(5===F){if(n===a)Q=0;else{var U=n-a,i=-U/2+(C=o(A(0,C+.5-a),n-a)),_=U/2;Q=Math.sqrt(1-i*i/(_*_))}Q=B(Q)}else 6===F?(n===a?Q=0:(C=o(A(0,C+.5-a),n-a),Q=(1+Math.cos(Math.PI+2*Math.PI*C/(n-a)))/2),Q=B(Q)):(C>=g(a)&&(Q=A(0,o(C-a<0?o(n,1)-(a-C):n-C,1))),Q=B(Q));if(100!==this.sm.v){var s=.01*this.sm.v;0===s&&(s=1e-8);var l=.5-.5*s;Q 1&&(Q=1)}return Q*this.a.v},getValue:function(A){this.iterateDynamicProperties(),this._mdf=A||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,A&&2===this.data.r&&(this.e.v=this._currentTextLength);var o=2===this.data.r?1:100/this.data.totalChars,g=this.o.v/o,C=this.s.v/o+g,K=this.e.v/o+g;if(C>K){var t=C;C=K,K=t}this.finalS=C,this.finalE=K}},extendPrototype([DynamicPropertyContainer],C),{getTextSelectorProp:function(A,o,g){return new C(A,o,g)}}}();function TextAnimatorDataProperty(A,o,g){var C={propType:!1},K=PropertyFactory.getProp,t=o.a;this.a={r:t.r?K(A,t.r,0,degToRads,g):C,rx:t.rx?K(A,t.rx,0,degToRads,g):C,ry:t.ry?K(A,t.ry,0,degToRads,g):C,sk:t.sk?K(A,t.sk,0,degToRads,g):C,sa:t.sa?K(A,t.sa,0,degToRads,g):C,s:t.s?K(A,t.s,1,.01,g):C,a:t.a?K(A,t.a,1,0,g):C,o:t.o?K(A,t.o,0,.01,g):C,p:t.p?K(A,t.p,1,0,g):C,sw:t.sw?K(A,t.sw,0,0,g):C,sc:t.sc?K(A,t.sc,1,0,g):C,fc:t.fc?K(A,t.fc,1,0,g):C,fh:t.fh?K(A,t.fh,0,0,g):C,fs:t.fs?K(A,t.fs,0,.01,g):C,fb:t.fb?K(A,t.fb,0,.01,g):C,t:t.t?K(A,t.t,0,0,g):C},this.s=TextSelectorProp.getTextSelectorProp(A,o.s,g),this.s.t=o.s.t}function TextAnimatorProperty(A,o,g){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=A,this._renderType=o,this._elem=g,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(g)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var A,o,g=this._textData.a.length,C=PropertyFactory.getProp;for(A=0;A =r+rA||!i?(c=(r+rA-Q)/B.partialLength,Z=U.point[0]+(B.point[0]-U.point[0])*c,x=U.point[1]+(B.point[1]-U.point[1])*c,p.translate(-d[0]*S[K].an*.005,-d[1]*D*.01),a=!1):i&&(Q+=B.partialLength,(n+=1)>=i.length&&(n=0,_[F+=1]?i=_[F].points:u.v.c?(n=0,i=_[F=0].points):(Q-=B.partialLength,i=null)),i&&(U=B,s=(B=i[n]).partialLength));T=S[K].an/2-S[K].add,p.translate(-T,0,0)}else T=S[K].an/2-S[K].add,p.translate(-T,0,0),p.translate(-d[0]*S[K].an*.005,-d[1]*D*.01,0);for(b=0;b A?this.textSpans[A].span:createNS(B?"g":"text"),s<=A){if(e.setAttribute("stroke-linecap","butt"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("stroke-miterlimit","4"),this.textSpans[A].span=e,B){var l=createNS("g");e.appendChild(l),this.textSpans[A].childSpan=l}this.textSpans[A].span=e,this.layerElement.appendChild(e)}e.style.display="inherit"}if(Q.reset(),a&&(r[A].n&&(n=-i,F+=g.yOffset,F+=U?1:0,U=!1),this.applyTextPropertiesToMatrix(g,Q,r[A].line,n,F),n+=r[A].l||0,n+=i),B){var c;if(1===(_=this.globalData.fontManager.getCharData(g.finalText[A],C.fStyle,this.globalData.fontManager.getFontByName(g.f).fFamily)).t)c=new SVGCompElement(_.data,this.globalData,this);else{var E=emptyShapeData;_.data&&_.data.shapes&&(E=this.buildShapeData(_.data,g.finalSize)),c=new SVGShapeElement(E,this.globalData,this)}if(this.textSpans[A].glyph){var u=this.textSpans[A].glyph;this.textSpans[A].childSpan.removeChild(u.layerElement),u.destroy()}this.textSpans[A].glyph=c,c._debug=!0,c.prepareFrame(0),c.renderFrame(),this.textSpans[A].childSpan.appendChild(c.layerElement),1===_.t&&this.textSpans[A].childSpan.setAttribute("transform","scale("+g.finalSize/100+","+g.finalSize/100+")")}else a&&e.setAttribute("transform","translate("+Q.props[12]+","+Q.props[13]+")"),e.textContent=r[A].val,e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}a&&e&&e.setAttribute("d","")}else{var d=this.textContainer,f="start";switch(g.j){case 1:f="end";break;case 2:f="middle";break;default:f="start"}d.setAttribute("text-anchor",f),d.setAttribute("letter-spacing",i);var I=this.buildTextContents(g.finalText);for(o=I.length,F=g.ps?g.ps[1]+g.ascent:0,A=0;A =0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].prepareFrame(A-this.layers[o].st);if(this.globalData._mdf)for(o=0;o =0;g-=1)(this.completeLayers||this.elements[g])&&(this.elements[g].prepareFrame(this.renderedFrame-this.layers[g].st),this.elements[g]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var A,o=this.layers.length;for(A=0;A =0;C-=1)g=A.transforms[C].transform.mProps.v.props,A.finalTransform.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]);A._mdf=t},processSequences:function(A){var o,g=this.sequenceList.length;for(o=0;o =0;t-=1){if((B=this.searchProcessedElement(A[t]))?o[t]=g[B-1]:A[t]._shouldRender=C,"fl"===A[t].ty||"st"===A[t].ty||"gf"===A[t].ty||"gs"===A[t].ty)B?o[t].style.closed=!1:o[t]=this.createStyleElement(A[t],i),F.push(o[t].style);else if("gr"===A[t].ty){if(B)for(r=o[t].it.length,e=0;e =0;K-=1)"tr"===o[K].ty?(t=g[K].transform,this.renderShapeTransform(A,t)):"sh"===o[K].ty||"el"===o[K].ty||"rc"===o[K].ty||"sr"===o[K].ty?this.renderPath(o[K],g[K]):"fl"===o[K].ty?this.renderFill(o[K],g[K],t):"st"===o[K].ty?this.renderStroke(o[K],g[K],t):"gf"===o[K].ty||"gs"===o[K].ty?this.renderGradientFill(o[K],g[K],t):"gr"===o[K].ty?this.renderShape(t,o[K].it,g[K].it):o[K].ty;C&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(A,o){if(this._isFirstFrame||o._mdf||A.transforms._mdf){var g,C,K,t=A.trNodes,e=o.paths,r=e._length;t.length=0;var B=A.transforms.finalTransform;for(K=0;K =1?n=.99:n<=-1&&(n=-.99);var F=Q*n,U=Math.cos(a+o.a.v)*F+r[0],i=Math.sin(a+o.a.v)*F+r[1];C=e.createRadialGradient(U,i,0,r[0],r[1],Q)}var _=A.g.p,s=o.g.c,l=1;for(t=0;t<_;t+=1)o.g._hasOpacity&&o.g._collapsable&&(l=o.g.o[2*t+1]),C.addColorStop(s[4*t]/100,"rgba("+s[4*t+1]+","+s[4*t+2]+","+s[4*t+3]+","+l+")");K.grd=C}K.coOp=o.o.v*g.opacity},CVShapeElement.prototype.renderStroke=function(A,o,g){var C=o.style,K=o.d;K&&(K._mdf||this._isFirstFrame)&&(C.da=K.dashArray,C.do=K.dashoffset[0]),(o.c._mdf||this._isFirstFrame)&&(C.co="rgb("+bmFloor(o.c.v[0])+","+bmFloor(o.c.v[1])+","+bmFloor(o.c.v[2])+")"),(o.o._mdf||g._opMdf||this._isFirstFrame)&&(C.coOp=o.o.v*g.opacity),(o.w._mdf||this._isFirstFrame)&&(C.wi=o.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var A=this.textProperty.currentData;this.renderedLetters=createSizedArray(A.l?A.l.length:0);var o=!1;A.fc?(o=!0,this.values.fill=this.buildColor(A.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=o;var g=!1;A.sc&&(g=!0,this.values.stroke=this.buildColor(A.sc),this.values.sWidth=A.sw);var C,K,t,e,r,B,Q,a,n,F,U,i,_=this.globalData.fontManager.getFontByName(A.f),s=A.l,l=this.mHelper;this.stroke=g,this.values.fValue=A.finalSize+"px "+this.globalData.fontManager.getFontByName(A.f).fFamily,K=A.finalText.length;var c=this.data.singleShape,E=.001*A.tr*A.finalSize,u=0,d=0,f=!0,I=0;for(C=0;C r&&"xMidYMid slice"===B||e K&&"meet"===r||t K&&"slice"===r)?(g-this.transformCanvas.w*(C/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===Q&&(t K&&"slice"===r)?(g-this.transformCanvas.w*(C/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===a&&(t>K&&"meet"===r||t K&&"meet"===r||t =0;A-=1)this.elements[A]&&this.elements[A].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(A,o){if((this.renderedFrame!==A||!0!==this.renderConfig.clearCanvas||o)&&!this.destroyed&&-1!==A){var g;this.renderedFrame=A,this.globalData.frameNum=A-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||o,this.globalData.projectInterface.currentFrame=A;var C=this.layers.length;for(this.completeLayers||this.checkLayers(A),g=0;g =0;g-=1)(this.completeLayers||this.elements[g])&&this.elements[g].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(A){var o=this.elements;if(!o[A]&&99!==this.layers[A].ty){var g=this.createItem(this.layers[A],this,this.globalData);o[A]=g,g.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var A,o=this.canvasContext;for(o.beginPath(),o.moveTo(0,0),o.lineTo(this.data.w,0),o.lineTo(this.data.w,this.data.h),o.lineTo(0,this.data.h),o.lineTo(0,0),o.clip(),A=this.layers.length-1;A>=0;A-=1)(this.completeLayers||this.elements[A])&&this.elements[A].renderFrame()},CVCompElement.prototype.destroy=function(){var A;for(A=this.layers.length-1;A>=0;A-=1)this.elements[A]&&this.elements[A].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(A){return new CVCompElement(A,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(A){return new CVCompElement(A,this.globalData,this)},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),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var A=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var o=this.finalTransform.mat.toCSS();A.transform=o,A.webkitTransform=o}this.finalTransform._opMdf&&(A.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,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var A;this.data.hasMask?((A=createNS("rect")).setAttribute("width",this.data.sw),A.setAttribute("height",this.data.sh),A.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((A=createTag("div")).style.width=this.data.sw+"px",A.style.height=this.data.sh+"px",A.style.backgroundColor=this.data.sc),this.layerElement.appendChild(A)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var A;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),A=this.svgElement;else{A=createNS("svg");var o=this.comp.data?this.comp.data:this.globalData.compSize;A.setAttribute("width",o.w),A.setAttribute("height",o.h),A.appendChild(this.shapesContainer),this.layerElement.appendChild(A)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=A},HShapeElement.prototype.getTransformedPoint=function(A,o){var g,C=A.length;for(g=0;g 0&&r<1&&n[F].push(this.calculateF(r,A,o,g,C,F)):(B=t*t-4*e*K)>=0&&((Q=(-t+bmSqrt(B))/(2*K))>0&&Q<1&&n[F].push(this.calculateF(Q,A,o,g,C,F)),(a=(-t-bmSqrt(B))/(2*K))>0&&a<1&&n[F].push(this.calculateF(a,A,o,g,C,F))));this.shapeBoundingBox.left=bmMin.apply(null,n[0]),this.shapeBoundingBox.top=bmMin.apply(null,n[1]),this.shapeBoundingBox.right=bmMax.apply(null,n[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,n[1])},HShapeElement.prototype.calculateF=function(A,o,g,C,K,t){return bmPow(1-A,3)*o[t]+3*bmPow(1-A,2)*A*g[t]+3*(1-A)*bmPow(A,2)*C[t]+bmPow(A,3)*K[t]},HShapeElement.prototype.calculateBoundingBox=function(A,o){var g,C=A.length;for(g=0;g g&&(g=K)}g*=A.mult}else g=A.v*A.mult;o.x-=g,o.xMax+=g,o.y-=g,o.yMax+=g},HShapeElement.prototype.currentBoxContains=function(A){return this.currentBBox.x<=A.x&&this.currentBBox.y<=A.y&&this.currentBBox.width+this.currentBBox.x>=A.x+A.width&&this.currentBBox.height+this.currentBBox.y>=A.y+A.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var A=this.tempBoundingBox,o=999999;if(A.x=o,A.xMax=-o,A.y=o,A.yMax=-o,this.calculateBoundingBox(this.itemsData,A),A.width=A.xMax =0;A-=1){var C=this.hierarchy[A].finalTransform.mProp;this.mat.translate(-C.p.v[0],-C.p.v[1],C.p.v[2]),this.mat.rotateX(-C.or.v[0]).rotateY(-C.or.v[1]).rotateZ(C.or.v[2]),this.mat.rotateX(-C.rx.v).rotateY(-C.ry.v).rotateZ(C.rz.v),this.mat.scale(1/C.s.v[0],1/C.s.v[1],1/C.s.v[2]),this.mat.translate(C.a.v[0],C.a.v[1],C.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 K;K=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var t=Math.sqrt(Math.pow(K[0],2)+Math.pow(K[1],2)+Math.pow(K[2],2)),e=[K[0]/t,K[1]/t,K[2]/t],r=Math.sqrt(e[2]*e[2]+e[0]*e[0]),B=Math.atan2(e[1],r),Q=Math.atan2(e[0],-e[2]);this.mat.rotateY(Q).rotateX(-B)}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 a=!this._prevMat.equals(this.mat);if((a||this.pe._mdf)&&this.comp.threeDElements){var n,F,U;for(o=this.comp.threeDElements.length,A=0;A =A)return this.threeDElements[o].perspectiveElem;o+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(A,o){var g,C,K=createTag("div");styleDiv(K);var t=createTag("div");if(styleDiv(t),"3d"===o){(g=K.style).width=this.globalData.compSize.w+"px",g.height=this.globalData.compSize.h+"px";var e="50% 50%";g.webkitTransformOrigin=e,g.mozTransformOrigin=e,g.transformOrigin=e;var r="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(C=t.style).transform=r,C.webkitTransform=r}K.appendChild(t);var B={container:t,perspectiveElem:K,startPos:A,endPos:A,type:o};return this.threeDElements.push(B),B},HybridRendererBase.prototype.build3dContainers=function(){var A,o,g=this.layers.length,C="";for(A=0;A =0;A-=1)this.resizerElem.appendChild(this.threeDElements[A].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(A,o){for(var g=0,C=this.threeDElements.length;g e?(A=K/this.globalData.compSize.w,o=K/this.globalData.compSize.w,g=0,C=(t-this.globalData.compSize.h*(K/this.globalData.compSize.w))/2):(A=t/this.globalData.compSize.h,o=t/this.globalData.compSize.h,g=(K-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,C=0);var r=this.resizerElem.style;r.webkitTransform="matrix3d("+A+",0,0,0,0,"+o+",0,0,0,0,1,0,"+g+","+C+",0,1)",r.transform=r.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 A,o=this.globalData.compSize.w,g=this.globalData.compSize.h,C=this.threeDElements.length;for(A=0;A =r;)A/=2,o/=2,g>>>=1;return(A+g)/o};return E.int32=function(){return 0|c.g(4)},E.quick=function(){return c.g(4)/4294967296},E.double=E,F(U(c.S),A),(i.pass||_||function(A,g,C,t){return t&&(t.S&&a(t,c),A.state=function(){return a(c,{})}),C?(o[K]=A,g):A})(E,l,"global"in i?i.global:this==o,i.state)},F(o.random(),A)}function initialize$2(A){seedRandom([],A)}var propTypes={SHAPE:"shape"};function _typeof(A){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},_typeof(A)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(A){return A.constructor===Array||A.constructor===Float32Array}function isNumerable(A,o){return"number"===A||"boolean"===A||"string"===A||o instanceof Number}function $bm_neg(A){var o=_typeof(A);if("number"===o||"boolean"===o||A instanceof Number)return-A;if($bm_isInstanceOfArray(A)){var g,C=A.length,K=[];for(g=0;g g){var C=g;g=o,o=C}return Math.min(Math.max(A,o),g)}function radiansToDegrees(A){return A/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(A){return A*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(A,o){if("number"==typeof A||A instanceof Number)return o=o||0,Math.abs(A-o);var g;o||(o=helperLengthArray);var C=Math.min(A.length,o.length),K=0;for(g=0;g .5?Q/(2-e-r):Q/(e+r),e){case C:o=(K-t)/Q+(K 1&&(g-=1),g<1/6?A+6*(o-A)*g:g<.5?o:g<2/3?A+(o-A)*(2/3-g)*6:A}function hslToRgb(A){var o,g,C,K=A[0],t=A[1],e=A[2];if(0===t)o=e,C=e,g=e;else{var r=e<.5?e*(1+t):e+t-e*t,B=2*e-r;o=hue2rgb(B,r,K+1/3),g=hue2rgb(B,r,K),C=hue2rgb(B,r,K-1/3)}return[o,g,C,A[3]]}function linear(A,o,g,C,K){if(void 0!==C&&void 0!==K||(C=o,K=g,o=0,g=1),g =g)return K;var e,r=g===o?0:(A-o)/(g-o);if(!C.length)return C+(K-C)*r;var B=C.length,Q=createTypedArray("float32",B);for(e=0;e1){for(C=0;C 1?o=1:o<0&&(o=0);var e=A(o);if($bm_isInstanceOfArray(K)){var r,B=K.length,Q=createTypedArray("float32",B);for(r=0;rdata.k[o].t&&A data.k[o+1].t-A?(g=o+2,C=data.k[o+1].t):(g=o+1,C=data.k[o].t);break}}-1===g&&(g=o+1,C=data.k[o].t)}else g=0,C=0;var t={};return t.index=g,t.time=C/elem.comp.globalData.frameRate,t}function key(A){var o,g,C;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+A);A-=1,o={time:data.k[A].t/elem.comp.globalData.frameRate,value:[]};var K=Object.prototype.hasOwnProperty.call(data.k[A],"s")?data.k[A].s:data.k[A-1].e;for(C=K.length,g=0;g Q.length-1)&&(o=Q.length-1),C=a-(K=Q[Q.length-1-o].t)),"pingpong"===A){if(Math.floor((B-K)/C)%2!=0)return this.getValueAtTime((C-(B-K)%C+K)/this.comp.globalData.frameRate,0)}else{if("offset"===A){var n=this.getValueAtTime(K/this.comp.globalData.frameRate,0),F=this.getValueAtTime(a/this.comp.globalData.frameRate,0),U=this.getValueAtTime(((B-K)%C+K)/this.comp.globalData.frameRate,0),i=Math.floor((B-K)/C);if(this.pv.length){for(e=(r=new Array(n.length)).length,t=0;t =a)return this.pv;if(g?K=a+(C=o?Math.abs(this.elem.comp.globalData.frameRate*o):Math.max(0,this.elem.data.op-a)):((!o||o>Q.length-1)&&(o=Q.length-1),C=(K=Q[o].t)-a),"pingpong"===A){if(Math.floor((a-B)/C)%2==0)return this.getValueAtTime(((a-B)%C+a)/this.comp.globalData.frameRate,0)}else{if("offset"===A){var n=this.getValueAtTime(a/this.comp.globalData.frameRate,0),F=this.getValueAtTime(K/this.comp.globalData.frameRate,0),U=this.getValueAtTime((C-(a-B)%C+a)/this.comp.globalData.frameRate,0),i=Math.floor((a-B)/C)+1;if(this.pv.length){for(e=(r=new Array(n.length)).length,t=0;t 1?(K+A-t)/(o-1):1,r=0,B=0;for(g=this.pv.length?createTypedArray("float32",this.pv.length):0;r e){var a=r,n=g.c&&r===B-1?0:r+1,F=(e-Q)/t[r].addedLength;C=bez.getPointInSegment(g.v[a],g.v[n],g.o[a],g.i[n],F,t[r]);break}Q+=t[r].addedLength,r+=1}return C||(C=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),C},vectorOnPath:function(A,o,g){1==A?A=this.v.c:0==A&&(A=.999);var C=this.pointOnPath(A,o),K=this.pointOnPath(A+.001,o),t=K[0]-C[0],e=K[1]-C[1],r=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));return 0===r?[0,0]:"tangent"===g?[t/r,e/r]:[-e/r,t/r]},tangentOnPath:function(A,o){return this.vectorOnPath(A,o,"tangent")},normalOnPath:function(A,o){return this.vectorOnPath(A,o,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([Q],r),extendPrototype([Q],B),B.prototype.getValueAtTime=function(A){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),A*=this.elem.globalData.frameRate,(A-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime=Q?U<0?C:K:C+F*Math.pow((t-A)/U,1/g),a[n]=e,n+=1,r+=256/255;return a.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){var o,g=this.filterManager.effectElements;this.feFuncRComposed&&(A||g[3].p._mdf||g[4].p._mdf||g[5].p._mdf||g[6].p._mdf||g[7].p._mdf)&&(o=this.getTableValue(g[3].p.v,g[4].p.v,g[5].p.v,g[6].p.v,g[7].p.v),this.feFuncRComposed.setAttribute("tableValues",o),this.feFuncGComposed.setAttribute("tableValues",o),this.feFuncBComposed.setAttribute("tableValues",o)),this.feFuncR&&(A||g[10].p._mdf||g[11].p._mdf||g[12].p._mdf||g[13].p._mdf||g[14].p._mdf)&&(o=this.getTableValue(g[10].p.v,g[11].p.v,g[12].p.v,g[13].p.v,g[14].p.v),this.feFuncR.setAttribute("tableValues",o)),this.feFuncG&&(A||g[17].p._mdf||g[18].p._mdf||g[19].p._mdf||g[20].p._mdf||g[21].p._mdf)&&(o=this.getTableValue(g[17].p.v,g[18].p.v,g[19].p.v,g[20].p.v,g[21].p.v),this.feFuncG.setAttribute("tableValues",o)),this.feFuncB&&(A||g[24].p._mdf||g[25].p._mdf||g[26].p._mdf||g[27].p._mdf||g[28].p._mdf)&&(o=this.getTableValue(g[24].p.v,g[25].p.v,g[26].p.v,g[27].p.v,g[28].p.v),this.feFuncB.setAttribute("tableValues",o)),this.feFuncA&&(A||g[31].p._mdf||g[32].p._mdf||g[33].p._mdf||g[34].p._mdf||g[35].p._mdf)&&(o=this.getTableValue(g[31].p.v,g[32].p.v,g[33].p.v,g[34].p.v,g[35].p.v),this.feFuncA.setAttribute("tableValues",o))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){if((A||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),A||this.filterManager.effectElements[0].p._mdf){var o=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*o[0]),Math.round(255*o[1]),Math.round(255*o[2])))}if((A||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),A||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var g=this.filterManager.effectElements[3].p.v,C=(this.filterManager.effectElements[2].p.v-90)*degToRads,K=g*Math.cos(C),t=g*Math.sin(C);this.feOffset.setAttribute("dx",K),this.feOffset.setAttribute("dy",t)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(A,o,g){this.initialized=!1,this.filterManager=o,this.filterElem=A,this.elem=g,g.matteElement=createNS("g"),g.matteElement.appendChild(g.layerElement),g.matteElement.appendChild(g.transformedElement),g.baseElement=g.matteElement}function SVGGaussianBlurEffect(A,o,g,C){A.setAttribute("x","-100%"),A.setAttribute("y","-100%"),A.setAttribute("width","300%"),A.setAttribute("height","300%"),this.filterManager=o;var K=createNS("feGaussianBlur");K.setAttribute("result",C),A.appendChild(K),this.feGaussianBlur=K}return SVGMatte3Effect.prototype.findSymbol=function(A){for(var o=0,g=_svgMatteSymbols.length;o {"use strict";var o=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;function K(A){if(null==A)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(A)}A.exports=function(){try{if(!Object.assign)return!1;var A=new String("abc");if(A[5]="de","5"===Object.getOwnPropertyNames(A)[0])return!1;for(var o={},g=0;g<10;g++)o["_"+String.fromCharCode(g)]=g;if("0123456789"!==Object.getOwnPropertyNames(o).map((function(A){return o[A]})).join(""))return!1;var C={};return"abcdefghijklmnopqrst".split("").forEach((function(A){C[A]=A})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},C)).join("")}catch(A){return!1}}()?Object.assign:function(A,t){for(var e,r,B=K(A),Q=1;Q {var o,g,C=A.exports={};function K(){throw new Error("setTimeout has not been defined")}function t(){throw new Error("clearTimeout has not been defined")}function e(A){if(o===setTimeout)return setTimeout(A,0);if((o===K||!o)&&setTimeout)return o=setTimeout,setTimeout(A,0);try{return o(A,0)}catch(g){try{return o.call(null,A,0)}catch(g){return o.call(this,A,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:K}catch(A){o=K}try{g="function"==typeof clearTimeout?clearTimeout:t}catch(A){g=t}}();var r,B=[],Q=!1,a=-1;function n(){Q&&r&&(Q=!1,r.length?B=r.concat(B):a=-1,B.length&&F())}function F(){if(!Q){var A=e(n);Q=!0;for(var o=B.length;o;){for(r=B,B=[];++a 1)for(var g=1;g {"use strict";var C=g(414);function K(){}function t(){}t.resetWarningCache=K,A.exports=function(){function A(A,o,g,K,t,e){if(e!==C){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}function o(){return A}A.isRequired=A;var g={array:A,bigint:A,bool:A,func:A,number:A,object:A,string:A,symbol:A,any:A,arrayOf:o,element:A,elementType:A,instanceOf:o,node:A,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:K};return g.PropTypes=g,g}},5697:(A,o,g)=>{A.exports=g(2703)()},414:A=>{"use strict";A.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3655:(A,o,g)=>{var C=g(2792);function K(A){this.mode=C.MODE_8BIT_BYTE,this.data=A}K.prototype={getLength:function(A){return this.data.length},write:function(A){for(var o=0;o {function o(){this.buffer=new Array,this.length=0}o.prototype={get:function(A){var o=Math.floor(A/8);return 1==(this.buffer[o]>>>7-A%8&1)},put:function(A,o){for(var g=0;g >>o-g-1&1))},getLengthInBits:function(){return this.length},putBit:function(A){var o=Math.floor(this.length/8);this.buffer.length<=o&&this.buffer.push(0),A&&(this.buffer[o]|=128>>>this.length%8),this.length++}},A.exports=o},9381:A=>{A.exports={L:1,M:0,Q:3,H:2}},2832:(A,o,g)=>{var C=g(1518);function K(A,o){if(null==A.length)throw new Error(A.length+"/"+o);for(var g=0;g {var C=g(3655),K=g(7611),t=g(7321),e=g(3160),r=g(2832);function B(A,o){this.typeNumber=A,this.errorCorrectLevel=o,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var Q=B.prototype;Q.addData=function(A){var o=new C(A);this.dataList.push(o),this.dataCache=null},Q.isDark=function(A,o){if(A<0||this.moduleCount<=A||o<0||this.moduleCount<=o)throw new Error(A+","+o);return this.modules[A][o]},Q.getModuleCount=function(){return this.moduleCount},Q.make=function(){if(this.typeNumber<1){var A=1;for(A=1;A<40;A++){for(var o=K.getRSBlocks(A,this.errorCorrectLevel),g=new t,C=0,r=0;r =7&&this.setupTypeNumber(A),null==this.dataCache&&(this.dataCache=B.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,o)},Q.setupPositionProbePattern=function(A,o){for(var g=-1;g<=7;g++)if(!(A+g<=-1||this.moduleCount<=A+g))for(var C=-1;C<=7;C++)o+C<=-1||this.moduleCount<=o+C||(this.modules[A+g][o+C]=0<=g&&g<=6&&(0==C||6==C)||0<=C&&C<=6&&(0==g||6==g)||2<=g&&g<=4&&2<=C&&C<=4)},Q.getBestMaskPattern=function(){for(var A=0,o=0,g=0;g<8;g++){this.makeImpl(!0,g);var C=e.getLostPoint(this);(0==g||A>C)&&(A=C,o=g)}return o},Q.createMovieClip=function(A,o,g){var C=A.createEmptyMovieClip(o,g);this.make();for(var K=0;K >g&1);this.modules[Math.floor(g/3)][g%3+this.moduleCount-8-3]=C}for(g=0;g<18;g++)C=!A&&1==(o>>g&1),this.modules[g%3+this.moduleCount-8-3][Math.floor(g/3)]=C},Q.setupTypeInfo=function(A,o){for(var g=this.errorCorrectLevel<<3|o,C=e.getBCHTypeInfo(g),K=0;K<15;K++){var t=!A&&1==(C>>K&1);K<6?this.modules[K][8]=t:K<8?this.modules[K+1][8]=t:this.modules[this.moduleCount-15+K][8]=t}for(K=0;K<15;K++)t=!A&&1==(C>>K&1),K<8?this.modules[8][this.moduleCount-K-1]=t:K<9?this.modules[8][15-K-1+1]=t:this.modules[8][15-K-1]=t;this.modules[this.moduleCount-8][8]=!A},Q.mapData=function(A,o){for(var g=-1,C=this.moduleCount-1,K=7,t=0,r=this.moduleCount-1;r>0;r-=2)for(6==r&&r--;;){for(var B=0;B<2;B++)if(null==this.modules[C][r-B]){var Q=!1;t >>K&1)),e.getMask(o,C,r-B)&&(Q=!Q),this.modules[C][r-B]=Q,-1==--K&&(t++,K=7)}if((C+=g)<0||this.moduleCount<=C){C-=g,g=-g;break}}},B.PAD0=236,B.PAD1=17,B.createData=function(A,o,g){for(var C=K.getRSBlocks(A,o),r=new t,Q=0;Q 8*n)throw new Error("code length overflow. ("+r.getLengthInBits()+">"+8*n+")");for(r.getLengthInBits()+4<=8*n&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*n||(r.put(B.PAD0,8),r.getLengthInBits()>=8*n));)r.put(B.PAD1,8);return B.createBytes(r,C)},B.createBytes=function(A,o){for(var g=0,C=0,K=0,t=new Array(o.length),B=new Array(o.length),Q=0;Q =0?i.get(_):0}}var s=0;for(F=0;F {var C=g(9381);function K(A,o){this.totalCount=A,this.dataCount=o}K.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],K.getRSBlocks=function(A,o){var g=K.getRsBlockTable(A,o);if(null==g)throw new Error("bad rs block @ typeNumber:"+A+"/errorCorrectLevel:"+o);for(var C=g.length/3,t=new Array,e=0;e {for(var o={glog:function(A){if(A<1)throw new Error("glog("+A+")");return o.LOG_TABLE[A]},gexp:function(A){for(;A<0;)A+=255;for(;A>=256;)A-=255;return o.EXP_TABLE[A]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)o.EXP_TABLE[g]=1< {A.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},3160:(A,o,g)=>{var C=g(2792),K=g(2832),t=g(1518),e={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(A){for(var o=A<<10;e.getBCHDigit(o)-e.getBCHDigit(e.G15)>=0;)o^=e.G15< =0;)o^=e.G18< >>=1;return o},getPatternPosition:function(A){return e.PATTERN_POSITION_TABLE[A-1]},getMask:function(A,o,g){switch(A){case 0:return(o+g)%2==0;case 1:return o%2==0;case 2:return g%3==0;case 3:return(o+g)%3==0;case 4:return(Math.floor(o/2)+Math.floor(g/3))%2==0;case 5:return o*g%2+o*g%3==0;case 6:return(o*g%2+o*g%3)%2==0;case 7:return(o*g%3+(o+g)%2)%2==0;default:throw new Error("bad maskPattern:"+A)}},getErrorCorrectPolynomial:function(A){for(var o=new K([1],0),g=0;g5&&(g+=3+t-5)}for(C=0;C {"use strict";var g="function"==typeof Symbol&&Symbol.for,C=g?Symbol.for("react.element"):60103,K=g?Symbol.for("react.portal"):60106,t=g?Symbol.for("react.fragment"):60107,e=g?Symbol.for("react.strict_mode"):60108,r=g?Symbol.for("react.profiler"):60114,B=g?Symbol.for("react.provider"):60109,Q=g?Symbol.for("react.context"):60110,a=g?Symbol.for("react.async_mode"):60111,n=g?Symbol.for("react.concurrent_mode"):60111,F=g?Symbol.for("react.forward_ref"):60112,U=g?Symbol.for("react.suspense"):60113,i=g?Symbol.for("react.suspense_list"):60120,_=g?Symbol.for("react.memo"):60115,s=g?Symbol.for("react.lazy"):60116,l=g?Symbol.for("react.block"):60121,c=g?Symbol.for("react.fundamental"):60117,E=g?Symbol.for("react.responder"):60118,u=g?Symbol.for("react.scope"):60119;function d(A){if("object"==typeof A&&null!==A){var o=A.$$typeof;switch(o){case C:switch(A=A.type){case a:case n:case t:case r:case e:case U:return A;default:switch(A=A&&A.$$typeof){case Q:case F:case s:case _:case B:return A;default:return o}}case K:return o}}}function f(A){return d(A)===n}o.AsyncMode=a,o.ConcurrentMode=n,o.ContextConsumer=Q,o.ContextProvider=B,o.Element=C,o.ForwardRef=F,o.Fragment=t,o.Lazy=s,o.Memo=_,o.Portal=K,o.Profiler=r,o.StrictMode=e,o.Suspense=U,o.isAsyncMode=function(A){return f(A)||d(A)===a},o.isConcurrentMode=f,o.isContextConsumer=function(A){return d(A)===Q},o.isContextProvider=function(A){return d(A)===B},o.isElement=function(A){return"object"==typeof A&&null!==A&&A.$$typeof===C},o.isForwardRef=function(A){return d(A)===F},o.isFragment=function(A){return d(A)===t},o.isLazy=function(A){return d(A)===s},o.isMemo=function(A){return d(A)===_},o.isPortal=function(A){return d(A)===K},o.isProfiler=function(A){return d(A)===r},o.isStrictMode=function(A){return d(A)===e},o.isSuspense=function(A){return d(A)===U},o.isValidElementType=function(A){return"string"==typeof A||"function"==typeof A||A===t||A===n||A===r||A===e||A===U||A===i||"object"==typeof A&&null!==A&&(A.$$typeof===s||A.$$typeof===_||A.$$typeof===B||A.$$typeof===Q||A.$$typeof===F||A.$$typeof===c||A.$$typeof===E||A.$$typeof===u||A.$$typeof===l)},o.typeOf=d},9864:(A,o,g)=>{"use strict";A.exports=g(6082)},8632:(A,o,g)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});var C=Object.assign||function(A){for(var o=1;o =0||Object.prototype.hasOwnProperty.call(A,C)&&(g[C]=A[C]);return g}(A,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize"]);return e.default.createElement("svg",C({},n,{height:B,ref:o,viewBox:"0 0 "+a+" "+a,width:B}),Q?e.default.createElement("title",null,Q):null,e.default.createElement("path",{d:K,fill:g}),e.default.createElement("path",{d:t,fill:r}))}));Q.displayName="QRCodeSvg",Q.propTypes=B,Q.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},o.default=Q},1653:(A,o,g)=>{"use strict";var C=Object.assign||function(A){for(var o=1;o =0||Object.prototype.hasOwnProperty.call(A,C)&&(g[C]=A[C]);return g}(A,["bgColor","fgColor","level","size","value"]),U=new K.default(-1,t.default[r]);U.addData(n),U.make();var i=U.modules;return B.default.createElement(Q.default,C({},F,{bgColor:g,bgD:i.map((function(A,o){return A.map((function(A,g){return A?"":"M "+g+" "+o+" l 1 0 0 1 -1 0 Z"})).join(" ")})).join(" "),fgColor:e,fgD:i.map((function(A,o){return A.map((function(A,g){return A?"M "+g+" "+o+" l 1 0 0 1 -1 0 Z":""})).join(" ")})).join(" "),ref:o,size:a,viewBoxSize:i.length}))}));F.displayName="QRCode",F.propTypes=n,F.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},o.Z=F},8359:(A,o)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},2973:(A,o,g)=>{"use strict";g(8359)},2408:(A,o,g)=>{"use strict";var C=g(7418),K=60103,t=60106;o.Fragment=60107,o.StrictMode=60108,o.Profiler=60114;var e=60109,r=60110,B=60112;o.Suspense=60113;var Q=60115,a=60116;if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;K=n("react.element"),t=n("react.portal"),o.Fragment=n("react.fragment"),o.StrictMode=n("react.strict_mode"),o.Profiler=n("react.profiler"),e=n("react.provider"),r=n("react.context"),B=n("react.forward_ref"),o.Suspense=n("react.suspense"),Q=n("react.memo"),a=n("react.lazy")}var F="function"==typeof Symbol&&Symbol.iterator;function U(A){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+A,g=1;g {"use strict";A.exports=g(2408)},1697:(A,o,g)=>{"use strict";A.exports=g(3188)()},3188:(A,o,g)=>{"use strict";var C=g(8764).lW;function K(A){return A instanceof C?C.from(A):new A.constructor(A.buffer.slice(),A.byteOffset,A.length)}A.exports=function(A){return(A=A||{}).circles?function(A){var o=[],g=[];return A.proto?function A(t){if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return C(t,A);if(t instanceof Map)return new Map(C(Array.from(t),A));if(t instanceof Set)return new Set(C(Array.from(t),A));var e={};for(var r in o.push(t),g.push(e),t){var B=t[r];if("object"!=typeof B||null===B)e[r]=B;else if(B instanceof Date)e[r]=new Date(B);else if(B instanceof Map)e[r]=new Map(C(Array.from(B),A));else if(B instanceof Set)e[r]=new Set(C(Array.from(B),A));else if(ArrayBuffer.isView(B))e[r]=K(B);else{var Q=o.indexOf(B);e[r]=-1!==Q?g[Q]:A(B)}}return o.pop(),g.pop(),e}:function A(t){if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return C(t,A);if(t instanceof Map)return new Map(C(Array.from(t),A));if(t instanceof Set)return new Set(C(Array.from(t),A));var e={};for(var r in o.push(t),g.push(e),t)if(!1!==Object.hasOwnProperty.call(t,r)){var B=t[r];if("object"!=typeof B||null===B)e[r]=B;else if(B instanceof Date)e[r]=new Date(B);else if(B instanceof Map)e[r]=new Map(C(Array.from(B),A));else if(B instanceof Set)e[r]=new Set(C(Array.from(B),A));else if(ArrayBuffer.isView(B))e[r]=K(B);else{var Q=o.indexOf(B);e[r]=-1!==Q?g[Q]:A(B)}}return o.pop(),g.pop(),e};function C(A,C){for(var t=Object.keys(A),e=new Array(t.length),r=0;r {"use strict";var g,C,K,t;if("object"==typeof performance&&"function"==typeof performance.now){var e=performance;o.unstable_now=function(){return e.now()}}else{var r=Date,B=r.now();o.unstable_now=function(){return r.now()-B}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var Q=null,a=null,n=function(){if(null!==Q)try{var A=o.unstable_now();Q(!0,A),Q=null}catch(A){throw setTimeout(n,0),A}};g=function(A){null!==Q?setTimeout(g,0,A):(Q=A,setTimeout(n,0))},C=function(A,o){a=setTimeout(A,o)},K=function(){clearTimeout(a)},o.unstable_shouldYield=function(){return!1},t=o.unstable_forceFrameRate=function(){}}else{var F=window.setTimeout,U=window.clearTimeout;if("undefined"!=typeof console){var i=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof i&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var _=!1,s=null,l=-1,c=5,E=0;o.unstable_shouldYield=function(){return o.unstable_now()>=E},t=function(){},o.unstable_forceFrameRate=function(A){0>A||125>>1,K=A[C];if(!(void 0!==K&&0 h(e,g))void 0!==B&&0>h(B,e)?(A[C]=B,A[r]=g,C=r):(A[C]=e,A[t]=g,C=t);else{if(!(void 0!==B&&0>h(B,g)))break A;A[C]=B,A[r]=g,C=r}}}return o}return null}function h(A,o){var g=A.sortIndex-o.sortIndex;return 0!==g?g:A.id-o.id}var m=[],S=[],N=1,v=null,y=3,b=!1,M=!1,w=!1;function R(A){for(var o=I(S);null!==o;){if(null===o.callback)p(S);else{if(!(o.startTime<=A))break;p(S),o.sortIndex=o.expirationTime,f(m,o)}o=I(S)}}function D(A){if(w=!1,R(A),!M)if(null!==I(m))M=!0,g(X);else{var o=I(S);null!==o&&C(D,o.startTime-A)}}function X(A,g){M=!1,w&&(w=!1,K()),b=!0;var t=y;try{for(R(g),v=I(m);null!==v&&(!(v.expirationTime>g)||A&&!o.unstable_shouldYield());){var e=v.callback;if("function"==typeof e){v.callback=null,y=v.priorityLevel;var r=e(v.expirationTime<=g);g=o.unstable_now(),"function"==typeof r?v.callback=r:v===I(m)&&p(m),R(g)}else p(m);v=I(m)}if(null!==v)var B=!0;else{var Q=I(S);null!==Q&&C(D,Q.startTime-g),B=!1}return B}finally{v=null,y=t,b=!1}}var T=t;o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(A){A.callback=null},o.unstable_continueExecution=function(){M||b||(M=!0,g(X))},o.unstable_getCurrentPriorityLevel=function(){return y},o.unstable_getFirstCallbackNode=function(){return I(m)},o.unstable_next=function(A){switch(y){case 1:case 2:case 3:var o=3;break;default:o=y}var g=y;y=o;try{return A()}finally{y=g}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=T,o.unstable_runWithPriority=function(A,o){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var g=y;y=A;try{return o()}finally{y=g}},o.unstable_scheduleCallback=function(A,t,e){var r=o.unstable_now();switch(e="object"==typeof e&&null!==e&&"number"==typeof(e=e.delay)&&0 r?(A.sortIndex=e,f(S,A),null===I(m)&&A===I(S)&&(w?K():w=!0,C(D,e-r))):(A.sortIndex=B,f(m,A),M||b||(M=!0,g(X))),A},o.unstable_wrapCallback=function(A){var o=y;return function(){var g=y;y=o;try{return A.apply(this,arguments)}finally{y=g}}}},3840:(A,o,g)=>{"use strict";A.exports=g(53)},6644:(A,o,g)=>{var C,K,t=g(1125),e={5751:A=>{for(var o="qpzry9x8gf2tvdw0s3jn54khce6mua7l",g={},C=0;C >25;return(33554431&A)<<5^996825010&-(o>>0&1)^642813549&-(o>>1&1)^513874426&-(o>>2&1)^1027748829&-(o>>3&1)^705979059&-(o>>4&1)}function e(A){for(var o=1,g=0;g 126)return"Invalid prefix ("+A+")";o=t(o)^C>>5}for(o=t(o),g=0;g o)return"Exceeds length limit";var C=A.toLowerCase(),K=A.toUpperCase();if(A!==C&&A!==K)return"Mixed-case string "+A;var r=(A=C).lastIndexOf("1");if(-1===r)return"No separator character for "+A;if(0===r)return"Missing prefix for "+A;var B=A.slice(0,r),Q=A.slice(r+1);if(Q.length<6)return"Data too short";var a=e(B);if("string"==typeof a)return a;for(var n=[],F=0;F =Q.length||n.push(i)}return 1!==a?"Invalid checksum for "+A:{prefix:B,words:n}}function B(A,o,g,C){for(var K=0,t=0,e=(1< =g;)t-=g,r.push(K>>t&e);if(C)t>0&&r.push(K< =o)return"Excess padding";if(K< C)throw new TypeError("Exceeds length limit");var K=e(A=A.toLowerCase());if("string"==typeof K)throw new Error(K);for(var r=A+"1",B=0;B >5!=0)throw new Error("Non 5-bit word");K=t(K)^Q,r+=o.charAt(Q)}for(B=0;B<6;++B)K=t(K);for(K^=1,B=0;B<6;++B)r+=o.charAt(K>>5*(5-B)&31);return r},toWordsUnsafe:function(A){var o=B(A,8,5,!0);if(Array.isArray(o))return o},toWords:function(A){var o=B(A,8,5,!0);if(Array.isArray(o))return o;throw new Error(o)},fromWordsUnsafe:function(A){var o=B(A,5,8,!1);if(Array.isArray(o))return o},fromWords:function(A){var o=B(A,5,8,!1);if(Array.isArray(o))return o;throw new Error(o)}}},222:(A,o,g)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.utils=o.curve25519=o.getSharedSecret=o.sync=o.verify=o.sign=o.getPublicKey=o.Signature=o.Point=o.RistrettoPoint=o.ExtendedPoint=o.CURVE=void 0;const C=g(3094),K=BigInt(0),t=BigInt(1),e=BigInt(2),r=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),B=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:r,n:r,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")});o.CURVE=B;const Q=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),a=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),n=(BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235")),F=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),U=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),i=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952");class _{constructor(A,o,g,C){this.x=A,this.y=o,this.z=g,this.t=C}static fromAffine(A){if(!(A instanceof d))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return A.equals(d.ZERO)?_.ZERO:new _(A.x,A.y,t,w(A.x*A.y))}static toAffineBatch(A){const o=function(A,o=B.P){const g=new Array(A.length),C=R(A.reduce(((A,C,t)=>C===K?A:(g[t]=A,w(A*C,o))),t),o);return A.reduceRight(((A,C,t)=>C===K?A:(g[t]=w(A*g[t],o),w(A*C,o))),C),g}(A.map((A=>A.z)));return A.map(((A,g)=>A.toAffine(o[g])))}static normalizeZ(A){return this.toAffineBatch(A).map(this.fromAffine)}equals(A){s(A);const{x:o,y:g,z:C}=this,{x:K,y:t,z:e}=A,r=w(o*e),B=w(K*C),Q=w(g*e),a=w(t*C);return r===B&&Q===a}negate(){return new _(w(-this.x),this.y,this.z,w(-this.t))}double(){const{x:A,y:o,z:g}=this,{a:C}=B,K=w(A*A),t=w(o*o),r=w(e*w(g*g)),Q=w(C*K),a=A+o,n=w(w(a*a)-K-t),F=Q+t,U=F-r,i=Q-t,s=w(n*U),l=w(F*i),c=w(n*i),E=w(U*F);return new _(s,l,E,c)}add(A){s(A);const{x:o,y:g,z:C,t}=this,{x:r,y:B,z:Q,t:a}=A,n=w((g-o)*(B+r)),F=w((g+o)*(B-r)),U=w(F-n);if(U===K)return this.double();const i=w(C*e*a),l=w(t*e*Q),c=l+i,E=F+n,u=l-i,d=w(c*U),f=w(E*u),I=w(c*u),p=w(U*E);return new _(d,f,p,I)}subtract(A){return this.add(A.negate())}precomputeWindow(A){const o=1+256/A,g=[];let C=this,K=C;for(let t=0;t >=n,r>B&&(r-=a,A+=t),0===r){let A=C[g];o%2&&(A=A.negate()),e=e.add(A)}else{let A=C[g+Math.abs(r)-1];r<0&&(A=A.negate()),K=K.add(A)}}return _.normalizeZ([K,e])[0]}multiply(A,o){return this.wNAF(k(A,B.l),o)}multiplyUnsafe(A){let o=k(A,B.l,!1);const g=_.BASE,C=_.ZERO;if(o===K)return C;if(this.equals(C)||o===t)return this;if(this.equals(g))return this.wNAF(o);let e=C,r=this;for(;o>K;)o&t&&(e=e.add(r)),r=r.double(),o>>=t;return e}isSmallOrder(){return this.multiplyUnsafe(B.h).equals(_.ZERO)}isTorsionFree(){return this.multiplyUnsafe(B.l).equals(_.ZERO)}toAffine(A=R(this.z)){const{x:o,y:g,z:C}=this,K=w(o*A),e=w(g*A);if(w(C*A)!==t)throw new Error("invZ was invalid");return new d(K,e)}fromRistrettoBytes(){c()}toRistrettoBytes(){c()}fromRistrettoHash(){c()}}function s(A){if(!(A instanceof _))throw new TypeError("ExtendedPoint expected")}function l(A){if(!(A instanceof E))throw new TypeError("RistrettoPoint expected")}function c(){throw new Error("Legacy method: switch to RistrettoPoint")}o.ExtendedPoint=_,_.BASE=new _(B.Gx,B.Gy,t,w(B.Gx*B.Gy)),_.ZERO=new _(K,t,t,K);class E{constructor(A){this.ep=A}static calcElligatorRistrettoMap(A){const{d:o}=B,g=w(a*A*A),C=w((g+t)*U);let K=BigInt(-1);const e=w((K-o*g)*w(g+o));let{isValid:r,value:Q}=T(C,e),F=w(Q*A);v(F)||(F=w(-F)),r||(Q=F),r||(K=g);const s=w(K*(g-t)*i-e),l=Q*Q,c=w((Q+Q)*e),E=w(s*n),u=w(t-l),d=w(t+l);return new _(w(c*d),w(u*E),w(E*d),w(c*u))}static hashToCurve(A){const o=M((A=P(A,64)).slice(0,32)),g=this.calcElligatorRistrettoMap(o),C=M(A.slice(32,64)),K=this.calcElligatorRistrettoMap(C);return new E(g.add(K))}static fromHex(A){A=P(A,32);const{a:o,d:g}=B,C="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",e=M(A);if(!function(A,o){if(A.length!==o.length)return!1;for(let g=0;g =C)throw new Error("Expected 0 < hex < P");if(!o&&e>=Q)throw new Error("Expected 0 < hex < 2**256");const r=w(e*e),a=w(r-t),n=w(g*r+t);let{isValid:F,value:U}=T(a,n);if(!F)throw new Error("Point.fromHex: invalid y coordinate");const i=(U&t)===t;return 0!=(128&A[31])!==i&&(U=w(-U)),new d(U,e)}static async fromPrivateKey(A){return(await O(A)).point}toRawBytes(){const A=N(this.y);return A[31]|=this.x&t?128:0,A}toHex(){return h(this.toRawBytes())}toX25519(){const{y:A}=this;return N(w((t+A)*R(t-A)))}isTorsionFree(){return _.fromAffine(this).isTorsionFree()}equals(A){return this.x===A.x&&this.y===A.y}negate(){return new d(w(-this.x),this.y)}add(A){return _.fromAffine(this).add(_.fromAffine(A)).toAffine()}subtract(A){return this.add(A.negate())}multiply(A){return _.fromAffine(this).multiply(A,this).toAffine()}}o.Point=d,d.BASE=new d(B.Gx,B.Gy),d.ZERO=new d(K,t);class f{constructor(A,o){this.r=A,this.s=o,this.assertValidity()}static fromHex(A){const o=P(A,64),g=d.fromHex(o.slice(0,32),!1),C=y(o.slice(32,64));return new f(g,C)}assertValidity(){const{r:A,s:o}=this;if(!(A instanceof d))throw new Error("Expected Point instance");return k(o,B.l,!1),this}toRawBytes(){const A=new Uint8Array(64);return A.set(this.r.toRawBytes()),A.set(N(this.s),32),A}toHex(){return h(this.toRawBytes())}}function I(...A){if(!A.every((A=>A instanceof Uint8Array)))throw new Error("Expected Uint8Array list");if(1===A.length)return A[0];const o=A.reduce(((A,o)=>A+o.length),0),g=new Uint8Array(o);for(let o=0,C=0;o o.toString(16).padStart(2,"0")));function h(A){if(!(A instanceof Uint8Array))throw new Error("Uint8Array expected");let o="";for(let g=0;g =K?g:o+g}function R(A,o=B.P){if(A===K||o<=K)throw new Error(`invert: expected positive integers, got n=${A} mod=${o}`);let g=w(A,o),C=o,e=K,r=t,Q=t,a=K;for(;g!==K;){const A=C/g,o=C%g,K=e-Q*A,t=r-a*A;C=g,g=o,e=Q,r=a,Q=K,a=t}if(C!==t)throw new Error("invert: does not exist");return w(e,o)}function D(A,o){const{P:g}=B;let C=A;for(;o-- >K;)C*=C,C%=g;return C}function X(A){const{P:o}=B,g=BigInt(5),C=BigInt(10),K=BigInt(20),r=BigInt(40),Q=BigInt(80),a=A*A%o*A%o,n=D(a,e)*a%o,F=D(n,t)*A%o,U=D(F,g)*F%o,i=D(U,C)*U%o,_=D(i,K)*i%o,s=D(_,r)*_%o,l=D(s,Q)*s%o,c=D(l,Q)*s%o,E=D(c,C)*U%o;return{pow_p_5_8:D(E,e)*A%o,b2:a}}function T(A,o){const g=w(o*o*o),C=w(g*g*o);let K=w(A*g*X(A*C).pow_p_5_8);const t=w(o*K*K),e=K,r=w(K*a),B=t===A,Q=t===w(-A),n=t===w(-A*a);return B&&(K=e),(Q||n)&&(K=r),v(K)&&(K=w(-K)),{isValid:B||Q,value:K}}function Z(A){return T(t,A)}function x(A){return w(y(A),B.l)}function P(A,o){const g=A instanceof Uint8Array?Uint8Array.from(A):m(A);if("number"==typeof o&&g.length!==o)throw new Error(`Expected ${o} bytes`);return g}function k(A,o,g=!0){if(!o)throw new TypeError("Specify max value");if("number"==typeof A&&Number.isSafeInteger(A)&&(A=BigInt(A)),"bigint"==typeof A&&A =K;A--){const o=e>>A&t;_^=o,a=J(_,n,U),n=a[0],U=a[1],a=J(_,F,i),F=a[0],i=a[1],_=o;const g=n+F,C=w(g*g),K=n-F,B=w(K*K),s=C-B,l=U+i,c=w((U-i)*g),E=w(l*K),u=c+E,d=c-E;U=w(u*u),i=w(Q*w(d*d)),n=w(C*B),F=w(s*(C+w(r*s)))}a=J(_,n,U),n=a[0],U=a[1],a=J(_,F,i),F=a[0],i=a[1];const{pow_p_5_8:s,b2:l}=X(F),c=w(D(s,BigInt(3))*l);return w(n*c)}(function(A){const o=P(A,32);return o[31]&=127,y(o)}(o),y(V(P(A,32))));if(g===K)throw new Error("Invalid private or public key received");return N(w(g,B.P))},scalarMultBase:A=>o.curve25519.scalarMult(A,o.curve25519.BASE_POINT_U)};const q={node:C,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0};o.utils={bytesToHex:h,hexToBytes:m,concatBytes:I,getExtendedPublicKey:O,mod:w,invert:R,TORSION_SUBGROUP:["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"],hashToPrivateScalar:A=>{if((A=P(A)).length<40||A.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return w(y(A),B.l-t)+t},randomBytes:(A=32)=>{if(q.web)return q.web.getRandomValues(new Uint8Array(A));if(q.node){const{randomBytes:o}=q.node;return new Uint8Array(o(A).buffer)}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>o.utils.randomBytes(32),sha512:async(...A)=>{const o=I(...A);if(q.web){const A=await q.web.subtle.digest("SHA-512",o.buffer);return new Uint8Array(A)}if(q.node)return Uint8Array.from(q.node.createHash("sha512").update(o).digest());throw new Error("The environment doesn't have sha512 function")},precompute(A=8,o=d.BASE){const g=o.equals(d.BASE)?o:new d(o.x,o.y);return g._setWindowSize(A),g.multiply(e),g},sha512Sync:void 0},Object.defineProperties(o.utils,{sha512Sync:{configurable:!1,get:()=>G,set(A){G||(G=A)}}})},7320:(A,o)=>{function g(A){if(!Number.isSafeInteger(A)||A<0)throw new Error(`Wrong positive integer: ${A}`)}function C(A){if("boolean"!=typeof A)throw new Error(`Expected boolean, not ${A}`)}function K(A,...o){if(!(A instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(o.length>0&&!o.includes(A.length))throw new TypeError(`Expected Uint8Array of length ${o}, not of length=${A.length}`)}function t(A){if("function"!=typeof A||"function"!=typeof A.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");g(A.outputLen),g(A.blockLen)}function e(A,o=!0){if(A.destroyed)throw new Error("Hash instance has been destroyed");if(o&&A.finished)throw new Error("Hash#digest() has already been called")}function r(A,o){K(A);const g=o.outputLen;if(A.length {Object.defineProperty(o,"__esModule",{value:!0}),o.SHA2=void 0;const C=g(7320),K=g(8089);class t extends K.Hash{constructor(A,o,g,C){super(),this.blockLen=A,this.outputLen=o,this.padOffset=g,this.isLE=C,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(A),this.view=(0,K.createView)(this.buffer)}update(A){C.default.exists(this);const{view:o,buffer:g,blockLen:t}=this,e=(A=(0,K.toBytes)(A)).length;for(let C=0;C t-r&&(this.process(g,0),r=0);for(let A=r;A >K&t),r=Number(g&t),B=C?4:0,Q=C?0:4;A.setUint32(o+B,e,C),A.setUint32(o+Q,r,C)}(g,t-8,BigInt(8*this.length),e),this.process(g,0);const B=(0,K.createView)(A),Q=this.outputLen;if(Q%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const a=Q/4,n=this.get();if(a>n.length)throw new Error("_sha2: outputLen bigger than state");for(let A=0;A{Object.defineProperty(o,"__esModule",{value:!0}),o.add=o.toBig=o.split=o.fromBig=void 0;const g=BigInt(2**32-1),C=BigInt(32);function K(A,o=!1){return o?{h:Number(A&g),l:Number(A>>C&g)}:{h:0|Number(A>>C&g),l:0|Number(A&g)}}function t(A,o=!1){let g=new Uint32Array(A.length),C=new Uint32Array(A.length);for(let t=0;t >>0)+(C>>>0);return{h:A+g+(K/2**32|0)|0,l:0|K}}o.fromBig=K,o.split=t,o.toBig=(A,o)=>BigInt(A>>>0)< >>0),o.add=e;const r={fromBig:K,split:t,toBig:o.toBig,shrSH:(A,o,g)=>A>>>g,shrSL:(A,o,g)=>A<<32-g|o>>>g,rotrSH:(A,o,g)=>A>>>g|o<<32-g,rotrSL:(A,o,g)=>A<<32-g|o>>>g,rotrBH:(A,o,g)=>A<<64-g|o>>>g-32,rotrBL:(A,o,g)=>A>>>g-32|o<<64-g,rotr32H:(A,o)=>o,rotr32L:(A,o)=>A,rotlSH:(A,o,g)=>A< >>32-g,rotlSL:(A,o,g)=>o< >>32-g,rotlBH:(A,o,g)=>o< >>64-g,rotlBL:(A,o,g)=>A< >>64-g,add:e,add3L:(A,o,g)=>(A>>>0)+(o>>>0)+(g>>>0),add3H:(A,o,g,C)=>o+g+C+(A/2**32|0)|0,add4L:(A,o,g,C)=>(A>>>0)+(o>>>0)+(g>>>0)+(C>>>0),add4H:(A,o,g,C,K)=>o+g+C+K+(A/2**32|0)|0,add5H:(A,o,g,C,K,t)=>o+g+C+K+t+(A/2**32|0)|0,add5L:(A,o,g,C,K)=>(A>>>0)+(o>>>0)+(g>>>0)+(C>>>0)+(K>>>0)};o.default=r},4421:(A,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.crypto=void 0,o.crypto={node:void 0,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0}},9569:(A,o,g)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.hmac=void 0;const C=g(7320),K=g(8089);class t extends K.Hash{constructor(A,o){super(),this.finished=!1,this.destroyed=!1,C.default.hash(A);const g=(0,K.toBytes)(o);if(this.iHash=A.create(),"function"!=typeof this.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const t=this.blockLen,e=new Uint8Array(t);e.set(g.length>t?A.create().update(g).digest():g);for(let A=0;A new t(A,o).update(g).digest(),o.hmac.create=(A,o)=>new t(A,o)},9023:(A,o,g)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.pbkdf2Async=o.pbkdf2=void 0;const C=g(7320),K=g(9569),t=g(8089);function e(A,o,g,e){C.default.hash(A);const r=(0,t.checkOpts)({dkLen:32,asyncTick:10},e),{c:B,dkLen:Q,asyncTick:a}=r;if(C.default.number(B),C.default.number(Q),C.default.number(a),B<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const n=(0,t.toBytes)(o),F=(0,t.toBytes)(g),U=new Uint8Array(Q),i=K.hmac.create(A,n),_=i._cloneInto().update(F);return{c:B,dkLen:Q,asyncTick:a,DK:U,PRF:i,PRFSalt:_}}function r(A,o,g,C,K){return A.destroy(),o.destroy(),C&&C.destroy(),K.fill(0),g}o.pbkdf2=function(A,o,g,C){const{c:K,dkLen:B,DK:Q,PRF:a,PRFSalt:n}=e(A,o,g,C);let F;const U=new Uint8Array(4),i=(0,t.createView)(U),_=new Uint8Array(a.outputLen);for(let A=1,o=0;o{n._cloneInto(U).update(s).digestInto(s);for(let A=0;A {Object.defineProperty(o,"__esModule",{value:!0}),o.sha224=o.sha256=void 0;const C=g(7505),K=g(8089),t=(A,o,g)=>A&o^A&g^o&g,e=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),r=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),B=new Uint32Array(64);class Q extends C.SHA2{constructor(){super(64,32,8,!1),this.A=0|r[0],this.B=0|r[1],this.C=0|r[2],this.D=0|r[3],this.E=0|r[4],this.F=0|r[5],this.G=0|r[6],this.H=0|r[7]}get(){const{A,B:o,C:g,D:C,E:K,F:t,G:e,H:r}=this;return[A,o,g,C,K,t,e,r]}set(A,o,g,C,K,t,e,r){this.A=0|A,this.B=0|o,this.C=0|g,this.D=0|C,this.E=0|K,this.F=0|t,this.G=0|e,this.H=0|r}process(A,o){for(let g=0;g<16;g++,o+=4)B[g]=A.getUint32(o,!1);for(let A=16;A<64;A++){const o=B[A-15],g=B[A-2],C=(0,K.rotr)(o,7)^(0,K.rotr)(o,18)^o>>>3,t=(0,K.rotr)(g,17)^(0,K.rotr)(g,19)^g>>>10;B[A]=t+B[A-7]+C+B[A-16]|0}let{A:g,B:C,C:r,D:Q,E:a,F:n,G:F,H:U}=this;for(let A=0;A<64;A++){const o=U+((0,K.rotr)(a,6)^(0,K.rotr)(a,11)^(0,K.rotr)(a,25))+((i=a)&n^~i&F)+e[A]+B[A]|0,_=((0,K.rotr)(g,2)^(0,K.rotr)(g,13)^(0,K.rotr)(g,22))+t(g,C,r)|0;U=F,F=n,n=a,a=Q+o|0,Q=r,r=C,C=g,g=o+_|0}var i;g=g+this.A|0,C=C+this.B|0,r=r+this.C|0,Q=Q+this.D|0,a=a+this.E|0,n=n+this.F|0,F=F+this.G|0,U=U+this.H|0,this.set(g,C,r,Q,a,n,F,U)}roundClean(){B.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class a extends Q{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}o.sha256=(0,K.wrapConstructor)((()=>new Q)),o.sha224=(0,K.wrapConstructor)((()=>new a))},6262:(A,o,g)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.sha384=o.sha512_256=o.sha512_224=o.sha512=o.SHA512=void 0;const C=g(7505),K=g(6873),t=g(8089),[e,r]=K.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((A=>BigInt(A)))),B=new Uint32Array(80),Q=new Uint32Array(80);class a extends C.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:A,Al:o,Bh:g,Bl:C,Ch:K,Cl:t,Dh:e,Dl:r,Eh:B,El:Q,Fh:a,Fl:n,Gh:F,Gl:U,Hh:i,Hl:_}=this;return[A,o,g,C,K,t,e,r,B,Q,a,n,F,U,i,_]}set(A,o,g,C,K,t,e,r,B,Q,a,n,F,U,i,_){this.Ah=0|A,this.Al=0|o,this.Bh=0|g,this.Bl=0|C,this.Ch=0|K,this.Cl=0|t,this.Dh=0|e,this.Dl=0|r,this.Eh=0|B,this.El=0|Q,this.Fh=0|a,this.Fl=0|n,this.Gh=0|F,this.Gl=0|U,this.Hh=0|i,this.Hl=0|_}process(A,o){for(let g=0;g<16;g++,o+=4)B[g]=A.getUint32(o),Q[g]=A.getUint32(o+=4);for(let A=16;A<80;A++){const o=0|B[A-15],g=0|Q[A-15],C=K.default.rotrSH(o,g,1)^K.default.rotrSH(o,g,8)^K.default.shrSH(o,g,7),t=K.default.rotrSL(o,g,1)^K.default.rotrSL(o,g,8)^K.default.shrSL(o,g,7),e=0|B[A-2],r=0|Q[A-2],a=K.default.rotrSH(e,r,19)^K.default.rotrBH(e,r,61)^K.default.shrSH(e,r,6),n=K.default.rotrSL(e,r,19)^K.default.rotrBL(e,r,61)^K.default.shrSL(e,r,6),F=K.default.add4L(t,n,Q[A-7],Q[A-16]),U=K.default.add4H(F,C,a,B[A-7],B[A-16]);B[A]=0|U,Q[A]=0|F}let{Ah:g,Al:C,Bh:t,Bl:a,Ch:n,Cl:F,Dh:U,Dl:i,Eh:_,El:s,Fh:l,Fl:c,Gh:E,Gl:u,Hh:d,Hl:f}=this;for(let A=0;A<80;A++){const o=K.default.rotrSH(_,s,14)^K.default.rotrSH(_,s,18)^K.default.rotrBH(_,s,41),I=K.default.rotrSL(_,s,14)^K.default.rotrSL(_,s,18)^K.default.rotrBL(_,s,41),p=_&l^~_&E,h=s&c^~s&u,m=K.default.add5L(f,I,h,r[A],Q[A]),S=K.default.add5H(m,d,o,p,e[A],B[A]),N=0|m,v=K.default.rotrSH(g,C,28)^K.default.rotrBH(g,C,34)^K.default.rotrBH(g,C,39),y=K.default.rotrSL(g,C,28)^K.default.rotrBL(g,C,34)^K.default.rotrBL(g,C,39),b=g&t^g&n^t&n,M=C&a^C&F^a&F;d=0|E,f=0|u,E=0|l,u=0|c,l=0|_,c=0|s,({h:_,l:s}=K.default.add(0|U,0|i,0|S,0|N)),U=0|n,i=0|F,n=0|t,F=0|a,t=0|g,a=0|C;const w=K.default.add3L(N,y,M);g=K.default.add3H(w,S,v,b),C=0|w}({h:g,l:C}=K.default.add(0|this.Ah,0|this.Al,0|g,0|C)),({h:t,l:a}=K.default.add(0|this.Bh,0|this.Bl,0|t,0|a)),({h:n,l:F}=K.default.add(0|this.Ch,0|this.Cl,0|n,0|F)),({h:U,l:i}=K.default.add(0|this.Dh,0|this.Dl,0|U,0|i)),({h:_,l:s}=K.default.add(0|this.Eh,0|this.El,0|_,0|s)),({h:l,l:c}=K.default.add(0|this.Fh,0|this.Fl,0|l,0|c)),({h:E,l:u}=K.default.add(0|this.Gh,0|this.Gl,0|E,0|u)),({h:d,l:f}=K.default.add(0|this.Hh,0|this.Hl,0|d,0|f)),this.set(g,C,t,a,n,F,U,i,_,s,l,c,E,u,d,f)}roundClean(){B.fill(0),Q.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}o.SHA512=a;class n extends a{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class F extends a{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class U extends a{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}o.sha512=(0,t.wrapConstructor)((()=>new a)),o.sha512_224=(0,t.wrapConstructor)((()=>new n)),o.sha512_256=(0,t.wrapConstructor)((()=>new F)),o.sha384=(0,t.wrapConstructor)((()=>new U))},8089:(A,o,g)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.randomBytes=o.wrapConstructorWithOpts=o.wrapConstructor=o.checkOpts=o.Hash=o.concatBytes=o.toBytes=o.utf8ToBytes=o.asyncLoop=o.nextTick=o.hexToBytes=o.bytesToHex=o.isLE=o.rotr=o.createView=o.u32=o.u8=void 0;const C=g(4421);if(o.u8=A=>new Uint8Array(A.buffer,A.byteOffset,A.byteLength),o.u32=A=>new Uint32Array(A.buffer,A.byteOffset,Math.floor(A.byteLength/4)),o.createView=A=>new DataView(A.buffer,A.byteOffset,A.byteLength),o.rotr=(A,o)=>A<<32-o|A>>>o,o.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!o.isLE)throw new Error("Non little-endian hardware is not supported");const K=Array.from({length:256},((A,o)=>o.toString(16).padStart(2,"0")));function t(A){if("string"!=typeof A)throw new TypeError("utf8ToBytes expected string, got "+typeof A);return(new TextEncoder).encode(A)}function e(A){if("string"==typeof A&&(A=t(A)),!(A instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof A})`);return A}o.bytesToHex=function(A){if(!(A instanceof Uint8Array))throw new Error("Uint8Array expected");let o="";for(let g=0;g