@zeniai/web-components 4.3.76-beta3MM → 4.3.76-beta4MM
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SessionTimeoutPopup-SXc6pDEX.cjs → SessionTimeoutPopup-CYVHra5n.cjs} +317 -317
- package/dist/SessionTimeoutPopup-CYVHra5n.cjs.map +4 -0
- package/dist/{SessionTimeoutPopup-B2lRt_Ae.js → SessionTimeoutPopup-D4hx54Wu.js} +514 -514
- package/dist/SessionTimeoutPopup-D4hx54Wu.js.map +4 -0
- package/dist/cockpit.cjs.js +1 -1
- package/dist/cockpit.esm.js +1 -1
- package/dist/components/common/Footer.d.ts +1 -0
- package/dist/components/expenseAutomation/sections/actualMatching/ActualMatchingMatchDetailPage.d.ts +11 -0
- package/dist/components/expenseAutomation/sections/actualMatching/ActualMatchingPage.d.ts +1 -1
- package/dist/components/expenseAutomation/sections/actualMatching/actualMatchingTypes.d.ts +5 -0
- package/dist/components/expenseAutomation/sections/jeSchedules/JESchedulePage.d.ts +1 -1
- package/dist/{index-B4OS9zN1.js → index-BCxMklOW.js} +2 -2
- package/dist/{index-B4OS9zN1.js.map → index-BCxMklOW.js.map} +1 -1
- package/dist/{index-BgQJAw4w.cjs → index-By9FvrjI.cjs} +2 -2
- package/dist/{index-BgQJAw4w.cjs.map → index-By9FvrjI.cjs.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +3 -3
- package/dist/SessionTimeoutPopup-B2lRt_Ae.js.map +0 -4
- package/dist/SessionTimeoutPopup-SXc6pDEX.cjs.map +0 -4
|
@@ -1091,7 +1091,7 @@
|
|
|
1091
1091
|
display: flex;
|
|
1092
1092
|
justify-content: center;
|
|
1093
1093
|
gap: ${Space.sp3};
|
|
1094
|
-
`;function SomethingWrongPage({onReload:e,onGoHome:t}){const n=useWindowSizeContext();return jsxRuntimeExports.jsx(PageWrapper$3,{children:jsxRuntimeExports.jsx(Modal,{open:!0,children:jsxRuntimeExports.jsxs(Container$7E,{windowSize:n,children:[jsxRuntimeExports.jsx(Title$18,{children:somethingWrongPage.title}),jsxRuntimeExports.jsx(SubTitle$m,{children:somethingWrongPage.subTitle}),jsxRuntimeExports.jsxs(ButtonContainer$m,{children:[jsxRuntimeExports.jsx(Button$4,{variant:"primary",label:reload$1,onClick:e}),null!=t?jsxRuntimeExports.jsx(Button$4,{variant:"secondary",label:goHome,onClick:t}):null]})]})})})}const ErrorBoundaryWrapper=({children:e})=>jsxRuntimeExports.jsx(ErrorBoundary$1,{fallback:jsxRuntimeExports.jsx(SomethingWrongPage,{onReload:()=>window.location.reload()}),children:e});var lottie_light$1={exports:{}},lottie_light=lottie_light$1.exports,hasRequiredLottie_light,react,hasRequiredReact,rfdc_1,hasRequiredRfdc,_default,hasRequired_default,LottiePlayerLight_1,hasRequiredLottiePlayerLight;function requireLottie_light(){return hasRequiredLottie_light||(hasRequiredLottie_light=1,e=lottie_light$1,t=lottie_light$1.exports,"undefined"!=typeof document&&"undefined"!=typeof navigator&&(e.exports=function(){var e="http://www.w3.org/2000/svg",n="",o=!1,i=-999999,r=function(e){o=!!e},a=function(){return o},s=function(e){n=e},l=function(){return n};function c(e){return document.createElement(e)}function d(e,t){var n,o,i=e.length;for(n=0;n<i;n+=1)for(var r in o=e[n].prototype)Object.prototype.hasOwnProperty.call(o,r)&&(t.prototype[r]=o[r])}function p(e){function t(){}return t.prototype=e,t}var u=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),m=function(){function e(e,t){var n,o=0,i=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(o=0;o<t;o+=1)i.push(n);return i}function t(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?t:e}();function h(e){return Array.apply(null,{length:e})}var g=!0,x=null,f="",y=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),S=Math.pow,C=Math.sqrt,b=Math.floor,$=Math.min,v=150,E=Math.PI/180,w=.5519;function R(e,t,n,o){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=o<0?-1:1}function A(e,t){this.type=e,this.direction=t<0?-1:1}function j(e,t,n,o){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=o<0?-1:1}function T(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function I(e,t){this.type=e,this.target=t}function k(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function L(e){this.type="configError",this.nativeError=e}var D=function(){var e=0;return function(){return f+"__lottie_element_"+(e+=1)}}();function _(e,t,n){var o,i,r,a,s,l,c,d;switch(l=n*(1-t),c=n*(1-(s=6*e-(a=Math.floor(6*e)))*t),d=n*(1-(1-s)*t),a%6){case 0:o=n,i=d,r=l;break;case 1:o=c,i=n,r=l;break;case 2:o=l,i=n,r=d;break;case 3:o=l,i=c,r=n;break;case 4:o=d,i=l,r=n;break;case 5:o=n,i=l,r=c}return[o,i,r]}function P(e,t,n){var o,i=Math.max(e,t,n),r=Math.min(e,t,n),a=i-r,s=0===i?0:a/i,l=i/255;switch(i){case r:o=0;break;case e:o=t-n+a*(t<n?6:0),o/=6*a;break;case t:o=n-e+2*a,o/=6*a;break;case n:o=e-t+4*a,o/=6*a}return[o,s,l]}function B(e,t){var n=P(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),_(n[0],n[1],n[2])}function M(e,t){var n=P(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),_(n[0],n[1],n[2])}function O(e,t){var n=P(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),_(n[0],n[1],n[2])}!function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t}();var F=function(e){g=!!e},N=function(){return g},z=function(e){x=e},H=function(){return x},V=function(e){v=e},W=function(){return v},U=function(e){f=e};function G(t){return document.createElementNS(e,t)}function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Q=function(){var e,t,n=1,o=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},r={postMessage:function(e){i.onmessage({data:e})}};function s(t){if(window.Worker&&window.Blob&&a()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),o=URL.createObjectURL(n);return new Worker(o)}return e=t,i}function l(){t||((t=s(function(e){function t(){function e(t,n){var a,s,l,c,d,p,u=t.length;for(s=0;s<u;s+=1)if("ks"in(a=t[s])&&!a.completed){if(a.completed=!0,a.hasMask){var h=a.masksProperties;for(c=h.length,l=0;l<c;l+=1)if(h[l].pt.k.i)r(h[l].pt.k);else for(p=h[l].pt.k.length,d=0;d<p;d+=1)h[l].pt.k[d].s&&r(h[l].pt.k[d].s[0]),h[l].pt.k[d].e&&r(h[l].pt.k[d].e[0])}0===a.ty?(a.layers=o(a.refId,n),e(a.layers,n)):4===a.ty?i(a.shapes):5===a.ty&&m(a)}}function t(t,n){if(t){var i=0,r=t.length;for(i=0;i<r;i+=1)1===t[i].t&&(t[i].data.layers=o(t[i].data.refId,n),e(t[i].data.layers,n))}}function n(e,t){for(var n=0,o=t.length;n<o;){if(t[n].id===e)return t[n];n+=1}return null}function o(e,t){var o=n(e,t);return o?o.layers.__used?JSON.parse(JSON.stringify(o.layers)):(o.layers.__used=!0,o.layers):null}function i(e){var t,n,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(o=e[t].ks.k.length,n=0;n<o;n+=1)e[t].ks.k[n].s&&r(e[t].ks.k[n].s[0]),e[t].ks.k[n].e&&r(e[t].ks.k[n].e[0]);else"gr"===e[t].ty&&i(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function a(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var s=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,o=e.length;for(n=0;n<o;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var o,i=t.assets.length;for(o=0;o<i;o+=1)t.assets[o].layers&&n(t.assets[o].layers)}}}(),l=function(){var e=[4,7,99];return function(t){if(t.chars&&!a(e,t.v)){var n,o=t.chars.length;for(n=0;n<o;n+=1){var r=t.chars[n];r.data&&r.data.shapes&&(i(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[n].t||(r.data.shapes.push({ty:"no"}),r.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),c=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function n(e){var n,o=e.length;for(n=0;n<o;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var o,i=t.assets.length;for(o=0;o<i;o+=1)t.assets[o].layers&&n(t.assets[o].layers)}}}(),d=function(){var e=[4,1,9];function t(e){var n,o,i,r=e.length;for(n=0;n<r;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(i=e[n].c.k.length,o=0;o<i;o+=1)e[n].c.k[o].s&&(e[n].c.k[o].s[0]/=255,e[n].c.k[o].s[1]/=255,e[n].c.k[o].s[2]/=255,e[n].c.k[o].s[3]/=255),e[n].c.k[o].e&&(e[n].c.k[o].e[0]/=255,e[n].c.k[o].e[1]/=255,e[n].c.k[o].e[2]/=255,e[n].c.k[o].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,o=e.length;for(n=0;n<o;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var o,i=t.assets.length;for(o=0;o<i;o+=1)t.assets[o].layers&&n(t.assets[o].layers)}}}(),p=function(){var e=[4,4,18];function t(e){var n,o,i;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,o=0;o<i;o+=1)e[n].ks.k[o].s&&(e[n].ks.k[o].s[0].c=e[n].closed),e[n].ks.k[o].e&&(e[n].ks.k[o].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,o,i,r,a,s,l=e.length;for(o=0;o<l;o+=1){if((n=e[o]).hasMask){var c=n.masksProperties;for(r=c.length,i=0;i<r;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(s=c[i].pt.k.length,a=0;a<s;a+=1)c[i].pt.k[a].s&&(c[i].pt.k[a].s[0].c=c[i].cl),c[i].pt.k[a].e&&(c[i].pt.k[a].e[0].c=c[i].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var o,i=t.assets.length;for(o=0;o<i;o+=1)t.assets[o].layers&&n(t.assets[o].layers)}}}();function u(n){n.__complete||(d(n),s(n),l(n),c(n),p(n),e(n.layers,n.assets),t(n.chars,n.assets),n.__complete=!0)}function m(e){0===e.t.a.length&&e.t.p}var h={};return h.completeData=u,h.checkColors=d,h.checkChars=l,h.checkPathProperties=c,h.checkShapes=p,h.completeLayers=e,h}if(r.dataManager||(r.dataManager=t()),r.assetLoader||(r.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===q(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}function t(t,n,o,i){var r,a=new XMLHttpRequest;try{a.responseType="json"}catch(s){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)r=e(a),o(r);else try{r=e(a),o(r)}catch(s){i&&i(s)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(l){a.open(["G","E","T"].join(""),n+"/"+t,!0)}a.send()}return{load:t}}()),"loadAnimation"===e.data.type)r.assetLoader.load(e.data.path,e.data.fullPath,function(t){r.dataManager.completeData(t),r.postMessage({id:e.data.id,payload:t,status:"success"})},function(){r.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var n=e.data.animation;r.dataManager.completeData(n),r.postMessage({id:e.data.id,payload:n,status:"success"})}else"loadData"===e.data.type&&r.assetLoader.load(e.data.path,e.data.fullPath,function(t){r.postMessage({id:e.data.id,payload:t,status:"success"})},function(){r.postMessage({id:e.data.id,status:"error"})})})).onmessage=function(e){var t=e.data,n=t.id,i=o[n];o[n]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function c(e,t){var i="processId_"+(n+=1);return o[i]={onComplete:e,onError:t},i}function d(e,n,o){l();var i=c(n,o);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})}function p(e,n,o){l();var i=c(n,o);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})}function u(e,n,o){l();var i=c(n,o);t.postMessage({type:"complete",animation:e,id:i})}return{loadAnimation:d,loadData:p,completeAnimation:u}}(),Y=function(){var e=function(){var e=c("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function o(e,t,n){var o="";if(e.e)o=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),o=t+i}else o=n,o+=e.u?e.u:"",o+=e.p;return o}function i(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function r(t){var n=o(t,this.assetsPath,this.path),i=G("image");y?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var r={img:i,assetData:t};return r}function a(t){var n=o(t,this.assetsPath,this.path),i=c("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=e,this._imageLoaded()}.bind(this),!1),i.src=n;var r={img:i,assetData:t};return r}function s(e){var t={assetData:e},n=o(e,this.assetsPath,this.path);return Q.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function l(e,t){var n;this.imagesLoadedCb=t;var o=e.length;for(n=0;n<o;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))}function d(e){this.path=e||""}function p(e){this.assetsPath=e||""}function u(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null}function m(){this.imagesLoadedCb=null,this.images.length=0}function h(){return this.totalImages===this.loadedAssets}function g(){return this.totalFootages===this.loadedFootagesCount}function x(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function f(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return f.prototype={loadAssets:l,setAssetsPath:p,setPath:d,loadedImages:h,loadedFootages:g,destroy:m,getAsset:u,createImgData:a,createImageData:r,imageLoaded:t,footageLoaded:n,setCacheType:x},f}();function K(){}K.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],o=0;o<n.length;o+=1)n[o](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,o=this._cbs[e].length;n<o;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,o-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var Z=function(){function e(e){for(var t,n=e.split("\r\n"),o={},i=0,r=0;r<n.length;r+=1)2===(t=n[r].split(":")).length&&(o[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return o}return function(t){for(var n=[],o=0;o<t.length;o+=1){var i=t[o],r={time:i.tm,duration:i.dr};try{r.payload=JSON.parse(t[o].cm)}catch(a){try{r.payload=e(t[o].cm)}catch(s){r.payload={name:t[o].cm}}}n.push(r)}return n}}(),X=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),J={},ee=function(e,t){J[e]=t};function te(e){return J[e]}function ne(){if(J.canvas)return"canvas";for(var e in J)if(J[e])return e;return""}function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ie=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=D(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=N(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=X(),this.imagePreloader=new Y,this.audioController=u(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new R("drawnFrame",0,0,0),this.expressionsPlugin=H()};d([K],ie),ie.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=te(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Q.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ie.prototype.onSetupError=function(){this.trigger("data_failed")},ie.prototype.setupAnimation=function(e){Q.completeAnimation(e,this.configAnimation)},ie.prototype.setData=function(e,t){t&&"object"!==oe(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},o=e.attributes;n.path=o.getNamedItem("data-animation-path")?o.getNamedItem("data-animation-path").value:o.getNamedItem("data-bm-path")?o.getNamedItem("data-bm-path").value:o.getNamedItem("bm-path")?o.getNamedItem("bm-path").value:"",n.animType=o.getNamedItem("data-anim-type")?o.getNamedItem("data-anim-type").value:o.getNamedItem("data-bm-type")?o.getNamedItem("data-bm-type").value:o.getNamedItem("bm-type")?o.getNamedItem("bm-type").value:o.getNamedItem("data-bm-renderer")?o.getNamedItem("data-bm-renderer").value:o.getNamedItem("bm-renderer")?o.getNamedItem("bm-renderer").value:ne()||"canvas";var i=o.getNamedItem("data-anim-loop")?o.getNamedItem("data-anim-loop").value:o.getNamedItem("data-bm-loop")?o.getNamedItem("data-bm-loop").value:o.getNamedItem("bm-loop")?o.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var r=o.getNamedItem("data-anim-autoplay")?o.getNamedItem("data-anim-autoplay").value:o.getNamedItem("data-bm-autoplay")?o.getNamedItem("data-bm-autoplay").value:!o.getNamedItem("bm-autoplay")||o.getNamedItem("bm-autoplay").value;n.autoplay="false"!==r,n.name=o.getNamedItem("data-name")?o.getNamedItem("data-name").value:o.getNamedItem("data-bm-name")?o.getNamedItem("data-bm-name").value:o.getNamedItem("bm-name")?o.getNamedItem("bm-name").value:"","false"===(o.getNamedItem("data-anim-prerender")?o.getNamedItem("data-anim-prerender").value:o.getNamedItem("data-bm-prerender")?o.getNamedItem("data-bm-prerender").value:o.getNamedItem("bm-prerender")?o.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},ie.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,o=this.animationData.layers,i=o.length,r=e.layers,a=r.length;for(n=0;n<a;n+=1)for(t=0;t<i;){if(o[t].id===r[n].id){o[t]=r[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,Q.completeAnimation(this.animationData,this.onSegmentComplete)},ie.prototype.onSegmentComplete=function(e){this.animationData=e;var t=H();t&&t.initExpressions(this),this.loadNextSegment()},ie.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Q.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},ie.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ie.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ie.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ie.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=Z(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},ie.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ie.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=H();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ie.prototype.resize=function(e,t){var n="number"==typeof e?e:void 0,o="number"==typeof t?t:void 0;this.renderer.updateContainerSize(n,o)},ie.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ie.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ie.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ie.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ie.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ie.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},ie.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ie.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},ie.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var o=Number(e);if(isNaN(o)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ie.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var o=Number(e);if(isNaN(o)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(o,t,n);this.play()}},ie.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},ie.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},ie.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},ie.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===oe(e[0])){var n,o=e.length;for(n=0;n<o;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ie.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ie.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},ie.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ie.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ie.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ie.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ie.prototype.setLoop=function(e){this.loop=e},ie.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},ie.prototype.getVolume=function(){return this.audioController.getVolume()},ie.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ie.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ie.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ie.prototype.getPath=function(){return this.path},ie.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},ie.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},ie.prototype.hide=function(){this.renderer.hide()},ie.prototype.show=function(){this.renderer.show()},ie.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ie.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(o){}},ie.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new R(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new j(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new A(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new T(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new I(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new R(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new j(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new A(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new T(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new I(e,this))},ie.prototype.triggerRenderFrameError=function(e){var t=new k(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},ie.prototype.triggerConfigError=function(e){var t=new L(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var re=function(){var e={},t=[],n=0,o=0,i=0,r=!0,a=!1;function s(e){for(var n=0,i=e.target;n<o;)t[n].animation===i&&(t.splice(n,1),n-=1,o-=1,i.isPaused||u()),n+=1}function l(e,n){if(!e)return null;for(var i=0;i<o;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var r=new ie;return m(r,e),r.setData(e,n),r}function d(){var e,n=t.length,o=[];for(e=0;e<n;e+=1)o.push(t[e].animation);return o}function p(){i+=1,A()}function u(){i-=1}function m(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",p),e.addEventListener("_idle",u),t.push({elem:n,animation:e}),o+=1}function h(e){var t=new ie;return m(t,null),t.setParams(e),t}function g(e,n){var i;for(i=0;i<o;i+=1)t[i].animation.setSpeed(e,n)}function x(e,n){var i;for(i=0;i<o;i+=1)t[i].animation.setDirection(e,n)}function f(e){var n;for(n=0;n<o;n+=1)t[n].animation.play(e)}function y(e){var s,l=e-n;for(s=0;s<o;s+=1)t[s].animation.advanceTime(l);n=e,i&&!a?window.requestAnimationFrame(y):r=!0}function S(e){n=e,window.requestAnimationFrame(y)}function C(e){var n;for(n=0;n<o;n+=1)t[n].animation.pause(e)}function b(e,n,i){var r;for(r=0;r<o;r+=1)t[r].animation.goToAndStop(e,n,i)}function $(e){var n;for(n=0;n<o;n+=1)t[n].animation.stop(e)}function v(e){var n;for(n=0;n<o;n+=1)t[n].animation.togglePause(e)}function E(e){var n;for(n=o-1;n>=0;n-=1)t[n].animation.destroy(e)}function w(e,t,n){var o,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),r=i.length;for(o=0;o<r;o+=1)n&&i[o].setAttribute("data-bm-type",n),l(i[o],e);if(t&&0===r){n||(n="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=c("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),a.appendChild(s),l(s,e)}}function R(){var e;for(e=0;e<o;e+=1)t[e].animation.resize()}function A(){!a&&i&&r&&(window.requestAnimationFrame(S),r=!1)}function j(){a=!0}function T(){a=!1,A()}function I(e,n){var i;for(i=0;i<o;i+=1)t[i].animation.setVolume(e,n)}function k(e){var n;for(n=0;n<o;n+=1)t[n].animation.mute(e)}function L(e){var n;for(n=0;n<o;n+=1)t[n].animation.unmute(e)}return e.registerAnimation=l,e.loadAnimation=h,e.setSpeed=g,e.setDirection=x,e.play=f,e.pause=C,e.stop=$,e.togglePause=v,e.searchAnimations=w,e.resize=R,e.goToAndStop=b,e.destroy=E,e.freeze=j,e.unfreeze=T,e.setVolume=I,e.mute=k,e.unmute=L,e.getRegisteredAnimations=d,e}(),ae=function(){var e={};e.getBezierEasing=n;var t={};function n(e,n,o,i,r){var a=r||("bez_"+e+"_"+n+"_"+o+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var s=new f([e,n,o,i]);return t[a]=s,s}var o=4,i=.001,r=1e-7,a=10,s=11,l=1/(s-1),c="function"==typeof Float32Array;function d(e,t){return 1-3*t+3*e}function p(e,t){return 3*t-6*e}function u(e){return 3*e}function m(e,t,n){return((d(t,n)*e+p(t,n))*e+u(t))*e}function h(e,t,n){return 3*d(t,n)*e*e+2*p(t,n)*e+u(t)}function g(e,t,n,o,i){var s,l,c=0;do{(s=m(l=t+(n-t)/2,o,i)-e)>0?n=l:t=l}while(Math.abs(s)>r&&++c<a);return l}function x(e,t,n,i){for(var r=0;r<o;++r){var a=h(t,n,i);if(0===a)return t;t-=(m(t,n,i)-e)/a}return t}function f(e){this._p=e,this._mSampleValues=c?new Float32Array(s):new Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return f.prototype={get:function(e){var t=this._p[0],n=this._p[1],o=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===n&&o===i?e:0===e?0:1===e?1:m(this._getTForX(e),n,i)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],o=this._p[3];this._precomputed=!0,e===t&&n===o||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<s;++n)this._mSampleValues[n]=m(n*l,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],o=this._mSampleValues,r=0,a=1,c=s-1;a!==c&&o[a]<=e;++a)r+=l;var d=r+(e-o[--a])/(o[a+1]-o[a])*l,p=h(d,t,n);return p>=i?x(e,d,t,n):0===p?d:g(e,r,r+l,t,n)}},e}(),se=function(){function e(e){return e.concat(h(e.length))}return{double:e}}(),le=function(){return function(e,t,n){var o=0,i=e,r=h(i);function a(){return o?r[o-=1]:t()}function s(e){o===i&&(r=se.double(r),i*=2),n&&n(e),r[o]=e,o+=1}return{newElement:a,release:s}}}(),ce=function(){function e(){return{addedLength:0,percents:m("float32",W()),lengths:m("float32",W())}}return le(8,e)}(),de=function(){function e(){return{lengths:[],totalLength:0}}function t(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)ce.release(e.lengths[t]);e.lengths.length=0}return le(8,e,t)}();function pe(){var e=Math;function t(e,t,n,o,i,r){var a=e*o+t*i+n*r-i*o-r*e-n*t;return a>-.001&&a<.001}function n(n,o,i,r,a,s,l,c,d){if(0===i&&0===s&&0===d)return t(n,o,r,a,l,c);var p,u=e.sqrt(e.pow(r-n,2)+e.pow(a-o,2)+e.pow(s-i,2)),m=e.sqrt(e.pow(l-n,2)+e.pow(c-o,2)+e.pow(d-i,2)),h=e.sqrt(e.pow(l-r,2)+e.pow(c-a,2)+e.pow(d-s,2));return(p=u>m?u>h?u-m-h:h-m-u:h>m?h-m-u:m-u-h)>-1e-4&&p<1e-4}var o=function(){return function(e,t,n,o){var i,r,a,s,l,c,d=W(),p=0,u=[],m=[],h=ce.newElement();for(a=n.length,i=0;i<d;i+=1){for(l=i/(d-1),c=0,r=0;r<a;r+=1)s=S(1-l,3)*e[r]+3*S(1-l,2)*l*n[r]+3*(1-l)*S(l,2)*o[r]+S(l,3)*t[r],u[r]=s,null!==m[r]&&(c+=S(u[r]-m[r],2)),m[r]=u[r];c&&(p+=c=C(c)),h.percents[i]=l,h.lengths[i]=p}return h.addedLength=p,h}}();function i(e){var t,n=de.newElement(),i=e.c,r=e.v,a=e.o,s=e.i,l=e._length,c=n.lengths,d=0;for(t=0;t<l-1;t+=1)c[t]=o(r[t],r[t+1],a[t],s[t+1]),d+=c[t].addedLength;return i&&l&&(c[t]=o(r[t],r[0],a[t],s[0]),d+=c[t].addedLength),n.totalLength=d,n}function r(e){this.segmentLength=0,this.points=new Array(e)}function a(e,t){this.partialLength=e,this.point=t}var s=function(){var e={};return function(n,o,i,s){var l=(n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!e[l]){var c,d,p,u,m,g,x,f=W(),y=0,b=null;2===n.length&&(n[0]!==o[0]||n[1]!==o[1])&&t(n[0],n[1],o[0],o[1],n[0]+i[0],n[1]+i[1])&&t(n[0],n[1],o[0],o[1],o[0]+s[0],o[1]+s[1])&&(f=2);var $=new r(f);for(p=i.length,c=0;c<f;c+=1){for(x=h(p),m=c/(f-1),g=0,d=0;d<p;d+=1)u=S(1-m,3)*n[d]+3*S(1-m,2)*m*(n[d]+i[d])+3*(1-m)*S(m,2)*(o[d]+s[d])+S(m,3)*o[d],x[d]=u,null!==b&&(g+=S(x[d]-b[d],2));y+=g=C(g),$.points[c]=new a(g,x),b=x}$.segmentLength=y,e[l]=$}return e[l]}}();function l(e,t){var n=t.percents,o=t.lengths,i=n.length,r=b((i-1)*e),a=e*t.addedLength,s=0;if(r===i-1||0===r||a===o[r])return n[r];for(var l=o[r]>a?-1:1,c=!0;c;)if(o[r]<=a&&o[r+1]>a?(s=(a-o[r])/(o[r+1]-o[r]),c=!1):r+=l,r<0||r>=i-1){if(r===i-1)return n[r];c=!1}return n[r]+(n[r+1]-n[r])*s}function c(t,n,o,i,r,a){var s=l(r,a),c=1-s;return[e.round(1e3*(c*c*c*t[0]+(s*c*c+c*s*c+c*c*s)*o[0]+(s*s*c+c*s*s+s*c*s)*i[0]+s*s*s*n[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(s*c*c+c*s*c+c*c*s)*o[1]+(s*s*c+c*s*s+s*c*s)*i[1]+s*s*s*n[1]))/1e3]}var d=m("float32",8);function p(t,n,o,i,r,a,s){r<0?r=0:r>1&&(r=1);var c,p=l(r,s),u=l(a=a>1?1:a,s),m=t.length,h=1-p,g=1-u,x=h*h*h,f=p*h*h*3,y=p*p*h*3,S=p*p*p,C=h*h*g,b=p*h*g+h*p*g+h*h*u,$=p*p*g+h*p*u+p*h*u,v=p*p*u,E=h*g*g,w=p*g*g+h*u*g+h*g*u,R=p*u*g+h*u*u+p*g*u,A=p*u*u,j=g*g*g,T=u*g*g+g*u*g+g*g*u,I=u*u*g+g*u*u+u*g*u,k=u*u*u;for(c=0;c<m;c+=1)d[4*c]=e.round(1e3*(x*t[c]+f*o[c]+y*i[c]+S*n[c]))/1e3,d[4*c+1]=e.round(1e3*(C*t[c]+b*o[c]+$*i[c]+v*n[c]))/1e3,d[4*c+2]=e.round(1e3*(E*t[c]+w*o[c]+R*i[c]+A*n[c]))/1e3,d[4*c+3]=e.round(1e3*(j*t[c]+T*o[c]+I*i[c]+k*n[c]))/1e3;return d}return{getSegmentsLength:i,getNewSegment:p,getPointInSegment:c,buildBezierData:s,pointOnLine2D:t,pointOnLine3D:n}}var ue=pe(),me=i,he=Math.abs;function ge(e,t){var n,o=this.offsetTime;"multidimensional"===this.propType&&(n=m("float32",this.pv.length));for(var i,r,a,s,l,c,d,p,u,h=t.lastIndex,g=h,x=this.keyframes.length-1,f=!0;f;){if(i=this.keyframes[g],r=this.keyframes[g+1],g===x-1&&e>=r.t-o){i.h&&(i=r),h=0;break}if(r.t-o>e){h=g;break}g<x-1?g+=1:(h=0,f=!1)}a=this.keyframesMetadata[g]||{};var y,S=r.t-o,C=i.t-o;if(i.to){a.bezierData||(a.bezierData=ue.buildBezierData(i.s,r.s||i.e,i.to,i.ti));var b=a.bezierData;if(e>=S||e<C){var $=e>=S?b.points.length-1:0;for(l=b.points[$].point.length,s=0;s<l;s+=1)n[s]=b.points[$].point[s]}else{a.__fnct?u=a.__fnct:(u=ae.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,a.__fnct=u),c=u((e-C)/(S-C));var v,E=b.segmentLength*c,w=t.lastFrame<e&&t._lastKeyframeIndex===g?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===g?t._lastPoint:0,f=!0,d=b.points.length;f;){if(w+=b.points[p].partialLength,0===E||0===c||p===b.points.length-1){for(l=b.points[p].point.length,s=0;s<l;s+=1)n[s]=b.points[p].point[s];break}if(E>=w&&E<w+b.points[p+1].partialLength){for(v=(E-w)/b.points[p+1].partialLength,l=b.points[p].point.length,s=0;s<l;s+=1)n[s]=b.points[p].point[s]+(b.points[p+1].point[s]-b.points[p].point[s])*v;break}p<d-1?p+=1:f=!1}t._lastPoint=p,t._lastAddedLength=w-b.points[p].partialLength,t._lastKeyframeIndex=g}}else{var R,A,j,T,I;if(x=i.s.length,y=r.s||i.e,this.sh&&1!==i.h)e>=S?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):e<=C?(n[0]=i.s[0],n[1]=i.s[1],n[2]=i.s[2]):fe(n,xe(ye(i.s),ye(y),(e-C)/(S-C)));else for(g=0;g<x;g+=1)1!==i.h&&(e>=S?c=1:e<C?c=0:(i.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[g]?u=a.__fnct[g]:(R=void 0===i.o.x[g]?i.o.x[0]:i.o.x[g],A=void 0===i.o.y[g]?i.o.y[0]:i.o.y[g],j=void 0===i.i.x[g]?i.i.x[0]:i.i.x[g],T=void 0===i.i.y[g]?i.i.y[0]:i.i.y[g],u=ae.getBezierEasing(R,A,j,T).get,a.__fnct[g]=u)):a.__fnct?u=a.__fnct:(R=i.o.x,A=i.o.y,j=i.i.x,T=i.i.y,u=ae.getBezierEasing(R,A,j,T).get,i.keyframeMetadata=u),c=u((e-C)/(S-C)))),y=r.s||i.e,I=1===i.h?i.s[g]:i.s[g]+(y[g]-i.s[g])*c,"multidimensional"===this.propType?n[g]=I:n=I}return t.lastIndex=h,n}function xe(e,t,n){var o,i,r,a,s,l=[],c=e[0],d=e[1],p=e[2],u=e[3],m=t[0],h=t[1],g=t[2],x=t[3];return(i=c*m+d*h+p*g+u*x)<0&&(i=-i,m=-m,h=-h,g=-g,x=-x),1-i>1e-6?(o=Math.acos(i),r=Math.sin(o),a=Math.sin((1-n)*o)/r,s=Math.sin(n*o)/r):(a=1-n,s=n),l[0]=a*c+s*m,l[1]=a*d+s*h,l[2]=a*p+s*g,l[3]=a*u+s*x,l}function fe(e,t){var n=t[0],o=t[1],i=t[2],r=t[3],a=Math.atan2(2*o*r-2*n*i,1-2*o*o-2*i*i),s=Math.asin(2*n*o+2*i*r),l=Math.atan2(2*n*r-2*o*i,1-2*n*n-2*i*i);e[0]=a/E,e[1]=s/E,e[2]=l/E}function ye(e){var t=e[0]*E,n=e[1]*E,o=e[2]*E,i=Math.cos(t/2),r=Math.cos(n/2),a=Math.cos(o/2),s=Math.sin(t/2),l=Math.sin(n/2),c=Math.sin(o/2);return[s*l*a+i*r*c,s*r*a+i*l*c,i*l*a-s*r*c,i*r*a-s*l*c]}function Se(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==me&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var o=this.interpolateValue(e,this._caching);this.pv=o}return this._caching.lastFrame=e,this.pv}function Ce(e){var t;if("unidimensional"===this.propType)t=e*this.mult,he(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,o=this.v.length;n<o;)t=e[n]*this.mult,he(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function be(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function $e(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ve(e,t,n,o){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=o,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=be,this.setVValue=Ce,this.addEffect=$e}function Ee(e,t,n,o){var i;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=o,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r=t.k.length;for(this.v=m("float32",r),this.pv=m("float32",r),this.vel=m("float32",r),i=0;i<r;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=be,this.setVValue=Ce,this.addEffect=$e}function we(e,t,n,o){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:me,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=o,this.comp=e.comp,this.v=me,this.pv=me,this._isFirstFrame=!0,this.getValue=be,this.setVValue=Ce,this.interpolateValue=ge,this.effectsSequence=[Se.bind(this)],this.addEffect=$e}function Re(e,t,n,o){var i;this.propType="multidimensional";var r,a,s,l,c=t.k.length;for(i=0;i<c-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(r=t.k[i].s,a=t.k[i+1].s,s=t.k[i].to,l=t.k[i].ti,(2===r.length&&(r[0]!==a[0]||r[1]!==a[1])&&ue.pointOnLine2D(r[0],r[1],a[0],a[1],r[0]+s[0],r[1]+s[1])&&ue.pointOnLine2D(r[0],r[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===r.length&&(r[0]!==a[0]||r[1]!==a[1]||r[2]!==a[2])&&ue.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],r[0]+s[0],r[1]+s[1],r[2]+s[2])&&ue.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[i].to=null,t.k[i].ti=null),r[0]===a[0]&&r[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===r.length||r[2]===a[2]&&0===s[2]&&0===l[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[Se.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=o,this.comp=e.comp,this.getValue=be,this.setVValue=Ce,this.interpolateValue=ge,this.frameId=-1;var d=t.k[0].s.length;for(this.v=m("float32",d),this.pv=m("float32",d),i=0;i<d;i+=1)this.v[i]=me,this.pv[i]=me;this._caching={lastFrame:me,lastIndex:0,value:m("float32",d)},this.addEffect=$e}var Ae=function(){function e(e,t,n,o,i){var r;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])r=new Ee(e,t,o,i);else switch(n){case 0:r=new we(e,t,o,i);break;case 1:r=new Re(e,t,o,i)}else r=new ve(e,t,o,i);return r.effectsSequence.length&&i.addDynamicProperty(r),r}return{getProp:e}}();function je(){}je.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Te=function(){function e(){return m("float32",2)}return le(8,e)}();function Ie(){this.c=!1,this._length=0,this._maxLength=8,this.v=h(this._maxLength),this.o=h(this._maxLength),this.i=h(this._maxLength)}Ie.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=Te.newElement(),this.o[n]=Te.newElement(),this.i[n]=Te.newElement(),n+=1},Ie.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Ie.prototype.doubleArrayLength=function(){this.v=this.v.concat(h(this._maxLength)),this.i=this.i.concat(h(this._maxLength)),this.o=this.o.concat(h(this._maxLength)),this._maxLength*=2},Ie.prototype.setXYAt=function(e,t,n,o,i){var r;switch(this._length=Math.max(this._length,o+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}(!r[o]||r[o]&&!i)&&(r[o]=Te.newElement()),r[o][0]=e,r[o][1]=t},Ie.prototype.setTripleAt=function(e,t,n,o,i,r,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(n,o,"o",a,s),this.setXYAt(i,r,"i",a,s)},Ie.prototype.reverse=function(){var e=new Ie;e.setPathData(this.c,this._length);var t=this.v,n=this.o,o=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],o[0][0],o[0][1],n[0][0],n[0][1],0,!1),i=1);var r,a=this._length-1,s=this._length;for(r=i;r<s;r+=1)e.setTripleAt(t[a][0],t[a][1],o[a][0],o[a][1],n[a][0],n[a][1],r,!1),a-=1;return e},Ie.prototype.length=function(){return this._length};var ke=function(){function e(){return new Ie}function t(e){var t,n=e._length;for(t=0;t<n;t+=1)Te.release(e.v[t]),Te.release(e.i[t]),Te.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}function n(e){var t,n=o.newElement(),i=void 0===e._length?e.v.length:e._length;for(n.setLength(i),n.c=e.c,t=0;t<i;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n}var o=le(4,e,t);return o.clone=n,o}();function Le(){this._length=0,this._maxLength=4,this.shapes=h(this._maxLength)}Le.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(h(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Le.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ke.release(this.shapes[e]);this._length=0};var De=function(){var e={newShapeCollection:i,release:r},t=0,n=4,o=h(n);function i(){return t?o[t-=1]:new Le}function r(e){var i,r=e._length;for(i=0;i<r;i+=1)ke.release(e.shapes[i]);e._length=0,t===n&&(o=se.double(o),n*=2),o[t]=e,t+=1}return e}(),_e=function(){var e=-999999;function t(e,t,n){var o,i,r,a,s,l,c,d,p,u=n.lastIndex,m=this.keyframes;if(e<m[0].t-this.offsetTime)o=m[0].s[0],r=!0,u=0;else if(e>=m[m.length-1].t-this.offsetTime)o=m[m.length-1].s?m[m.length-1].s[0]:m[m.length-2].e[0],r=!0;else{for(var h,g,x,f=u,y=m.length-1,S=!0;S&&(h=m[f],!((g=m[f+1]).t-this.offsetTime>e));)f<y-1?f+=1:S=!1;if(x=this.keyframesMetadata[f]||{},u=f,!(r=1===h.h)){if(e>=g.t-this.offsetTime)d=1;else if(e<h.t-this.offsetTime)d=0;else{var C;x.__fnct?C=x.__fnct:(C=ae.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,x.__fnct=C),d=C((e-(h.t-this.offsetTime))/(g.t-this.offsetTime-(h.t-this.offsetTime)))}i=g.s?g.s[0]:h.e[0]}o=h.s[0]}for(l=t._length,c=o.i[0].length,n.lastIndex=u,a=0;a<l;a+=1)for(s=0;s<c;s+=1)p=r?o.i[a][s]:o.i[a][s]+(i.i[a][s]-o.i[a][s])*d,t.i[a][s]=p,p=r?o.o[a][s]:o.o[a][s]+(i.o[a][s]-o.o[a][s])*d,t.o[a][s]=p,p=r?o.v[a][s]:o.v[a][s]+(i.v[a][s]-o.v[a][s])*d,t.v[a][s]=p}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,o=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<n&&t<n||i>o&&t>o)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function o(){this.paths=this.localShapeCollection}function i(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,o=e._length;for(n=0;n<o;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0}function r(e){i(this.v,e)||(this.v=ke.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?t.pt.k:t.ks.k;this.v=ke.clone(i),this.pv=ke.clone(this.v),this.localShapeCollection=De.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=o,this.effectsSequence=[]}function l(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function c(t,i,r){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===r?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=ke.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=ke.clone(this.v),this.localShapeCollection=De.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=o,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=a,s.prototype.setVValue=r,s.prototype.addEffect=l,c.prototype.getValue=a,c.prototype.interpolateShape=t,c.prototype.setVValue=r,c.prototype.addEffect=l;var p=function(){var e=w;function t(e,t){this.v=ke.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=De.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=Ae.getProp(e,t.p,1,0,this),this.s=Ae.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:o,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],o=this.s.v[0]/2,i=this.s.v[1]/2,r=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=n-i,a.v[1][0]=r?t+o:t-o,a.v[1][1]=n,a.v[2][0]=t,a.v[2][1]=n+i,a.v[3][0]=r?t-o:t+o,a.v[3][1]=n,a.i[0][0]=r?t-o*e:t+o*e,a.i[0][1]=n-i,a.i[1][0]=r?t+o:t-o,a.i[1][1]=n-i*e,a.i[2][0]=r?t+o*e:t-o*e,a.i[2][1]=n+i,a.i[3][0]=r?t-o:t+o,a.i[3][1]=n+i*e,a.o[0][0]=r?t+o*e:t-o*e,a.o[0][1]=n-i,a.o[1][0]=r?t+o:t-o,a.o[1][1]=n+i*e,a.o[2][0]=r?t-o*e:t+o*e,a.o[2][1]=n+i,a.o[3][0]=r?t-o:t+o,a.o[3][1]=n-i*e}},d([je],t),t}(),u=function(){function e(e,t){this.v=ke.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=Ae.getProp(e,t.ir,0,0,this),this.is=Ae.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Ae.getProp(e,t.pt,0,0,this),this.p=Ae.getProp(e,t.p,1,0,this),this.r=Ae.getProp(e,t.r,0,E,this),this.or=Ae.getProp(e,t.or,0,0,this),this.os=Ae.getProp(e,t.os,0,.01,this),this.localShapeCollection=De.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:o,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,o,i=2*Math.floor(this.pt.v),r=2*Math.PI/i,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,d=this.is.v,p=2*Math.PI*s/(2*i),u=2*Math.PI*l/(2*i),m=-Math.PI/2;m+=this.r.v;var h=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){n=a?c:d,o=a?p:u;var g=(t=a?s:l)*Math.cos(m),x=t*Math.sin(m),f=0===g&&0===x?0:x/Math.sqrt(g*g+x*x),y=0===g&&0===x?0:-g/Math.sqrt(g*g+x*x);g+=+this.p.v[0],x+=+this.p.v[1],this.v.setTripleAt(g,x,g-f*o*n*h,x-y*o*n*h,g+f*o*n*h,x+y*o*n*h,e,!0),a=!a,m+=r*h}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,o=this.or.v,i=this.os.v,r=2*Math.PI*o/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=o*Math.cos(a),c=o*Math.sin(a),d=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),p=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-d*r*i*s,c-p*r*i*s,l+d*r*i*s,c+p*r*i*s,e,!0),a+=n*s}this.paths.length=0,this.paths[0]=this.v}},d([je],e),e}(),m=function(){function e(e,t){this.v=ke.newElement(),this.v.c=!0,this.localShapeCollection=De.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=Ae.getProp(e,t.p,1,0,this),this.s=Ae.getProp(e,t.s,1,0,this),this.r=Ae.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,o=this.s.v[1]/2,i=$(n,o,this.r.v),r=i*(1-w);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-o+i,e+n,t-o+i,e+n,t-o+r,0,!0),this.v.setTripleAt(e+n,t+o-i,e+n,t+o-r,e+n,t+o-i,1,!0),0!==i?(this.v.setTripleAt(e+n-i,t+o,e+n-i,t+o,e+n-r,t+o,2,!0),this.v.setTripleAt(e-n+i,t+o,e-n+r,t+o,e-n+i,t+o,3,!0),this.v.setTripleAt(e-n,t+o-i,e-n,t+o-i,e-n,t+o-r,4,!0),this.v.setTripleAt(e-n,t-o+i,e-n,t-o+r,e-n,t-o+i,5,!0),this.v.setTripleAt(e-n+i,t-o,e-n+i,t-o,e-n+r,t-o,6,!0),this.v.setTripleAt(e+n-i,t-o,e+n-r,t-o,e+n-i,t-o,7,!0)):(this.v.setTripleAt(e-n,t+o,e-n+r,t+o,e-n,t+o,2),this.v.setTripleAt(e-n,t-o,e-n,t-o+r,e-n,t-o,3))):(this.v.setTripleAt(e+n,t-o+i,e+n,t-o+r,e+n,t-o+i,0,!0),0!==i?(this.v.setTripleAt(e+n-i,t-o,e+n-i,t-o,e+n-r,t-o,1,!0),this.v.setTripleAt(e-n+i,t-o,e-n+r,t-o,e-n+i,t-o,2,!0),this.v.setTripleAt(e-n,t-o+i,e-n,t-o+i,e-n,t-o+r,3,!0),this.v.setTripleAt(e-n,t+o-i,e-n,t+o-r,e-n,t+o-i,4,!0),this.v.setTripleAt(e-n+i,t+o,e-n+i,t+o,e-n+r,t+o,5,!0),this.v.setTripleAt(e+n-i,t+o,e+n-r,t+o,e+n-i,t+o,6,!0),this.v.setTripleAt(e+n,t+o-i,e+n,t+o-i,e+n,t+o-r,7,!0)):(this.v.setTripleAt(e-n,t-o,e-n+r,t-o,e-n,t-o,1,!0),this.v.setTripleAt(e-n,t+o,e-n,t+o-r,e-n,t+o,2,!0),this.v.setTripleAt(e+n,t+o,e+n-r,t+o,e+n,t+o,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:o},d([je],e),e}();function h(e,t,n){var o;return 3===n||4===n?o=(3===n?t.pt:t.ks).k.length?new c(e,t,n):new s(e,t,n):5===n?o=new m(e,t):6===n?o=new p(e,t):7===n&&(o=new u(e,t)),o.k&&e.addDynamicProperty(o),o}function g(){return s}function x(){return c}var f={};return f.getShapeProp=h,f.getConstructorFunction=g,f.getKeyframedConstructorFunction=x,f}(),Pe=function(){var e=Math.cos,t=Math.sin,n=Math.tan,o=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function r(n){if(0===n)return this;var o=e(n),i=t(n);return this._t(o,-i,0,0,i,o,0,0,0,0,1,0,0,0,0,1)}function a(n){if(0===n)return this;var o=e(n),i=t(n);return this._t(1,0,0,0,0,o,-i,0,0,i,o,0,0,0,0,1)}function s(n){if(0===n)return this;var o=e(n),i=t(n);return this._t(o,0,i,0,0,1,0,0,-i,0,o,0,0,0,0,1)}function l(n){if(0===n)return this;var o=e(n),i=t(n);return this._t(o,-i,0,0,i,o,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function d(e,t){return this.shear(n(e),n(t))}function p(o,i){var r=e(i),a=t(i);return this._t(r,a,0,0,-a,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(o),1,0,0,0,0,1,0,0,0,0,1)._t(r,-a,0,0,a,r,0,0,0,0,1,0,0,0,0,1)}function u(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function h(e,t,n,o,i,r,a,s,l,c,d,p,u,m,h,g){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=o,this.props[4]=i,this.props[5]=r,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=d,this.props[11]=p,this.props[12]=u,this.props[13]=m,this.props[14]=h,this.props[15]=g,this}function g(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function x(e,t,n,o,i,r,a,s,l,c,d,p,u,m,h,g){var x=this.props;if(1===e&&0===t&&0===n&&0===o&&0===i&&1===r&&0===a&&0===s&&0===l&&0===c&&1===d&&0===p)return x[12]=x[12]*e+x[15]*u,x[13]=x[13]*r+x[15]*m,x[14]=x[14]*d+x[15]*h,x[15]*=g,this._identityCalculated=!1,this;var f=x[0],y=x[1],S=x[2],C=x[3],b=x[4],$=x[5],v=x[6],E=x[7],w=x[8],R=x[9],A=x[10],j=x[11],T=x[12],I=x[13],k=x[14],L=x[15];return x[0]=f*e+y*i+S*l+C*u,x[1]=f*t+y*r+S*c+C*m,x[2]=f*n+y*a+S*d+C*h,x[3]=f*o+y*s+S*p+C*g,x[4]=b*e+$*i+v*l+E*u,x[5]=b*t+$*r+v*c+E*m,x[6]=b*n+$*a+v*d+E*h,x[7]=b*o+$*s+v*p+E*g,x[8]=w*e+R*i+A*l+j*u,x[9]=w*t+R*r+A*c+j*m,x[10]=w*n+R*a+A*d+j*h,x[11]=w*o+R*s+A*p+j*g,x[12]=T*e+I*i+k*l+L*u,x[13]=T*t+I*r+k*c+L*m,x[14]=T*n+I*a+k*d+L*h,x[15]=T*o+I*s+k*p+L*g,this._identityCalculated=!1,this}function f(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function S(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function C(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function b(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function $(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function v(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function E(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function w(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function R(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,o=-this.props[4]/e,i=this.props[0]/e,r=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Pe;return s.props[0]=t,s.props[1]=n,s.props[4]=o,s.props[5]=i,s.props[12]=r,s.props[13]=a,s}function A(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function j(e){var t,n=e.length,o=[];for(t=0;t<n;t+=1)o[t]=A(e[t]);return o}function T(e,t,n){var o=m("float32",6);if(this.isIdentity())o[0]=e[0],o[1]=e[1],o[2]=t[0],o[3]=t[1],o[4]=n[0],o[5]=n[1];else{var i=this.props[0],r=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];o[0]=e[0]*i+e[1]*a+l,o[1]=e[0]*r+e[1]*s+c,o[2]=t[0]*i+t[1]*a+l,o[3]=t[0]*r+t[1]*s+c,o[4]=n[0]*i+n[1]*a+l,o[5]=n[0]*r+n[1]*s+c}return o}function I(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function k(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function L(){for(var e=0,t=this.props,n="matrix3d(",i=1e4;e<16;)n+=o(t[e]*i)/i,n+=15===e?")":",",e+=1;return n}function D(e){var t=1e4;return e<1e-6&&e>0||e>-1e-6&&e<0?o(e*t)/t:e}function _(){var e=this.props;return"matrix("+D(e[0])+","+D(e[1])+","+D(e[4])+","+D(e[5])+","+D(e[12])+","+D(e[13])+")"}return function(){this.reset=i,this.rotate=r,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=d,this.skewFromAxis=p,this.shear=c,this.scale=u,this.setTransform=h,this.translate=g,this.transform=x,this.multiply=f,this.applyToPoint=$,this.applyToX=v,this.applyToY=E,this.applyToZ=w,this.applyToPointArray=I,this.applyToTriplePoints=T,this.applyToPointStringified=k,this.toCSS=L,this.to2dCSS=_,this.clone=C,this.cloneFromProps=b,this.equals=S,this.inversePoints=j,this.inversePoint=A,this.getInverseMatrix=R,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=m("float32",16),this.reset()}}();function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Me={};function Oe(e){s(e)}function Fe(){re.searchAnimations()}function Ne(e){F(e)}function ze(e){U(e)}function He(e){return re.loadAnimation(e)}function Ve(e){if("string"==typeof e)switch(e){case"high":V(200);break;default:case"medium":V(50);break;case"low":V(10)}else!isNaN(e)&&e>1&&V(e)}function We(){return"undefined"!=typeof navigator}function Ue(e,t){"expressions"===e&&z(t)}function Ge(e){switch(e){case"propertyFactory":return Ae;case"shapePropertyFactory":return _e;case"matrix":return Pe;default:return null}}function qe(){"complete"===document.readyState&&(clearInterval(Je),Fe())}function Qe(e){for(var t=Ye.split("&"),n=0;n<t.length;n+=1){var o=t[n].split("=");if(decodeURIComponent(o[0])==e)return decodeURIComponent(o[1])}return null}Me.play=re.play,Me.pause=re.pause,Me.setLocationHref=Oe,Me.togglePause=re.togglePause,Me.setSpeed=re.setSpeed,Me.setDirection=re.setDirection,Me.stop=re.stop,Me.searchAnimations=Fe,Me.registerAnimation=re.registerAnimation,Me.loadAnimation=He,Me.setSubframeRendering=Ne,Me.resize=re.resize,Me.goToAndStop=re.goToAndStop,Me.destroy=re.destroy,Me.setQuality=Ve,Me.inBrowser=We,Me.installPlugin=Ue,Me.freeze=re.freeze,Me.unfreeze=re.unfreeze,Me.setVolume=re.setVolume,Me.mute=re.mute,Me.unmute=re.unmute,Me.getRegisteredAnimations=re.getRegisteredAnimations,Me.useWebWorker=r,Me.setIDPrefix=ze,Me.__getFactory=Ge,Me.version="5.13.0";var Ye="",Ke=document.getElementsByTagName("script"),Ze=Ke.length-1,Xe=Ke[Ze]||{src:""};Ye=Xe.src?Xe.src.replace(/^[^\?]+\??/,""):"",Qe("renderer");var Je=setInterval(qe,100);try{"object"!==Be(t)&&(window.bodymovin=Me)}catch(Xn){}var et=function(){var e={},t={};function n(e,n){t[e]||(t[e]=n)}function o(e,n,o){return new t[e](n,o)}return e.registerModifier=n,e.getModifier=o,e}();function tt(){}function nt(){}function ot(){}tt.prototype.initModifierProperties=function(){},tt.prototype.addShapeToModifier=function(){},tt.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:De.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},tt.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=i,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},tt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},d([je],tt),d([tt],nt),nt.prototype.initModifierProperties=function(e,t){this.s=Ae.getProp(e,t.s,0,.01,this),this.e=Ae.getProp(e,t.e,0,.01,this),this.o=Ae.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},nt.prototype.addShapeToModifier=function(e){e.pathsData=[]},nt.prototype.calculateShapeEdges=function(e,t,n,o,i){var r=[];t<=1?r.push({s:e,e:t}):e>=1?r.push({s:e-1,e:t-1}):(r.push({s:e,e:1}),r.push({s:0,e:t-1}));var a,s,l=[],c=r.length;for(a=0;a<c;a+=1){var d,p;(s=r[a]).e*i<o||s.s*i>o+n||(d=s.s*i<=o?0:(s.s*i-o)/n,p=s.e*i>=o+n?1:(s.e*i-o)/n,l.push([d,p]))}return l.length||l.push([0,0]),l},nt.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)de.release(e[t]);return e.length=0,e},nt.prototype.processShapes=function(e){var t,n,o,i;if(this._mdf||e){var r=this.o.v%360/360;if(r<0&&(r+=1),(t=this.s.v>1?1+r:this.s.v<0?0+r:this.s.v+r)>(n=this.e.v>1?1+r:this.e.v<0?0+r:this.e.v+r)){var a=t;t=n,n=a}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,c,d,p,u=this.shapes.length,m=0;if(n===t)for(i=0;i<u;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(i=0;i<u;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var h,g,x=[];for(i=0;i<u;i+=1)if((h=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(o=h.shape.paths)._length,p=0,!h.shape._mdf&&h.pathsData.length)p=h.totalShapeLength;else{for(c=this.releasePathsData(h.pathsData),s=0;s<l;s+=1)d=ue.getSegmentsLength(o.shapes[s]),c.push(d),p+=d.totalLength;h.totalShapeLength=p,h.pathsData=c}m+=p,h.shape._mdf=!0}else h.shape.paths=h.localShapeCollection;var f,y=t,S=n,C=0;for(i=u-1;i>=0;i-=1)if((h=this.shapes[i]).shape._mdf){for((g=h.localShapeCollection).releaseShapes(),2===this.m&&u>1?(f=this.calculateShapeEdges(t,n,h.totalShapeLength,C,m),C+=h.totalShapeLength):f=[[y,S]],l=f.length,s=0;s<l;s+=1){y=f[s][0],S=f[s][1],x.length=0,S<=1?x.push({s:h.totalShapeLength*y,e:h.totalShapeLength*S}):y>=1?x.push({s:h.totalShapeLength*(y-1),e:h.totalShapeLength*(S-1)}):(x.push({s:h.totalShapeLength*y,e:h.totalShapeLength}),x.push({s:0,e:h.totalShapeLength*(S-1)}));var b=this.addShapes(h,x[0]);if(x[0].s!==x[0].e){if(x.length>1)if(h.shape.paths.shapes[h.shape.paths._length-1].c){var $=b.pop();this.addPaths(b,g),b=this.addShapes(h,x[1],$)}else this.addPaths(b,g),b=this.addShapes(h,x[1]);this.addPaths(b,g)}}h.shape.paths=g}}},nt.prototype.addPaths=function(e,t){var n,o=e.length;for(n=0;n<o;n+=1)t.addShape(e[n])},nt.prototype.addSegment=function(e,t,n,o,i,r,a){i.setXYAt(t[0],t[1],"o",r),i.setXYAt(n[0],n[1],"i",r+1),a&&i.setXYAt(e[0],e[1],"v",r),i.setXYAt(o[0],o[1],"v",r+1)},nt.prototype.addSegmentFromArray=function(e,t,n,o){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),o&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},nt.prototype.addShapes=function(e,t,n){var o,i,r,a,s,l,c,d,p=e.pathsData,u=e.shape.paths.shapes,m=e.shape.paths._length,h=0,g=[],x=!0;for(n?(s=n._length,d=n._length):(n=ke.newElement(),s=0,d=0),g.push(n),o=0;o<m;o+=1){for(l=p[o].lengths,n.c=u[o].c,r=u[o].c?l.length:l.length+1,i=1;i<r;i+=1)if(h+(a=l[i-1]).addedLength<t.s)h+=a.addedLength,n.c=!1;else{if(h>t.e){n.c=!1;break}t.s<=h&&t.e>=h+a.addedLength?(this.addSegment(u[o].v[i-1],u[o].o[i-1],u[o].i[i],u[o].v[i],n,s,x),x=!1):(c=ue.getNewSegment(u[o].v[i-1],u[o].v[i],u[o].o[i-1],u[o].i[i],(t.s-h)/a.addedLength,(t.e-h)/a.addedLength,l[i-1]),this.addSegmentFromArray(c,n,s,x),x=!1,n.c=!1),h+=a.addedLength,s+=1}if(u[o].c&&l.length){if(a=l[i-1],h<=t.e){var f=l[i-1].addedLength;t.s<=h&&t.e>=h+f?(this.addSegment(u[o].v[i-1],u[o].o[i-1],u[o].i[0],u[o].v[0],n,s,x),x=!1):(c=ue.getNewSegment(u[o].v[i-1],u[o].v[0],u[o].o[i-1],u[o].i[0],(t.s-h)/f,(t.e-h)/f,l[i-1]),this.addSegmentFromArray(c,n,s,x),x=!1,n.c=!1)}else n.c=!1;h+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[d][0],n.v[d][1],"i",d),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),h>t.e)break;o<m-1&&(n=ke.newElement(),x=!0,g.push(n),s=0)}return g},d([tt],ot),ot.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=Ae.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},ot.prototype.processPath=function(e,t){var n=t/100,o=[0,0],i=e._length,r=0;for(r=0;r<i;r+=1)o[0]+=e.v[r][0],o[1]+=e.v[r][1];o[0]/=i,o[1]/=i;var a,s,l,c,d,p,u=ke.newElement();for(u.c=e.c,r=0;r<i;r+=1)a=e.v[r][0]+(o[0]-e.v[r][0])*n,s=e.v[r][1]+(o[1]-e.v[r][1])*n,l=e.o[r][0]+(o[0]-e.o[r][0])*-n,c=e.o[r][1]+(o[1]-e.o[r][1])*-n,d=e.i[r][0]+(o[0]-e.i[r][0])*-n,p=e.i[r][1]+(o[1]-e.i[r][1])*-n,u.setTripleAt(a,s,l,c,d,p,r);return u},ot.prototype.processShapes=function(e){var t,n,o,i,r,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||e)for(a.releaseShapes(),r.shape._mdf=!0,t=r.shape.paths.shapes,i=r.shape.paths._length,o=0;o<i;o+=1)a.addShape(this.processPath(t[o],l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var it=function(){var e=[0,0];function t(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var o,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(o=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(o=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(o=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){o=[],i=[];var r=this.px,a=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(o[0]=r.getValueAtTime((r.keyframes[0].t+.01)/n,0),o[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),i[0]=r.getValueAtTime(r.keyframes[0].t/n,0),i[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(o[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/n,0),o[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),i[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/n,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(o=[r.pv,a.pv],i[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/n,r.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else o=i=e;this.v.rotate(-Math.atan2(o[1]-i[1],o[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function o(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!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)}}function i(){}function r(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0}function a(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=Ae.getProp(e,t.p.x,0,0,this),this.py=Ae.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=Ae.getProp(e,t.p.z,0,0,this))):this.p=Ae.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=Ae.getProp(e,t.rx,0,E,this),this.ry=Ae.getProp(e,t.ry,0,E,this),this.rz=Ae.getProp(e,t.rz,0,E,this),t.or.k[0].ti){var o,i=t.or.k.length;for(o=0;o<i;o+=1)t.or.k[o].to=null,t.or.k[o].ti=null}this.or=Ae.getProp(e,t.or,1,E,this),this.or.sh=!0}else this.r=Ae.getProp(e,t.r||{k:0},0,E,this);t.sk&&(this.sk=Ae.getProp(e,t.sk,0,E,this),this.sa=Ae.getProp(e,t.sa,0,E,this)),this.a=Ae.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=Ae.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=Ae.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function s(e,t,n){return new a(e,t,n)}return a.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:o,autoOrient:i},d([je],a),a.prototype.addDynamicProperty=r,a.prototype._addDynamicProperty=je.prototype.addDynamicProperty,{getTransformProperty:s}}();function rt(){}function at(){}function st(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function lt(e){return Math.abs(e)<=1e-5}function ct(e,t,n){return e*(1-n)+t*n}function dt(e,t,n){return[ct(e[0],t[0],n),ct(e[1],t[1],n)]}function pt(e,t,n){if(0===e)return[];var o=t*t-4*e*n;if(o<0)return[];var i=-t/(2*e);if(0===o)return[i];var r=Math.sqrt(o)/(2*e);return[i-r,i+r]}function ut(e,t,n,o){return[3*t-e-3*n+o,3*e-6*t+3*n,-3*e+3*t,e]}function mt(e){return new ht(e,e,e,e,!1)}function ht(e,t,n,o,i){i&&Et(e,t)&&(t=dt(e,o,1/3)),i&&Et(n,o)&&(n=dt(e,o,2/3));var r=ut(e[0],t[0],n[0],o[0]),a=ut(e[1],t[1],n[1],o[1]);this.a=[r[0],a[0]],this.b=[r[1],a[1]],this.c=[r[2],a[2]],this.d=[r[3],a[3]],this.points=[e,t,n,o]}function gt(e,t){var n=e.points[0][t],o=e.points[e.points.length-1][t];if(n>o){var i=o;o=n,n=i}for(var r=pt(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<r.length;a+=1)if(r[a]>0&&r[a]<1){var s=e.point(r[a])[t];s<n?n=s:s>o&&(o=s)}return{min:n,max:o}}function xt(e,t,n){var o=e.boundingBox();return{cx:o.cx,cy:o.cy,width:o.width,height:o.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function ft(e){var t=e.bez.split(.5);return[xt(t[0],e.t1,e.t),xt(t[1],e.t,e.t2)]}function yt(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function St(e,t,n,o,i,r){if(yt(e,t))if(n>=r||e.width<=o&&e.height<=o&&t.width<=o&&t.height<=o)i.push([e.t,t.t]);else{var a=ft(e),s=ft(t);St(a[0],s[0],n+1,o,i,r),St(a[0],s[1],n+1,o,i,r),St(a[1],s[0],n+1,o,i,r),St(a[1],s[1],n+1,o,i,r)}}function Ct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function bt(e,t,n,o){var i=[e[0],e[1],1],r=[t[0],t[1],1],a=[n[0],n[1],1],s=[o[0],o[1],1],l=Ct(Ct(i,r),Ct(a,s));return lt(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function $t(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function vt(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function Et(e,t){return st(e[0],t[0])&&st(e[1],t[1])}function wt(){}function Rt(e,t,n,o,i,r,a){var s=n-Math.PI/2,l=n+Math.PI/2,c=t[0]+Math.cos(n)*o*i,d=t[1]-Math.sin(n)*o*i;e.setTripleAt(c,d,c+Math.cos(s)*r,d-Math.sin(s)*r,c+Math.cos(l)*a,d-Math.sin(l)*a,e.length())}function At(e,t){var n=[t[0]-e[0],t[1]-e[1]],o=.5*-Math.PI;return[Math.cos(o)*n[0]-Math.sin(o)*n[1],Math.sin(o)*n[0]+Math.cos(o)*n[1]]}function jt(e,t){var n=0===t?e.length()-1:t-1,o=(t+1)%e.length(),i=At(e.v[n],e.v[o]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function Tt(e,t,n,o,i,r,a){var s=jt(t,n),l=t.v[n%t._length],c=t.v[0===n?t._length-1:n-1],d=t.v[(n+1)%t._length],p=2===r?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,u=2===r?Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)):0;Rt(e,t.v[n%t._length],s,a,o,u/(2*(i+1)),p/(2*(i+1)))}function It(e,t,n,o,i,r){for(var a=0;a<o;a+=1){var s=(a+1)/(o+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);Rt(e,t.point(s),c,r,n,l/(2*(o+1)),l/(2*(o+1))),r=-r}return r}function kt(e,t,n){var o=Math.atan2(t[0]-e[0],t[1]-e[1]);return[$t(e,o,n),$t(t,o,n)]}function Lt(e,t){var n,o,i,r,a,s,l;n=(l=kt(e.points[0],e.points[1],t))[0],o=l[1],i=(l=kt(e.points[1],e.points[2],t))[0],r=l[1],a=(l=kt(e.points[2],e.points[3],t))[0],s=l[1];var c=bt(n,o,i,r);null===c&&(c=o);var d=bt(a,s,i,r);return null===d&&(d=a),new ht(n,c,d,s)}function Dt(e,t,n,o,i){var r=t.points[3],a=n.points[0];if(3===o)return r;if(Et(r,a))return r;if(2===o){var s=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,c=bt(r,$t(r,s+Math.PI/2,100),a,$t(a,s+Math.PI/2,100)),d=c?vt(c,r):vt(r,a)/2,p=$t(r,s,2*d*w);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=$t(a,l,2*d*w),e.setTripleAt(a[0],a[1],a[0],a[1],p[0],p[1],e.length()),a}var u=bt(Et(r,t.points[2])?t.points[0]:t.points[2],r,a,Et(a,n.points[1])?n.points[3]:n.points[1]);return u&&vt(u,r)<i?(e.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],e.length()),u):r}function _t(e,t){var n=e.intersections(t);return n.length&&st(n[0][0],1)&&n.shift(),n.length?n[0]:null}function Pt(e,t){var n=e.slice(),o=t.slice(),i=_t(e[e.length-1],t[0]);return i&&(n[e.length-1]=e[e.length-1].split(i[0])[0],o[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=_t(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,o]}function Bt(e){for(var t,n=1;n<e.length;n+=1)t=Pt(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=Pt(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function Mt(e,t){var n,o,i,r,a=e.inflectionPoints();if(0===a.length)return[Lt(e,t)];if(1===a.length||st(a[1],1))return n=(i=e.split(a[0]))[0],o=i[1],[Lt(n,t),Lt(o,t)];n=(i=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return r=(i=i[1].split(s))[0],o=i[1],[Lt(n,t),Lt(r,t),Lt(o,t)]}function Ot(){}function Ft(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",o="normal",i=t.length,r=0;r<i;r+=1)switch(t[r].toLowerCase()){case"italic":o="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:o,weight:e.fWeight||n}}d([tt],rt),rt.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=Ae.getProp(e,t.c,0,null,this),this.o=Ae.getProp(e,t.o,0,null,this),this.tr=it.getTransformProperty(e,t.tr,this),this.so=Ae.getProp(e,t.tr.so,0,.01,this),this.eo=Ae.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},rt.prototype.applyTransforms=function(e,t,n,o,i,r){var a=r?-1:1,s=o.s.v[0]+(1-o.s.v[0])*(1-i),l=o.s.v[1]+(1-o.s.v[1])*(1-i);e.translate(o.p.v[0]*a*i,o.p.v[1]*a*i,o.p.v[2]),t.translate(-o.a.v[0],-o.a.v[1],o.a.v[2]),t.rotate(-o.r.v*a*i),t.translate(o.a.v[0],o.a.v[1],o.a.v[2]),n.translate(-o.a.v[0],-o.a.v[1],o.a.v[2]),n.scale(r?1/s:s,r?1/l:l),n.translate(o.a.v[0],o.a.v[1],o.a.v[2])},rt.prototype.init=function(e,t,n,o){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=o,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},rt.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},rt.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},rt.prototype.changeGroupRender=function(e,t){var n,o=e.length;for(n=0;n<o;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},rt.prototype.processShapes=function(e){var t,n,o,i,r,a=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(r=0,o=0;o<=this._groups.length-1;o+=1){if(s=r<l,this._groups[o]._render=s,this.changeGroupRender(this._groups[o].it,s),!s){var d=this.elemsData[o].it,p=d[d.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}r+=1}this._currentCopies=l;var u=this.o.v,m=u%1,h=u>0?Math.floor(u):Math.ceil(u),g=this.pMatrix.props,x=this.rMatrix.props,f=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,S,C=0;if(u>0){for(;C<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,m,!1),C+=m)}else if(u<0){for(;C>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-m,!0),C-=m)}for(o=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,r=this._currentCopies;r;){if(S=(n=(t=this.elemsData[o].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(o/(this._currentCopies-1)),0!==C){for((0!==o&&1===i||o!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.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]),y=0;y<S;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<S;y+=1)n[y]=this.matrix.props[y];C+=1,r-=1,o+=i}}else for(r=this._currentCopies,o=0,i=1;r;)n=(t=this.elemsData[o].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,r-=1,o+=i;return a},rt.prototype.addShape=function(){},d([tt],at),at.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=Ae.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},at.prototype.processPath=function(e,t){var n,o=ke.newElement();o.c=e.c;var i,r,a,s,l,c,d,p,u,m,h,g,x=e._length,f=0;for(n=0;n<x;n+=1)i=e.v[n],a=e.o[n],r=e.i[n],i[0]===a[0]&&i[1]===a[1]&&i[0]===r[0]&&i[1]===r[1]?0!==n&&n!==x-1||e.c?(s=0===n?e.v[x-1]:e.v[n-1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=h=i[0]+(s[0]-i[0])*c,p=g=i[1]-(i[1]-s[1])*c,u=d-(d-i[0])*w,m=p-(p-i[1])*w,o.setTripleAt(d,p,u,m,h,g,f),f+=1,s=n===x-1?e.v[0]:e.v[n+1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=u=i[0]+(s[0]-i[0])*c,p=m=i[1]+(s[1]-i[1])*c,h=d-(d-i[0])*w,g=p-(p-i[1])*w,o.setTripleAt(d,p,u,m,h,g,f),f+=1):(o.setTripleAt(i[0],i[1],a[0],a[1],r[0],r[1],f),f+=1):(o.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],f),f+=1);return o},at.prototype.processShapes=function(e){var t,n,o,i,r,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||e)for(a.releaseShapes(),r.shape._mdf=!0,t=r.shape.paths.shapes,i=r.shape.paths._length,o=0;o<i;o+=1)a.addShape(this.processPath(t[o],l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ht.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},ht.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},ht.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},ht.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},ht.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(lt(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var o=Math.sqrt(n);return lt(o)?o>0&&o<1?[t]:[]:[t-o,t+o].filter(function(e){return e>0&&e<1})},ht.prototype.split=function(e){if(e<=0)return[mt(this.points[0]),this];if(e>=1)return[this,mt(this.points[this.points.length-1])];var t=dt(this.points[0],this.points[1],e),n=dt(this.points[1],this.points[2],e),o=dt(this.points[2],this.points[3],e),i=dt(t,n,e),r=dt(n,o,e),a=dt(i,r,e);return[new ht(this.points[0],t,i,a,!0),new ht(a,r,o,this.points[3],!0)]},ht.prototype.bounds=function(){return{x:gt(this,0),y:gt(this,1)}},ht.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},ht.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var o=[];return St(xt(this,0,1),xt(e,0,1),0,t,o,n),o},ht.shapeSegment=function(e,t){var n=(t+1)%e.length();return new ht(e.v[t],e.o[t],e.i[n],e.v[n],!0)},ht.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new ht(e.v[n],e.i[n],e.o[t],e.v[t],!0)},d([tt],wt),wt.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=Ae.getProp(e,t.s,0,null,this),this.frequency=Ae.getProp(e,t.r,0,null,this),this.pointsType=Ae.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},wt.prototype.processPath=function(e,t,n,o){var i=e._length,r=ke.newElement();if(r.c=e.c,e.c||(i-=1),0===i)return r;var a=-1,s=ht.shapeSegment(e,0);Tt(r,e,0,t,n,o,a);for(var l=0;l<i;l+=1)a=It(r,s,t,n,o,-a),s=l!==i-1||e.c?ht.shapeSegment(e,(l+1)%i):null,Tt(r,e,l+1,t,n,o,a);return r},wt.prototype.processShapes=function(e){var t,n,o,i,r,a,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),d=this.pointsType.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||e)for(a.releaseShapes(),r.shape._mdf=!0,t=r.shape.paths.shapes,i=r.shape.paths._length,o=0;o<i;o+=1)a.addShape(this.processPath(t[o],l,c,d));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},d([tt],Ot),Ot.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=Ae.getProp(e,t.a,0,null,this),this.miterLimit=Ae.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},Ot.prototype.processPath=function(e,t,n,o){var i=ke.newElement();i.c=e.c;var r,a,s,l=e.length();e.c||(l-=1);var c=[];for(r=0;r<l;r+=1)s=ht.shapeSegment(e,r),c.push(Mt(s,t));if(!e.c)for(r=l-1;r>=0;r-=1)s=ht.shapeSegmentInverted(e,r),c.push(Mt(s,t));c=Bt(c);var d=null,p=null;for(r=0;r<c.length;r+=1){var u=c[r];for(p&&(d=Dt(i,p,u[0],n,o)),p=u[u.length-1],a=0;a<u.length;a+=1)s=u[a],d&&Et(s.points[0],d)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),d=s.points[3]}return c.length&&Dt(i,p,c[0][0],n,o),i},Ot.prototype.processShapes=function(e){var t,n,o,i,r,a,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,d=this.lineJoin;if(0!==l)for(n=0;n<s;n+=1){if(a=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||e)for(a.releaseShapes(),r.shape._mdf=!0,t=r.shape.paths.shapes,i=r.shape.paths._length,o=0;o<i;o+=1)a.addShape(this.processPath(t[o],l,d,c));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Nt=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var o=127988,i=917631,r=917601,a=917626,s=65039,l=8205,d=127462,p=127487,u=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function m(e){var t,n=e.split(","),o=n.length,i=[];for(t=0;t<o;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&i.push(n[t]);return i.join(",")}function h(e,t){var n=c("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var o=c("span");o.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(o),document.body.appendChild(n);var i=o.offsetWidth;return o.style.fontFamily=m(e)+", "+t,{node:o,w:i,parent:n}}function g(){var t,n,o,i=this.fonts.length,r=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?r-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(n=this.fonts[t].monoCase.node,o=this.fonts[t].monoCase.w,n.offsetWidth!==o?(r-=1,this.fonts[t].loaded=!0):(n=this.fonts[t].sansCase.node,o=this.fonts[t].sansCase.w,n.offsetWidth!==o&&(r-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==r&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function x(e,t){var n,o=document.body&&t?"svg":"canvas",i=Ft(e);if("svg"===o){var r=G("text");r.style.fontSize="100px",r.setAttribute("font-family",e.fFamily),r.setAttribute("font-style",i.style),r.setAttribute("font-weight",i.weight),r.textContent="1",e.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",e.fClass)):r.style.fontFamily=e.fFamily,t.appendChild(r),n=r}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+e.fFamily,n=a}function s(e){return"svg"===o?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}return{measureText:s}}function f(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach(function(e){e.helper=x(e),e.cache={}}),void(this.fonts=e.list);var n,o=e.list,i=o.length,r=i;for(n=0;n<i;n+=1){var a,s,l=!0;if(o[n].loaded=!1,o[n].monoCase=h(o[n].fFamily,"monospace"),o[n].sansCase=h(o[n].fFamily,"sans-serif"),o[n].fPath){if("p"===o[n].fOrigin||3===o[n].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+o[n].fFamily+'"], style[f-origin="3"][f-family="'+o[n].fFamily+'"]')).length>0&&(l=!1),l){var d=c("style");d.setAttribute("f-forigin",o[n].fOrigin),d.setAttribute("f-origin",o[n].origin),d.setAttribute("f-family",o[n].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+o[n].fFamily+"; font-style: normal; src: url('"+o[n].fPath+"');}",t.appendChild(d)}}else if("g"===o[n].fOrigin||1===o[n].origin){for(a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),s=0;s<a.length;s+=1)-1!==a[s].href.indexOf(o[n].fPath)&&(l=!1);if(l){var p=c("link");p.setAttribute("f-forigin",o[n].fOrigin),p.setAttribute("f-origin",o[n].origin),p.type="text/css",p.rel="stylesheet",p.href=o[n].fPath,document.body.appendChild(p)}}else if("t"===o[n].fOrigin||2===o[n].origin){for(a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),s=0;s<a.length;s+=1)o[n].fPath===a[s].src&&(l=!1);if(l){var u=c("link");u.setAttribute("f-forigin",o[n].fOrigin),u.setAttribute("f-origin",o[n].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",o[n].fPath),t.appendChild(u)}}}else o[n].loaded=!0,r-=1;o[n].helper=x(o[n],t),o[n].cache={},this.fonts.push(o[n])}0===r?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function y(e){if(e){var t;this.chars||(this.chars=[]);var n,o,i=e.length,r=this.chars.length;for(t=0;t<i;t+=1){for(n=0,o=!1;n<r;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(o=!0),n+=1;o||(this.chars.push(e[t]),r+=1)}}}function S(e,n,o){for(var i=0,r=this.chars.length;i<r;){if(this.chars[i].ch===e&&this.chars[i].style===n&&this.chars[i].fFamily===o)return this.chars[i];i+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,n,o)),t}function C(e,t,n){var o=this.getFontByName(t),i=e;if(!o.cache[i]){var r=o.helper;if(" "===e){var a=r.measureText("|"+e+"|"),s=r.measureText("||");o.cache[i]=(a-s)/100}else o.cache[i]=r.measureText(e)/100}return o.cache[i]*n}function b(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]}function $(e){var t=0,n=e.charCodeAt(0);if(n>=55296&&n<=56319){var o=e.charCodeAt(1);o>=56320&&o<=57343&&(t=1024*(n-55296)+o-56320+65536)}return t}function v(e,t){var n=e.toString(16)+t.toString(16);return-1!==u.indexOf(n)}function E(e){return e===l}function w(e){return e===s}function R(e){var t=$(e);return t>=d&&t<=p}function A(e){return R(e.substr(0,2))&&R(e.substr(2,2))}function j(e){return-1!==n.indexOf(e)}function T(e,t){var n=$(e.substr(t,2));if(n!==o)return!1;var s=0;for(t+=2;s<5;){if((n=$(e.substr(t,2)))<r||n>a)return!1;s+=1,t+=2}return $(e.substr(t,2))===i}function I(){this.isLoaded=!0}var k=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};k.isModifier=v,k.isZeroWidthJoiner=E,k.isFlagEmoji=A,k.isRegionalCode=R,k.isCombinedCharacter=j,k.isRegionalFlag=T,k.isVariationSelector=w,k.BLACK_FLAG_CODE_POINT=o;var L={addChars:y,addFonts:f,getCharData:S,getFontByName:b,measureText:C,checkLoadedFonts:g,setIsLoaded:I};return k.prototype=L,k}();function zt(e){this.animationData=e}function Ht(e){return new zt(e)}function Vt(){}zt.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},Vt.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!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 e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Wt=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function Ut(e,t,n){this.p=Ae.getProp(t,e.v,0,0,n)}function Gt(e,t,n){this.p=Ae.getProp(t,e.v,0,0,n)}function qt(e,t,n){this.p=Ae.getProp(t,e.v,1,0,n)}function Qt(e,t,n){this.p=Ae.getProp(t,e.v,1,0,n)}function Yt(e,t,n){this.p=Ae.getProp(t,e.v,0,0,n)}function Kt(e,t,n){this.p=Ae.getProp(t,e.v,0,0,n)}function Zt(e,t,n){this.p=Ae.getProp(t,e.v,0,0,n)}function Xt(){this.p={}}function Jt(e,t){var n,o=e.ef||[];this.effectElements=[];var i,r=o.length;for(n=0;n<r;n+=1)i=new en(o[n],t),this.effectElements.push(i)}function en(e,t){this.init(e,t)}function tn(){}function nn(){}function on(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function rn(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var o=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(o),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?Ae.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=Ae.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function an(){}d([je],en),en.prototype.getValue=en.prototype.iterateDynamicProperties,en.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var o,i=this.data.ef.length,r=this.data.ef;for(n=0;n<i;n+=1){switch(o=null,r[n].ty){case 0:o=new Ut(r[n],t,this);break;case 1:o=new Gt(r[n],t,this);break;case 2:o=new qt(r[n],t,this);break;case 3:o=new Qt(r[n],t,this);break;case 4:case 7:o=new Zt(r[n],t,this);break;case 10:o=new Yt(r[n],t,this);break;case 11:o=new Kt(r[n],t,this);break;case 5:o=new Jt(r[n],t);break;default:o=new Xt(r[n])}o&&this.effectElements.push(o)}},tn.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){},setBlendMode:function(){var e=Wt(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=D(),this.data.sr||(this.data.sr=1),this.effectsManager=new Jt(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},nn.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,o=this.dynamicProperties.length;for(n=0;n<o;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},on.prototype.prepareFrame=function(){},d([Vt,tn,nn],on),on.prototype.getBaseElement=function(){return null},on.prototype.renderFrame=function(){},on.prototype.destroy=function(){},on.prototype.initExpressions=function(){},on.prototype.getFootageData=function(){return this.footageData},rn.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},d([Vt,tn,nn],rn),rn.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},rn.prototype.show=function(){},rn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},rn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},rn.prototype.resume=function(){this._canPlay=!0},rn.prototype.setRate=function(e){this.audio.rate(e)},rn.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},rn.prototype.getBaseElement=function(){return null},rn.prototype.destroy=function(){},rn.prototype.sourceRectAtTime=function(){},rn.prototype.initExpressions=function(){},an.prototype.checkLayers=function(e){var t,n,o=this.layers.length;for(this.completeLayers=!0,t=o-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},an.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},an.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},an.prototype.createAudio=function(e){return new rn(e,this.globalData,this)},an.prototype.createFootage=function(e){return new on(e,this.globalData,this)},an.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},an.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,o=e.length,i=this.layers.length;for(t=0;t<o;t+=1)for(n=0;n<i;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},an.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},an.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},an.prototype.buildElementParenting=function(e,t,n){for(var o=this.elements,i=this.layers,r=0,a=i.length;r<a;)i[r].ind==t&&(o[r]&&!0!==o[r]?(n.push(o[r]),o[r].setAsParent(),void 0!==i[r].parent?this.buildElementParenting(e,i[r].parent,n):e.setHierarchy(n)):(this.buildItem(r),this.addPendingElement(e))),r+=1},an.prototype.addPendingElement=function(e){this.pendingElements.push(e)},an.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var o=this.createComp(e[t]);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}},an.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},an.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"==typeof n)t=this.elements[n];else{var o,i=this.elements.length;for(o=0;o<i;o+=1)if(this.elements[o].data.nm===n){t=this.elements[o];break}}return 0===e.length?t:t.getElementByPath(e)},an.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new Nt,this.globalData.slotManager=Ht(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var sn={TRANSFORM_EFFECT:"transformEFfect"};function ln(){}function cn(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var o,i,r=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=h(a),this.solidPath="";var s,c,d,p,u,m,g=this.masksProperties,x=0,f=[],y=D(),S="clipPath",C="clip-path";for(o=0;o<a;o+=1)if(("a"!==g[o].mode&&"n"!==g[o].mode||g[o].inv||100!==g[o].o.k||g[o].o.x)&&(S="mask",C="mask"),"s"!==g[o].mode&&"i"!==g[o].mode||0!==x?d=null:((d=G("rect")).setAttribute("fill","#ffffff"),d.setAttribute("width",this.element.comp.data.w||0),d.setAttribute("height",this.element.comp.data.h||0),f.push(d)),i=G("path"),"n"===g[o].mode)this.viewData[o]={op:Ae.getProp(this.element,g[o].o,0,.01,this.element),prop:_e.getShapeProp(this.element,g[o],3),elem:i,lastPath:""},r.appendChild(i);else{var b;if(x+=1,i.setAttribute("fill","s"===g[o].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==g[o].x.k?(S="mask",C="mask",m=Ae.getProp(this.element,g[o].x,0,null,this.element),b=D(),(p=G("filter")).setAttribute("id",b),(u=G("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),p.appendChild(u),r.appendChild(p),i.setAttribute("stroke","s"===g[o].mode?"#000000":"#ffffff")):(u=null,m=null),this.storedData[o]={elem:i,x:m,expan:u,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===g[o].mode){c=f.length;var $=G("g");for(s=0;s<c;s+=1)$.appendChild(f[s]);var v=G("mask");v.setAttribute("mask-type","alpha"),v.setAttribute("id",y+"_"+x),v.appendChild(i),r.appendChild(v),$.setAttribute("mask","url("+l()+"#"+y+"_"+x+")"),f.length=0,f.push($)}else f.push(i);g[o].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[o]={elem:i,lastPath:"",op:Ae.getProp(this.element,g[o].o,0,.01,this.element),prop:_e.getShapeProp(this.element,g[o],3),invRect:d},this.viewData[o].prop.k||this.drawPath(g[o],this.viewData[o].prop.v,this.viewData[o])}for(this.maskElement=G(S),a=f.length,o=0;o<a;o+=1)this.maskElement.appendChild(f[o]);x>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(C,"url("+l()+"#"+y+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}ln.prototype={initTransform:function(){var e=new Pe;this.finalTransform={mProp:this.data.ks?it.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,o=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<o;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<o;n+=1)t.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<t;e+=1){var o=this.localTransforms[e].matrix;n.multiply(o)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(sn.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var t=0,n=e.length;for(t=0;t<n;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,o=!0,i=this.comp;o;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):o=!1;var r,a=t.length;for(n=0;n<a;n+=1)r=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-r[0],e[1]-r[1],0];return e},mHelper:new Pe},cn.prototype.getMaskProperty=function(e){return this.viewData[e].prop},cn.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,o=this.masksProperties.length;for(t=0;t<o;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+l()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},cn.prototype.getMaskelement=function(){return this.maskElement},cn.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},cn.prototype.drawPath=function(e,t,n){var o,i,r=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,o=1;o<i;o+=1)r+=" C"+t.o[o-1][0]+","+t.o[o-1][1]+" "+t.i[o][0]+","+t.i[o][1]+" "+t.v[o][0]+","+t.v[o][1];if(t.c&&i>1&&(r+=" C"+t.o[o-1][0]+","+t.o[o-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==r){var a="";n.elem&&(t.c&&(a=e.inv?this.solidPath+r:r),n.elem.setAttribute("d",a)),n.lastPath=r}},cn.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var dn,pn=function(){var e={};function t(e,t){var n=G("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var e=G("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}return e.createFilter=t,e.createAlphaToLuminanceFilter=n,e}(),un=(dn={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/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))&&(dn.maskType=!1),/firefox/i.test(navigator.userAgent)&&(dn.svgLumaHidden=!1),dn),mn={},hn="filter_result_";function gn(e){var t,n,o="SourceGraphic",i=e.data.ef?e.data.ef.length:0,r=D(),a=pn.createFilter(r,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){n=null;var c=e.data.ef[t].ty;mn[c]&&(n=new(0,mn[c].effect)(a,e.effectsManager.effectElements[t],e,hn+s,o),o=hn+s,mn[c].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+l()+"#"+r+")")),this.filters.length&&e.addRenderableComponent(this)}function xn(){}function fn(){}function yn(){}function Sn(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Cn(e,t){this.elem=e,this.pos=t}function bn(){}gn.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},gn.prototype.getEffects=function(e){var t,n=this.filters.length,o=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&o.push(this.filters[t]);return o},xn.prototype={initRendererElement:function(){this.layerElement=G("g")},createContainerElements:function(){this.matteElement=G("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=G("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=G("clipPath"),o=G("path");o.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=D();if(n.setAttribute("id",i),n.appendChild(o),this.globalData.defs.appendChild(n),this.checkMasks()){var r=G("g");r.setAttribute("clip-path","url("+l()+"#"+i+")"),r.appendChild(this.layerElement),this.transformedElement=r,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new cn(this.data,this,this.globalData),this.renderableEffectsManager=new gn(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,n,o,i,r=this.layerId+"_"+e;if(1===e||3===e){var a=G("mask");a.setAttribute("id",r),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(o=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(o),this.globalData.defs.appendChild(a),un.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=D(),n=pn.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(pn.createAlphaToLuminanceFilter()),(i=G("g")).appendChild(o),a.appendChild(i),i.setAttribute("filter","url("+l()+"#"+t+")"))}else if(2===e){var s=G("mask");s.setAttribute("id",r),s.setAttribute("mask-type","alpha");var c=G("g");s.appendChild(c),t=D(),n=pn.createFilter(t);var d=G("feComponentTransfer");d.setAttribute("in","SourceGraphic"),n.appendChild(d);var p=G("feFuncA");p.setAttribute("type","table"),p.setAttribute("tableValues","1.0 0.0"),d.appendChild(p),this.globalData.defs.appendChild(n);var u=G("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),c.setAttribute("filter","url("+l()+"#"+t+")"),c.appendChild(u),(o=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(o),un.maskType||(s.setAttribute("mask-type","luminance"),n.appendChild(pn.createAlphaToLuminanceFilter()),i=G("g"),c.appendChild(u),i.appendChild(this.layerElement),c.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=r}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+l()+"#"+e+")")}},fn.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},d([Vt,p({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],yn),d([tn,ln,xn,fn,nn,yn],Sn),Sn.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=G("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},Sn.prototype.sourceRectAtTime=function(){return this.sourceRect},bn.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=0,n=this.shapeModifiers.length;t<n;)if(this.shapeModifiers[t].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,o=t.length;n<o;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,o=n.length;o;)if(n[o-=1].elem===e)return void(n[o].pos=t);n.push(new Cn(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var $n={1:"butt",2:"round",3:"square"},vn={1:"miter",2:"round",3:"bevel"};function En(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var o=0,i=e.length;o<i;){if(e[o].mProps.dynamicProperties.length){this._isAnimated=!0;break}o+=1}}function wn(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=G("path"),this.msElem=null}function Rn(e,t,n,o){var i;this.elem=e,this.frameId=-1,this.dataProps=h(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=m("float32",t.length?t.length-1:0),this.dashoffset=m("float32",1),this.initDynamicPropertyContainer(o);var r,a=t.length||0;for(i=0;i<a;i+=1)r=Ae.getProp(e,t[i].v,0,0,this),this.k=r.k||this.k,this.dataProps[i]={n:t[i].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}function An(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=Ae.getProp(e,t.o,0,.01,this),this.w=Ae.getProp(e,t.w,0,null,this),this.d=new Rn(e,t.d||{},"svg",this),this.c=Ae.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function jn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=Ae.getProp(e,t.o,0,.01,this),this.c=Ae.getProp(e,t.c,1,255,this),this.style=n}function Tn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function In(e,t,n){this.data=t,this.c=m("uint8c",4*t.p);var o=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=m("float32",o),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=o,this.initDynamicPropertyContainer(n),this.prop=Ae.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function kn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function Ln(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=Ae.getProp(e,t.w,0,null,this),this.d=new Rn(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function Dn(){this.it=[],this.prevViewData=[],this.gr=G("g")}function _n(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}En.prototype.setAsAnimated=function(){this._isAnimated=!0},wn.prototype.reset=function(){this.d="",this._mdf=!1},Rn.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},d([je],Rn),d([je],An),d([je],jn),d([je],Tn),In.prototype.comparePoints=function(e,t){for(var n=0,o=this.o.length/2;n<o;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},In.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},In.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,o,i=4*this.data.p;for(t=0;t<i;t+=1)n=t%4==0?100:255,o=Math.round(this.prop.v[t]*n),this.c[t]!==o&&(this.c[t]=o,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)n=t%2==0?100:1,o=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==o&&(this.o[t-4*this.data.p]=o,this._omdf=!e);this._mdf=!e}},d([je],In),kn.prototype.initGradientData=function(e,t,n){this.o=Ae.getProp(e,t.o,0,.01,this),this.s=Ae.getProp(e,t.s,1,null,this),this.e=Ae.getProp(e,t.e,1,null,this),this.h=Ae.getProp(e,t.h||{k:0},0,.01,this),this.a=Ae.getProp(e,t.a||{k:0},0,E,this),this.g=new In(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},kn.prototype.setGradientData=function(e,t){var n=D(),o=G(1===t.t?"linearGradient":"radialGradient");o.setAttribute("id",n),o.setAttribute("spreadMethod","pad"),o.setAttribute("gradientUnits","userSpaceOnUse");var i,r,a,s=[];for(a=4*t.g.p,r=0;r<a;r+=4)i=G("stop"),o.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+l()+"#"+n+")"),this.gf=o,this.cst=s},kn.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,o,i,r=G("mask"),a=G("path");r.appendChild(a);var s=D(),c=D();r.setAttribute("id",c);var d=G(1===e.t?"linearGradient":"radialGradient");d.setAttribute("id",s),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var p=this.stops;for(o=4*e.g.p;o<i;o+=2)(n=G("stop")).setAttribute("stop-color","rgb(255,255,255)"),d.appendChild(n),p.push(n);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+l()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",$n[e.lc||2]),a.setAttribute("stroke-linejoin",vn[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=d,this.ms=r,this.ost=p,this.maskId=c,t.msElem=a}},d([je],kn),d([kn,je],Ln);var Pn=function(e,t,n,o){if(0===t)return"";var i,r=e.o,a=e.i,s=e.v,l=" M"+o.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+o.applyToPointStringified(r[i-1][0],r[i-1][1])+" "+o.applyToPointStringified(a[i][0],a[i][1])+" "+o.applyToPointStringified(s[i][0],s[i][1]);return n&&t&&(l+=" C"+o.applyToPointStringified(r[i-1][0],r[i-1][1])+" "+o.applyToPointStringified(a[0][0],a[0][1])+" "+o.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},Bn=function(){var e=new Pe,t=new Pe;function n(e){switch(e.ty){case"fl":return a;case"gf":return l;case"gs":return s;case"st":return c;case"sh":case"el":case"rc":case"sr":return r;case"tr":return o;case"no":return i;default:return null}}function o(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function i(){}function r(n,o,i){var r,a,s,l,c,d,p,u,m,h,g=o.styles.length,x=o.lvl;for(d=0;d<g;d+=1){if(l=o.sh._mdf||i,o.styles[d].lvl<x){for(u=t.reset(),m=x-o.styles[d].lvl,h=o.transformers.length-1;!l&&m>0;)l=o.transformers[h].mProps._mdf||l,m-=1,h-=1;if(l)for(m=x-o.styles[d].lvl,h=o.transformers.length-1;m>0;)u.multiply(o.transformers[h].mProps.v),m-=1,h-=1}else u=e;if(a=(p=o.sh.paths)._length,l){for(s="",r=0;r<a;r+=1)(c=p.shapes[r])&&c._length&&(s+=Pn(c,c._length,c.c,u));o.caches[d]=s}else s=o.caches[d];o.styles[d].d+=!0===n.hd?"":s,o.styles[d]._mdf=l||o.styles[d]._mdf}}function a(e,t,n){var o=t.style;(t.c._mdf||n)&&o.pElem.setAttribute("fill","rgb("+b(t.c.v[0])+","+b(t.c.v[1])+","+b(t.c.v[2])+")"),(t.o._mdf||n)&&o.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,n){l(e,t,n),c(e,t,n)}function l(e,t,n){var o,i,r,a,s,l=t.gf,c=t.g._hasOpacity,d=t.s.v,p=t.e.v;if(t.o._mdf||n){var u="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(u,t.o.v)}if(t.s._mdf||n){var m=1===e.t?"x1":"cx",h="x1"===m?"y1":"cy";l.setAttribute(m,d[0]),l.setAttribute(h,d[1]),c&&!t.g._collapsable&&(t.of.setAttribute(m,d[0]),t.of.setAttribute(h,d[1]))}if(t.g._cmdf||n){o=t.cst;var g=t.g.c;for(r=o.length,i=0;i<r;i+=1)(a=o[i]).setAttribute("offset",g[4*i]+"%"),a.setAttribute("stop-color","rgb("+g[4*i+1]+","+g[4*i+2]+","+g[4*i+3]+")")}if(c&&(t.g._omdf||n)){var x=t.g.o;for(r=(o=t.g._collapsable?t.cst:t.ost).length,i=0;i<r;i+=1)a=o[i],t.g._collapsable||a.setAttribute("offset",x[2*i]+"%"),a.setAttribute("stop-opacity",x[2*i+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)));var f=Math.atan2(p[1]-d[1],p[0]-d[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var S=s*y,C=Math.cos(f+t.a.v)*S+d[0],b=Math.sin(f+t.a.v)*S+d[1];l.setAttribute("fx",C),l.setAttribute("fy",b),c&&!t.g._collapsable&&(t.of.setAttribute("fx",C),t.of.setAttribute("fy",b))}}function c(e,t,n){var o=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(o.pElem.setAttribute("stroke-dasharray",i.dashStr),o.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&o.pElem.setAttribute("stroke","rgb("+b(t.c.v[0])+","+b(t.c.v[1])+","+b(t.c.v[2])+")"),(t.o._mdf||n)&&o.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(o.pElem.setAttribute("stroke-width",t.w.v),o.msElem&&o.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:n}}();function Mn(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function On(e,t,n,o,i,r){this.o=e,this.sw=t,this.sc=n,this.fc=o,this.m=i,this.p=r,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!o,m:!0,p:!0}}function Fn(e,t){this._frameId=i,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}d([tn,ln,xn,bn,fn,nn,yn],Mn),Mn.prototype.initSecondaryElement=function(){},Mn.prototype.identityMatrix=new Pe,Mn.prototype.buildExpressionInterface=function(){},Mn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Mn.prototype.filterUniqueShapes=function(){var e,t,n,o,i=this.shapes.length,r=this.stylesList.length,a=[],s=!1;for(n=0;n<r;n+=1){for(o=this.stylesList[n],s=!1,a.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(o)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},Mn.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},Mn.prototype.createStyleElement=function(e,t){var n,o=new wn(e,t),i=o.pElem;return"st"===e.ty?n=new An(this,e,o):"fl"===e.ty?n=new jn(this,e,o):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?kn:Ln)(this,e,o),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+l()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new Tn(this,e,o)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",$n[e.lc||2]),i.setAttribute("stroke-linejoin",vn[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=Wt(e.bm)),this.stylesList.push(o),this.addToAnimatedContents(e,n),n},Mn.prototype.createGroupElement=function(e){var t=new Dn;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=Wt(e.bm)),t},Mn.prototype.createTransformElement=function(e,t){var n=it.getTransformProperty(this,e,this),o=new _n(n,n.o,t);return this.addToAnimatedContents(e,o),o},Mn.prototype.createShapeElement=function(e,t,n){var o=4;"rc"===e.ty?o=5:"el"===e.ty?o=6:"sr"===e.ty&&(o=7);var i=new En(t,n,_e.getShapeProp(this,e,o,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},Mn.prototype.addToAnimatedContents=function(e,t){for(var n=0,o=this.animatedContents.length;n<o;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:Bn.createRenderFunction(e),element:t,data:e})},Mn.prototype.setElementStyles=function(e){var t,n=e.styles,o=this.stylesList.length;for(t=0;t<o;t+=1)-1!==n.indexOf(this.stylesList[t])||this.stylesList[t].closed||n.push(this.stylesList[t])},Mn.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Mn.prototype.searchShapes=function(e,t,n,o,i,r,a){var s,l,c,d,p,u,m=[].concat(r),h=e.length-1,g=[],x=[];for(s=h;s>=0;s-=1){if((u=this.searchProcessedElement(e[s]))?t[s]=n[u-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)u?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==o&&o.appendChild(t[s].style.pElem),g.push(t[s].style);else if("gr"===e[s].ty){if(u)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,m,a),e[s]._render&&t[s].gr.parentNode!==o&&o.appendChild(t[s].gr)}else"tr"===e[s].ty?(u||(t[s]=this.createTransformElement(e[s],o)),d=t[s].transform,m.push(d)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(u||(t[s]=this.createShapeElement(e[s],m,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(u?(p=t[s]).closed=!1:((p=et.getModifier(e[s].ty)).init(this,e[s]),t[s]=p,this.shapeModifiers.push(p)),x.push(p)):"rp"===e[s].ty&&(u?(p=t[s]).closed=!0:(p=et.getModifier(e[s].ty),t[s]=p,p.init(this,e,s,t),this.shapeModifiers.push(p),a=!1),x.push(p));this.addProcessedElement(e[s],s+1)}for(h=g.length,s=0;s<h;s+=1)g[s].closed=!0;for(h=x.length,s=0;s<h;s+=1)x[s].closed=!0},Mn.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Mn.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},Mn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},On.prototype.update=function(e,t,n,o,i,r){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,a=!0),this.fc!==o&&(this.fc=o,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,this._mdf.p=!0,a=!0),a},Fn.prototype.defaultBoxWidth=[0,0],Fn.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Fn.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Fn.prototype.searchProperty=function(){return this.searchKeyframes()},Fn.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Fn.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Fn.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var o;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,r=e||this.data.d.k[this.keysIndex].s;for(o=0;o<i;o+=1)r=n!==this.keysIndex?this.effectsSequence[o](r,r.t):this.effectsSequence[o](this.currentData,r.t);t!==r&&this.setCurrentData(r),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},Fn.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,o=e.length;n<=o-1&&!(n===o-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Fn.prototype.buildFinalText=function(e){for(var t,n,o=[],i=0,r=e.length,a=!1,s=!1,l="";i<r;)a=s,s=!1,t=e.charCodeAt(i),l=e.charAt(i),Nt.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?Nt.isRegionalFlag(e,i)?l=e.substr(i,14):(n=e.charCodeAt(i+1))>=56320&&n<=57343&&(Nt.isModifier(t,n)?(l=e.substr(i,2),a=!0):l=Nt.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(n=e.charCodeAt(i+1),Nt.isVariationSelector(t)&&(a=!0)):Nt.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(o[o.length-1]+=l,a=!1):o.push(l),i+=l.length;return o},Fn.prototype.completeTextData=function(e){e.__complete=!0;var t,n,o,i,r,a,s,l=this.elem.globalData.fontManager,c=this.data,d=[],p=0,u=c.m.g,m=0,h=0,g=0,x=[],f=0,y=0,S=l.getFontByName(e.f),C=0,b=Ft(S);e.fWeight=b.weight,e.fStyle=b.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var $,v=e.tr/1e3*e.finalSize;if(e.sz)for(var E,w,R=!0,A=e.sz[0],j=e.sz[1];R;){E=0,f=0,n=(w=this.buildFinalText(e.t)).length,v=e.tr/1e3*e.finalSize;var T=-1;for(t=0;t<n;t+=1)$=w[t].charCodeAt(0),o=!1," "===w[t]?T=t:13!==$&&3!==$||(f=0,o=!0,E+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(w[t],S.fStyle,S.fFamily),C=o?0:s.w*e.finalSize/100):C=l.measureText(w[t],e.f,e.finalSize),f+C>A&&" "!==w[t]?(-1===T?n+=1:t=T,E+=e.finalLineHeight||1.2*e.finalSize,w.splice(t,T===t?1:0,"\r"),T=-1,f=0):(f+=C,f+=v);E+=S.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&j<E?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=w,n=e.finalText.length,R=!1)}f=-v,C=0;var I,k=0;for(t=0;t<n;t+=1)if(o=!1,13===($=(I=e.finalText[t]).charCodeAt(0))||3===$?(k=0,x.push(f),y=f>y?f:y,f=-2*v,i="",o=!0,g+=1):i=I,l.chars?(s=l.getCharData(I,S.fStyle,l.getFontByName(e.f).fFamily),C=o?0:s.w*e.finalSize/100):C=l.measureText(i,e.f,e.finalSize)," "===I?k+=C+v:(f+=C+v+k,k=0),d.push({l:C,an:C,add:m,n:o,anIndexes:[],val:i,line:g,animatorJustifyOffset:0}),2==u){if(m+=C,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(m-=C);h<=t;)d[h].an=m,d[h].ind=p,d[h].extra=C,h+=1;p+=1,m=0}}else if(3==u){if(m+=C,""===i||t===n-1){for(""===i&&(m-=C);h<=t;)d[h].an=m,d[h].ind=p,d[h].extra=C,h+=1;m=0,p+=1}}else d[p].ind=p,d[p].extra=0,p+=1;if(e.l=d,y=f>y?f:y,x.push(f),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=x;var L,D,_,P,B=c.a;a=B.length;var M=[];for(r=0;r<a;r+=1){for((L=B[r]).a.sc&&(e.strokeColorAnim=!0),L.a.sw&&(e.strokeWidthAnim=!0),(L.a.fc||L.a.fh||L.a.fs||L.a.fb)&&(e.fillColorAnim=!0),P=0,_=L.s.b,t=0;t<n;t+=1)(D=d[t]).anIndexes[r]=P,(1==_&&""!==D.val||2==_&&""!==D.val&&" "!==D.val||3==_&&(D.n||" "==D.val||t==n-1)||4==_&&(D.n||t==n-1))&&(1===L.s.rn&&M.push(P),P+=1);c.a[r].s.totalChars=P;var O,F=-1;if(1===L.s.rn)for(t=0;t<n;t+=1)F!=(D=d[t]).anIndexes[r]&&(F=D.anIndexes[r],O=M.splice(Math.floor(Math.random()*M.length),1)[0]),D.anIndexes[r]=O}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=S.ascent*e.finalSize/100},Fn.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Fn.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},Fn.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Fn.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Nn=function(){var e=Math.max,t=Math.min,n=Math.floor;function o(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=Ae.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?Ae.getProp(e,t.e,0,0,this):{v:100},this.o=Ae.getProp(e,t.o||{k:0},0,0,this),this.xe=Ae.getProp(e,t.xe||{k:0},0,0,this),this.ne=Ae.getProp(e,t.ne||{k:0},0,0,this),this.sm=Ae.getProp(e,t.sm||{k:100},0,0,this),this.a=Ae.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function i(e,t,n){return new o(e,t)}return o.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,r=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=ae.getBezierEasing(i,r,a,s).get,c=0,d=this.finalS,p=this.finalE,u=this.data.sh;if(2===u)c=l(c=p===d?o>=p?1:0:e(0,t(.5/(p-d)+(o-d)/(p-d),1)));else if(3===u)c=l(c=p===d?o>=p?0:1:1-e(0,t(.5/(p-d)+(o-d)/(p-d),1)));else if(4===u)p===d?c=0:(c=e(0,t(.5/(p-d)+(o-d)/(p-d),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===u){if(p===d)c=0;else{var m=p-d,h=-m/2+(o=t(e(0,o+.5-d),p-d)),g=m/2;c=Math.sqrt(1-h*h/(g*g))}c=l(c)}else 6===u?(p===d?c=0:(o=t(e(0,o+.5-d),p-d),c=(1+Math.cos(Math.PI+2*Math.PI*o/(p-d)))/2),c=l(c)):(o>=n(d)&&(c=e(0,t(o-d<0?t(p,1)-(d-o):p-o,1))),c=l(c));if(100!==this.sm.v){var x=.01*this.sm.v;0===x&&(x=1e-8);var f=.5-.5*x;c<f?c=0:(c=(c-f)/x)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,o=this.s.v/t+n,i=this.e.v/t+n;if(o>i){var r=o;o=i,i=r}this.finalS=o,this.finalE=i}},d([je],o),{getTextSelectorProp:i}}();function zn(e,t,n){var o={propType:!1},i=Ae.getProp,r=t.a;this.a={r:r.r?i(e,r.r,0,E,n):o,rx:r.rx?i(e,r.rx,0,E,n):o,ry:r.ry?i(e,r.ry,0,E,n):o,sk:r.sk?i(e,r.sk,0,E,n):o,sa:r.sa?i(e,r.sa,0,E,n):o,s:r.s?i(e,r.s,1,.01,n):o,a:r.a?i(e,r.a,1,0,n):o,o:r.o?i(e,r.o,0,.01,n):o,p:r.p?i(e,r.p,1,0,n):o,sw:r.sw?i(e,r.sw,0,0,n):o,sc:r.sc?i(e,r.sc,1,0,n):o,fc:r.fc?i(e,r.fc,1,0,n):o,fh:r.fh?i(e,r.fh,0,0,n):o,fs:r.fs?i(e,r.fs,0,.01,n):o,fb:r.fb?i(e,r.fb,0,.01,n):o,t:r.t?i(e,r.t,0,0,n):o},this.s=Nn.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function Hn(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=h(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function Vn(){}Hn.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,o=Ae.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new zn(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:o(this._elem,this._textData.p.a,0,0,this),f:o(this._elem,this._textData.p.f,0,0,this),l:o(this._elem,this._textData.p.l,0,0,this),r:o(this._elem,this._textData.p.r,0,0,this),p:o(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=o(this._elem,this._textData.m.a,1,0,this)},Hn.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,o,i,r,a,s,l,c,d,p,u,m,h,g,x,f,y,S,C,b=this._moreOptions.alignment.v,$=this._animatorsData,v=this._textData,E=this.mHelper,w=this._renderType,R=this.renderedLetters.length,A=e.l;if(this._hasMaskedPath){if(C=this._pathData.m,!this._pathData.n||this._pathData._mdf){var j,T=C.v;for(this._pathData.r.v&&(T=T.reverse()),a={tLength:0,segments:[]},r=T._length-1,f=0,i=0;i<r;i+=1)j=ue.buildBezierData(T.v[i],T.v[i+1],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[i+1][0]-T.v[i+1][0],T.i[i+1][1]-T.v[i+1][1]]),a.tLength+=j.segmentLength,a.segments.push(j),f+=j.segmentLength;i=r,C.v.c&&(j=ue.buildBezierData(T.v[i],T.v[0],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),a.tLength+=j.segmentLength,a.segments.push(j),f+=j.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,u=0,p=1,c=0,d=!0,g=a.segments,s<0&&C.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),p=(h=g[u=g.length-1].points).length-1;s<0;)s+=h[p].partialLength,(p-=1)<0&&(p=(h=g[u-=1].points).length-1);m=(h=g[u].points)[p-1],x=(l=h[p]).partialLength}r=A.length,n=0,o=0;var I,k,L,D,_,P=1.2*e.finalSize*.714,F=!0;L=$.length;var N,z,H,V,W,U,G,q,Q,Y,K,Z,X=-1,J=s,ee=u,te=p,ne=-1,oe="",ie=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ae=0,se=2===e.j?-.5:-1,le=0,ce=!0;for(i=0;i<r;i+=1)if(A[i].n){for(re&&(re+=ae);le<i;)A[le].animatorJustifyOffset=re,le+=1;re=0,ce=!0}else{for(k=0;k<L;k+=1)(I=$[k].a).t.propType&&(ce&&2===e.j&&(ae+=I.t.v*se),(_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars)).length?re+=I.t.v*_[0]*se:re+=I.t.v*_*se);ce=!1}for(re&&(re+=ae);le<i;)A[le].animatorJustifyOffset=re,le+=1}for(i=0;i<r;i+=1){if(E.reset(),V=1,A[i].n)n=0,o+=e.yOffset,o+=F?1:0,s=J,F=!1,this._hasMaskedPath&&(p=te,m=(h=g[u=ee].points)[p-1],x=(l=h[p]).partialLength,c=0),oe="",K="",Q="",Z="",ie=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ne!==A[i].line){switch(e.j){case 1:s+=f-e.lineWidths[A[i].line];break;case 2:s+=(f-e.lineWidths[A[i].line])/2}ne=A[i].line}X!==A[i].ind&&(A[X]&&(s+=A[X].extra),s+=A[i].an/2,X=A[i].ind),s+=b[0]*A[i].an*.005;var de=0;for(k=0;k<L;k+=1)(I=$[k].a).p.propType&&((_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars)).length?de+=I.p.v[0]*_[0]:de+=I.p.v[0]*_),I.a.propType&&((_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars)).length?de+=I.a.v[0]*_[0]:de+=I.a.v[0]*_);for(d=!0,this._pathData.a.v&&(s=.5*A[0].an+(f-this._pathData.f.v-.5*A[0].an-.5*A[A.length-1].an)*X/(r-1),s+=this._pathData.f.v);d;)c+x>=s+de||!h?(y=(s+de-c)/l.partialLength,z=m.point[0]+(l.point[0]-m.point[0])*y,H=m.point[1]+(l.point[1]-m.point[1])*y,E.translate(-b[0]*A[i].an*.005,-b[1]*P*.01),d=!1):h&&(c+=l.partialLength,(p+=1)>=h.length&&(p=0,g[u+=1]?h=g[u].points:C.v.c?(p=0,h=g[u=0].points):(c-=l.partialLength,h=null)),h&&(m=l,x=(l=h[p]).partialLength));N=A[i].an/2-A[i].add,E.translate(-N,0,0)}else N=A[i].an/2-A[i].add,E.translate(-N,0,0),E.translate(-b[0]*A[i].an*.005,-b[1]*P*.01,0);for(k=0;k<L;k+=1)(I=$[k].a).t.propType&&(_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?_.length?s+=I.t.v*_[0]:s+=I.t.v*_:_.length?n+=I.t.v*_[0]:n+=I.t.v*_));for(e.strokeWidthAnim&&(U=e.sw||0),e.strokeColorAnim&&(W=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(G=[e.fc[0],e.fc[1],e.fc[2]]),k=0;k<L;k+=1)(I=$[k].a).a.propType&&((_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars)).length?E.translate(-I.a.v[0]*_[0],-I.a.v[1]*_[1],I.a.v[2]*_[2]):E.translate(-I.a.v[0]*_,-I.a.v[1]*_,I.a.v[2]*_));for(k=0;k<L;k+=1)(I=$[k].a).s.propType&&((_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars)).length?E.scale(1+(I.s.v[0]-1)*_[0],1+(I.s.v[1]-1)*_[1],1):E.scale(1+(I.s.v[0]-1)*_,1+(I.s.v[1]-1)*_,1));for(k=0;k<L;k+=1){if(I=$[k].a,_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars),I.sk.propType&&(_.length?E.skewFromAxis(-I.sk.v*_[0],I.sa.v*_[1]):E.skewFromAxis(-I.sk.v*_,I.sa.v*_)),I.r.propType&&(_.length?E.rotateZ(-I.r.v*_[2]):E.rotateZ(-I.r.v*_)),I.ry.propType&&(_.length?E.rotateY(I.ry.v*_[1]):E.rotateY(I.ry.v*_)),I.rx.propType&&(_.length?E.rotateX(I.rx.v*_[0]):E.rotateX(I.rx.v*_)),I.o.propType&&(_.length?V+=(I.o.v*_[0]-V)*_[0]:V+=(I.o.v*_-V)*_),e.strokeWidthAnim&&I.sw.propType&&(_.length?U+=I.sw.v*_[0]:U+=I.sw.v*_),e.strokeColorAnim&&I.sc.propType)for(q=0;q<3;q+=1)_.length?W[q]+=(I.sc.v[q]-W[q])*_[0]:W[q]+=(I.sc.v[q]-W[q])*_;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(q=0;q<3;q+=1)_.length?G[q]+=(I.fc.v[q]-G[q])*_[0]:G[q]+=(I.fc.v[q]-G[q])*_;I.fh.propType&&(G=_.length?O(G,I.fh.v*_[0]):O(G,I.fh.v*_)),I.fs.propType&&(G=_.length?B(G,I.fs.v*_[0]):B(G,I.fs.v*_)),I.fb.propType&&(G=_.length?M(G,I.fb.v*_[0]):M(G,I.fb.v*_))}}for(k=0;k<L;k+=1)(I=$[k].a).p.propType&&(_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars),this._hasMaskedPath?_.length?E.translate(0,I.p.v[1]*_[0],-I.p.v[2]*_[1]):E.translate(0,I.p.v[1]*_,-I.p.v[2]*_):_.length?E.translate(I.p.v[0]*_[0],I.p.v[1]*_[1],-I.p.v[2]*_[2]):E.translate(I.p.v[0]*_,I.p.v[1]*_,-I.p.v[2]*_));if(e.strokeWidthAnim&&(Q=U<0?0:U),e.strokeColorAnim&&(Y="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),e.fillColorAnim&&e.fc&&(K="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),this._hasMaskedPath){if(E.translate(0,-e.ls),E.translate(0,b[1]*P*.01+o,0),this._pathData.p.v){S=(l.point[1]-m.point[1])/(l.point[0]-m.point[0]);var pe=180*Math.atan(S)/Math.PI;l.point[0]<m.point[0]&&(pe+=180),E.rotate(-pe*Math.PI/180)}E.translate(z,H,0),s-=b[0]*A[i].an*.005,A[i+1]&&X!==A[i+1].ind&&(s+=A[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(E.translate(n,o,0),e.ps&&E.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:E.translate(A[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[A[i].line]),0,0);break;case 2:E.translate(A[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[A[i].line])/2,0,0)}E.translate(0,-e.ls),E.translate(N,0,0),E.translate(b[0]*A[i].an*.005,b[1]*P*.01,0),n+=A[i].l+.001*e.tr*e.finalSize}"html"===w?oe=E.toCSS():"svg"===w?oe=E.to2dCSS():ie=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],Z=V}R<=i?(D=new On(Z,Q,Y,K,oe,ie),this.renderedLetters.push(D),R+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[i],this.lettersChangedFlag=D.update(Z,Q,Y,K,oe,ie)||this.lettersChangedFlag)}}},Hn.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Hn.prototype.mHelper=new Pe,Hn.prototype.defaultPropsArray=[],d([je],Hn),Vn.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new Fn(this,e.t,this.dynamicProperties),this.textAnimator=new Hn(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Vn.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},Vn.prototype.createPathShape=function(e,t){var n,o,i=t.length,r="";for(n=0;n<i;n+=1)"sh"===t[n].ty&&(o=t[n].ks.k,r+=Pn(o,o.i.length,!0,e));return r},Vn.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},Vn.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},Vn.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},Vn.prototype.applyTextPropertiesToMatrix=function(e,t,n,o,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(o,i,0)},Vn.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},Vn.prototype.emptyProp=new On,Vn.prototype.destroy=function(){},Vn.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Wn={shapes:[]};function Un(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function Gn(e,t,n){this.initElement(e,t,n)}function qn(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function Qn(){}function Yn(){}function Kn(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?h(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?Ae.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function Zn(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=G("svg");var n="";if(t&&t.title){var o=G("title"),i=D();o.setAttribute("id",i),o.textContent=t.title,this.svgElement.appendChild(o),n+=i}if(t&&t.description){var r=G("desc"),a=D();r.setAttribute("id",a),r.textContent=t.description,this.svgElement.appendChild(r),n+=" "+a}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=G("defs");this.svgElement.appendChild(s);var l=G("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return d([tn,ln,xn,fn,nn,yn,Vn],Un),Un.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=G("text"))},Un.prototype.buildTextContents=function(e){for(var t=0,n=e.length,o=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(o.push(i),i=""):i+=e[t],t+=1;return o.push(i),o},Un.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var o=n.it[n.it.length-1];o.s&&(o.s.k[0]=t,o.s.k[1]=t)}}return e},Un.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=h(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var o=this.globalData.fontManager.getFontByName(n.f);if(o.fClass)this.layerElement.setAttribute("class",o.fClass);else{this.layerElement.setAttribute("font-family",o.fFamily);var i=n.fWeight,r=n.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var a,s=n.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,d="",p=this.data.singleShape,u=0,m=0,g=!0,x=.001*n.tr*n.finalSize;if(!p||l||n.sz){var f,y=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!p||0===e){if(a=y>e?this.textSpans[e].span:G(l?"g":"text"),y<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var S=G("g");a.appendChild(S),this.textSpans[e].childSpan=S}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),p&&(s[e].n&&(u=-x,m+=n.yOffset,m+=g?1:0,g=!1),this.applyTextPropertiesToMatrix(n,c,s[e].line,u,m),u+=s[e].l||0,u+=x),l){var C;if(1===(f=this.globalData.fontManager.getCharData(n.finalText[e],o.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)C=new Kn(f.data,this.globalData,this);else{var b=Wn;f.data&&f.data.shapes&&(b=this.buildShapeData(f.data,n.finalSize)),C=new Mn(b,this.globalData,this)}if(this.textSpans[e].glyph){var $=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild($.layerElement),$.destroy()}this.textSpans[e].glyph=C,C._debug=!0,C.prepareFrame(0),C.renderFrame(),this.textSpans[e].childSpan.appendChild(C.layerElement),1===f.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else p&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&a&&a.setAttribute("d",d)}else{var v=this.textContainer,E="start";switch(n.j){case 1:E="end";break;case 2:E="middle";break;default:E="start"}v.setAttribute("text-anchor",E),v.setAttribute("letter-spacing",x);var w=this.buildTextContents(n.finalText);for(t=w.length,m=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||G("tspan")).textContent=w[e],a.setAttribute("x",0),a.setAttribute("y",m),a.style.display="inherit",v.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,m+=n.finalLineHeight;this.layerElement.appendChild(v)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Un.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},Un.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},Un.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,o,i,r=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(n=r[e],o=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),n._mdf.m&&o.setAttribute("transform",n.m),n._mdf.o&&o.setAttribute("opacity",n.o),n._mdf.sw&&o.setAttribute("stroke-width",n.sw),n._mdf.sc&&o.setAttribute("stroke",n.sc),n._mdf.fc&&o.setAttribute("fill",n.fc))}},d([Sn],Gn),Gn.prototype.createContent=function(){var e=G("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},qn.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},qn.prototype.renderFrame=function(){},qn.prototype.getBaseElement=function(){return null},qn.prototype.destroy=function(){},qn.prototype.sourceRectAtTime=function(){},qn.prototype.hide=function(){},d([tn,ln,fn,nn],qn),d([an],Qn),Qn.prototype.createNull=function(e){return new qn(e,this.globalData,this)},Qn.prototype.createShape=function(e){return new Mn(e,this.globalData,this)},Qn.prototype.createText=function(e){return new Un(e,this.globalData,this)},Qn.prototype.createImage=function(e){return new Sn(e,this.globalData,this)},Qn.prototype.createSolid=function(e){return new Gn(e,this.globalData,this)},Qn.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=G("clipPath"),o=G("rect");o.setAttribute("width",e.w),o.setAttribute("height",e.h),o.setAttribute("x",0),o.setAttribute("y",0);var i=D();n.setAttribute("id",i),n.appendChild(o),this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=h(e.layers.length)},Qn.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Qn.prototype.updateContainerSize=function(){},Qn.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},Qn.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,H()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var o="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===o)return;if(this.elements[o]&&!0!==this.elements[o]){var i=t[o].getMatte(this.layers[e].tt);n.setMatte(i)}else this.buildItem(o),this.addPendingElement(n)}}},Qn.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var o="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[o].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},Qn.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},Qn.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var o,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(o=this.elements[i].getBaseElement()),i+=1;o?this.layerElement.insertBefore(n,o):this.layerElement.appendChild(n)}},Qn.prototype.hide=function(){this.layerElement.style.display="none"},Qn.prototype.show=function(){this.layerElement.style.display="block"},d([tn,ln,fn,nn,yn],Yn),Yn.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},Yn.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,o=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=o-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},Yn.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Yn.prototype.setElements=function(e){this.elements=e},Yn.prototype.getElements=function(){return this.elements},Yn.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},Yn.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},d([Qn,Yn,xn],Kn),Kn.prototype.createComp=function(e){return new Kn(e,this.globalData,this)},d([Qn],Zn),Zn.prototype.createComp=function(e){return new Kn(e,this.globalData,this)},ee("svg",Zn),et.registerModifier("tm",nt),et.registerModifier("pb",ot),et.registerModifier("rp",rt),et.registerModifier("rd",at),et.registerModifier("zz",wt),et.registerModifier("op",Ot),Me}())),lottie_light$1.exports;var e,t}function requireReact(){return hasRequiredReact?react:(hasRequiredReact=1,react=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(i=o;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(i=o;0!==i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=o;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,r[i]))return!1;for(i=o;0!==i--;){var a=r[i];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n})}function requireRfdc(){if(hasRequiredRfdc)return rfdc_1;function e(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}return hasRequiredRfdc=1,rfdc_1=function(t){if((t=t||{}).circles)return function(t){const n=[],o=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(a(Array.from(e),t))),i.set(Set,(e,t)=>new Set(a(Array.from(e),t))),t.constructorHandlers)for(const e of t.constructorHandlers)i.set(e[0],e[1]);let r=null;return t.proto?l:s;function a(t,a){const s=Object.keys(t),l=new Array(s.length);for(let c=0;c<s.length;c++){const d=s[c],p=t[d];if("object"!=typeof p||null===p)l[d]=p;else if(p.constructor!==Object&&(r=i.get(p.constructor)))l[d]=r(p,a);else if(ArrayBuffer.isView(p))l[d]=e(p);else{const e=n.indexOf(p);l[d]=-1!==e?o[e]:a(p)}}return l}function s(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return a(t,s);if(t.constructor!==Object&&(r=i.get(t.constructor)))return r(t,s);const l={};n.push(t),o.push(l);for(const a in t){if(!1===Object.hasOwnProperty.call(t,a))continue;const c=t[a];if("object"!=typeof c||null===c)l[a]=c;else if(c.constructor!==Object&&(r=i.get(c.constructor)))l[a]=r(c,s);else if(ArrayBuffer.isView(c))l[a]=e(c);else{const e=n.indexOf(c);l[a]=-1!==e?o[e]:s(c)}}return n.pop(),o.pop(),l}function l(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return a(t,l);if(t.constructor!==Object&&(r=i.get(t.constructor)))return r(t,l);const s={};n.push(t),o.push(s);for(const a in t){const c=t[a];if("object"!=typeof c||null===c)s[a]=c;else if(c.constructor!==Object&&(r=i.get(c.constructor)))s[a]=r(c,l);else if(ArrayBuffer.isView(c))s[a]=e(c);else{const e=n.indexOf(c);s[a]=-1!==e?o[e]:l(c)}}return n.pop(),o.pop(),s}}(t);const n=new Map;if(n.set(Date,e=>new Date(e)),n.set(Map,(e,t)=>new Map(i(Array.from(e),t))),n.set(Set,(e,t)=>new Set(i(Array.from(e),t))),t.constructorHandlers)for(const e of t.constructorHandlers)n.set(e[0],e[1]);let o=null;return t.proto?function t(r){if("object"!=typeof r||null===r)return r;if(Array.isArray(r))return i(r,t);if(r.constructor!==Object&&(o=n.get(r.constructor)))return o(r,t);const a={};for(const i in r){const s=r[i];"object"!=typeof s||null===s?a[i]=s:s.constructor!==Object&&(o=n.get(s.constructor))?a[i]=o(s,t):ArrayBuffer.isView(s)?a[i]=e(s):a[i]=t(s)}return a}:function t(r){if("object"!=typeof r||null===r)return r;if(Array.isArray(r))return i(r,t);if(r.constructor!==Object&&(o=n.get(r.constructor)))return o(r,t);const a={};for(const i in r){if(!1===Object.hasOwnProperty.call(r,i))continue;const s=r[i];"object"!=typeof s||null===s?a[i]=s:s.constructor!==Object&&(o=n.get(s.constructor))?a[i]=o(s,t):ArrayBuffer.isView(s)?a[i]=e(s):a[i]=t(s)}return a};function i(t,i){const r=Object.keys(t),a=new Array(r.length);for(let s=0;s<r.length;s++){const l=r[s],c=t[l];"object"!=typeof c||null===c?a[l]=c:c.constructor!==Object&&(o=n.get(c.constructor))?a[l]=o(c,i):ArrayBuffer.isView(c)?a[l]=e(c):a[l]=i(c)}return a}}}function require_default(){return hasRequired_default?_default:(hasRequired_default=1,_default=requireRfdc()())}function requireLottiePlayerLight(){if(hasRequiredLottiePlayerLight)return LottiePlayerLight_1;function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}hasRequiredLottiePlayerLight=1;var t=e(requireLottie_light()),n=React,o=e(n),i=e(requireReact()),r=e(require_default());function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}var l,c={},d=function(){},p=(l=t.loadAnimation,n.memo(n.forwardRef(function(e,t){var p,u,m=e.play,h=void 0===m?null:m,g=e.speed,x=void 0===g?1:g,f=e.direction,y=void 0===f?1:f,S=e.segments,C=void 0===S?null:S,b=e.goTo,$=void 0===b?null:b,v=e.useSubframes,E=void 0===v||v,w=e.renderer,R=void 0===w?"svg":w,A=e.loop,j=void 0===A||A,T=e.rendererSettings,I=void 0===T?c:T,k=e.audioFactory,L=e.onLoad,D=void 0===L?d:L,_=e.onComplete,P=void 0===_?d:_,B=e.onLoopComplete,M=void 0===B?d:B,O=e.onEnterFrame,F=void 0===O?d:O,N=e.onSegmentStart,z=void 0===N?d:N,H=s(e,["play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),V=H;if("animationData"in H){var W=H;p=W.animationData,V=s(W,["animationData"])}if("path"in H){var U=H;u=U.path,V=s(U,["path"])}var G=n.useRef(null),q=n.useRef(),Q=n.useCallback(function(){if(null==q.current)throw new Error("Lottie ref is not set");return q.current},[]),Y=n.useState(!1),K=Y[0],Z=Y[1],X=n.useState(C),J=X[0],ee=X[1];n.useEffect(function(){i(J,C)||ee(C)},[C,J]);var te=n.useState(I),ne=te[0],oe=te[1];n.useEffect(function(){i(ne,I)||oe(I)},[I,ne]),n.useEffect(function(){return function(){return Q().removeEventListener("complete",P)}},[Q,P]),n.useEffect(function(){return function(){return Q().removeEventListener("loopComplete",M)}},[Q,M]),n.useEffect(function(){return function(){return Q().removeEventListener("enterFrame",F)}},[Q,F]),n.useEffect(function(){return function(){return Q().removeEventListener("segmentStart",z)}},[Q,z]),n.useEffect(function(){return function(){return Q().removeEventListener("DOMLoaded",D)}},[Q,D]);var ie=n.useCallback(function(e){q.current=e,"function"==typeof t?t(e):null!=t&&(t.current=e)},[t]);n.useEffect(function(){if(null==G.current)throw new Error("animElementRef is not set");var e=l(a({animationData:null==p||"object"!=typeof p?p:"default"in p&&"object"==typeof p.default?r(p.default):r(p),path:u,container:G.current,renderer:R,loop:!1,autoplay:!1,rendererSettings:ne},k?{audioFactory:k}:{}));ie(e);var t=function(){return Z(!0)};return Q().addEventListener("DOMLoaded",t),function(){Q().removeEventListener("DOMLoaded",t),Z(!1),Q().destroy(),ie(void 0)}},[j,R,ne,p,u,k,ie,Q]),n.useEffect(function(){Q().addEventListener("DOMLoaded",D)},[Q,D]),n.useEffect(function(){Q().addEventListener("complete",P)},[Q,P]),n.useEffect(function(){Q().addEventListener("loopComplete",M)},[Q,M]),n.useEffect(function(){Q().addEventListener("enterFrame",F)},[Q,F]),n.useEffect(function(){Q().addEventListener("segmentStart",z)},[Q,z]),n.useEffect(function(){K&&(Q().loop=j)},[K,j,Q]);var re=n.useRef(!1);return n.useEffect(function(){if(K)if(!0===h){var e=!0;J?(Q().playSegments(J,e),re.current=!0,-1===y&&t("number"==typeof J[1]?J[1]:J[1][1])):(re.current&&Q().resetSegments(e),re.current=!1,-1===y?t(Q().getDuration(!0)):Q().play())}else!1===h&&Q().pause();function t(e){Q().goToAndPlay(e,!0),Q().setDirection(y)}},[h,J,K,y,Q]),n.useEffect(function(){K&&(Number.isNaN(x)||Q().setSpeed(x))},[x,K,Q]),n.useEffect(function(){K&&Q().setDirection(y)},[y,Q,K]),n.useEffect(function(){if(K&&null!=$){var e=!0;h?Q().goToAndPlay($,e):Q().goToAndStop($,e)}},[Q,$,h,K]),n.useEffect(function(){Q().setSubframe&&Q().setSubframe(E)},[Q,E]),o.createElement("div",a({},V,{ref:G}))})));return LottiePlayerLight_1=p}var LottiePlayerLightExports=requireLottiePlayerLight();const Lottie=getDefaultExportFromCjs(LottiePlayerLightExports),cachedAnimationJSONData={AIPoweredInvoiceDark:null,AIPoweredInvoiceLight:null,AiIconEntry:null,AiIconExit:null,AiIconLoop:null,AiStarPlain:null,AiStar:null,AiStarIcon:null,AiAgent:null,Angry:null,AutoTransfer:null,CloseCard:null,Confetti:null,ConfettiSuccess:null,DashboardChristmasSnow:null,DashboardNewYearShow:null,DashboardSidebarBottomChristmas:null,DashboardSidebarBottomHalloween:null,DashboardSidebarBottomThanksgiving:null,DashboardSidebarBottomNewYear:null,DashboardSidebarTopChristmas:null,DashboardSidebarTopHalloween:null,DashboardSidebarTopThanksgiving:null,DashboardSidebarTopNewYear:null,Distribution:null,DistributionDark:null,EarnYield:null,FastestWayDark:null,FastestWayLight:null,FinanceTeamDark:null,FinanceTeamLight:null,Happy:null,LockCard:null,Liquidity:null,MoneyTransferSuccess:null,MultiLevelApprovalDark:null,MultiLevelApprovalLight:null,NotHappy:null,Protection:null,ReceiptDark:null,ReceiptLight:null,Recurring:null,RecurringDark:null,ReimburseDark:null,ReimburseLight:null,Ripple:null,RewardsDark:null,RewardsDarkHover:null,RewardsLight:null,RewardsLightHover:null,Success:null,Secure:null,Target:null,TargetDark:null,UnlockCard:null,VeryHappy:null,Welcome:null,ZeniAssist:null},pendingAnimationPromises={AIPoweredInvoiceDark:null,AIPoweredInvoiceLight:null,AiIconEntry:null,AiIconExit:null,AiIconLoop:null,AiStarIcon:null,AiStarPlain:null,AiStar:null,AiAgent:null,Angry:null,AutoTransfer:null,CloseCard:null,Confetti:null,ConfettiSuccess:null,DashboardChristmasSnow:null,DashboardNewYearShow:null,DashboardSidebarBottomChristmas:null,DashboardSidebarBottomHalloween:null,DashboardSidebarBottomNewYear:null,DashboardSidebarBottomThanksgiving:null,DashboardSidebarTopChristmas:null,DashboardSidebarTopHalloween:null,DashboardSidebarTopNewYear:null,DashboardSidebarTopThanksgiving:null,Distribution:null,DistributionDark:null,EarnYield:null,FastestWayDark:null,FastestWayLight:null,FinanceTeamDark:null,FinanceTeamLight:null,Happy:null,LockCard:null,Liquidity:null,MoneyTransferSuccess:null,MultiLevelApprovalDark:null,MultiLevelApprovalLight:null,NotHappy:null,Protection:null,ReceiptDark:null,ReceiptLight:null,Recurring:null,RecurringDark:null,ReimburseDark:null,ReimburseLight:null,Ripple:null,RewardsDark:null,RewardsDarkHover:null,RewardsLight:null,RewardsLightHover:null,Success:null,Secure:null,Target:null,TargetDark:null,UnlockCard:null,VeryHappy:null,Welcome:null,ZeniAssist:null},useAnimation=(e,t=!0)=>{const n=WebV2MicroService(),[o,i]=React.useState(null),[r,a]=React.useState(t),[s,l]=React.useState(null);return React.useEffect(()=>{if(!t)return a(!1),i(null),void l(null);(async()=>{try{if(a(!0),null!=cachedAnimationJSONData[e])i(cachedAnimationJSONData[e]),a(!1);else if(null!=pendingAnimationPromises[e]){const t=await pendingAnimationPromises[e];i(t),a(!1)}else{const t=fetchAnimationData(n?.url,e);pendingAnimationPromises[e]=t;const o=await t;cachedAnimationJSONData[e]=o,pendingAnimationPromises[e]=null,i(o),a(!1)}}catch(t){const n=t instanceof Error?t:new Error("Unknown error occurred");l(n),a(!1),pendingAnimationPromises[e]=null}})()},[n?.url,e,t]),[o,r,s]},defaultAnalytics={identify(){}},defaultSentry={},defaultAuthParams={userId:"",sessionId:"",tenantId:""},ToolkitContext=React.createContext({analytics:defaultAnalytics,sentry:defaultSentry,authParams:defaultAuthParams}),useToolkitContext=()=>React.useContext(ToolkitContext),ToolkitProvider=e=>jsxRuntimeExports.jsx(ToolkitContext.Provider,{value:e.toolkit,children:e.children}),styleForResponsiveSize=(e,t,n,o,i,r)=>({small:e,"medium-compact":t,"medium-regular":n??t,large:o??n??t,"extra-large":i??o??n??t,"ultra-large":r??i??o??n??t});class ResponsiveSizedStyle{_styles;constructor(e,t,n,o,i,r){this._styles=styleForResponsiveSize(e,t,n,o,i,r)}value(e="medium-regular"){switch(e){case"small":return this._styles.small;case"medium-compact":return this._styles["medium-compact"];case"medium-regular":return this._styles["medium-regular"];case"large":return this._styles.large;case"extra-large":return this._styles["extra-large"];case"ultra-large":return this._styles["ultra-large"]}}style(e){const t=this._styles[e];return textStyles[t].css}styleObject(e){const t=this._styles[e];return textStyles[t].cssObject}}const fontStyles$1I={helperText:new ResponsiveSizedStyle("superSmallMedium","superSmallMedium")};function Footer$7({primaryBtn:e,formId:t,showCancel:n=!0,showPrimaryButton:o=!0,helperText:i,helperStyle:r,helperContainerStyle:a,style:s,footerContentStyle:l,containerStyle:c,separatorStyle:d,leftSideComponent:p,topComponent:u,rightSideComponent:m,customPrimaryButton:h,cancelBtn:g,children:x}){const f=useWindowSizeContext();return jsxRuntimeExports.jsxs(Container$7D,{style:s,hasHelperText:null!=i,children:[jsxRuntimeExports.jsxs(FooterContent$1,{style:l,children:[jsxRuntimeExports.jsx(StyledDiv$16,{children:p}),jsxRuntimeExports.jsxs(ButtonsWithHelperText$5,{style:a,children:[null!=u?jsxRuntimeExports.jsx(StyledDiv$16,{children:u}):null,jsxRuntimeExports.jsxs(ButtonsContainer$2,{style:c,children:[!0===n&&null!=g?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button$4,{"data-testid":generateDataTestId("cancel-button",t),style:g.style,variant:"outline",label:g.label,onClick:g.onClick,size:g.size??"standard",reverseSpinnerColor:g.reverseSpinnerColor,form:t,loading:g.isLoading,disabled:g.isDisabled,type:!0===g.shouldResetOnCancel?"reset":"button",prefixIcon:g.prefixIcon,suffixIcon:g.suffixIcon}),jsxRuntimeExports.jsx(Box$7,{space:Space.sp3,style:d})]}):null,!0===o?jsxRuntimeExports.jsx(Button$4,{"data-testid":generateDataTestId("primary-button",t),style:e.style,loading:e.isLoading,variant:e.variant??"primary",label:e.label,size:e.size??"standard",form:t,type:e.type??"submit",disabled:e.isDisabled,onClick:e.onClick,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon}):null,h??null]}),null!=i?jsxRuntimeExports.jsx(HelperText$3,{windowSize:f,style:r,children:i}):null]}),jsxRuntimeExports.jsx(StyledDiv$16,{children:m})]}),x]})}const Container$7D=styled$2.div`
|
|
1094
|
+
`;function SomethingWrongPage({onReload:e,onGoHome:t}){const n=useWindowSizeContext();return jsxRuntimeExports.jsx(PageWrapper$3,{children:jsxRuntimeExports.jsx(Modal,{open:!0,children:jsxRuntimeExports.jsxs(Container$7E,{windowSize:n,children:[jsxRuntimeExports.jsx(Title$18,{children:somethingWrongPage.title}),jsxRuntimeExports.jsx(SubTitle$m,{children:somethingWrongPage.subTitle}),jsxRuntimeExports.jsxs(ButtonContainer$m,{children:[jsxRuntimeExports.jsx(Button$4,{variant:"primary",label:reload$1,onClick:e}),null!=t?jsxRuntimeExports.jsx(Button$4,{variant:"secondary",label:goHome,onClick:t}):null]})]})})})}const ErrorBoundaryWrapper=({children:e})=>jsxRuntimeExports.jsx(ErrorBoundary$1,{fallback:jsxRuntimeExports.jsx(SomethingWrongPage,{onReload:()=>window.location.reload()}),children:e});var lottie_light$1={exports:{}},lottie_light=lottie_light$1.exports,hasRequiredLottie_light,react,hasRequiredReact,rfdc_1,hasRequiredRfdc,_default,hasRequired_default,LottiePlayerLight_1,hasRequiredLottiePlayerLight;function requireLottie_light(){return hasRequiredLottie_light||(hasRequiredLottie_light=1,e=lottie_light$1,t=lottie_light$1.exports,"undefined"!=typeof document&&"undefined"!=typeof navigator&&(e.exports=function(){var e="http://www.w3.org/2000/svg",n="",o=!1,i=-999999,r=function(e){o=!!e},a=function(){return o},s=function(e){n=e},l=function(){return n};function c(e){return document.createElement(e)}function d(e,t){var n,o,i=e.length;for(n=0;n<i;n+=1)for(var r in o=e[n].prototype)Object.prototype.hasOwnProperty.call(o,r)&&(t.prototype[r]=o[r])}function p(e){function t(){}return t.prototype=e,t}var u=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),m=function(){function e(e,t){var n,o=0,i=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(o=0;o<t;o+=1)i.push(n);return i}function t(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?t:e}();function h(e){return Array.apply(null,{length:e})}var g=!0,x=null,f="",y=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),S=Math.pow,C=Math.sqrt,b=Math.floor,$=Math.min,v=150,E=Math.PI/180,w=.5519;function R(e,t,n,o){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=o<0?-1:1}function A(e,t){this.type=e,this.direction=t<0?-1:1}function j(e,t,n,o){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=o<0?-1:1}function T(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function I(e,t){this.type=e,this.target=t}function k(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function L(e){this.type="configError",this.nativeError=e}var D=function(){var e=0;return function(){return f+"__lottie_element_"+(e+=1)}}();function _(e,t,n){var o,i,r,a,s,l,c,d;switch(l=n*(1-t),c=n*(1-(s=6*e-(a=Math.floor(6*e)))*t),d=n*(1-(1-s)*t),a%6){case 0:o=n,i=d,r=l;break;case 1:o=c,i=n,r=l;break;case 2:o=l,i=n,r=d;break;case 3:o=l,i=c,r=n;break;case 4:o=d,i=l,r=n;break;case 5:o=n,i=l,r=c}return[o,i,r]}function P(e,t,n){var o,i=Math.max(e,t,n),r=Math.min(e,t,n),a=i-r,s=0===i?0:a/i,l=i/255;switch(i){case r:o=0;break;case e:o=t-n+a*(t<n?6:0),o/=6*a;break;case t:o=n-e+2*a,o/=6*a;break;case n:o=e-t+4*a,o/=6*a}return[o,s,l]}function B(e,t){var n=P(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),_(n[0],n[1],n[2])}function M(e,t){var n=P(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),_(n[0],n[1],n[2])}function O(e,t){var n=P(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),_(n[0],n[1],n[2])}!function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t}();var F=function(e){g=!!e},N=function(){return g},z=function(e){x=e},H=function(){return x},V=function(e){v=e},W=function(){return v},U=function(e){f=e};function G(t){return document.createElementNS(e,t)}function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Q=function(){var e,t,n=1,o=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},r={postMessage:function(e){i.onmessage({data:e})}};function s(t){if(window.Worker&&window.Blob&&a()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),o=URL.createObjectURL(n);return new Worker(o)}return e=t,i}function l(){t||((t=s(function(e){function t(){function e(t,n){var a,s,l,c,d,p,u=t.length;for(s=0;s<u;s+=1)if("ks"in(a=t[s])&&!a.completed){if(a.completed=!0,a.hasMask){var h=a.masksProperties;for(c=h.length,l=0;l<c;l+=1)if(h[l].pt.k.i)r(h[l].pt.k);else for(p=h[l].pt.k.length,d=0;d<p;d+=1)h[l].pt.k[d].s&&r(h[l].pt.k[d].s[0]),h[l].pt.k[d].e&&r(h[l].pt.k[d].e[0])}0===a.ty?(a.layers=o(a.refId,n),e(a.layers,n)):4===a.ty?i(a.shapes):5===a.ty&&m(a)}}function t(t,n){if(t){var i=0,r=t.length;for(i=0;i<r;i+=1)1===t[i].t&&(t[i].data.layers=o(t[i].data.refId,n),e(t[i].data.layers,n))}}function n(e,t){for(var n=0,o=t.length;n<o;){if(t[n].id===e)return t[n];n+=1}return null}function o(e,t){var o=n(e,t);return o?o.layers.__used?JSON.parse(JSON.stringify(o.layers)):(o.layers.__used=!0,o.layers):null}function i(e){var t,n,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(o=e[t].ks.k.length,n=0;n<o;n+=1)e[t].ks.k[n].s&&r(e[t].ks.k[n].s[0]),e[t].ks.k[n].e&&r(e[t].ks.k[n].e[0]);else"gr"===e[t].ty&&i(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function a(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var s=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,o=e.length;for(n=0;n<o;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var o,i=t.assets.length;for(o=0;o<i;o+=1)t.assets[o].layers&&n(t.assets[o].layers)}}}(),l=function(){var e=[4,7,99];return function(t){if(t.chars&&!a(e,t.v)){var n,o=t.chars.length;for(n=0;n<o;n+=1){var r=t.chars[n];r.data&&r.data.shapes&&(i(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[n].t||(r.data.shapes.push({ty:"no"}),r.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),c=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function n(e){var n,o=e.length;for(n=0;n<o;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var o,i=t.assets.length;for(o=0;o<i;o+=1)t.assets[o].layers&&n(t.assets[o].layers)}}}(),d=function(){var e=[4,1,9];function t(e){var n,o,i,r=e.length;for(n=0;n<r;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(i=e[n].c.k.length,o=0;o<i;o+=1)e[n].c.k[o].s&&(e[n].c.k[o].s[0]/=255,e[n].c.k[o].s[1]/=255,e[n].c.k[o].s[2]/=255,e[n].c.k[o].s[3]/=255),e[n].c.k[o].e&&(e[n].c.k[o].e[0]/=255,e[n].c.k[o].e[1]/=255,e[n].c.k[o].e[2]/=255,e[n].c.k[o].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,o=e.length;for(n=0;n<o;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var o,i=t.assets.length;for(o=0;o<i;o+=1)t.assets[o].layers&&n(t.assets[o].layers)}}}(),p=function(){var e=[4,4,18];function t(e){var n,o,i;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,o=0;o<i;o+=1)e[n].ks.k[o].s&&(e[n].ks.k[o].s[0].c=e[n].closed),e[n].ks.k[o].e&&(e[n].ks.k[o].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,o,i,r,a,s,l=e.length;for(o=0;o<l;o+=1){if((n=e[o]).hasMask){var c=n.masksProperties;for(r=c.length,i=0;i<r;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(s=c[i].pt.k.length,a=0;a<s;a+=1)c[i].pt.k[a].s&&(c[i].pt.k[a].s[0].c=c[i].cl),c[i].pt.k[a].e&&(c[i].pt.k[a].e[0].c=c[i].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(a(e,t.v)&&(n(t.layers),t.assets)){var o,i=t.assets.length;for(o=0;o<i;o+=1)t.assets[o].layers&&n(t.assets[o].layers)}}}();function u(n){n.__complete||(d(n),s(n),l(n),c(n),p(n),e(n.layers,n.assets),t(n.chars,n.assets),n.__complete=!0)}function m(e){0===e.t.a.length&&e.t.p}var h={};return h.completeData=u,h.checkColors=d,h.checkChars=l,h.checkPathProperties=c,h.checkShapes=p,h.completeLayers=e,h}if(r.dataManager||(r.dataManager=t()),r.assetLoader||(r.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===q(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}function t(t,n,o,i){var r,a=new XMLHttpRequest;try{a.responseType="json"}catch(s){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)r=e(a),o(r);else try{r=e(a),o(r)}catch(s){i&&i(s)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(l){a.open(["G","E","T"].join(""),n+"/"+t,!0)}a.send()}return{load:t}}()),"loadAnimation"===e.data.type)r.assetLoader.load(e.data.path,e.data.fullPath,function(t){r.dataManager.completeData(t),r.postMessage({id:e.data.id,payload:t,status:"success"})},function(){r.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var n=e.data.animation;r.dataManager.completeData(n),r.postMessage({id:e.data.id,payload:n,status:"success"})}else"loadData"===e.data.type&&r.assetLoader.load(e.data.path,e.data.fullPath,function(t){r.postMessage({id:e.data.id,payload:t,status:"success"})},function(){r.postMessage({id:e.data.id,status:"error"})})})).onmessage=function(e){var t=e.data,n=t.id,i=o[n];o[n]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function c(e,t){var i="processId_"+(n+=1);return o[i]={onComplete:e,onError:t},i}function d(e,n,o){l();var i=c(n,o);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})}function p(e,n,o){l();var i=c(n,o);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})}function u(e,n,o){l();var i=c(n,o);t.postMessage({type:"complete",animation:e,id:i})}return{loadAnimation:d,loadData:p,completeAnimation:u}}(),Y=function(){var e=function(){var e=c("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function o(e,t,n){var o="";if(e.e)o=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),o=t+i}else o=n,o+=e.u?e.u:"",o+=e.p;return o}function i(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function r(t){var n=o(t,this.assetsPath,this.path),i=G("image");y?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var r={img:i,assetData:t};return r}function a(t){var n=o(t,this.assetsPath,this.path),i=c("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=e,this._imageLoaded()}.bind(this),!1),i.src=n;var r={img:i,assetData:t};return r}function s(e){var t={assetData:e},n=o(e,this.assetsPath,this.path);return Q.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function l(e,t){var n;this.imagesLoadedCb=t;var o=e.length;for(n=0;n<o;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))}function d(e){this.path=e||""}function p(e){this.assetsPath=e||""}function u(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null}function m(){this.imagesLoadedCb=null,this.images.length=0}function h(){return this.totalImages===this.loadedAssets}function g(){return this.totalFootages===this.loadedFootagesCount}function x(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function f(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return f.prototype={loadAssets:l,setAssetsPath:p,setPath:d,loadedImages:h,loadedFootages:g,destroy:m,getAsset:u,createImgData:a,createImageData:r,imageLoaded:t,footageLoaded:n,setCacheType:x},f}();function K(){}K.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],o=0;o<n.length;o+=1)n[o](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,o=this._cbs[e].length;n<o;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,o-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var Z=function(){function e(e){for(var t,n=e.split("\r\n"),o={},i=0,r=0;r<n.length;r+=1)2===(t=n[r].split(":")).length&&(o[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return o}return function(t){for(var n=[],o=0;o<t.length;o+=1){var i=t[o],r={time:i.tm,duration:i.dr};try{r.payload=JSON.parse(t[o].cm)}catch(a){try{r.payload=e(t[o].cm)}catch(s){r.payload={name:t[o].cm}}}n.push(r)}return n}}(),X=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),J={},ee=function(e,t){J[e]=t};function te(e){return J[e]}function ne(){if(J.canvas)return"canvas";for(var e in J)if(J[e])return e;return""}function oe(e){return(oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ie=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=D(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=N(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=X(),this.imagePreloader=new Y,this.audioController=u(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new R("drawnFrame",0,0,0),this.expressionsPlugin=H()};d([K],ie),ie.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=te(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Q.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ie.prototype.onSetupError=function(){this.trigger("data_failed")},ie.prototype.setupAnimation=function(e){Q.completeAnimation(e,this.configAnimation)},ie.prototype.setData=function(e,t){t&&"object"!==oe(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},o=e.attributes;n.path=o.getNamedItem("data-animation-path")?o.getNamedItem("data-animation-path").value:o.getNamedItem("data-bm-path")?o.getNamedItem("data-bm-path").value:o.getNamedItem("bm-path")?o.getNamedItem("bm-path").value:"",n.animType=o.getNamedItem("data-anim-type")?o.getNamedItem("data-anim-type").value:o.getNamedItem("data-bm-type")?o.getNamedItem("data-bm-type").value:o.getNamedItem("bm-type")?o.getNamedItem("bm-type").value:o.getNamedItem("data-bm-renderer")?o.getNamedItem("data-bm-renderer").value:o.getNamedItem("bm-renderer")?o.getNamedItem("bm-renderer").value:ne()||"canvas";var i=o.getNamedItem("data-anim-loop")?o.getNamedItem("data-anim-loop").value:o.getNamedItem("data-bm-loop")?o.getNamedItem("data-bm-loop").value:o.getNamedItem("bm-loop")?o.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var r=o.getNamedItem("data-anim-autoplay")?o.getNamedItem("data-anim-autoplay").value:o.getNamedItem("data-bm-autoplay")?o.getNamedItem("data-bm-autoplay").value:!o.getNamedItem("bm-autoplay")||o.getNamedItem("bm-autoplay").value;n.autoplay="false"!==r,n.name=o.getNamedItem("data-name")?o.getNamedItem("data-name").value:o.getNamedItem("data-bm-name")?o.getNamedItem("data-bm-name").value:o.getNamedItem("bm-name")?o.getNamedItem("bm-name").value:"","false"===(o.getNamedItem("data-anim-prerender")?o.getNamedItem("data-anim-prerender").value:o.getNamedItem("data-bm-prerender")?o.getNamedItem("data-bm-prerender").value:o.getNamedItem("bm-prerender")?o.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},ie.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,o=this.animationData.layers,i=o.length,r=e.layers,a=r.length;for(n=0;n<a;n+=1)for(t=0;t<i;){if(o[t].id===r[n].id){o[t]=r[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,Q.completeAnimation(this.animationData,this.onSegmentComplete)},ie.prototype.onSegmentComplete=function(e){this.animationData=e;var t=H();t&&t.initExpressions(this),this.loadNextSegment()},ie.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Q.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},ie.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ie.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ie.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ie.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=Z(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},ie.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ie.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=H();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ie.prototype.resize=function(e,t){var n="number"==typeof e?e:void 0,o="number"==typeof t?t:void 0;this.renderer.updateContainerSize(n,o)},ie.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ie.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ie.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ie.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ie.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ie.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},ie.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ie.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},ie.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var o=Number(e);if(isNaN(o)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ie.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var o=Number(e);if(isNaN(o)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(o,t,n);this.play()}},ie.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},ie.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},ie.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},ie.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===oe(e[0])){var n,o=e.length;for(n=0;n<o;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ie.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ie.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},ie.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ie.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ie.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ie.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ie.prototype.setLoop=function(e){this.loop=e},ie.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},ie.prototype.getVolume=function(){return this.audioController.getVolume()},ie.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ie.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ie.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ie.prototype.getPath=function(){return this.path},ie.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},ie.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},ie.prototype.hide=function(){this.renderer.hide()},ie.prototype.show=function(){this.renderer.show()},ie.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ie.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(o){}},ie.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new R(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new j(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new A(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new T(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new I(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new R(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new j(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new A(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new T(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new I(e,this))},ie.prototype.triggerRenderFrameError=function(e){var t=new k(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},ie.prototype.triggerConfigError=function(e){var t=new L(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var re=function(){var e={},t=[],n=0,o=0,i=0,r=!0,a=!1;function s(e){for(var n=0,i=e.target;n<o;)t[n].animation===i&&(t.splice(n,1),n-=1,o-=1,i.isPaused||u()),n+=1}function l(e,n){if(!e)return null;for(var i=0;i<o;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var r=new ie;return m(r,e),r.setData(e,n),r}function d(){var e,n=t.length,o=[];for(e=0;e<n;e+=1)o.push(t[e].animation);return o}function p(){i+=1,A()}function u(){i-=1}function m(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",p),e.addEventListener("_idle",u),t.push({elem:n,animation:e}),o+=1}function h(e){var t=new ie;return m(t,null),t.setParams(e),t}function g(e,n){var i;for(i=0;i<o;i+=1)t[i].animation.setSpeed(e,n)}function x(e,n){var i;for(i=0;i<o;i+=1)t[i].animation.setDirection(e,n)}function f(e){var n;for(n=0;n<o;n+=1)t[n].animation.play(e)}function y(e){var s,l=e-n;for(s=0;s<o;s+=1)t[s].animation.advanceTime(l);n=e,i&&!a?window.requestAnimationFrame(y):r=!0}function S(e){n=e,window.requestAnimationFrame(y)}function C(e){var n;for(n=0;n<o;n+=1)t[n].animation.pause(e)}function b(e,n,i){var r;for(r=0;r<o;r+=1)t[r].animation.goToAndStop(e,n,i)}function $(e){var n;for(n=0;n<o;n+=1)t[n].animation.stop(e)}function v(e){var n;for(n=0;n<o;n+=1)t[n].animation.togglePause(e)}function E(e){var n;for(n=o-1;n>=0;n-=1)t[n].animation.destroy(e)}function w(e,t,n){var o,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),r=i.length;for(o=0;o<r;o+=1)n&&i[o].setAttribute("data-bm-type",n),l(i[o],e);if(t&&0===r){n||(n="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=c("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),a.appendChild(s),l(s,e)}}function R(){var e;for(e=0;e<o;e+=1)t[e].animation.resize()}function A(){!a&&i&&r&&(window.requestAnimationFrame(S),r=!1)}function j(){a=!0}function T(){a=!1,A()}function I(e,n){var i;for(i=0;i<o;i+=1)t[i].animation.setVolume(e,n)}function k(e){var n;for(n=0;n<o;n+=1)t[n].animation.mute(e)}function L(e){var n;for(n=0;n<o;n+=1)t[n].animation.unmute(e)}return e.registerAnimation=l,e.loadAnimation=h,e.setSpeed=g,e.setDirection=x,e.play=f,e.pause=C,e.stop=$,e.togglePause=v,e.searchAnimations=w,e.resize=R,e.goToAndStop=b,e.destroy=E,e.freeze=j,e.unfreeze=T,e.setVolume=I,e.mute=k,e.unmute=L,e.getRegisteredAnimations=d,e}(),ae=function(){var e={};e.getBezierEasing=n;var t={};function n(e,n,o,i,r){var a=r||("bez_"+e+"_"+n+"_"+o+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var s=new f([e,n,o,i]);return t[a]=s,s}var o=4,i=.001,r=1e-7,a=10,s=11,l=1/(s-1),c="function"==typeof Float32Array;function d(e,t){return 1-3*t+3*e}function p(e,t){return 3*t-6*e}function u(e){return 3*e}function m(e,t,n){return((d(t,n)*e+p(t,n))*e+u(t))*e}function h(e,t,n){return 3*d(t,n)*e*e+2*p(t,n)*e+u(t)}function g(e,t,n,o,i){var s,l,c=0;do{(s=m(l=t+(n-t)/2,o,i)-e)>0?n=l:t=l}while(Math.abs(s)>r&&++c<a);return l}function x(e,t,n,i){for(var r=0;r<o;++r){var a=h(t,n,i);if(0===a)return t;t-=(m(t,n,i)-e)/a}return t}function f(e){this._p=e,this._mSampleValues=c?new Float32Array(s):new Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return f.prototype={get:function(e){var t=this._p[0],n=this._p[1],o=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===n&&o===i?e:0===e?0:1===e?1:m(this._getTForX(e),n,i)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],o=this._p[3];this._precomputed=!0,e===t&&n===o||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<s;++n)this._mSampleValues[n]=m(n*l,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],o=this._mSampleValues,r=0,a=1,c=s-1;a!==c&&o[a]<=e;++a)r+=l;var d=r+(e-o[--a])/(o[a+1]-o[a])*l,p=h(d,t,n);return p>=i?x(e,d,t,n):0===p?d:g(e,r,r+l,t,n)}},e}(),se=function(){function e(e){return e.concat(h(e.length))}return{double:e}}(),le=function(){return function(e,t,n){var o=0,i=e,r=h(i);function a(){return o?r[o-=1]:t()}function s(e){o===i&&(r=se.double(r),i*=2),n&&n(e),r[o]=e,o+=1}return{newElement:a,release:s}}}(),ce=function(){function e(){return{addedLength:0,percents:m("float32",W()),lengths:m("float32",W())}}return le(8,e)}(),de=function(){function e(){return{lengths:[],totalLength:0}}function t(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)ce.release(e.lengths[t]);e.lengths.length=0}return le(8,e,t)}();function pe(){var e=Math;function t(e,t,n,o,i,r){var a=e*o+t*i+n*r-i*o-r*e-n*t;return a>-.001&&a<.001}function n(n,o,i,r,a,s,l,c,d){if(0===i&&0===s&&0===d)return t(n,o,r,a,l,c);var p,u=e.sqrt(e.pow(r-n,2)+e.pow(a-o,2)+e.pow(s-i,2)),m=e.sqrt(e.pow(l-n,2)+e.pow(c-o,2)+e.pow(d-i,2)),h=e.sqrt(e.pow(l-r,2)+e.pow(c-a,2)+e.pow(d-s,2));return(p=u>m?u>h?u-m-h:h-m-u:h>m?h-m-u:m-u-h)>-1e-4&&p<1e-4}var o=function(){return function(e,t,n,o){var i,r,a,s,l,c,d=W(),p=0,u=[],m=[],h=ce.newElement();for(a=n.length,i=0;i<d;i+=1){for(l=i/(d-1),c=0,r=0;r<a;r+=1)s=S(1-l,3)*e[r]+3*S(1-l,2)*l*n[r]+3*(1-l)*S(l,2)*o[r]+S(l,3)*t[r],u[r]=s,null!==m[r]&&(c+=S(u[r]-m[r],2)),m[r]=u[r];c&&(p+=c=C(c)),h.percents[i]=l,h.lengths[i]=p}return h.addedLength=p,h}}();function i(e){var t,n=de.newElement(),i=e.c,r=e.v,a=e.o,s=e.i,l=e._length,c=n.lengths,d=0;for(t=0;t<l-1;t+=1)c[t]=o(r[t],r[t+1],a[t],s[t+1]),d+=c[t].addedLength;return i&&l&&(c[t]=o(r[t],r[0],a[t],s[0]),d+=c[t].addedLength),n.totalLength=d,n}function r(e){this.segmentLength=0,this.points=new Array(e)}function a(e,t){this.partialLength=e,this.point=t}var s=function(){var e={};return function(n,o,i,s){var l=(n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!e[l]){var c,d,p,u,m,g,x,f=W(),y=0,b=null;2===n.length&&(n[0]!==o[0]||n[1]!==o[1])&&t(n[0],n[1],o[0],o[1],n[0]+i[0],n[1]+i[1])&&t(n[0],n[1],o[0],o[1],o[0]+s[0],o[1]+s[1])&&(f=2);var $=new r(f);for(p=i.length,c=0;c<f;c+=1){for(x=h(p),m=c/(f-1),g=0,d=0;d<p;d+=1)u=S(1-m,3)*n[d]+3*S(1-m,2)*m*(n[d]+i[d])+3*(1-m)*S(m,2)*(o[d]+s[d])+S(m,3)*o[d],x[d]=u,null!==b&&(g+=S(x[d]-b[d],2));y+=g=C(g),$.points[c]=new a(g,x),b=x}$.segmentLength=y,e[l]=$}return e[l]}}();function l(e,t){var n=t.percents,o=t.lengths,i=n.length,r=b((i-1)*e),a=e*t.addedLength,s=0;if(r===i-1||0===r||a===o[r])return n[r];for(var l=o[r]>a?-1:1,c=!0;c;)if(o[r]<=a&&o[r+1]>a?(s=(a-o[r])/(o[r+1]-o[r]),c=!1):r+=l,r<0||r>=i-1){if(r===i-1)return n[r];c=!1}return n[r]+(n[r+1]-n[r])*s}function c(t,n,o,i,r,a){var s=l(r,a),c=1-s;return[e.round(1e3*(c*c*c*t[0]+(s*c*c+c*s*c+c*c*s)*o[0]+(s*s*c+c*s*s+s*c*s)*i[0]+s*s*s*n[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(s*c*c+c*s*c+c*c*s)*o[1]+(s*s*c+c*s*s+s*c*s)*i[1]+s*s*s*n[1]))/1e3]}var d=m("float32",8);function p(t,n,o,i,r,a,s){r<0?r=0:r>1&&(r=1);var c,p=l(r,s),u=l(a=a>1?1:a,s),m=t.length,h=1-p,g=1-u,x=h*h*h,f=p*h*h*3,y=p*p*h*3,S=p*p*p,C=h*h*g,b=p*h*g+h*p*g+h*h*u,$=p*p*g+h*p*u+p*h*u,v=p*p*u,E=h*g*g,w=p*g*g+h*u*g+h*g*u,R=p*u*g+h*u*u+p*g*u,A=p*u*u,j=g*g*g,T=u*g*g+g*u*g+g*g*u,I=u*u*g+g*u*u+u*g*u,k=u*u*u;for(c=0;c<m;c+=1)d[4*c]=e.round(1e3*(x*t[c]+f*o[c]+y*i[c]+S*n[c]))/1e3,d[4*c+1]=e.round(1e3*(C*t[c]+b*o[c]+$*i[c]+v*n[c]))/1e3,d[4*c+2]=e.round(1e3*(E*t[c]+w*o[c]+R*i[c]+A*n[c]))/1e3,d[4*c+3]=e.round(1e3*(j*t[c]+T*o[c]+I*i[c]+k*n[c]))/1e3;return d}return{getSegmentsLength:i,getNewSegment:p,getPointInSegment:c,buildBezierData:s,pointOnLine2D:t,pointOnLine3D:n}}var ue=pe(),me=i,he=Math.abs;function ge(e,t){var n,o=this.offsetTime;"multidimensional"===this.propType&&(n=m("float32",this.pv.length));for(var i,r,a,s,l,c,d,p,u,h=t.lastIndex,g=h,x=this.keyframes.length-1,f=!0;f;){if(i=this.keyframes[g],r=this.keyframes[g+1],g===x-1&&e>=r.t-o){i.h&&(i=r),h=0;break}if(r.t-o>e){h=g;break}g<x-1?g+=1:(h=0,f=!1)}a=this.keyframesMetadata[g]||{};var y,S=r.t-o,C=i.t-o;if(i.to){a.bezierData||(a.bezierData=ue.buildBezierData(i.s,r.s||i.e,i.to,i.ti));var b=a.bezierData;if(e>=S||e<C){var $=e>=S?b.points.length-1:0;for(l=b.points[$].point.length,s=0;s<l;s+=1)n[s]=b.points[$].point[s]}else{a.__fnct?u=a.__fnct:(u=ae.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,a.__fnct=u),c=u((e-C)/(S-C));var v,E=b.segmentLength*c,w=t.lastFrame<e&&t._lastKeyframeIndex===g?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===g?t._lastPoint:0,f=!0,d=b.points.length;f;){if(w+=b.points[p].partialLength,0===E||0===c||p===b.points.length-1){for(l=b.points[p].point.length,s=0;s<l;s+=1)n[s]=b.points[p].point[s];break}if(E>=w&&E<w+b.points[p+1].partialLength){for(v=(E-w)/b.points[p+1].partialLength,l=b.points[p].point.length,s=0;s<l;s+=1)n[s]=b.points[p].point[s]+(b.points[p+1].point[s]-b.points[p].point[s])*v;break}p<d-1?p+=1:f=!1}t._lastPoint=p,t._lastAddedLength=w-b.points[p].partialLength,t._lastKeyframeIndex=g}}else{var R,A,j,T,I;if(x=i.s.length,y=r.s||i.e,this.sh&&1!==i.h)e>=S?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):e<=C?(n[0]=i.s[0],n[1]=i.s[1],n[2]=i.s[2]):fe(n,xe(ye(i.s),ye(y),(e-C)/(S-C)));else for(g=0;g<x;g+=1)1!==i.h&&(e>=S?c=1:e<C?c=0:(i.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[g]?u=a.__fnct[g]:(R=void 0===i.o.x[g]?i.o.x[0]:i.o.x[g],A=void 0===i.o.y[g]?i.o.y[0]:i.o.y[g],j=void 0===i.i.x[g]?i.i.x[0]:i.i.x[g],T=void 0===i.i.y[g]?i.i.y[0]:i.i.y[g],u=ae.getBezierEasing(R,A,j,T).get,a.__fnct[g]=u)):a.__fnct?u=a.__fnct:(R=i.o.x,A=i.o.y,j=i.i.x,T=i.i.y,u=ae.getBezierEasing(R,A,j,T).get,i.keyframeMetadata=u),c=u((e-C)/(S-C)))),y=r.s||i.e,I=1===i.h?i.s[g]:i.s[g]+(y[g]-i.s[g])*c,"multidimensional"===this.propType?n[g]=I:n=I}return t.lastIndex=h,n}function xe(e,t,n){var o,i,r,a,s,l=[],c=e[0],d=e[1],p=e[2],u=e[3],m=t[0],h=t[1],g=t[2],x=t[3];return(i=c*m+d*h+p*g+u*x)<0&&(i=-i,m=-m,h=-h,g=-g,x=-x),1-i>1e-6?(o=Math.acos(i),r=Math.sin(o),a=Math.sin((1-n)*o)/r,s=Math.sin(n*o)/r):(a=1-n,s=n),l[0]=a*c+s*m,l[1]=a*d+s*h,l[2]=a*p+s*g,l[3]=a*u+s*x,l}function fe(e,t){var n=t[0],o=t[1],i=t[2],r=t[3],a=Math.atan2(2*o*r-2*n*i,1-2*o*o-2*i*i),s=Math.asin(2*n*o+2*i*r),l=Math.atan2(2*n*r-2*o*i,1-2*n*n-2*i*i);e[0]=a/E,e[1]=s/E,e[2]=l/E}function ye(e){var t=e[0]*E,n=e[1]*E,o=e[2]*E,i=Math.cos(t/2),r=Math.cos(n/2),a=Math.cos(o/2),s=Math.sin(t/2),l=Math.sin(n/2),c=Math.sin(o/2);return[s*l*a+i*r*c,s*r*a+i*l*c,i*l*a-s*r*c,i*r*a-s*l*c]}function Se(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==me&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var o=this.interpolateValue(e,this._caching);this.pv=o}return this._caching.lastFrame=e,this.pv}function Ce(e){var t;if("unidimensional"===this.propType)t=e*this.mult,he(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,o=this.v.length;n<o;)t=e[n]*this.mult,he(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function be(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function $e(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ve(e,t,n,o){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=o,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=be,this.setVValue=Ce,this.addEffect=$e}function Ee(e,t,n,o){var i;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=o,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r=t.k.length;for(this.v=m("float32",r),this.pv=m("float32",r),this.vel=m("float32",r),i=0;i<r;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=be,this.setVValue=Ce,this.addEffect=$e}function we(e,t,n,o){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:me,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=o,this.comp=e.comp,this.v=me,this.pv=me,this._isFirstFrame=!0,this.getValue=be,this.setVValue=Ce,this.interpolateValue=ge,this.effectsSequence=[Se.bind(this)],this.addEffect=$e}function Re(e,t,n,o){var i;this.propType="multidimensional";var r,a,s,l,c=t.k.length;for(i=0;i<c-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(r=t.k[i].s,a=t.k[i+1].s,s=t.k[i].to,l=t.k[i].ti,(2===r.length&&(r[0]!==a[0]||r[1]!==a[1])&&ue.pointOnLine2D(r[0],r[1],a[0],a[1],r[0]+s[0],r[1]+s[1])&&ue.pointOnLine2D(r[0],r[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===r.length&&(r[0]!==a[0]||r[1]!==a[1]||r[2]!==a[2])&&ue.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],r[0]+s[0],r[1]+s[1],r[2]+s[2])&&ue.pointOnLine3D(r[0],r[1],r[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[i].to=null,t.k[i].ti=null),r[0]===a[0]&&r[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===r.length||r[2]===a[2]&&0===s[2]&&0===l[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[Se.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=o,this.comp=e.comp,this.getValue=be,this.setVValue=Ce,this.interpolateValue=ge,this.frameId=-1;var d=t.k[0].s.length;for(this.v=m("float32",d),this.pv=m("float32",d),i=0;i<d;i+=1)this.v[i]=me,this.pv[i]=me;this._caching={lastFrame:me,lastIndex:0,value:m("float32",d)},this.addEffect=$e}var Ae=function(){function e(e,t,n,o,i){var r;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])r=new Ee(e,t,o,i);else switch(n){case 0:r=new we(e,t,o,i);break;case 1:r=new Re(e,t,o,i)}else r=new ve(e,t,o,i);return r.effectsSequence.length&&i.addDynamicProperty(r),r}return{getProp:e}}();function je(){}je.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Te=function(){function e(){return m("float32",2)}return le(8,e)}();function Ie(){this.c=!1,this._length=0,this._maxLength=8,this.v=h(this._maxLength),this.o=h(this._maxLength),this.i=h(this._maxLength)}Ie.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=Te.newElement(),this.o[n]=Te.newElement(),this.i[n]=Te.newElement(),n+=1},Ie.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Ie.prototype.doubleArrayLength=function(){this.v=this.v.concat(h(this._maxLength)),this.i=this.i.concat(h(this._maxLength)),this.o=this.o.concat(h(this._maxLength)),this._maxLength*=2},Ie.prototype.setXYAt=function(e,t,n,o,i){var r;switch(this._length=Math.max(this._length,o+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}(!r[o]||r[o]&&!i)&&(r[o]=Te.newElement()),r[o][0]=e,r[o][1]=t},Ie.prototype.setTripleAt=function(e,t,n,o,i,r,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(n,o,"o",a,s),this.setXYAt(i,r,"i",a,s)},Ie.prototype.reverse=function(){var e=new Ie;e.setPathData(this.c,this._length);var t=this.v,n=this.o,o=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],o[0][0],o[0][1],n[0][0],n[0][1],0,!1),i=1);var r,a=this._length-1,s=this._length;for(r=i;r<s;r+=1)e.setTripleAt(t[a][0],t[a][1],o[a][0],o[a][1],n[a][0],n[a][1],r,!1),a-=1;return e},Ie.prototype.length=function(){return this._length};var ke=function(){function e(){return new Ie}function t(e){var t,n=e._length;for(t=0;t<n;t+=1)Te.release(e.v[t]),Te.release(e.i[t]),Te.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}function n(e){var t,n=o.newElement(),i=void 0===e._length?e.v.length:e._length;for(n.setLength(i),n.c=e.c,t=0;t<i;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n}var o=le(4,e,t);return o.clone=n,o}();function Le(){this._length=0,this._maxLength=4,this.shapes=h(this._maxLength)}Le.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(h(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Le.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ke.release(this.shapes[e]);this._length=0};var De=function(){var e={newShapeCollection:i,release:r},t=0,n=4,o=h(n);function i(){return t?o[t-=1]:new Le}function r(e){var i,r=e._length;for(i=0;i<r;i+=1)ke.release(e.shapes[i]);e._length=0,t===n&&(o=se.double(o),n*=2),o[t]=e,t+=1}return e}(),_e=function(){var e=-999999;function t(e,t,n){var o,i,r,a,s,l,c,d,p,u=n.lastIndex,m=this.keyframes;if(e<m[0].t-this.offsetTime)o=m[0].s[0],r=!0,u=0;else if(e>=m[m.length-1].t-this.offsetTime)o=m[m.length-1].s?m[m.length-1].s[0]:m[m.length-2].e[0],r=!0;else{for(var h,g,x,f=u,y=m.length-1,S=!0;S&&(h=m[f],!((g=m[f+1]).t-this.offsetTime>e));)f<y-1?f+=1:S=!1;if(x=this.keyframesMetadata[f]||{},u=f,!(r=1===h.h)){if(e>=g.t-this.offsetTime)d=1;else if(e<h.t-this.offsetTime)d=0;else{var C;x.__fnct?C=x.__fnct:(C=ae.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,x.__fnct=C),d=C((e-(h.t-this.offsetTime))/(g.t-this.offsetTime-(h.t-this.offsetTime)))}i=g.s?g.s[0]:h.e[0]}o=h.s[0]}for(l=t._length,c=o.i[0].length,n.lastIndex=u,a=0;a<l;a+=1)for(s=0;s<c;s+=1)p=r?o.i[a][s]:o.i[a][s]+(i.i[a][s]-o.i[a][s])*d,t.i[a][s]=p,p=r?o.o[a][s]:o.o[a][s]+(i.o[a][s]-o.o[a][s])*d,t.o[a][s]=p,p=r?o.v[a][s]:o.v[a][s]+(i.v[a][s]-o.v[a][s])*d,t.v[a][s]=p}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,o=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<n&&t<n||i>o&&t>o)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function o(){this.paths=this.localShapeCollection}function i(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,o=e._length;for(n=0;n<o;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0}function r(e){i(this.v,e)||(this.v=ke.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?t.pt.k:t.ks.k;this.v=ke.clone(i),this.pv=ke.clone(this.v),this.localShapeCollection=De.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=o,this.effectsSequence=[]}function l(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function c(t,i,r){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===r?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=ke.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=ke.clone(this.v),this.localShapeCollection=De.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=o,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=a,s.prototype.setVValue=r,s.prototype.addEffect=l,c.prototype.getValue=a,c.prototype.interpolateShape=t,c.prototype.setVValue=r,c.prototype.addEffect=l;var p=function(){var e=w;function t(e,t){this.v=ke.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=De.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=Ae.getProp(e,t.p,1,0,this),this.s=Ae.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:o,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],o=this.s.v[0]/2,i=this.s.v[1]/2,r=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=n-i,a.v[1][0]=r?t+o:t-o,a.v[1][1]=n,a.v[2][0]=t,a.v[2][1]=n+i,a.v[3][0]=r?t-o:t+o,a.v[3][1]=n,a.i[0][0]=r?t-o*e:t+o*e,a.i[0][1]=n-i,a.i[1][0]=r?t+o:t-o,a.i[1][1]=n-i*e,a.i[2][0]=r?t+o*e:t-o*e,a.i[2][1]=n+i,a.i[3][0]=r?t-o:t+o,a.i[3][1]=n+i*e,a.o[0][0]=r?t+o*e:t-o*e,a.o[0][1]=n-i,a.o[1][0]=r?t+o:t-o,a.o[1][1]=n+i*e,a.o[2][0]=r?t-o*e:t+o*e,a.o[2][1]=n+i,a.o[3][0]=r?t-o:t+o,a.o[3][1]=n-i*e}},d([je],t),t}(),u=function(){function e(e,t){this.v=ke.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=Ae.getProp(e,t.ir,0,0,this),this.is=Ae.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Ae.getProp(e,t.pt,0,0,this),this.p=Ae.getProp(e,t.p,1,0,this),this.r=Ae.getProp(e,t.r,0,E,this),this.or=Ae.getProp(e,t.or,0,0,this),this.os=Ae.getProp(e,t.os,0,.01,this),this.localShapeCollection=De.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:o,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,o,i=2*Math.floor(this.pt.v),r=2*Math.PI/i,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,d=this.is.v,p=2*Math.PI*s/(2*i),u=2*Math.PI*l/(2*i),m=-Math.PI/2;m+=this.r.v;var h=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){n=a?c:d,o=a?p:u;var g=(t=a?s:l)*Math.cos(m),x=t*Math.sin(m),f=0===g&&0===x?0:x/Math.sqrt(g*g+x*x),y=0===g&&0===x?0:-g/Math.sqrt(g*g+x*x);g+=+this.p.v[0],x+=+this.p.v[1],this.v.setTripleAt(g,x,g-f*o*n*h,x-y*o*n*h,g+f*o*n*h,x+y*o*n*h,e,!0),a=!a,m+=r*h}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,o=this.or.v,i=this.os.v,r=2*Math.PI*o/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=o*Math.cos(a),c=o*Math.sin(a),d=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),p=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-d*r*i*s,c-p*r*i*s,l+d*r*i*s,c+p*r*i*s,e,!0),a+=n*s}this.paths.length=0,this.paths[0]=this.v}},d([je],e),e}(),m=function(){function e(e,t){this.v=ke.newElement(),this.v.c=!0,this.localShapeCollection=De.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=Ae.getProp(e,t.p,1,0,this),this.s=Ae.getProp(e,t.s,1,0,this),this.r=Ae.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,o=this.s.v[1]/2,i=$(n,o,this.r.v),r=i*(1-w);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-o+i,e+n,t-o+i,e+n,t-o+r,0,!0),this.v.setTripleAt(e+n,t+o-i,e+n,t+o-r,e+n,t+o-i,1,!0),0!==i?(this.v.setTripleAt(e+n-i,t+o,e+n-i,t+o,e+n-r,t+o,2,!0),this.v.setTripleAt(e-n+i,t+o,e-n+r,t+o,e-n+i,t+o,3,!0),this.v.setTripleAt(e-n,t+o-i,e-n,t+o-i,e-n,t+o-r,4,!0),this.v.setTripleAt(e-n,t-o+i,e-n,t-o+r,e-n,t-o+i,5,!0),this.v.setTripleAt(e-n+i,t-o,e-n+i,t-o,e-n+r,t-o,6,!0),this.v.setTripleAt(e+n-i,t-o,e+n-r,t-o,e+n-i,t-o,7,!0)):(this.v.setTripleAt(e-n,t+o,e-n+r,t+o,e-n,t+o,2),this.v.setTripleAt(e-n,t-o,e-n,t-o+r,e-n,t-o,3))):(this.v.setTripleAt(e+n,t-o+i,e+n,t-o+r,e+n,t-o+i,0,!0),0!==i?(this.v.setTripleAt(e+n-i,t-o,e+n-i,t-o,e+n-r,t-o,1,!0),this.v.setTripleAt(e-n+i,t-o,e-n+r,t-o,e-n+i,t-o,2,!0),this.v.setTripleAt(e-n,t-o+i,e-n,t-o+i,e-n,t-o+r,3,!0),this.v.setTripleAt(e-n,t+o-i,e-n,t+o-r,e-n,t+o-i,4,!0),this.v.setTripleAt(e-n+i,t+o,e-n+i,t+o,e-n+r,t+o,5,!0),this.v.setTripleAt(e+n-i,t+o,e+n-r,t+o,e+n-i,t+o,6,!0),this.v.setTripleAt(e+n,t+o-i,e+n,t+o-i,e+n,t+o-r,7,!0)):(this.v.setTripleAt(e-n,t-o,e-n+r,t-o,e-n,t-o,1,!0),this.v.setTripleAt(e-n,t+o,e-n,t+o-r,e-n,t+o,2,!0),this.v.setTripleAt(e+n,t+o,e+n-r,t+o,e+n,t+o,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:o},d([je],e),e}();function h(e,t,n){var o;return 3===n||4===n?o=(3===n?t.pt:t.ks).k.length?new c(e,t,n):new s(e,t,n):5===n?o=new m(e,t):6===n?o=new p(e,t):7===n&&(o=new u(e,t)),o.k&&e.addDynamicProperty(o),o}function g(){return s}function x(){return c}var f={};return f.getShapeProp=h,f.getConstructorFunction=g,f.getKeyframedConstructorFunction=x,f}(),Pe=function(){var e=Math.cos,t=Math.sin,n=Math.tan,o=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function r(n){if(0===n)return this;var o=e(n),i=t(n);return this._t(o,-i,0,0,i,o,0,0,0,0,1,0,0,0,0,1)}function a(n){if(0===n)return this;var o=e(n),i=t(n);return this._t(1,0,0,0,0,o,-i,0,0,i,o,0,0,0,0,1)}function s(n){if(0===n)return this;var o=e(n),i=t(n);return this._t(o,0,i,0,0,1,0,0,-i,0,o,0,0,0,0,1)}function l(n){if(0===n)return this;var o=e(n),i=t(n);return this._t(o,-i,0,0,i,o,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function d(e,t){return this.shear(n(e),n(t))}function p(o,i){var r=e(i),a=t(i);return this._t(r,a,0,0,-a,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(o),1,0,0,0,0,1,0,0,0,0,1)._t(r,-a,0,0,a,r,0,0,0,0,1,0,0,0,0,1)}function u(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function h(e,t,n,o,i,r,a,s,l,c,d,p,u,m,h,g){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=o,this.props[4]=i,this.props[5]=r,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=d,this.props[11]=p,this.props[12]=u,this.props[13]=m,this.props[14]=h,this.props[15]=g,this}function g(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function x(e,t,n,o,i,r,a,s,l,c,d,p,u,m,h,g){var x=this.props;if(1===e&&0===t&&0===n&&0===o&&0===i&&1===r&&0===a&&0===s&&0===l&&0===c&&1===d&&0===p)return x[12]=x[12]*e+x[15]*u,x[13]=x[13]*r+x[15]*m,x[14]=x[14]*d+x[15]*h,x[15]*=g,this._identityCalculated=!1,this;var f=x[0],y=x[1],S=x[2],C=x[3],b=x[4],$=x[5],v=x[6],E=x[7],w=x[8],R=x[9],A=x[10],j=x[11],T=x[12],I=x[13],k=x[14],L=x[15];return x[0]=f*e+y*i+S*l+C*u,x[1]=f*t+y*r+S*c+C*m,x[2]=f*n+y*a+S*d+C*h,x[3]=f*o+y*s+S*p+C*g,x[4]=b*e+$*i+v*l+E*u,x[5]=b*t+$*r+v*c+E*m,x[6]=b*n+$*a+v*d+E*h,x[7]=b*o+$*s+v*p+E*g,x[8]=w*e+R*i+A*l+j*u,x[9]=w*t+R*r+A*c+j*m,x[10]=w*n+R*a+A*d+j*h,x[11]=w*o+R*s+A*p+j*g,x[12]=T*e+I*i+k*l+L*u,x[13]=T*t+I*r+k*c+L*m,x[14]=T*n+I*a+k*d+L*h,x[15]=T*o+I*s+k*p+L*g,this._identityCalculated=!1,this}function f(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function S(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function C(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function b(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function $(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function v(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function E(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function w(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function R(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,o=-this.props[4]/e,i=this.props[0]/e,r=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Pe;return s.props[0]=t,s.props[1]=n,s.props[4]=o,s.props[5]=i,s.props[12]=r,s.props[13]=a,s}function A(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function j(e){var t,n=e.length,o=[];for(t=0;t<n;t+=1)o[t]=A(e[t]);return o}function T(e,t,n){var o=m("float32",6);if(this.isIdentity())o[0]=e[0],o[1]=e[1],o[2]=t[0],o[3]=t[1],o[4]=n[0],o[5]=n[1];else{var i=this.props[0],r=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];o[0]=e[0]*i+e[1]*a+l,o[1]=e[0]*r+e[1]*s+c,o[2]=t[0]*i+t[1]*a+l,o[3]=t[0]*r+t[1]*s+c,o[4]=n[0]*i+n[1]*a+l,o[5]=n[0]*r+n[1]*s+c}return o}function I(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function k(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function L(){for(var e=0,t=this.props,n="matrix3d(",i=1e4;e<16;)n+=o(t[e]*i)/i,n+=15===e?")":",",e+=1;return n}function D(e){var t=1e4;return e<1e-6&&e>0||e>-1e-6&&e<0?o(e*t)/t:e}function _(){var e=this.props;return"matrix("+D(e[0])+","+D(e[1])+","+D(e[4])+","+D(e[5])+","+D(e[12])+","+D(e[13])+")"}return function(){this.reset=i,this.rotate=r,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=d,this.skewFromAxis=p,this.shear=c,this.scale=u,this.setTransform=h,this.translate=g,this.transform=x,this.multiply=f,this.applyToPoint=$,this.applyToX=v,this.applyToY=E,this.applyToZ=w,this.applyToPointArray=I,this.applyToTriplePoints=T,this.applyToPointStringified=k,this.toCSS=L,this.to2dCSS=_,this.clone=C,this.cloneFromProps=b,this.equals=S,this.inversePoints=j,this.inversePoint=A,this.getInverseMatrix=R,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=m("float32",16),this.reset()}}();function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Me={};function Oe(e){s(e)}function Fe(){re.searchAnimations()}function Ne(e){F(e)}function ze(e){U(e)}function He(e){return re.loadAnimation(e)}function Ve(e){if("string"==typeof e)switch(e){case"high":V(200);break;default:case"medium":V(50);break;case"low":V(10)}else!isNaN(e)&&e>1&&V(e)}function We(){return"undefined"!=typeof navigator}function Ue(e,t){"expressions"===e&&z(t)}function Ge(e){switch(e){case"propertyFactory":return Ae;case"shapePropertyFactory":return _e;case"matrix":return Pe;default:return null}}function qe(){"complete"===document.readyState&&(clearInterval(Je),Fe())}function Qe(e){for(var t=Ye.split("&"),n=0;n<t.length;n+=1){var o=t[n].split("=");if(decodeURIComponent(o[0])==e)return decodeURIComponent(o[1])}return null}Me.play=re.play,Me.pause=re.pause,Me.setLocationHref=Oe,Me.togglePause=re.togglePause,Me.setSpeed=re.setSpeed,Me.setDirection=re.setDirection,Me.stop=re.stop,Me.searchAnimations=Fe,Me.registerAnimation=re.registerAnimation,Me.loadAnimation=He,Me.setSubframeRendering=Ne,Me.resize=re.resize,Me.goToAndStop=re.goToAndStop,Me.destroy=re.destroy,Me.setQuality=Ve,Me.inBrowser=We,Me.installPlugin=Ue,Me.freeze=re.freeze,Me.unfreeze=re.unfreeze,Me.setVolume=re.setVolume,Me.mute=re.mute,Me.unmute=re.unmute,Me.getRegisteredAnimations=re.getRegisteredAnimations,Me.useWebWorker=r,Me.setIDPrefix=ze,Me.__getFactory=Ge,Me.version="5.13.0";var Ye="",Ke=document.getElementsByTagName("script"),Ze=Ke.length-1,Xe=Ke[Ze]||{src:""};Ye=Xe.src?Xe.src.replace(/^[^\?]+\??/,""):"",Qe("renderer");var Je=setInterval(qe,100);try{"object"!==Be(t)&&(window.bodymovin=Me)}catch(Xn){}var et=function(){var e={},t={};function n(e,n){t[e]||(t[e]=n)}function o(e,n,o){return new t[e](n,o)}return e.registerModifier=n,e.getModifier=o,e}();function tt(){}function nt(){}function ot(){}tt.prototype.initModifierProperties=function(){},tt.prototype.addShapeToModifier=function(){},tt.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:De.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},tt.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=i,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},tt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},d([je],tt),d([tt],nt),nt.prototype.initModifierProperties=function(e,t){this.s=Ae.getProp(e,t.s,0,.01,this),this.e=Ae.getProp(e,t.e,0,.01,this),this.o=Ae.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},nt.prototype.addShapeToModifier=function(e){e.pathsData=[]},nt.prototype.calculateShapeEdges=function(e,t,n,o,i){var r=[];t<=1?r.push({s:e,e:t}):e>=1?r.push({s:e-1,e:t-1}):(r.push({s:e,e:1}),r.push({s:0,e:t-1}));var a,s,l=[],c=r.length;for(a=0;a<c;a+=1){var d,p;(s=r[a]).e*i<o||s.s*i>o+n||(d=s.s*i<=o?0:(s.s*i-o)/n,p=s.e*i>=o+n?1:(s.e*i-o)/n,l.push([d,p]))}return l.length||l.push([0,0]),l},nt.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)de.release(e[t]);return e.length=0,e},nt.prototype.processShapes=function(e){var t,n,o,i;if(this._mdf||e){var r=this.o.v%360/360;if(r<0&&(r+=1),(t=this.s.v>1?1+r:this.s.v<0?0+r:this.s.v+r)>(n=this.e.v>1?1+r:this.e.v<0?0+r:this.e.v+r)){var a=t;t=n,n=a}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,c,d,p,u=this.shapes.length,m=0;if(n===t)for(i=0;i<u;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(i=0;i<u;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var h,g,x=[];for(i=0;i<u;i+=1)if((h=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(o=h.shape.paths)._length,p=0,!h.shape._mdf&&h.pathsData.length)p=h.totalShapeLength;else{for(c=this.releasePathsData(h.pathsData),s=0;s<l;s+=1)d=ue.getSegmentsLength(o.shapes[s]),c.push(d),p+=d.totalLength;h.totalShapeLength=p,h.pathsData=c}m+=p,h.shape._mdf=!0}else h.shape.paths=h.localShapeCollection;var f,y=t,S=n,C=0;for(i=u-1;i>=0;i-=1)if((h=this.shapes[i]).shape._mdf){for((g=h.localShapeCollection).releaseShapes(),2===this.m&&u>1?(f=this.calculateShapeEdges(t,n,h.totalShapeLength,C,m),C+=h.totalShapeLength):f=[[y,S]],l=f.length,s=0;s<l;s+=1){y=f[s][0],S=f[s][1],x.length=0,S<=1?x.push({s:h.totalShapeLength*y,e:h.totalShapeLength*S}):y>=1?x.push({s:h.totalShapeLength*(y-1),e:h.totalShapeLength*(S-1)}):(x.push({s:h.totalShapeLength*y,e:h.totalShapeLength}),x.push({s:0,e:h.totalShapeLength*(S-1)}));var b=this.addShapes(h,x[0]);if(x[0].s!==x[0].e){if(x.length>1)if(h.shape.paths.shapes[h.shape.paths._length-1].c){var $=b.pop();this.addPaths(b,g),b=this.addShapes(h,x[1],$)}else this.addPaths(b,g),b=this.addShapes(h,x[1]);this.addPaths(b,g)}}h.shape.paths=g}}},nt.prototype.addPaths=function(e,t){var n,o=e.length;for(n=0;n<o;n+=1)t.addShape(e[n])},nt.prototype.addSegment=function(e,t,n,o,i,r,a){i.setXYAt(t[0],t[1],"o",r),i.setXYAt(n[0],n[1],"i",r+1),a&&i.setXYAt(e[0],e[1],"v",r),i.setXYAt(o[0],o[1],"v",r+1)},nt.prototype.addSegmentFromArray=function(e,t,n,o){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),o&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},nt.prototype.addShapes=function(e,t,n){var o,i,r,a,s,l,c,d,p=e.pathsData,u=e.shape.paths.shapes,m=e.shape.paths._length,h=0,g=[],x=!0;for(n?(s=n._length,d=n._length):(n=ke.newElement(),s=0,d=0),g.push(n),o=0;o<m;o+=1){for(l=p[o].lengths,n.c=u[o].c,r=u[o].c?l.length:l.length+1,i=1;i<r;i+=1)if(h+(a=l[i-1]).addedLength<t.s)h+=a.addedLength,n.c=!1;else{if(h>t.e){n.c=!1;break}t.s<=h&&t.e>=h+a.addedLength?(this.addSegment(u[o].v[i-1],u[o].o[i-1],u[o].i[i],u[o].v[i],n,s,x),x=!1):(c=ue.getNewSegment(u[o].v[i-1],u[o].v[i],u[o].o[i-1],u[o].i[i],(t.s-h)/a.addedLength,(t.e-h)/a.addedLength,l[i-1]),this.addSegmentFromArray(c,n,s,x),x=!1,n.c=!1),h+=a.addedLength,s+=1}if(u[o].c&&l.length){if(a=l[i-1],h<=t.e){var f=l[i-1].addedLength;t.s<=h&&t.e>=h+f?(this.addSegment(u[o].v[i-1],u[o].o[i-1],u[o].i[0],u[o].v[0],n,s,x),x=!1):(c=ue.getNewSegment(u[o].v[i-1],u[o].v[0],u[o].o[i-1],u[o].i[0],(t.s-h)/f,(t.e-h)/f,l[i-1]),this.addSegmentFromArray(c,n,s,x),x=!1,n.c=!1)}else n.c=!1;h+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[d][0],n.v[d][1],"i",d),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),h>t.e)break;o<m-1&&(n=ke.newElement(),x=!0,g.push(n),s=0)}return g},d([tt],ot),ot.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=Ae.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},ot.prototype.processPath=function(e,t){var n=t/100,o=[0,0],i=e._length,r=0;for(r=0;r<i;r+=1)o[0]+=e.v[r][0],o[1]+=e.v[r][1];o[0]/=i,o[1]/=i;var a,s,l,c,d,p,u=ke.newElement();for(u.c=e.c,r=0;r<i;r+=1)a=e.v[r][0]+(o[0]-e.v[r][0])*n,s=e.v[r][1]+(o[1]-e.v[r][1])*n,l=e.o[r][0]+(o[0]-e.o[r][0])*-n,c=e.o[r][1]+(o[1]-e.o[r][1])*-n,d=e.i[r][0]+(o[0]-e.i[r][0])*-n,p=e.i[r][1]+(o[1]-e.i[r][1])*-n,u.setTripleAt(a,s,l,c,d,p,r);return u},ot.prototype.processShapes=function(e){var t,n,o,i,r,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||e)for(a.releaseShapes(),r.shape._mdf=!0,t=r.shape.paths.shapes,i=r.shape.paths._length,o=0;o<i;o+=1)a.addShape(this.processPath(t[o],l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var it=function(){var e=[0,0];function t(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var o,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(o=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(o=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(o=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){o=[],i=[];var r=this.px,a=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(o[0]=r.getValueAtTime((r.keyframes[0].t+.01)/n,0),o[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),i[0]=r.getValueAtTime(r.keyframes[0].t/n,0),i[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(o[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/n,0),o[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),i[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/n,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(o=[r.pv,a.pv],i[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/n,r.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else o=i=e;this.v.rotate(-Math.atan2(o[1]-i[1],o[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function o(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!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)}}function i(){}function r(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0}function a(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=Ae.getProp(e,t.p.x,0,0,this),this.py=Ae.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=Ae.getProp(e,t.p.z,0,0,this))):this.p=Ae.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=Ae.getProp(e,t.rx,0,E,this),this.ry=Ae.getProp(e,t.ry,0,E,this),this.rz=Ae.getProp(e,t.rz,0,E,this),t.or.k[0].ti){var o,i=t.or.k.length;for(o=0;o<i;o+=1)t.or.k[o].to=null,t.or.k[o].ti=null}this.or=Ae.getProp(e,t.or,1,E,this),this.or.sh=!0}else this.r=Ae.getProp(e,t.r||{k:0},0,E,this);t.sk&&(this.sk=Ae.getProp(e,t.sk,0,E,this),this.sa=Ae.getProp(e,t.sa,0,E,this)),this.a=Ae.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=Ae.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=Ae.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function s(e,t,n){return new a(e,t,n)}return a.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:o,autoOrient:i},d([je],a),a.prototype.addDynamicProperty=r,a.prototype._addDynamicProperty=je.prototype.addDynamicProperty,{getTransformProperty:s}}();function rt(){}function at(){}function st(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function lt(e){return Math.abs(e)<=1e-5}function ct(e,t,n){return e*(1-n)+t*n}function dt(e,t,n){return[ct(e[0],t[0],n),ct(e[1],t[1],n)]}function pt(e,t,n){if(0===e)return[];var o=t*t-4*e*n;if(o<0)return[];var i=-t/(2*e);if(0===o)return[i];var r=Math.sqrt(o)/(2*e);return[i-r,i+r]}function ut(e,t,n,o){return[3*t-e-3*n+o,3*e-6*t+3*n,-3*e+3*t,e]}function mt(e){return new ht(e,e,e,e,!1)}function ht(e,t,n,o,i){i&&Et(e,t)&&(t=dt(e,o,1/3)),i&&Et(n,o)&&(n=dt(e,o,2/3));var r=ut(e[0],t[0],n[0],o[0]),a=ut(e[1],t[1],n[1],o[1]);this.a=[r[0],a[0]],this.b=[r[1],a[1]],this.c=[r[2],a[2]],this.d=[r[3],a[3]],this.points=[e,t,n,o]}function gt(e,t){var n=e.points[0][t],o=e.points[e.points.length-1][t];if(n>o){var i=o;o=n,n=i}for(var r=pt(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<r.length;a+=1)if(r[a]>0&&r[a]<1){var s=e.point(r[a])[t];s<n?n=s:s>o&&(o=s)}return{min:n,max:o}}function xt(e,t,n){var o=e.boundingBox();return{cx:o.cx,cy:o.cy,width:o.width,height:o.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function ft(e){var t=e.bez.split(.5);return[xt(t[0],e.t1,e.t),xt(t[1],e.t,e.t2)]}function yt(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function St(e,t,n,o,i,r){if(yt(e,t))if(n>=r||e.width<=o&&e.height<=o&&t.width<=o&&t.height<=o)i.push([e.t,t.t]);else{var a=ft(e),s=ft(t);St(a[0],s[0],n+1,o,i,r),St(a[0],s[1],n+1,o,i,r),St(a[1],s[0],n+1,o,i,r),St(a[1],s[1],n+1,o,i,r)}}function Ct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function bt(e,t,n,o){var i=[e[0],e[1],1],r=[t[0],t[1],1],a=[n[0],n[1],1],s=[o[0],o[1],1],l=Ct(Ct(i,r),Ct(a,s));return lt(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function $t(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function vt(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function Et(e,t){return st(e[0],t[0])&&st(e[1],t[1])}function wt(){}function Rt(e,t,n,o,i,r,a){var s=n-Math.PI/2,l=n+Math.PI/2,c=t[0]+Math.cos(n)*o*i,d=t[1]-Math.sin(n)*o*i;e.setTripleAt(c,d,c+Math.cos(s)*r,d-Math.sin(s)*r,c+Math.cos(l)*a,d-Math.sin(l)*a,e.length())}function At(e,t){var n=[t[0]-e[0],t[1]-e[1]],o=.5*-Math.PI;return[Math.cos(o)*n[0]-Math.sin(o)*n[1],Math.sin(o)*n[0]+Math.cos(o)*n[1]]}function jt(e,t){var n=0===t?e.length()-1:t-1,o=(t+1)%e.length(),i=At(e.v[n],e.v[o]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function Tt(e,t,n,o,i,r,a){var s=jt(t,n),l=t.v[n%t._length],c=t.v[0===n?t._length-1:n-1],d=t.v[(n+1)%t._length],p=2===r?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,u=2===r?Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)):0;Rt(e,t.v[n%t._length],s,a,o,u/(2*(i+1)),p/(2*(i+1)))}function It(e,t,n,o,i,r){for(var a=0;a<o;a+=1){var s=(a+1)/(o+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);Rt(e,t.point(s),c,r,n,l/(2*(o+1)),l/(2*(o+1))),r=-r}return r}function kt(e,t,n){var o=Math.atan2(t[0]-e[0],t[1]-e[1]);return[$t(e,o,n),$t(t,o,n)]}function Lt(e,t){var n,o,i,r,a,s,l;n=(l=kt(e.points[0],e.points[1],t))[0],o=l[1],i=(l=kt(e.points[1],e.points[2],t))[0],r=l[1],a=(l=kt(e.points[2],e.points[3],t))[0],s=l[1];var c=bt(n,o,i,r);null===c&&(c=o);var d=bt(a,s,i,r);return null===d&&(d=a),new ht(n,c,d,s)}function Dt(e,t,n,o,i){var r=t.points[3],a=n.points[0];if(3===o)return r;if(Et(r,a))return r;if(2===o){var s=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,c=bt(r,$t(r,s+Math.PI/2,100),a,$t(a,s+Math.PI/2,100)),d=c?vt(c,r):vt(r,a)/2,p=$t(r,s,2*d*w);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=$t(a,l,2*d*w),e.setTripleAt(a[0],a[1],a[0],a[1],p[0],p[1],e.length()),a}var u=bt(Et(r,t.points[2])?t.points[0]:t.points[2],r,a,Et(a,n.points[1])?n.points[3]:n.points[1]);return u&&vt(u,r)<i?(e.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],e.length()),u):r}function _t(e,t){var n=e.intersections(t);return n.length&&st(n[0][0],1)&&n.shift(),n.length?n[0]:null}function Pt(e,t){var n=e.slice(),o=t.slice(),i=_t(e[e.length-1],t[0]);return i&&(n[e.length-1]=e[e.length-1].split(i[0])[0],o[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=_t(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,o]}function Bt(e){for(var t,n=1;n<e.length;n+=1)t=Pt(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=Pt(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function Mt(e,t){var n,o,i,r,a=e.inflectionPoints();if(0===a.length)return[Lt(e,t)];if(1===a.length||st(a[1],1))return n=(i=e.split(a[0]))[0],o=i[1],[Lt(n,t),Lt(o,t)];n=(i=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return r=(i=i[1].split(s))[0],o=i[1],[Lt(n,t),Lt(r,t),Lt(o,t)]}function Ot(){}function Ft(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",o="normal",i=t.length,r=0;r<i;r+=1)switch(t[r].toLowerCase()){case"italic":o="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:o,weight:e.fWeight||n}}d([tt],rt),rt.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=Ae.getProp(e,t.c,0,null,this),this.o=Ae.getProp(e,t.o,0,null,this),this.tr=it.getTransformProperty(e,t.tr,this),this.so=Ae.getProp(e,t.tr.so,0,.01,this),this.eo=Ae.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},rt.prototype.applyTransforms=function(e,t,n,o,i,r){var a=r?-1:1,s=o.s.v[0]+(1-o.s.v[0])*(1-i),l=o.s.v[1]+(1-o.s.v[1])*(1-i);e.translate(o.p.v[0]*a*i,o.p.v[1]*a*i,o.p.v[2]),t.translate(-o.a.v[0],-o.a.v[1],o.a.v[2]),t.rotate(-o.r.v*a*i),t.translate(o.a.v[0],o.a.v[1],o.a.v[2]),n.translate(-o.a.v[0],-o.a.v[1],o.a.v[2]),n.scale(r?1/s:s,r?1/l:l),n.translate(o.a.v[0],o.a.v[1],o.a.v[2])},rt.prototype.init=function(e,t,n,o){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=o,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},rt.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},rt.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},rt.prototype.changeGroupRender=function(e,t){var n,o=e.length;for(n=0;n<o;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},rt.prototype.processShapes=function(e){var t,n,o,i,r,a=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(r=0,o=0;o<=this._groups.length-1;o+=1){if(s=r<l,this._groups[o]._render=s,this.changeGroupRender(this._groups[o].it,s),!s){var d=this.elemsData[o].it,p=d[d.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}r+=1}this._currentCopies=l;var u=this.o.v,m=u%1,h=u>0?Math.floor(u):Math.ceil(u),g=this.pMatrix.props,x=this.rMatrix.props,f=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,S,C=0;if(u>0){for(;C<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,m,!1),C+=m)}else if(u<0){for(;C>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-m,!0),C-=m)}for(o=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,r=this._currentCopies;r;){if(S=(n=(t=this.elemsData[o].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(o/(this._currentCopies-1)),0!==C){for((0!==o&&1===i||o!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.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]),y=0;y<S;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<S;y+=1)n[y]=this.matrix.props[y];C+=1,r-=1,o+=i}}else for(r=this._currentCopies,o=0,i=1;r;)n=(t=this.elemsData[o].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,r-=1,o+=i;return a},rt.prototype.addShape=function(){},d([tt],at),at.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=Ae.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},at.prototype.processPath=function(e,t){var n,o=ke.newElement();o.c=e.c;var i,r,a,s,l,c,d,p,u,m,h,g,x=e._length,f=0;for(n=0;n<x;n+=1)i=e.v[n],a=e.o[n],r=e.i[n],i[0]===a[0]&&i[1]===a[1]&&i[0]===r[0]&&i[1]===r[1]?0!==n&&n!==x-1||e.c?(s=0===n?e.v[x-1]:e.v[n-1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=h=i[0]+(s[0]-i[0])*c,p=g=i[1]-(i[1]-s[1])*c,u=d-(d-i[0])*w,m=p-(p-i[1])*w,o.setTripleAt(d,p,u,m,h,g,f),f+=1,s=n===x-1?e.v[0]:e.v[n+1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=u=i[0]+(s[0]-i[0])*c,p=m=i[1]+(s[1]-i[1])*c,h=d-(d-i[0])*w,g=p-(p-i[1])*w,o.setTripleAt(d,p,u,m,h,g,f),f+=1):(o.setTripleAt(i[0],i[1],a[0],a[1],r[0],r[1],f),f+=1):(o.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],f),f+=1);return o},at.prototype.processShapes=function(e){var t,n,o,i,r,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||e)for(a.releaseShapes(),r.shape._mdf=!0,t=r.shape.paths.shapes,i=r.shape.paths._length,o=0;o<i;o+=1)a.addShape(this.processPath(t[o],l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ht.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},ht.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},ht.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},ht.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},ht.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(lt(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var o=Math.sqrt(n);return lt(o)?o>0&&o<1?[t]:[]:[t-o,t+o].filter(function(e){return e>0&&e<1})},ht.prototype.split=function(e){if(e<=0)return[mt(this.points[0]),this];if(e>=1)return[this,mt(this.points[this.points.length-1])];var t=dt(this.points[0],this.points[1],e),n=dt(this.points[1],this.points[2],e),o=dt(this.points[2],this.points[3],e),i=dt(t,n,e),r=dt(n,o,e),a=dt(i,r,e);return[new ht(this.points[0],t,i,a,!0),new ht(a,r,o,this.points[3],!0)]},ht.prototype.bounds=function(){return{x:gt(this,0),y:gt(this,1)}},ht.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},ht.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var o=[];return St(xt(this,0,1),xt(e,0,1),0,t,o,n),o},ht.shapeSegment=function(e,t){var n=(t+1)%e.length();return new ht(e.v[t],e.o[t],e.i[n],e.v[n],!0)},ht.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new ht(e.v[n],e.i[n],e.o[t],e.v[t],!0)},d([tt],wt),wt.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=Ae.getProp(e,t.s,0,null,this),this.frequency=Ae.getProp(e,t.r,0,null,this),this.pointsType=Ae.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},wt.prototype.processPath=function(e,t,n,o){var i=e._length,r=ke.newElement();if(r.c=e.c,e.c||(i-=1),0===i)return r;var a=-1,s=ht.shapeSegment(e,0);Tt(r,e,0,t,n,o,a);for(var l=0;l<i;l+=1)a=It(r,s,t,n,o,-a),s=l!==i-1||e.c?ht.shapeSegment(e,(l+1)%i):null,Tt(r,e,l+1,t,n,o,a);return r},wt.prototype.processShapes=function(e){var t,n,o,i,r,a,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),d=this.pointsType.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||e)for(a.releaseShapes(),r.shape._mdf=!0,t=r.shape.paths.shapes,i=r.shape.paths._length,o=0;o<i;o+=1)a.addShape(this.processPath(t[o],l,c,d));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},d([tt],Ot),Ot.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=Ae.getProp(e,t.a,0,null,this),this.miterLimit=Ae.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},Ot.prototype.processPath=function(e,t,n,o){var i=ke.newElement();i.c=e.c;var r,a,s,l=e.length();e.c||(l-=1);var c=[];for(r=0;r<l;r+=1)s=ht.shapeSegment(e,r),c.push(Mt(s,t));if(!e.c)for(r=l-1;r>=0;r-=1)s=ht.shapeSegmentInverted(e,r),c.push(Mt(s,t));c=Bt(c);var d=null,p=null;for(r=0;r<c.length;r+=1){var u=c[r];for(p&&(d=Dt(i,p,u[0],n,o)),p=u[u.length-1],a=0;a<u.length;a+=1)s=u[a],d&&Et(s.points[0],d)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),d=s.points[3]}return c.length&&Dt(i,p,c[0][0],n,o),i},Ot.prototype.processShapes=function(e){var t,n,o,i,r,a,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,d=this.lineJoin;if(0!==l)for(n=0;n<s;n+=1){if(a=(r=this.shapes[n]).localShapeCollection,r.shape._mdf||this._mdf||e)for(a.releaseShapes(),r.shape._mdf=!0,t=r.shape.paths.shapes,i=r.shape.paths._length,o=0;o<i;o+=1)a.addShape(this.processPath(t[o],l,d,c));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Nt=function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var o=127988,i=917631,r=917601,a=917626,s=65039,l=8205,d=127462,p=127487,u=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function m(e){var t,n=e.split(","),o=n.length,i=[];for(t=0;t<o;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&i.push(n[t]);return i.join(",")}function h(e,t){var n=c("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var o=c("span");o.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(o),document.body.appendChild(n);var i=o.offsetWidth;return o.style.fontFamily=m(e)+", "+t,{node:o,w:i,parent:n}}function g(){var t,n,o,i=this.fonts.length,r=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?r-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(n=this.fonts[t].monoCase.node,o=this.fonts[t].monoCase.w,n.offsetWidth!==o?(r-=1,this.fonts[t].loaded=!0):(n=this.fonts[t].sansCase.node,o=this.fonts[t].sansCase.w,n.offsetWidth!==o&&(r-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==r&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function x(e,t){var n,o=document.body&&t?"svg":"canvas",i=Ft(e);if("svg"===o){var r=G("text");r.style.fontSize="100px",r.setAttribute("font-family",e.fFamily),r.setAttribute("font-style",i.style),r.setAttribute("font-weight",i.weight),r.textContent="1",e.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",e.fClass)):r.style.fontFamily=e.fFamily,t.appendChild(r),n=r}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+e.fFamily,n=a}function s(e){return"svg"===o?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}return{measureText:s}}function f(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach(function(e){e.helper=x(e),e.cache={}}),void(this.fonts=e.list);var n,o=e.list,i=o.length,r=i;for(n=0;n<i;n+=1){var a,s,l=!0;if(o[n].loaded=!1,o[n].monoCase=h(o[n].fFamily,"monospace"),o[n].sansCase=h(o[n].fFamily,"sans-serif"),o[n].fPath){if("p"===o[n].fOrigin||3===o[n].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+o[n].fFamily+'"], style[f-origin="3"][f-family="'+o[n].fFamily+'"]')).length>0&&(l=!1),l){var d=c("style");d.setAttribute("f-forigin",o[n].fOrigin),d.setAttribute("f-origin",o[n].origin),d.setAttribute("f-family",o[n].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+o[n].fFamily+"; font-style: normal; src: url('"+o[n].fPath+"');}",t.appendChild(d)}}else if("g"===o[n].fOrigin||1===o[n].origin){for(a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),s=0;s<a.length;s+=1)-1!==a[s].href.indexOf(o[n].fPath)&&(l=!1);if(l){var p=c("link");p.setAttribute("f-forigin",o[n].fOrigin),p.setAttribute("f-origin",o[n].origin),p.type="text/css",p.rel="stylesheet",p.href=o[n].fPath,document.body.appendChild(p)}}else if("t"===o[n].fOrigin||2===o[n].origin){for(a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),s=0;s<a.length;s+=1)o[n].fPath===a[s].src&&(l=!1);if(l){var u=c("link");u.setAttribute("f-forigin",o[n].fOrigin),u.setAttribute("f-origin",o[n].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",o[n].fPath),t.appendChild(u)}}}else o[n].loaded=!0,r-=1;o[n].helper=x(o[n],t),o[n].cache={},this.fonts.push(o[n])}0===r?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function y(e){if(e){var t;this.chars||(this.chars=[]);var n,o,i=e.length,r=this.chars.length;for(t=0;t<i;t+=1){for(n=0,o=!1;n<r;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(o=!0),n+=1;o||(this.chars.push(e[t]),r+=1)}}}function S(e,n,o){for(var i=0,r=this.chars.length;i<r;){if(this.chars[i].ch===e&&this.chars[i].style===n&&this.chars[i].fFamily===o)return this.chars[i];i+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,n,o)),t}function C(e,t,n){var o=this.getFontByName(t),i=e;if(!o.cache[i]){var r=o.helper;if(" "===e){var a=r.measureText("|"+e+"|"),s=r.measureText("||");o.cache[i]=(a-s)/100}else o.cache[i]=r.measureText(e)/100}return o.cache[i]*n}function b(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]}function $(e){var t=0,n=e.charCodeAt(0);if(n>=55296&&n<=56319){var o=e.charCodeAt(1);o>=56320&&o<=57343&&(t=1024*(n-55296)+o-56320+65536)}return t}function v(e,t){var n=e.toString(16)+t.toString(16);return-1!==u.indexOf(n)}function E(e){return e===l}function w(e){return e===s}function R(e){var t=$(e);return t>=d&&t<=p}function A(e){return R(e.substr(0,2))&&R(e.substr(2,2))}function j(e){return-1!==n.indexOf(e)}function T(e,t){var n=$(e.substr(t,2));if(n!==o)return!1;var s=0;for(t+=2;s<5;){if((n=$(e.substr(t,2)))<r||n>a)return!1;s+=1,t+=2}return $(e.substr(t,2))===i}function I(){this.isLoaded=!0}var k=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};k.isModifier=v,k.isZeroWidthJoiner=E,k.isFlagEmoji=A,k.isRegionalCode=R,k.isCombinedCharacter=j,k.isRegionalFlag=T,k.isVariationSelector=w,k.BLACK_FLAG_CODE_POINT=o;var L={addChars:y,addFonts:f,getCharData:S,getFontByName:b,measureText:C,checkLoadedFonts:g,setIsLoaded:I};return k.prototype=L,k}();function zt(e){this.animationData=e}function Ht(e){return new zt(e)}function Vt(){}zt.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},Vt.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!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 e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Wt=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function Ut(e,t,n){this.p=Ae.getProp(t,e.v,0,0,n)}function Gt(e,t,n){this.p=Ae.getProp(t,e.v,0,0,n)}function qt(e,t,n){this.p=Ae.getProp(t,e.v,1,0,n)}function Qt(e,t,n){this.p=Ae.getProp(t,e.v,1,0,n)}function Yt(e,t,n){this.p=Ae.getProp(t,e.v,0,0,n)}function Kt(e,t,n){this.p=Ae.getProp(t,e.v,0,0,n)}function Zt(e,t,n){this.p=Ae.getProp(t,e.v,0,0,n)}function Xt(){this.p={}}function Jt(e,t){var n,o=e.ef||[];this.effectElements=[];var i,r=o.length;for(n=0;n<r;n+=1)i=new en(o[n],t),this.effectElements.push(i)}function en(e,t){this.init(e,t)}function tn(){}function nn(){}function on(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function rn(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var o=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(o),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?Ae.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=Ae.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function an(){}d([je],en),en.prototype.getValue=en.prototype.iterateDynamicProperties,en.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var o,i=this.data.ef.length,r=this.data.ef;for(n=0;n<i;n+=1){switch(o=null,r[n].ty){case 0:o=new Ut(r[n],t,this);break;case 1:o=new Gt(r[n],t,this);break;case 2:o=new qt(r[n],t,this);break;case 3:o=new Qt(r[n],t,this);break;case 4:case 7:o=new Zt(r[n],t,this);break;case 10:o=new Yt(r[n],t,this);break;case 11:o=new Kt(r[n],t,this);break;case 5:o=new Jt(r[n],t);break;default:o=new Xt(r[n])}o&&this.effectElements.push(o)}},tn.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){},setBlendMode:function(){var e=Wt(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=D(),this.data.sr||(this.data.sr=1),this.effectsManager=new Jt(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},nn.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,o=this.dynamicProperties.length;for(n=0;n<o;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},on.prototype.prepareFrame=function(){},d([Vt,tn,nn],on),on.prototype.getBaseElement=function(){return null},on.prototype.renderFrame=function(){},on.prototype.destroy=function(){},on.prototype.initExpressions=function(){},on.prototype.getFootageData=function(){return this.footageData},rn.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},d([Vt,tn,nn],rn),rn.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},rn.prototype.show=function(){},rn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},rn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},rn.prototype.resume=function(){this._canPlay=!0},rn.prototype.setRate=function(e){this.audio.rate(e)},rn.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},rn.prototype.getBaseElement=function(){return null},rn.prototype.destroy=function(){},rn.prototype.sourceRectAtTime=function(){},rn.prototype.initExpressions=function(){},an.prototype.checkLayers=function(e){var t,n,o=this.layers.length;for(this.completeLayers=!0,t=o-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},an.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},an.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},an.prototype.createAudio=function(e){return new rn(e,this.globalData,this)},an.prototype.createFootage=function(e){return new on(e,this.globalData,this)},an.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},an.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,o=e.length,i=this.layers.length;for(t=0;t<o;t+=1)for(n=0;n<i;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},an.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},an.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},an.prototype.buildElementParenting=function(e,t,n){for(var o=this.elements,i=this.layers,r=0,a=i.length;r<a;)i[r].ind==t&&(o[r]&&!0!==o[r]?(n.push(o[r]),o[r].setAsParent(),void 0!==i[r].parent?this.buildElementParenting(e,i[r].parent,n):e.setHierarchy(n)):(this.buildItem(r),this.addPendingElement(e))),r+=1},an.prototype.addPendingElement=function(e){this.pendingElements.push(e)},an.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var o=this.createComp(e[t]);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}},an.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},an.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"==typeof n)t=this.elements[n];else{var o,i=this.elements.length;for(o=0;o<i;o+=1)if(this.elements[o].data.nm===n){t=this.elements[o];break}}return 0===e.length?t:t.getElementByPath(e)},an.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new Nt,this.globalData.slotManager=Ht(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var sn={TRANSFORM_EFFECT:"transformEFfect"};function ln(){}function cn(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var o,i,r=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=h(a),this.solidPath="";var s,c,d,p,u,m,g=this.masksProperties,x=0,f=[],y=D(),S="clipPath",C="clip-path";for(o=0;o<a;o+=1)if(("a"!==g[o].mode&&"n"!==g[o].mode||g[o].inv||100!==g[o].o.k||g[o].o.x)&&(S="mask",C="mask"),"s"!==g[o].mode&&"i"!==g[o].mode||0!==x?d=null:((d=G("rect")).setAttribute("fill","#ffffff"),d.setAttribute("width",this.element.comp.data.w||0),d.setAttribute("height",this.element.comp.data.h||0),f.push(d)),i=G("path"),"n"===g[o].mode)this.viewData[o]={op:Ae.getProp(this.element,g[o].o,0,.01,this.element),prop:_e.getShapeProp(this.element,g[o],3),elem:i,lastPath:""},r.appendChild(i);else{var b;if(x+=1,i.setAttribute("fill","s"===g[o].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==g[o].x.k?(S="mask",C="mask",m=Ae.getProp(this.element,g[o].x,0,null,this.element),b=D(),(p=G("filter")).setAttribute("id",b),(u=G("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),p.appendChild(u),r.appendChild(p),i.setAttribute("stroke","s"===g[o].mode?"#000000":"#ffffff")):(u=null,m=null),this.storedData[o]={elem:i,x:m,expan:u,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===g[o].mode){c=f.length;var $=G("g");for(s=0;s<c;s+=1)$.appendChild(f[s]);var v=G("mask");v.setAttribute("mask-type","alpha"),v.setAttribute("id",y+"_"+x),v.appendChild(i),r.appendChild(v),$.setAttribute("mask","url("+l()+"#"+y+"_"+x+")"),f.length=0,f.push($)}else f.push(i);g[o].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[o]={elem:i,lastPath:"",op:Ae.getProp(this.element,g[o].o,0,.01,this.element),prop:_e.getShapeProp(this.element,g[o],3),invRect:d},this.viewData[o].prop.k||this.drawPath(g[o],this.viewData[o].prop.v,this.viewData[o])}for(this.maskElement=G(S),a=f.length,o=0;o<a;o+=1)this.maskElement.appendChild(f[o]);x>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(C,"url("+l()+"#"+y+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}ln.prototype={initTransform:function(){var e=new Pe;this.finalTransform={mProp:this.data.ks?it.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,o=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<o;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<o;n+=1)t.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<t;e+=1){var o=this.localTransforms[e].matrix;n.multiply(o)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(sn.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var t=0,n=e.length;for(t=0;t<n;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,o=!0,i=this.comp;o;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):o=!1;var r,a=t.length;for(n=0;n<a;n+=1)r=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-r[0],e[1]-r[1],0];return e},mHelper:new Pe},cn.prototype.getMaskProperty=function(e){return this.viewData[e].prop},cn.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,o=this.masksProperties.length;for(t=0;t<o;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+l()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},cn.prototype.getMaskelement=function(){return this.maskElement},cn.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},cn.prototype.drawPath=function(e,t,n){var o,i,r=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,o=1;o<i;o+=1)r+=" C"+t.o[o-1][0]+","+t.o[o-1][1]+" "+t.i[o][0]+","+t.i[o][1]+" "+t.v[o][0]+","+t.v[o][1];if(t.c&&i>1&&(r+=" C"+t.o[o-1][0]+","+t.o[o-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==r){var a="";n.elem&&(t.c&&(a=e.inv?this.solidPath+r:r),n.elem.setAttribute("d",a)),n.lastPath=r}},cn.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var dn,pn=function(){var e={};function t(e,t){var n=G("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var e=G("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}return e.createFilter=t,e.createAlphaToLuminanceFilter=n,e}(),un=(dn={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/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))&&(dn.maskType=!1),/firefox/i.test(navigator.userAgent)&&(dn.svgLumaHidden=!1),dn),mn={},hn="filter_result_";function gn(e){var t,n,o="SourceGraphic",i=e.data.ef?e.data.ef.length:0,r=D(),a=pn.createFilter(r,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){n=null;var c=e.data.ef[t].ty;mn[c]&&(n=new(0,mn[c].effect)(a,e.effectsManager.effectElements[t],e,hn+s,o),o=hn+s,mn[c].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+l()+"#"+r+")")),this.filters.length&&e.addRenderableComponent(this)}function xn(){}function fn(){}function yn(){}function Sn(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Cn(e,t){this.elem=e,this.pos=t}function bn(){}gn.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},gn.prototype.getEffects=function(e){var t,n=this.filters.length,o=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&o.push(this.filters[t]);return o},xn.prototype={initRendererElement:function(){this.layerElement=G("g")},createContainerElements:function(){this.matteElement=G("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=G("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=G("clipPath"),o=G("path");o.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=D();if(n.setAttribute("id",i),n.appendChild(o),this.globalData.defs.appendChild(n),this.checkMasks()){var r=G("g");r.setAttribute("clip-path","url("+l()+"#"+i+")"),r.appendChild(this.layerElement),this.transformedElement=r,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new cn(this.data,this,this.globalData),this.renderableEffectsManager=new gn(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,n,o,i,r=this.layerId+"_"+e;if(1===e||3===e){var a=G("mask");a.setAttribute("id",r),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(o=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(o),this.globalData.defs.appendChild(a),un.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=D(),n=pn.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(pn.createAlphaToLuminanceFilter()),(i=G("g")).appendChild(o),a.appendChild(i),i.setAttribute("filter","url("+l()+"#"+t+")"))}else if(2===e){var s=G("mask");s.setAttribute("id",r),s.setAttribute("mask-type","alpha");var c=G("g");s.appendChild(c),t=D(),n=pn.createFilter(t);var d=G("feComponentTransfer");d.setAttribute("in","SourceGraphic"),n.appendChild(d);var p=G("feFuncA");p.setAttribute("type","table"),p.setAttribute("tableValues","1.0 0.0"),d.appendChild(p),this.globalData.defs.appendChild(n);var u=G("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),c.setAttribute("filter","url("+l()+"#"+t+")"),c.appendChild(u),(o=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(o),un.maskType||(s.setAttribute("mask-type","luminance"),n.appendChild(pn.createAlphaToLuminanceFilter()),i=G("g"),c.appendChild(u),i.appendChild(this.layerElement),c.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=r}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+l()+"#"+e+")")}},fn.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},d([Vt,p({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],yn),d([tn,ln,xn,fn,nn,yn],Sn),Sn.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=G("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},Sn.prototype.sourceRectAtTime=function(){return this.sourceRect},bn.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=0,n=this.shapeModifiers.length;t<n;)if(this.shapeModifiers[t].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,o=t.length;n<o;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,o=n.length;o;)if(n[o-=1].elem===e)return void(n[o].pos=t);n.push(new Cn(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var $n={1:"butt",2:"round",3:"square"},vn={1:"miter",2:"round",3:"bevel"};function En(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var o=0,i=e.length;o<i;){if(e[o].mProps.dynamicProperties.length){this._isAnimated=!0;break}o+=1}}function wn(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=G("path"),this.msElem=null}function Rn(e,t,n,o){var i;this.elem=e,this.frameId=-1,this.dataProps=h(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=m("float32",t.length?t.length-1:0),this.dashoffset=m("float32",1),this.initDynamicPropertyContainer(o);var r,a=t.length||0;for(i=0;i<a;i+=1)r=Ae.getProp(e,t[i].v,0,0,this),this.k=r.k||this.k,this.dataProps[i]={n:t[i].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}function An(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=Ae.getProp(e,t.o,0,.01,this),this.w=Ae.getProp(e,t.w,0,null,this),this.d=new Rn(e,t.d||{},"svg",this),this.c=Ae.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function jn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=Ae.getProp(e,t.o,0,.01,this),this.c=Ae.getProp(e,t.c,1,255,this),this.style=n}function Tn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function In(e,t,n){this.data=t,this.c=m("uint8c",4*t.p);var o=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=m("float32",o),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=o,this.initDynamicPropertyContainer(n),this.prop=Ae.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function kn(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function Ln(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=Ae.getProp(e,t.w,0,null,this),this.d=new Rn(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function Dn(){this.it=[],this.prevViewData=[],this.gr=G("g")}function _n(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}En.prototype.setAsAnimated=function(){this._isAnimated=!0},wn.prototype.reset=function(){this.d="",this._mdf=!1},Rn.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},d([je],Rn),d([je],An),d([je],jn),d([je],Tn),In.prototype.comparePoints=function(e,t){for(var n=0,o=this.o.length/2;n<o;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},In.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},In.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,o,i=4*this.data.p;for(t=0;t<i;t+=1)n=t%4==0?100:255,o=Math.round(this.prop.v[t]*n),this.c[t]!==o&&(this.c[t]=o,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)n=t%2==0?100:1,o=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==o&&(this.o[t-4*this.data.p]=o,this._omdf=!e);this._mdf=!e}},d([je],In),kn.prototype.initGradientData=function(e,t,n){this.o=Ae.getProp(e,t.o,0,.01,this),this.s=Ae.getProp(e,t.s,1,null,this),this.e=Ae.getProp(e,t.e,1,null,this),this.h=Ae.getProp(e,t.h||{k:0},0,.01,this),this.a=Ae.getProp(e,t.a||{k:0},0,E,this),this.g=new In(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},kn.prototype.setGradientData=function(e,t){var n=D(),o=G(1===t.t?"linearGradient":"radialGradient");o.setAttribute("id",n),o.setAttribute("spreadMethod","pad"),o.setAttribute("gradientUnits","userSpaceOnUse");var i,r,a,s=[];for(a=4*t.g.p,r=0;r<a;r+=4)i=G("stop"),o.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+l()+"#"+n+")"),this.gf=o,this.cst=s},kn.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,o,i,r=G("mask"),a=G("path");r.appendChild(a);var s=D(),c=D();r.setAttribute("id",c);var d=G(1===e.t?"linearGradient":"radialGradient");d.setAttribute("id",s),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var p=this.stops;for(o=4*e.g.p;o<i;o+=2)(n=G("stop")).setAttribute("stop-color","rgb(255,255,255)"),d.appendChild(n),p.push(n);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+l()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",$n[e.lc||2]),a.setAttribute("stroke-linejoin",vn[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=d,this.ms=r,this.ost=p,this.maskId=c,t.msElem=a}},d([je],kn),d([kn,je],Ln);var Pn=function(e,t,n,o){if(0===t)return"";var i,r=e.o,a=e.i,s=e.v,l=" M"+o.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+o.applyToPointStringified(r[i-1][0],r[i-1][1])+" "+o.applyToPointStringified(a[i][0],a[i][1])+" "+o.applyToPointStringified(s[i][0],s[i][1]);return n&&t&&(l+=" C"+o.applyToPointStringified(r[i-1][0],r[i-1][1])+" "+o.applyToPointStringified(a[0][0],a[0][1])+" "+o.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},Bn=function(){var e=new Pe,t=new Pe;function n(e){switch(e.ty){case"fl":return a;case"gf":return l;case"gs":return s;case"st":return c;case"sh":case"el":case"rc":case"sr":return r;case"tr":return o;case"no":return i;default:return null}}function o(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function i(){}function r(n,o,i){var r,a,s,l,c,d,p,u,m,h,g=o.styles.length,x=o.lvl;for(d=0;d<g;d+=1){if(l=o.sh._mdf||i,o.styles[d].lvl<x){for(u=t.reset(),m=x-o.styles[d].lvl,h=o.transformers.length-1;!l&&m>0;)l=o.transformers[h].mProps._mdf||l,m-=1,h-=1;if(l)for(m=x-o.styles[d].lvl,h=o.transformers.length-1;m>0;)u.multiply(o.transformers[h].mProps.v),m-=1,h-=1}else u=e;if(a=(p=o.sh.paths)._length,l){for(s="",r=0;r<a;r+=1)(c=p.shapes[r])&&c._length&&(s+=Pn(c,c._length,c.c,u));o.caches[d]=s}else s=o.caches[d];o.styles[d].d+=!0===n.hd?"":s,o.styles[d]._mdf=l||o.styles[d]._mdf}}function a(e,t,n){var o=t.style;(t.c._mdf||n)&&o.pElem.setAttribute("fill","rgb("+b(t.c.v[0])+","+b(t.c.v[1])+","+b(t.c.v[2])+")"),(t.o._mdf||n)&&o.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,n){l(e,t,n),c(e,t,n)}function l(e,t,n){var o,i,r,a,s,l=t.gf,c=t.g._hasOpacity,d=t.s.v,p=t.e.v;if(t.o._mdf||n){var u="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(u,t.o.v)}if(t.s._mdf||n){var m=1===e.t?"x1":"cx",h="x1"===m?"y1":"cy";l.setAttribute(m,d[0]),l.setAttribute(h,d[1]),c&&!t.g._collapsable&&(t.of.setAttribute(m,d[0]),t.of.setAttribute(h,d[1]))}if(t.g._cmdf||n){o=t.cst;var g=t.g.c;for(r=o.length,i=0;i<r;i+=1)(a=o[i]).setAttribute("offset",g[4*i]+"%"),a.setAttribute("stop-color","rgb("+g[4*i+1]+","+g[4*i+2]+","+g[4*i+3]+")")}if(c&&(t.g._omdf||n)){var x=t.g.o;for(r=(o=t.g._collapsable?t.cst:t.ost).length,i=0;i<r;i+=1)a=o[i],t.g._collapsable||a.setAttribute("offset",x[2*i]+"%"),a.setAttribute("stop-opacity",x[2*i+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)));var f=Math.atan2(p[1]-d[1],p[0]-d[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var S=s*y,C=Math.cos(f+t.a.v)*S+d[0],b=Math.sin(f+t.a.v)*S+d[1];l.setAttribute("fx",C),l.setAttribute("fy",b),c&&!t.g._collapsable&&(t.of.setAttribute("fx",C),t.of.setAttribute("fy",b))}}function c(e,t,n){var o=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(o.pElem.setAttribute("stroke-dasharray",i.dashStr),o.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&o.pElem.setAttribute("stroke","rgb("+b(t.c.v[0])+","+b(t.c.v[1])+","+b(t.c.v[2])+")"),(t.o._mdf||n)&&o.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(o.pElem.setAttribute("stroke-width",t.w.v),o.msElem&&o.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:n}}();function Mn(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function On(e,t,n,o,i,r){this.o=e,this.sw=t,this.sc=n,this.fc=o,this.m=i,this.p=r,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!o,m:!0,p:!0}}function Fn(e,t){this._frameId=i,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}d([tn,ln,xn,bn,fn,nn,yn],Mn),Mn.prototype.initSecondaryElement=function(){},Mn.prototype.identityMatrix=new Pe,Mn.prototype.buildExpressionInterface=function(){},Mn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Mn.prototype.filterUniqueShapes=function(){var e,t,n,o,i=this.shapes.length,r=this.stylesList.length,a=[],s=!1;for(n=0;n<r;n+=1){for(o=this.stylesList[n],s=!1,a.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(o)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},Mn.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},Mn.prototype.createStyleElement=function(e,t){var n,o=new wn(e,t),i=o.pElem;return"st"===e.ty?n=new An(this,e,o):"fl"===e.ty?n=new jn(this,e,o):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?kn:Ln)(this,e,o),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+l()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new Tn(this,e,o)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",$n[e.lc||2]),i.setAttribute("stroke-linejoin",vn[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=Wt(e.bm)),this.stylesList.push(o),this.addToAnimatedContents(e,n),n},Mn.prototype.createGroupElement=function(e){var t=new Dn;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=Wt(e.bm)),t},Mn.prototype.createTransformElement=function(e,t){var n=it.getTransformProperty(this,e,this),o=new _n(n,n.o,t);return this.addToAnimatedContents(e,o),o},Mn.prototype.createShapeElement=function(e,t,n){var o=4;"rc"===e.ty?o=5:"el"===e.ty?o=6:"sr"===e.ty&&(o=7);var i=new En(t,n,_e.getShapeProp(this,e,o,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},Mn.prototype.addToAnimatedContents=function(e,t){for(var n=0,o=this.animatedContents.length;n<o;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:Bn.createRenderFunction(e),element:t,data:e})},Mn.prototype.setElementStyles=function(e){var t,n=e.styles,o=this.stylesList.length;for(t=0;t<o;t+=1)-1!==n.indexOf(this.stylesList[t])||this.stylesList[t].closed||n.push(this.stylesList[t])},Mn.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Mn.prototype.searchShapes=function(e,t,n,o,i,r,a){var s,l,c,d,p,u,m=[].concat(r),h=e.length-1,g=[],x=[];for(s=h;s>=0;s-=1){if((u=this.searchProcessedElement(e[s]))?t[s]=n[u-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)u?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==o&&o.appendChild(t[s].style.pElem),g.push(t[s].style);else if("gr"===e[s].ty){if(u)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,m,a),e[s]._render&&t[s].gr.parentNode!==o&&o.appendChild(t[s].gr)}else"tr"===e[s].ty?(u||(t[s]=this.createTransformElement(e[s],o)),d=t[s].transform,m.push(d)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(u||(t[s]=this.createShapeElement(e[s],m,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(u?(p=t[s]).closed=!1:((p=et.getModifier(e[s].ty)).init(this,e[s]),t[s]=p,this.shapeModifiers.push(p)),x.push(p)):"rp"===e[s].ty&&(u?(p=t[s]).closed=!0:(p=et.getModifier(e[s].ty),t[s]=p,p.init(this,e,s,t),this.shapeModifiers.push(p),a=!1),x.push(p));this.addProcessedElement(e[s],s+1)}for(h=g.length,s=0;s<h;s+=1)g[s].closed=!0;for(h=x.length,s=0;s<h;s+=1)x[s].closed=!0},Mn.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Mn.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},Mn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},On.prototype.update=function(e,t,n,o,i,r){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,a=!0),this.fc!==o&&(this.fc=o,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,this._mdf.p=!0,a=!0),a},Fn.prototype.defaultBoxWidth=[0,0],Fn.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Fn.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Fn.prototype.searchProperty=function(){return this.searchKeyframes()},Fn.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Fn.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Fn.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var o;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,r=e||this.data.d.k[this.keysIndex].s;for(o=0;o<i;o+=1)r=n!==this.keysIndex?this.effectsSequence[o](r,r.t):this.effectsSequence[o](this.currentData,r.t);t!==r&&this.setCurrentData(r),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},Fn.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,o=e.length;n<=o-1&&!(n===o-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Fn.prototype.buildFinalText=function(e){for(var t,n,o=[],i=0,r=e.length,a=!1,s=!1,l="";i<r;)a=s,s=!1,t=e.charCodeAt(i),l=e.charAt(i),Nt.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?Nt.isRegionalFlag(e,i)?l=e.substr(i,14):(n=e.charCodeAt(i+1))>=56320&&n<=57343&&(Nt.isModifier(t,n)?(l=e.substr(i,2),a=!0):l=Nt.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(n=e.charCodeAt(i+1),Nt.isVariationSelector(t)&&(a=!0)):Nt.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(o[o.length-1]+=l,a=!1):o.push(l),i+=l.length;return o},Fn.prototype.completeTextData=function(e){e.__complete=!0;var t,n,o,i,r,a,s,l=this.elem.globalData.fontManager,c=this.data,d=[],p=0,u=c.m.g,m=0,h=0,g=0,x=[],f=0,y=0,S=l.getFontByName(e.f),C=0,b=Ft(S);e.fWeight=b.weight,e.fStyle=b.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var $,v=e.tr/1e3*e.finalSize;if(e.sz)for(var E,w,R=!0,A=e.sz[0],j=e.sz[1];R;){E=0,f=0,n=(w=this.buildFinalText(e.t)).length,v=e.tr/1e3*e.finalSize;var T=-1;for(t=0;t<n;t+=1)$=w[t].charCodeAt(0),o=!1," "===w[t]?T=t:13!==$&&3!==$||(f=0,o=!0,E+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(w[t],S.fStyle,S.fFamily),C=o?0:s.w*e.finalSize/100):C=l.measureText(w[t],e.f,e.finalSize),f+C>A&&" "!==w[t]?(-1===T?n+=1:t=T,E+=e.finalLineHeight||1.2*e.finalSize,w.splice(t,T===t?1:0,"\r"),T=-1,f=0):(f+=C,f+=v);E+=S.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&j<E?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=w,n=e.finalText.length,R=!1)}f=-v,C=0;var I,k=0;for(t=0;t<n;t+=1)if(o=!1,13===($=(I=e.finalText[t]).charCodeAt(0))||3===$?(k=0,x.push(f),y=f>y?f:y,f=-2*v,i="",o=!0,g+=1):i=I,l.chars?(s=l.getCharData(I,S.fStyle,l.getFontByName(e.f).fFamily),C=o?0:s.w*e.finalSize/100):C=l.measureText(i,e.f,e.finalSize)," "===I?k+=C+v:(f+=C+v+k,k=0),d.push({l:C,an:C,add:m,n:o,anIndexes:[],val:i,line:g,animatorJustifyOffset:0}),2==u){if(m+=C,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(m-=C);h<=t;)d[h].an=m,d[h].ind=p,d[h].extra=C,h+=1;p+=1,m=0}}else if(3==u){if(m+=C,""===i||t===n-1){for(""===i&&(m-=C);h<=t;)d[h].an=m,d[h].ind=p,d[h].extra=C,h+=1;m=0,p+=1}}else d[p].ind=p,d[p].extra=0,p+=1;if(e.l=d,y=f>y?f:y,x.push(f),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=x;var L,D,_,P,B=c.a;a=B.length;var M=[];for(r=0;r<a;r+=1){for((L=B[r]).a.sc&&(e.strokeColorAnim=!0),L.a.sw&&(e.strokeWidthAnim=!0),(L.a.fc||L.a.fh||L.a.fs||L.a.fb)&&(e.fillColorAnim=!0),P=0,_=L.s.b,t=0;t<n;t+=1)(D=d[t]).anIndexes[r]=P,(1==_&&""!==D.val||2==_&&""!==D.val&&" "!==D.val||3==_&&(D.n||" "==D.val||t==n-1)||4==_&&(D.n||t==n-1))&&(1===L.s.rn&&M.push(P),P+=1);c.a[r].s.totalChars=P;var O,F=-1;if(1===L.s.rn)for(t=0;t<n;t+=1)F!=(D=d[t]).anIndexes[r]&&(F=D.anIndexes[r],O=M.splice(Math.floor(Math.random()*M.length),1)[0]),D.anIndexes[r]=O}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=S.ascent*e.finalSize/100},Fn.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Fn.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},Fn.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Fn.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Nn=function(){var e=Math.max,t=Math.min,n=Math.floor;function o(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=Ae.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?Ae.getProp(e,t.e,0,0,this):{v:100},this.o=Ae.getProp(e,t.o||{k:0},0,0,this),this.xe=Ae.getProp(e,t.xe||{k:0},0,0,this),this.ne=Ae.getProp(e,t.ne||{k:0},0,0,this),this.sm=Ae.getProp(e,t.sm||{k:100},0,0,this),this.a=Ae.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function i(e,t,n){return new o(e,t)}return o.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,r=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=ae.getBezierEasing(i,r,a,s).get,c=0,d=this.finalS,p=this.finalE,u=this.data.sh;if(2===u)c=l(c=p===d?o>=p?1:0:e(0,t(.5/(p-d)+(o-d)/(p-d),1)));else if(3===u)c=l(c=p===d?o>=p?0:1:1-e(0,t(.5/(p-d)+(o-d)/(p-d),1)));else if(4===u)p===d?c=0:(c=e(0,t(.5/(p-d)+(o-d)/(p-d),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===u){if(p===d)c=0;else{var m=p-d,h=-m/2+(o=t(e(0,o+.5-d),p-d)),g=m/2;c=Math.sqrt(1-h*h/(g*g))}c=l(c)}else 6===u?(p===d?c=0:(o=t(e(0,o+.5-d),p-d),c=(1+Math.cos(Math.PI+2*Math.PI*o/(p-d)))/2),c=l(c)):(o>=n(d)&&(c=e(0,t(o-d<0?t(p,1)-(d-o):p-o,1))),c=l(c));if(100!==this.sm.v){var x=.01*this.sm.v;0===x&&(x=1e-8);var f=.5-.5*x;c<f?c=0:(c=(c-f)/x)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,o=this.s.v/t+n,i=this.e.v/t+n;if(o>i){var r=o;o=i,i=r}this.finalS=o,this.finalE=i}},d([je],o),{getTextSelectorProp:i}}();function zn(e,t,n){var o={propType:!1},i=Ae.getProp,r=t.a;this.a={r:r.r?i(e,r.r,0,E,n):o,rx:r.rx?i(e,r.rx,0,E,n):o,ry:r.ry?i(e,r.ry,0,E,n):o,sk:r.sk?i(e,r.sk,0,E,n):o,sa:r.sa?i(e,r.sa,0,E,n):o,s:r.s?i(e,r.s,1,.01,n):o,a:r.a?i(e,r.a,1,0,n):o,o:r.o?i(e,r.o,0,.01,n):o,p:r.p?i(e,r.p,1,0,n):o,sw:r.sw?i(e,r.sw,0,0,n):o,sc:r.sc?i(e,r.sc,1,0,n):o,fc:r.fc?i(e,r.fc,1,0,n):o,fh:r.fh?i(e,r.fh,0,0,n):o,fs:r.fs?i(e,r.fs,0,.01,n):o,fb:r.fb?i(e,r.fb,0,.01,n):o,t:r.t?i(e,r.t,0,0,n):o},this.s=Nn.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function Hn(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=h(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function Vn(){}Hn.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,o=Ae.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new zn(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:o(this._elem,this._textData.p.a,0,0,this),f:o(this._elem,this._textData.p.f,0,0,this),l:o(this._elem,this._textData.p.l,0,0,this),r:o(this._elem,this._textData.p.r,0,0,this),p:o(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=o(this._elem,this._textData.m.a,1,0,this)},Hn.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,o,i,r,a,s,l,c,d,p,u,m,h,g,x,f,y,S,C,b=this._moreOptions.alignment.v,$=this._animatorsData,v=this._textData,E=this.mHelper,w=this._renderType,R=this.renderedLetters.length,A=e.l;if(this._hasMaskedPath){if(C=this._pathData.m,!this._pathData.n||this._pathData._mdf){var j,T=C.v;for(this._pathData.r.v&&(T=T.reverse()),a={tLength:0,segments:[]},r=T._length-1,f=0,i=0;i<r;i+=1)j=ue.buildBezierData(T.v[i],T.v[i+1],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[i+1][0]-T.v[i+1][0],T.i[i+1][1]-T.v[i+1][1]]),a.tLength+=j.segmentLength,a.segments.push(j),f+=j.segmentLength;i=r,C.v.c&&(j=ue.buildBezierData(T.v[i],T.v[0],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),a.tLength+=j.segmentLength,a.segments.push(j),f+=j.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,u=0,p=1,c=0,d=!0,g=a.segments,s<0&&C.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),p=(h=g[u=g.length-1].points).length-1;s<0;)s+=h[p].partialLength,(p-=1)<0&&(p=(h=g[u-=1].points).length-1);m=(h=g[u].points)[p-1],x=(l=h[p]).partialLength}r=A.length,n=0,o=0;var I,k,L,D,_,P=1.2*e.finalSize*.714,F=!0;L=$.length;var N,z,H,V,W,U,G,q,Q,Y,K,Z,X=-1,J=s,ee=u,te=p,ne=-1,oe="",ie=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ae=0,se=2===e.j?-.5:-1,le=0,ce=!0;for(i=0;i<r;i+=1)if(A[i].n){for(re&&(re+=ae);le<i;)A[le].animatorJustifyOffset=re,le+=1;re=0,ce=!0}else{for(k=0;k<L;k+=1)(I=$[k].a).t.propType&&(ce&&2===e.j&&(ae+=I.t.v*se),(_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars)).length?re+=I.t.v*_[0]*se:re+=I.t.v*_*se);ce=!1}for(re&&(re+=ae);le<i;)A[le].animatorJustifyOffset=re,le+=1}for(i=0;i<r;i+=1){if(E.reset(),V=1,A[i].n)n=0,o+=e.yOffset,o+=F?1:0,s=J,F=!1,this._hasMaskedPath&&(p=te,m=(h=g[u=ee].points)[p-1],x=(l=h[p]).partialLength,c=0),oe="",K="",Q="",Z="",ie=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ne!==A[i].line){switch(e.j){case 1:s+=f-e.lineWidths[A[i].line];break;case 2:s+=(f-e.lineWidths[A[i].line])/2}ne=A[i].line}X!==A[i].ind&&(A[X]&&(s+=A[X].extra),s+=A[i].an/2,X=A[i].ind),s+=b[0]*A[i].an*.005;var de=0;for(k=0;k<L;k+=1)(I=$[k].a).p.propType&&((_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars)).length?de+=I.p.v[0]*_[0]:de+=I.p.v[0]*_),I.a.propType&&((_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars)).length?de+=I.a.v[0]*_[0]:de+=I.a.v[0]*_);for(d=!0,this._pathData.a.v&&(s=.5*A[0].an+(f-this._pathData.f.v-.5*A[0].an-.5*A[A.length-1].an)*X/(r-1),s+=this._pathData.f.v);d;)c+x>=s+de||!h?(y=(s+de-c)/l.partialLength,z=m.point[0]+(l.point[0]-m.point[0])*y,H=m.point[1]+(l.point[1]-m.point[1])*y,E.translate(-b[0]*A[i].an*.005,-b[1]*P*.01),d=!1):h&&(c+=l.partialLength,(p+=1)>=h.length&&(p=0,g[u+=1]?h=g[u].points:C.v.c?(p=0,h=g[u=0].points):(c-=l.partialLength,h=null)),h&&(m=l,x=(l=h[p]).partialLength));N=A[i].an/2-A[i].add,E.translate(-N,0,0)}else N=A[i].an/2-A[i].add,E.translate(-N,0,0),E.translate(-b[0]*A[i].an*.005,-b[1]*P*.01,0);for(k=0;k<L;k+=1)(I=$[k].a).t.propType&&(_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?_.length?s+=I.t.v*_[0]:s+=I.t.v*_:_.length?n+=I.t.v*_[0]:n+=I.t.v*_));for(e.strokeWidthAnim&&(U=e.sw||0),e.strokeColorAnim&&(W=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(G=[e.fc[0],e.fc[1],e.fc[2]]),k=0;k<L;k+=1)(I=$[k].a).a.propType&&((_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars)).length?E.translate(-I.a.v[0]*_[0],-I.a.v[1]*_[1],I.a.v[2]*_[2]):E.translate(-I.a.v[0]*_,-I.a.v[1]*_,I.a.v[2]*_));for(k=0;k<L;k+=1)(I=$[k].a).s.propType&&((_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars)).length?E.scale(1+(I.s.v[0]-1)*_[0],1+(I.s.v[1]-1)*_[1],1):E.scale(1+(I.s.v[0]-1)*_,1+(I.s.v[1]-1)*_,1));for(k=0;k<L;k+=1){if(I=$[k].a,_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars),I.sk.propType&&(_.length?E.skewFromAxis(-I.sk.v*_[0],I.sa.v*_[1]):E.skewFromAxis(-I.sk.v*_,I.sa.v*_)),I.r.propType&&(_.length?E.rotateZ(-I.r.v*_[2]):E.rotateZ(-I.r.v*_)),I.ry.propType&&(_.length?E.rotateY(I.ry.v*_[1]):E.rotateY(I.ry.v*_)),I.rx.propType&&(_.length?E.rotateX(I.rx.v*_[0]):E.rotateX(I.rx.v*_)),I.o.propType&&(_.length?V+=(I.o.v*_[0]-V)*_[0]:V+=(I.o.v*_-V)*_),e.strokeWidthAnim&&I.sw.propType&&(_.length?U+=I.sw.v*_[0]:U+=I.sw.v*_),e.strokeColorAnim&&I.sc.propType)for(q=0;q<3;q+=1)_.length?W[q]+=(I.sc.v[q]-W[q])*_[0]:W[q]+=(I.sc.v[q]-W[q])*_;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(q=0;q<3;q+=1)_.length?G[q]+=(I.fc.v[q]-G[q])*_[0]:G[q]+=(I.fc.v[q]-G[q])*_;I.fh.propType&&(G=_.length?O(G,I.fh.v*_[0]):O(G,I.fh.v*_)),I.fs.propType&&(G=_.length?B(G,I.fs.v*_[0]):B(G,I.fs.v*_)),I.fb.propType&&(G=_.length?M(G,I.fb.v*_[0]):M(G,I.fb.v*_))}}for(k=0;k<L;k+=1)(I=$[k].a).p.propType&&(_=$[k].s.getMult(A[i].anIndexes[k],v.a[k].s.totalChars),this._hasMaskedPath?_.length?E.translate(0,I.p.v[1]*_[0],-I.p.v[2]*_[1]):E.translate(0,I.p.v[1]*_,-I.p.v[2]*_):_.length?E.translate(I.p.v[0]*_[0],I.p.v[1]*_[1],-I.p.v[2]*_[2]):E.translate(I.p.v[0]*_,I.p.v[1]*_,-I.p.v[2]*_));if(e.strokeWidthAnim&&(Q=U<0?0:U),e.strokeColorAnim&&(Y="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),e.fillColorAnim&&e.fc&&(K="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),this._hasMaskedPath){if(E.translate(0,-e.ls),E.translate(0,b[1]*P*.01+o,0),this._pathData.p.v){S=(l.point[1]-m.point[1])/(l.point[0]-m.point[0]);var pe=180*Math.atan(S)/Math.PI;l.point[0]<m.point[0]&&(pe+=180),E.rotate(-pe*Math.PI/180)}E.translate(z,H,0),s-=b[0]*A[i].an*.005,A[i+1]&&X!==A[i+1].ind&&(s+=A[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(E.translate(n,o,0),e.ps&&E.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:E.translate(A[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[A[i].line]),0,0);break;case 2:E.translate(A[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[A[i].line])/2,0,0)}E.translate(0,-e.ls),E.translate(N,0,0),E.translate(b[0]*A[i].an*.005,b[1]*P*.01,0),n+=A[i].l+.001*e.tr*e.finalSize}"html"===w?oe=E.toCSS():"svg"===w?oe=E.to2dCSS():ie=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],Z=V}R<=i?(D=new On(Z,Q,Y,K,oe,ie),this.renderedLetters.push(D),R+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[i],this.lettersChangedFlag=D.update(Z,Q,Y,K,oe,ie)||this.lettersChangedFlag)}}},Hn.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Hn.prototype.mHelper=new Pe,Hn.prototype.defaultPropsArray=[],d([je],Hn),Vn.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new Fn(this,e.t,this.dynamicProperties),this.textAnimator=new Hn(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Vn.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},Vn.prototype.createPathShape=function(e,t){var n,o,i=t.length,r="";for(n=0;n<i;n+=1)"sh"===t[n].ty&&(o=t[n].ks.k,r+=Pn(o,o.i.length,!0,e));return r},Vn.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},Vn.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},Vn.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},Vn.prototype.applyTextPropertiesToMatrix=function(e,t,n,o,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(o,i,0)},Vn.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},Vn.prototype.emptyProp=new On,Vn.prototype.destroy=function(){},Vn.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Wn={shapes:[]};function Un(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function Gn(e,t,n){this.initElement(e,t,n)}function qn(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function Qn(){}function Yn(){}function Kn(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?h(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?Ae.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function Zn(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=G("svg");var n="";if(t&&t.title){var o=G("title"),i=D();o.setAttribute("id",i),o.textContent=t.title,this.svgElement.appendChild(o),n+=i}if(t&&t.description){var r=G("desc"),a=D();r.setAttribute("id",a),r.textContent=t.description,this.svgElement.appendChild(r),n+=" "+a}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=G("defs");this.svgElement.appendChild(s);var l=G("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return d([tn,ln,xn,fn,nn,yn,Vn],Un),Un.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=G("text"))},Un.prototype.buildTextContents=function(e){for(var t=0,n=e.length,o=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(o.push(i),i=""):i+=e[t],t+=1;return o.push(i),o},Un.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var o=n.it[n.it.length-1];o.s&&(o.s.k[0]=t,o.s.k[1]=t)}}return e},Un.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=h(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var o=this.globalData.fontManager.getFontByName(n.f);if(o.fClass)this.layerElement.setAttribute("class",o.fClass);else{this.layerElement.setAttribute("font-family",o.fFamily);var i=n.fWeight,r=n.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var a,s=n.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,d="",p=this.data.singleShape,u=0,m=0,g=!0,x=.001*n.tr*n.finalSize;if(!p||l||n.sz){var f,y=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!p||0===e){if(a=y>e?this.textSpans[e].span:G(l?"g":"text"),y<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var S=G("g");a.appendChild(S),this.textSpans[e].childSpan=S}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),p&&(s[e].n&&(u=-x,m+=n.yOffset,m+=g?1:0,g=!1),this.applyTextPropertiesToMatrix(n,c,s[e].line,u,m),u+=s[e].l||0,u+=x),l){var C;if(1===(f=this.globalData.fontManager.getCharData(n.finalText[e],o.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)C=new Kn(f.data,this.globalData,this);else{var b=Wn;f.data&&f.data.shapes&&(b=this.buildShapeData(f.data,n.finalSize)),C=new Mn(b,this.globalData,this)}if(this.textSpans[e].glyph){var $=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild($.layerElement),$.destroy()}this.textSpans[e].glyph=C,C._debug=!0,C.prepareFrame(0),C.renderFrame(),this.textSpans[e].childSpan.appendChild(C.layerElement),1===f.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else p&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&a&&a.setAttribute("d",d)}else{var v=this.textContainer,E="start";switch(n.j){case 1:E="end";break;case 2:E="middle";break;default:E="start"}v.setAttribute("text-anchor",E),v.setAttribute("letter-spacing",x);var w=this.buildTextContents(n.finalText);for(t=w.length,m=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||G("tspan")).textContent=w[e],a.setAttribute("x",0),a.setAttribute("y",m),a.style.display="inherit",v.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,m+=n.finalLineHeight;this.layerElement.appendChild(v)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Un.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},Un.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},Un.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,o,i,r=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(n=r[e],o=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),n._mdf.m&&o.setAttribute("transform",n.m),n._mdf.o&&o.setAttribute("opacity",n.o),n._mdf.sw&&o.setAttribute("stroke-width",n.sw),n._mdf.sc&&o.setAttribute("stroke",n.sc),n._mdf.fc&&o.setAttribute("fill",n.fc))}},d([Sn],Gn),Gn.prototype.createContent=function(){var e=G("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},qn.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},qn.prototype.renderFrame=function(){},qn.prototype.getBaseElement=function(){return null},qn.prototype.destroy=function(){},qn.prototype.sourceRectAtTime=function(){},qn.prototype.hide=function(){},d([tn,ln,fn,nn],qn),d([an],Qn),Qn.prototype.createNull=function(e){return new qn(e,this.globalData,this)},Qn.prototype.createShape=function(e){return new Mn(e,this.globalData,this)},Qn.prototype.createText=function(e){return new Un(e,this.globalData,this)},Qn.prototype.createImage=function(e){return new Sn(e,this.globalData,this)},Qn.prototype.createSolid=function(e){return new Gn(e,this.globalData,this)},Qn.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=G("clipPath"),o=G("rect");o.setAttribute("width",e.w),o.setAttribute("height",e.h),o.setAttribute("x",0),o.setAttribute("y",0);var i=D();n.setAttribute("id",i),n.appendChild(o),this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=h(e.layers.length)},Qn.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Qn.prototype.updateContainerSize=function(){},Qn.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},Qn.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,H()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var o="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===o)return;if(this.elements[o]&&!0!==this.elements[o]){var i=t[o].getMatte(this.layers[e].tt);n.setMatte(i)}else this.buildItem(o),this.addPendingElement(n)}}},Qn.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var o="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[o].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},Qn.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},Qn.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var o,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(o=this.elements[i].getBaseElement()),i+=1;o?this.layerElement.insertBefore(n,o):this.layerElement.appendChild(n)}},Qn.prototype.hide=function(){this.layerElement.style.display="none"},Qn.prototype.show=function(){this.layerElement.style.display="block"},d([tn,ln,fn,nn,yn],Yn),Yn.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},Yn.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,o=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=o-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},Yn.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Yn.prototype.setElements=function(e){this.elements=e},Yn.prototype.getElements=function(){return this.elements},Yn.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},Yn.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},d([Qn,Yn,xn],Kn),Kn.prototype.createComp=function(e){return new Kn(e,this.globalData,this)},d([Qn],Zn),Zn.prototype.createComp=function(e){return new Kn(e,this.globalData,this)},ee("svg",Zn),et.registerModifier("tm",nt),et.registerModifier("pb",ot),et.registerModifier("rp",rt),et.registerModifier("rd",at),et.registerModifier("zz",wt),et.registerModifier("op",Ot),Me}())),lottie_light$1.exports;var e,t}function requireReact(){return hasRequiredReact?react:(hasRequiredReact=1,react=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(i=o;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(i=o;0!==i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=o;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,r[i]))return!1;for(i=o;0!==i--;){var a=r[i];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n})}function requireRfdc(){if(hasRequiredRfdc)return rfdc_1;function e(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}return hasRequiredRfdc=1,rfdc_1=function(t){if((t=t||{}).circles)return function(t){const n=[],o=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(a(Array.from(e),t))),i.set(Set,(e,t)=>new Set(a(Array.from(e),t))),t.constructorHandlers)for(const e of t.constructorHandlers)i.set(e[0],e[1]);let r=null;return t.proto?l:s;function a(t,a){const s=Object.keys(t),l=new Array(s.length);for(let c=0;c<s.length;c++){const d=s[c],p=t[d];if("object"!=typeof p||null===p)l[d]=p;else if(p.constructor!==Object&&(r=i.get(p.constructor)))l[d]=r(p,a);else if(ArrayBuffer.isView(p))l[d]=e(p);else{const e=n.indexOf(p);l[d]=-1!==e?o[e]:a(p)}}return l}function s(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return a(t,s);if(t.constructor!==Object&&(r=i.get(t.constructor)))return r(t,s);const l={};n.push(t),o.push(l);for(const a in t){if(!1===Object.hasOwnProperty.call(t,a))continue;const c=t[a];if("object"!=typeof c||null===c)l[a]=c;else if(c.constructor!==Object&&(r=i.get(c.constructor)))l[a]=r(c,s);else if(ArrayBuffer.isView(c))l[a]=e(c);else{const e=n.indexOf(c);l[a]=-1!==e?o[e]:s(c)}}return n.pop(),o.pop(),l}function l(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return a(t,l);if(t.constructor!==Object&&(r=i.get(t.constructor)))return r(t,l);const s={};n.push(t),o.push(s);for(const a in t){const c=t[a];if("object"!=typeof c||null===c)s[a]=c;else if(c.constructor!==Object&&(r=i.get(c.constructor)))s[a]=r(c,l);else if(ArrayBuffer.isView(c))s[a]=e(c);else{const e=n.indexOf(c);s[a]=-1!==e?o[e]:l(c)}}return n.pop(),o.pop(),s}}(t);const n=new Map;if(n.set(Date,e=>new Date(e)),n.set(Map,(e,t)=>new Map(i(Array.from(e),t))),n.set(Set,(e,t)=>new Set(i(Array.from(e),t))),t.constructorHandlers)for(const e of t.constructorHandlers)n.set(e[0],e[1]);let o=null;return t.proto?function t(r){if("object"!=typeof r||null===r)return r;if(Array.isArray(r))return i(r,t);if(r.constructor!==Object&&(o=n.get(r.constructor)))return o(r,t);const a={};for(const i in r){const s=r[i];"object"!=typeof s||null===s?a[i]=s:s.constructor!==Object&&(o=n.get(s.constructor))?a[i]=o(s,t):ArrayBuffer.isView(s)?a[i]=e(s):a[i]=t(s)}return a}:function t(r){if("object"!=typeof r||null===r)return r;if(Array.isArray(r))return i(r,t);if(r.constructor!==Object&&(o=n.get(r.constructor)))return o(r,t);const a={};for(const i in r){if(!1===Object.hasOwnProperty.call(r,i))continue;const s=r[i];"object"!=typeof s||null===s?a[i]=s:s.constructor!==Object&&(o=n.get(s.constructor))?a[i]=o(s,t):ArrayBuffer.isView(s)?a[i]=e(s):a[i]=t(s)}return a};function i(t,i){const r=Object.keys(t),a=new Array(r.length);for(let s=0;s<r.length;s++){const l=r[s],c=t[l];"object"!=typeof c||null===c?a[l]=c:c.constructor!==Object&&(o=n.get(c.constructor))?a[l]=o(c,i):ArrayBuffer.isView(c)?a[l]=e(c):a[l]=i(c)}return a}}}function require_default(){return hasRequired_default?_default:(hasRequired_default=1,_default=requireRfdc()())}function requireLottiePlayerLight(){if(hasRequiredLottiePlayerLight)return LottiePlayerLight_1;function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}hasRequiredLottiePlayerLight=1;var t=e(requireLottie_light()),n=React,o=e(n),i=e(requireReact()),r=e(require_default());function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}var l,c={},d=function(){},p=(l=t.loadAnimation,n.memo(n.forwardRef(function(e,t){var p,u,m=e.play,h=void 0===m?null:m,g=e.speed,x=void 0===g?1:g,f=e.direction,y=void 0===f?1:f,S=e.segments,C=void 0===S?null:S,b=e.goTo,$=void 0===b?null:b,v=e.useSubframes,E=void 0===v||v,w=e.renderer,R=void 0===w?"svg":w,A=e.loop,j=void 0===A||A,T=e.rendererSettings,I=void 0===T?c:T,k=e.audioFactory,L=e.onLoad,D=void 0===L?d:L,_=e.onComplete,P=void 0===_?d:_,B=e.onLoopComplete,M=void 0===B?d:B,O=e.onEnterFrame,F=void 0===O?d:O,N=e.onSegmentStart,z=void 0===N?d:N,H=s(e,["play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),V=H;if("animationData"in H){var W=H;p=W.animationData,V=s(W,["animationData"])}if("path"in H){var U=H;u=U.path,V=s(U,["path"])}var G=n.useRef(null),q=n.useRef(),Q=n.useCallback(function(){if(null==q.current)throw new Error("Lottie ref is not set");return q.current},[]),Y=n.useState(!1),K=Y[0],Z=Y[1],X=n.useState(C),J=X[0],ee=X[1];n.useEffect(function(){i(J,C)||ee(C)},[C,J]);var te=n.useState(I),ne=te[0],oe=te[1];n.useEffect(function(){i(ne,I)||oe(I)},[I,ne]),n.useEffect(function(){return function(){return Q().removeEventListener("complete",P)}},[Q,P]),n.useEffect(function(){return function(){return Q().removeEventListener("loopComplete",M)}},[Q,M]),n.useEffect(function(){return function(){return Q().removeEventListener("enterFrame",F)}},[Q,F]),n.useEffect(function(){return function(){return Q().removeEventListener("segmentStart",z)}},[Q,z]),n.useEffect(function(){return function(){return Q().removeEventListener("DOMLoaded",D)}},[Q,D]);var ie=n.useCallback(function(e){q.current=e,"function"==typeof t?t(e):null!=t&&(t.current=e)},[t]);n.useEffect(function(){if(null==G.current)throw new Error("animElementRef is not set");var e=l(a({animationData:null==p||"object"!=typeof p?p:"default"in p&&"object"==typeof p.default?r(p.default):r(p),path:u,container:G.current,renderer:R,loop:!1,autoplay:!1,rendererSettings:ne},k?{audioFactory:k}:{}));ie(e);var t=function(){return Z(!0)};return Q().addEventListener("DOMLoaded",t),function(){Q().removeEventListener("DOMLoaded",t),Z(!1),Q().destroy(),ie(void 0)}},[j,R,ne,p,u,k,ie,Q]),n.useEffect(function(){Q().addEventListener("DOMLoaded",D)},[Q,D]),n.useEffect(function(){Q().addEventListener("complete",P)},[Q,P]),n.useEffect(function(){Q().addEventListener("loopComplete",M)},[Q,M]),n.useEffect(function(){Q().addEventListener("enterFrame",F)},[Q,F]),n.useEffect(function(){Q().addEventListener("segmentStart",z)},[Q,z]),n.useEffect(function(){K&&(Q().loop=j)},[K,j,Q]);var re=n.useRef(!1);return n.useEffect(function(){if(K)if(!0===h){var e=!0;J?(Q().playSegments(J,e),re.current=!0,-1===y&&t("number"==typeof J[1]?J[1]:J[1][1])):(re.current&&Q().resetSegments(e),re.current=!1,-1===y?t(Q().getDuration(!0)):Q().play())}else!1===h&&Q().pause();function t(e){Q().goToAndPlay(e,!0),Q().setDirection(y)}},[h,J,K,y,Q]),n.useEffect(function(){K&&(Number.isNaN(x)||Q().setSpeed(x))},[x,K,Q]),n.useEffect(function(){K&&Q().setDirection(y)},[y,Q,K]),n.useEffect(function(){if(K&&null!=$){var e=!0;h?Q().goToAndPlay($,e):Q().goToAndStop($,e)}},[Q,$,h,K]),n.useEffect(function(){Q().setSubframe&&Q().setSubframe(E)},[Q,E]),o.createElement("div",a({},V,{ref:G}))})));return LottiePlayerLight_1=p}var LottiePlayerLightExports=requireLottiePlayerLight();const Lottie=getDefaultExportFromCjs(LottiePlayerLightExports),cachedAnimationJSONData={AIPoweredInvoiceDark:null,AIPoweredInvoiceLight:null,AiIconEntry:null,AiIconExit:null,AiIconLoop:null,AiStarPlain:null,AiStar:null,AiStarIcon:null,AiAgent:null,Angry:null,AutoTransfer:null,CloseCard:null,Confetti:null,ConfettiSuccess:null,DashboardChristmasSnow:null,DashboardNewYearShow:null,DashboardSidebarBottomChristmas:null,DashboardSidebarBottomHalloween:null,DashboardSidebarBottomThanksgiving:null,DashboardSidebarBottomNewYear:null,DashboardSidebarTopChristmas:null,DashboardSidebarTopHalloween:null,DashboardSidebarTopThanksgiving:null,DashboardSidebarTopNewYear:null,Distribution:null,DistributionDark:null,EarnYield:null,FastestWayDark:null,FastestWayLight:null,FinanceTeamDark:null,FinanceTeamLight:null,Happy:null,LockCard:null,Liquidity:null,MoneyTransferSuccess:null,MultiLevelApprovalDark:null,MultiLevelApprovalLight:null,NotHappy:null,Protection:null,ReceiptDark:null,ReceiptLight:null,Recurring:null,RecurringDark:null,ReimburseDark:null,ReimburseLight:null,Ripple:null,RewardsDark:null,RewardsDarkHover:null,RewardsLight:null,RewardsLightHover:null,Success:null,Secure:null,Target:null,TargetDark:null,UnlockCard:null,VeryHappy:null,Welcome:null,ZeniAssist:null},pendingAnimationPromises={AIPoweredInvoiceDark:null,AIPoweredInvoiceLight:null,AiIconEntry:null,AiIconExit:null,AiIconLoop:null,AiStarIcon:null,AiStarPlain:null,AiStar:null,AiAgent:null,Angry:null,AutoTransfer:null,CloseCard:null,Confetti:null,ConfettiSuccess:null,DashboardChristmasSnow:null,DashboardNewYearShow:null,DashboardSidebarBottomChristmas:null,DashboardSidebarBottomHalloween:null,DashboardSidebarBottomNewYear:null,DashboardSidebarBottomThanksgiving:null,DashboardSidebarTopChristmas:null,DashboardSidebarTopHalloween:null,DashboardSidebarTopNewYear:null,DashboardSidebarTopThanksgiving:null,Distribution:null,DistributionDark:null,EarnYield:null,FastestWayDark:null,FastestWayLight:null,FinanceTeamDark:null,FinanceTeamLight:null,Happy:null,LockCard:null,Liquidity:null,MoneyTransferSuccess:null,MultiLevelApprovalDark:null,MultiLevelApprovalLight:null,NotHappy:null,Protection:null,ReceiptDark:null,ReceiptLight:null,Recurring:null,RecurringDark:null,ReimburseDark:null,ReimburseLight:null,Ripple:null,RewardsDark:null,RewardsDarkHover:null,RewardsLight:null,RewardsLightHover:null,Success:null,Secure:null,Target:null,TargetDark:null,UnlockCard:null,VeryHappy:null,Welcome:null,ZeniAssist:null},useAnimation=(e,t=!0)=>{const n=WebV2MicroService(),[o,i]=React.useState(null),[r,a]=React.useState(t),[s,l]=React.useState(null);return React.useEffect(()=>{if(!t)return a(!1),i(null),void l(null);(async()=>{try{if(a(!0),null!=cachedAnimationJSONData[e])i(cachedAnimationJSONData[e]),a(!1);else if(null!=pendingAnimationPromises[e]){const t=await pendingAnimationPromises[e];i(t),a(!1)}else{const t=fetchAnimationData(n?.url,e);pendingAnimationPromises[e]=t;const o=await t;cachedAnimationJSONData[e]=o,pendingAnimationPromises[e]=null,i(o),a(!1)}}catch(t){const n=t instanceof Error?t:new Error("Unknown error occurred");l(n),a(!1),pendingAnimationPromises[e]=null}})()},[n?.url,e,t]),[o,r,s]},defaultAnalytics={identify(){}},defaultSentry={},defaultAuthParams={userId:"",sessionId:"",tenantId:""},ToolkitContext=React.createContext({analytics:defaultAnalytics,sentry:defaultSentry,authParams:defaultAuthParams}),useToolkitContext=()=>React.useContext(ToolkitContext),ToolkitProvider=e=>jsxRuntimeExports.jsx(ToolkitContext.Provider,{value:e.toolkit,children:e.children}),styleForResponsiveSize=(e,t,n,o,i,r)=>({small:e,"medium-compact":t,"medium-regular":n??t,large:o??n??t,"extra-large":i??o??n??t,"ultra-large":r??i??o??n??t});class ResponsiveSizedStyle{_styles;constructor(e,t,n,o,i,r){this._styles=styleForResponsiveSize(e,t,n,o,i,r)}value(e="medium-regular"){switch(e){case"small":return this._styles.small;case"medium-compact":return this._styles["medium-compact"];case"medium-regular":return this._styles["medium-regular"];case"large":return this._styles.large;case"extra-large":return this._styles["extra-large"];case"ultra-large":return this._styles["ultra-large"]}}style(e){const t=this._styles[e];return textStyles[t].css}styleObject(e){const t=this._styles[e];return textStyles[t].cssObject}}const fontStyles$1I={helperText:new ResponsiveSizedStyle("superSmallMedium","superSmallMedium")};function Footer$7({primaryBtn:e,formId:t,showCancel:n=!0,showPrimaryButton:o=!0,helperText:i,helperStyle:r,helperContainerStyle:a,style:s,footerContentStyle:l,containerStyle:c,separatorStyle:d,leftSideComponent:p,topComponent:u,rightSideComponent:m,customPrimaryButton:h,cancelBtn:g,children:x}){const f=useWindowSizeContext();return jsxRuntimeExports.jsxs(Container$7D,{style:s,hasHelperText:null!=i,children:[jsxRuntimeExports.jsxs(FooterContent$1,{style:l,children:[jsxRuntimeExports.jsx(StyledDiv$16,{children:p}),jsxRuntimeExports.jsxs(ButtonsWithHelperText$5,{style:a,children:[null!=u?jsxRuntimeExports.jsx(StyledDiv$16,{children:u}):null,jsxRuntimeExports.jsxs(ButtonsContainer$2,{style:c,children:[!0===n&&null!=g?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button$4,{"data-testid":generateDataTestId("cancel-button",t),style:g.style,variant:"outline",label:g.label,onClick:g.onClick,size:g.size??"standard",reverseSpinnerColor:g.reverseSpinnerColor,form:t,loading:g.isLoading,disabled:g.isDisabled,type:!0===g.shouldResetOnCancel?"reset":"button",prefixIcon:g.prefixIcon,suffixIcon:g.suffixIcon}),jsxRuntimeExports.jsx(Box$7,{space:Space.sp3,style:d})]}):null,!0===o?jsxRuntimeExports.jsx(Button$4,{"data-testid":generateDataTestId("primary-button",t),style:e.style,loading:e.isLoading,variant:e.variant??"primary",label:e.label,size:e.size??"standard",form:t,type:e.type??"submit",disabled:e.isDisabled,reverseSpinnerColor:e.reverseSpinnerColor,onClick:e.onClick,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon}):null,h??null]}),null!=i?jsxRuntimeExports.jsx(HelperText$3,{windowSize:f,style:r,children:i}):null]}),jsxRuntimeExports.jsx(StyledDiv$16,{children:m})]}),x]})}const Container$7D=styled$2.div`
|
|
1095
1095
|
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
1096
1096
|
padding: ${Space.sp2} ${Space.sp3};
|
|
1097
1097
|
position: sticky;
|
|
@@ -10214,7 +10214,7 @@
|
|
|
10214
10214
|
padding-top: ${e=>D$4S.ButtonContainerPaddingTop.valuePx(e.windowSize)};
|
|
10215
10215
|
`,StyledDiv$X=styled$2.div``,StyledSSNCardTemplate=styled$2(SvgSsnCardFront)`
|
|
10216
10216
|
transform: scale(1, 0.9);
|
|
10217
|
-
`,BottomHeader=styled$2(H6Medium)``;function _mergeNamespaces$1(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function copyExifWithoutOrientation(e,t){return new Promise(function(n,o){let i;return getApp1Segment(e).then(function(e){try{return i=e,n(new Blob([t.slice(0,2),i,t.slice(2)],{type:"image/jpeg"}))}catch(r){return o(r)}},o)})}const getApp1Segment=e=>new Promise((t,n)=>{const o=new FileReader;o.addEventListener("load",({target:{result:e}})=>{const o=new DataView(e);let i=0;if(65496!==o.getUint16(i))return n("not a valid JPEG");for(i+=2;;){const r=o.getUint16(i);if(65498===r)break;const a=o.getUint16(i+2);if(65505===r&&1165519206===o.getUint32(i+4)){const r=i+10;let s;switch(o.getUint16(r)){case 18761:s=!0;break;case 19789:s=!1;break;default:return n("TIFF header contains invalid endian")}if(42!==o.getUint16(r+2,s))return n("TIFF header contains invalid version");const l=o.getUint32(r+4,s),c=r+l+2+12*o.getUint16(r+l,s);for(let e=r+l+2;e<c;e+=12)if(274==o.getUint16(e,s)){if(3!==o.getUint16(e+2,s))return n("Orientation data type is invalid");if(1!==o.getUint32(e+4,s))return n("Orientation data count is invalid");o.setUint16(e+8,1,s);break}return t(e.slice(i,i+2+a))}i+=2+a}return t(new Blob)}),o.readAsArrayBuffer(e)});var e={},t={get exports(){return e},set exports(t){e=t}},r2,i3,UZIP2;UZIP2={},t.exports=UZIP2,UZIP2.parse=function(e,t){for(var n=UZIP2.bin.readUshort,o=UZIP2.bin.readUint,i=0,r={},a=new Uint8Array(e),s=a.length-4;101010256!=o(a,s);)s--;i=s,i+=4;var l=n(a,i+=4);n(a,i+=2);var c=o(a,i+=2),d=o(a,i+=4);i+=4,i=d;for(var p=0;p<l;p++){o(a,i),i+=4,i+=4,i+=4,o(a,i+=4),c=o(a,i+=4);var u=o(a,i+=4),m=n(a,i+=4),h=n(a,i+2),g=n(a,i+4);i+=6;var x=o(a,i+=8);i+=4,i+=m+h+g,UZIP2._readLocal(a,x,r,c,u,t)}return r},UZIP2._readLocal=function(e,t,n,o,i,r){var a=UZIP2.bin.readUshort,s=UZIP2.bin.readUint;s(e,t),a(e,t+=4),a(e,t+=2);var l=a(e,t+=2);s(e,t+=2),s(e,t+=4),t+=4;var c=a(e,t+=8),d=a(e,t+=2);t+=2;var p=UZIP2.bin.readUTF8(e,t,c);if(t+=c,t+=d,r)n[p]={size:i,csize:o};else{var u=new Uint8Array(e.buffer,t);if(0==l)n[p]=new Uint8Array(u.buffer.slice(t,t+o));else{if(8!=l)throw"unknown compression method: "+l;var m=new Uint8Array(i);UZIP2.inflateRaw(u,m),n[p]=m}}},UZIP2.inflateRaw=function(e,t){return UZIP2.F.inflate(e,t)},UZIP2.inflate=function(e,t){return e[0],e[1],UZIP2.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},UZIP2.deflate=function(e,t){null==t&&(t={level:6});var n=0,o=new Uint8Array(50+Math.floor(1.1*e.length));o[n]=120,o[n+1]=156,n+=2,n=UZIP2.F.deflateRaw(e,o,n,t.level);var i=UZIP2.adler(e,0,e.length);return o[n+0]=i>>>24&255,o[n+1]=i>>>16&255,o[n+2]=i>>>8&255,o[n+3]=i>>>0&255,new Uint8Array(o.buffer,0,n+4)},UZIP2.deflateRaw=function(e,t){null==t&&(t={level:6});var n=new Uint8Array(50+Math.floor(1.1*e.length)),o=UZIP2.F.deflateRaw(e,n,o,t.level);return new Uint8Array(n.buffer,0,o)},UZIP2.encode=function(e,t){null==t&&(t=!1);var n=0,o=UZIP2.bin.writeUint,i=UZIP2.bin.writeUshort,r={};for(var a in e){var s=!UZIP2._noNeed(a)&&!t,l=e[a],c=UZIP2.crc.crc(l,0,l.length);r[a]={cpr:s,usize:l.length,crc:c,file:s?UZIP2.deflateRaw(l):l}}for(var a in r)n+=r[a].file.length+30+46+2*UZIP2.bin.sizeUTF8(a);n+=22;var d=new Uint8Array(n),p=0,u=[];for(var a in r){var m=r[a];u.push(p),p=UZIP2._writeHeader(d,p,a,m,0)}var h=0,g=p;for(var a in r)m=r[a],u.push(p),p=UZIP2._writeHeader(d,p,a,m,1,u[h++]);var x=p-g;return o(d,p,101010256),p+=4,i(d,p+=4,h),i(d,p+=2,h),o(d,p+=2,x),o(d,p+=4,g),p+=4,p+=2,d.buffer},UZIP2._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return-1!="png,jpg,jpeg,zip".indexOf(t)},UZIP2._writeHeader=function(e,t,n,o,i,r){var a=UZIP2.bin.writeUint,s=UZIP2.bin.writeUshort,l=o.file;return a(e,t,0==i?67324752:33639248),t+=4,1==i&&(t+=2),s(e,t,20),s(e,t+=2,0),s(e,t+=2,o.cpr?8:0),a(e,t+=2,0),a(e,t+=4,o.crc),a(e,t+=4,l.length),a(e,t+=4,o.usize),s(e,t+=4,UZIP2.bin.sizeUTF8(n)),s(e,t+=2,0),t+=2,1==i&&(t+=2,t+=2,a(e,t+=6,r),t+=4),t+=UZIP2.bin.writeUTF8(e,t,n),0==i&&(e.set(l,t),t+=l.length),t},UZIP2.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var n=t,o=0;o<8;o++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update:function(e,t,n,o){for(var i=0;i<o;i++)e=UZIP2.crc.table[255&(e^t[n+i])]^e>>>8;return e},crc:function(e,t,n){return 4294967295^UZIP2.crc.update(4294967295,e,t,n)}},UZIP2.adler=function(e,t,n){for(var o=1,i=0,r=t,a=t+n;r<a;){for(var s=Math.min(r+5552,a);r<s;)i+=o+=e[r++];o%=65521,i%=65521}return i<<16|o},UZIP2.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255,e[t+2]=n>>16&255,e[t+3]=n>>24&255},readASCII:function(e,t,n){for(var o="",i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII:function(e,t,n){for(var o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,n){for(var o,i="",r=0;r<n;r++)i+="%"+UZIP2.bin.pad(e[t+r].toString(16));try{o=decodeURIComponent(i)}catch(a){return UZIP2.bin.readASCII(e,t,n)}return o},writeUTF8:function(e,t,n){for(var o=n.length,i=0,r=0;r<o;r++){var a=n.charCodeAt(r);if(4294967168&a)if(4294965248&a)if(4294901760&a){if(4292870144&a)throw"e";e[t+i]=240|a>>18,e[t+i+1]=128|a>>12&63,e[t+i+2]=128|a>>6&63,e[t+i+3]=128|63&a,i+=4}else e[t+i]=224|a>>12,e[t+i+1]=128|a>>6&63,e[t+i+2]=128|63&a,i+=3;else e[t+i]=192|a>>6,e[t+i+1]=128|63&a,i+=2;else e[t+i]=a,i++}return i},sizeUTF8:function(e){for(var t=e.length,n=0,o=0;o<t;o++){var i=e.charCodeAt(o);if(4294967168&i)if(4294965248&i)if(4294901760&i){if(4292870144&i)throw"e";n+=4}else n+=3;else n+=2;else n++}return n}},UZIP2.F={},UZIP2.F.deflateRaw=function(e,t,n,o){var i=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][o],r=UZIP2.F.U,a=UZIP2.F._goodIndex;UZIP2.F._hash;var s=UZIP2.F._putsE,l=0,c=n<<3,d=0,p=e.length;if(0==o){for(;l<p;)s(t,c,l+(v=Math.min(65535,p-l))==p?1:0),c=UZIP2.F._copyExact(e,l,v,t,c+8),l+=v;return c>>>3}var u=r.lits,m=r.strt,h=r.prev,g=0,x=0,f=0,y=0,S=0,C=0;for(p>2&&(m[C=UZIP2.F._hash(e,0)]=0),l=0;l<p;l++){if(S=C,l+1<p-2){C=UZIP2.F._hash(e,l+1);var b=l+1&32767;h[b]=m[C],m[C]=b}if(d<=l){(g>14e3||x>26697)&&p-l>100&&(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(l==p-1||d==p?1:0,u,g,y,e,f,l-f,t,c),g=x=y=0,f=l);var $=0;l<p-2&&($=UZIP2.F._bestMatch(e,l,h,S,Math.min(i[2],p-l),i[3]));var v=$>>>16,E=65535&$;if(0!=$){E=65535&$;var w=a(v=$>>>16,r.of0);r.lhst[257+w]++;var R=a(E,r.df0);r.dhst[R]++,y+=r.exb[w]+r.dxb[R],u[g]=v<<23|l-d,u[g+1]=E<<16|w<<8|R,g+=2,d=l+v}else r.lhst[e[l]]++;x++}}for(f==l&&0!=e.length||(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(1,u,g,y,e,f,l-f,t,c),g=0,x=0,g=x=y=0,f=l);7&c;)c++;return c>>>3},UZIP2.F._bestMatch=function(e,t,n,o,i,r){var a=32767&t,s=n[a],l=a-s+32768&32767;if(s==a||o!=UZIP2.F._hash(e,t-l))return 0;for(var c=0,d=0,p=Math.min(32767,t);l<=p&&0!=--r&&s!=a;){if(0==c||e[t+c]==e[t+c-l]){var u=UZIP2.F._howLong(e,t,l);if(u>c){if(d=l,(c=u)>=i)break;l+2<u&&(u=l+2);for(var m=0,h=0;h<u-2;h++){var g=t-l+h+32768&32767,x=g-n[g]+32768&32767;x>m&&(m=x,s=g)}}}l+=(a=s)-(s=n[a])+32768&32767}return c<<16|d},UZIP2.F._howLong=function(e,t,n){if(e[t]!=e[t-n]||e[t+1]!=e[t+1-n]||e[t+2]!=e[t+2-n])return 0;var o=t,i=Math.min(e.length,t+258);for(t+=3;t<i&&e[t]==e[t-n];)t++;return t-o},UZIP2.F._hash=function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},UZIP2.saved=0,UZIP2.F._writeBlock=function(e,t,n,o,i,r,a,s,l){var c,d,p,u,m,h,g,x,f,y=UZIP2.F.U,S=UZIP2.F._putsF,C=UZIP2.F._putsE;y.lhst[256]++,d=(c=UZIP2.F.getTrees())[0],p=c[1],u=c[2],m=c[3],h=c[4],g=c[5],x=c[6],f=c[7];var b=32+(l+3&7?8-(l+3&7):0)+(a<<3),$=o+UZIP2.F.contSize(y.fltree,y.lhst)+UZIP2.F.contSize(y.fdtree,y.dhst),v=o+UZIP2.F.contSize(y.ltree,y.lhst)+UZIP2.F.contSize(y.dtree,y.dhst);v+=14+3*g+UZIP2.F.contSize(y.itree,y.ihst)+(2*y.ihst[16]+3*y.ihst[17]+7*y.ihst[18]);for(var E=0;E<286;E++)y.lhst[E]=0;for(E=0;E<30;E++)y.dhst[E]=0;for(E=0;E<19;E++)y.ihst[E]=0;var w=b<$&&b<v?0:$<v?1:2;if(S(s,l,e),S(s,l+1,w),l+=3,0==w){for(;7&l;)l++;l=UZIP2.F._copyExact(i,r,a,s,l)}else{var R,A;if(1==w&&(R=y.fltree,A=y.fdtree),2==w){UZIP2.F.makeCodes(y.ltree,d),UZIP2.F.revCodes(y.ltree,d),UZIP2.F.makeCodes(y.dtree,p),UZIP2.F.revCodes(y.dtree,p),UZIP2.F.makeCodes(y.itree,u),UZIP2.F.revCodes(y.itree,u),R=y.ltree,A=y.dtree,C(s,l,m-257),C(s,l+=5,h-1),C(s,l+=5,g-4),l+=4;for(var j=0;j<g;j++)C(s,l+3*j,y.itree[1+(y.ordr[j]<<1)]);l+=3*g,l=UZIP2.F._codeTiny(x,y.itree,s,l),l=UZIP2.F._codeTiny(f,y.itree,s,l)}for(var T=r,I=0;I<n;I+=2){for(var k=t[I],L=k>>>23,D=T+(8388607&k);T<D;)l=UZIP2.F._writeLit(i[T++],R,s,l);if(0!=L){var _=t[I+1],P=_>>16,B=_>>8&255,M=255&_;C(s,l=UZIP2.F._writeLit(257+B,R,s,l),L-y.of0[B]),l+=y.exb[B],S(s,l=UZIP2.F._writeLit(M,A,s,l),P-y.df0[M]),l+=y.dxb[M],T+=L}}l=UZIP2.F._writeLit(256,R,s,l)}return l},UZIP2.F._copyExact=function(e,t,n,o,i){var r=i>>>3;return o[r]=n,o[r+1]=n>>>8,o[r+2]=255-o[r],o[r+3]=255-o[r+1],r+=4,o.set(new Uint8Array(e.buffer,t,n),r),i+(n+4<<3)},UZIP2.F.getTrees=function(){for(var e=UZIP2.F.U,t=UZIP2.F._hufTree(e.lhst,e.ltree,15),n=UZIP2.F._hufTree(e.dhst,e.dtree,15),o=[],i=UZIP2.F._lenCodes(e.ltree,o),r=[],a=UZIP2.F._lenCodes(e.dtree,r),s=0;s<o.length;s+=2)e.ihst[o[s]]++;for(s=0;s<r.length;s+=2)e.ihst[r[s]]++;for(var l=UZIP2.F._hufTree(e.ihst,e.itree,7),c=19;c>4&&0==e.itree[1+(e.ordr[c-1]<<1)];)c--;return[t,n,l,i,a,c,o,r]},UZIP2.F.getSecond=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(e[n+1]);return t},UZIP2.F.nonZero=function(e){for(var t="",n=0;n<e.length;n+=2)0!=e[n+1]&&(t+=(n>>1)+",");return t},UZIP2.F.contSize=function(e,t){for(var n=0,o=0;o<t.length;o++)n+=t[o]*e[1+(o<<1)];return n},UZIP2.F._codeTiny=function(e,t,n,o){for(var i=0;i<e.length;i+=2){var r=e[i],a=e[i+1];o=UZIP2.F._writeLit(r,t,n,o);var s=16==r?2:17==r?3:7;r>15&&(UZIP2.F._putsE(n,o,a,s),o+=s)}return o},UZIP2.F._lenCodes=function(e,t){for(var n=e.length;2!=n&&0==e[n-1];)n-=2;for(var o=0;o<n;o+=2){var i=e[o+1],r=o+3<n?e[o+3]:-1,a=o+5<n?e[o+5]:-1,s=0==o?-1:e[o-1];if(0==i&&r==i&&a==i){for(var l=o+5;l+2<n&&e[l+2]==i;)l+=2;(c=Math.min(l+1-o>>>1,138))<11?t.push(17,c-3):t.push(18,c-11),o+=2*c-2}else if(i==s&&r==i&&a==i){for(l=o+5;l+2<n&&e[l+2]==i;)l+=2;var c=Math.min(l+1-o>>>1,6);t.push(16,c-3),o+=2*c-2}else t.push(i,0)}return n>>>1},UZIP2.F._hufTree=function(e,t,n){var o=[],i=e.length,r=t.length,a=0;for(a=0;a<r;a+=2)t[a]=0,t[a+1]=0;for(a=0;a<i;a++)0!=e[a]&&o.push({lit:a,f:e[a]});var s=o.length,l=o.slice(0);if(0==s)return 0;if(1==s){var c=o[0].lit;return l=0==c?1:0,t[1+(c<<1)]=1,t[1+(l<<1)]=1,1}o.sort(function(e,t){return e.f-t.f});var d=o[0],p=o[1],u=0,m=1,h=2;for(o[0]={lit:-1,f:d.f+p.f,l:d,r:p,d:0};m!=s-1;)d=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],p=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],o[m++]={lit:-1,f:d.f+p.f,l:d,r:p};var g=UZIP2.F.setDepth(o[m-1],0);for(g>n&&(UZIP2.F.restrictDepth(l,n,g),g=n),a=0;a<s;a++)t[1+(l[a].lit<<1)]=l[a].d;return g},UZIP2.F.setDepth=function(e,t){return-1!=e.lit?(e.d=t,t):Math.max(UZIP2.F.setDepth(e.l,t+1),UZIP2.F.setDepth(e.r,t+1))},UZIP2.F.restrictDepth=function(e,t,n){var o=0,i=1<<n-t,r=0;for(e.sort(function(e,t){return t.d==e.d?e.f-t.f:t.d-e.d}),o=0;o<e.length&&e[o].d>t;o++){var a=e[o].d;e[o].d=t,r+=i-(1<<n-a)}for(r>>>=n-t;r>0;)(a=e[o].d)<t?(e[o].d++,r-=1<<t-a-1):o++;for(;o>=0;o--)e[o].d==t&&r<0&&(e[o].d--,r++);0!=r&&console.log("debt left")},UZIP2.F._goodIndex=function(e,t){var n=0;return t[16|n]<=e&&(n|=16),t[8|n]<=e&&(n|=8),t[4|n]<=e&&(n|=4),t[2|n]<=e&&(n|=2),t[1|n]<=e&&(n|=1),n},UZIP2.F._writeLit=function(e,t,n,o){return UZIP2.F._putsF(n,o,t[e<<1]),o+t[1+(e<<1)]},UZIP2.F.inflate=function(e,t){var n=Uint8Array;if(3==e[0]&&0==e[1])return t||new n(0);var o=UZIP2.F,i=o._bitsF,r=o._bitsE,a=o._decodeTiny,s=o.makeCodes,l=o.codes2map,c=o._get17,d=o.U,p=null==t;p&&(t=new n(e.length>>>2<<3));for(var u,m,h=0,g=0,x=0,f=0,y=0,S=0,C=0,b=0,$=0;0==h;)if(h=i(e,$,1),g=i(e,$+1,2),$+=3,0!=g){if(p&&(t=UZIP2.F._check(t,b+(1<<17))),1==g&&(u=d.flmap,m=d.fdmap,S=511,C=31),2==g){x=r(e,$,5)+257,f=r(e,$+5,5)+1,y=r(e,$+10,4)+4,$+=14;for(var v=0;v<38;v+=2)d.itree[v]=0,d.itree[v+1]=0;var E=1;for(v=0;v<y;v++){var w=r(e,$+3*v,3);d.itree[1+(d.ordr[v]<<1)]=w,w>E&&(E=w)}$+=3*y,s(d.itree,E),l(d.itree,E,d.imap),u=d.lmap,m=d.dmap,$=a(d.imap,(1<<E)-1,x+f,e,$,d.ttree);var R=o._copyOut(d.ttree,0,x,d.ltree);S=(1<<R)-1;var A=o._copyOut(d.ttree,x,f,d.dtree);C=(1<<A)-1,s(d.ltree,R),l(d.ltree,R,u),s(d.dtree,A),l(d.dtree,A,m)}for(;;){var j=u[c(e,$)&S];$+=15&j;var T=j>>>4;if(T>>>8==0)t[b++]=T;else{if(256==T)break;var I=b+T-254;if(T>264){var k=d.ldef[T-257];I=b+(k>>>3)+r(e,$,7&k),$+=7&k}var L=m[c(e,$)&C];$+=15&L;var D=L>>>4,_=d.ddef[D],P=(_>>>4)+i(e,$,15&_);for($+=15&_,p&&(t=UZIP2.F._check(t,b+(1<<17)));b<I;)t[b]=t[b++-P],t[b]=t[b++-P],t[b]=t[b++-P],t[b]=t[b++-P];b=I}}}else{7&$&&($+=8-(7&$));var B=4+($>>>3),M=e[B-4]|e[B-3]<<8;p&&(t=UZIP2.F._check(t,b+M)),t.set(new n(e.buffer,e.byteOffset+B,M),b),$=B+M<<3,b+=M}return t.length==b?t:t.slice(0,b)},UZIP2.F._check=function(e,t){var n=e.length;if(t<=n)return e;var o=new Uint8Array(Math.max(n<<1,t));return o.set(e,0),o},UZIP2.F._decodeTiny=function(e,t,n,o,i,r){for(var a=UZIP2.F._bitsE,s=UZIP2.F._get17,l=0;l<n;){var c=e[s(o,i)&t];i+=15&c;var d=c>>>4;if(d<=15)r[l]=d,l++;else{var p=0,u=0;16==d?(u=3+a(o,i,2),i+=2,p=r[l-1]):17==d?(u=3+a(o,i,3),i+=3):18==d&&(u=11+a(o,i,7),i+=7);for(var m=l+u;l<m;)r[l]=p,l++}}return i},UZIP2.F._copyOut=function(e,t,n,o){for(var i=0,r=0,a=o.length>>>1;r<n;){var s=e[r+t];o[r<<1]=0,o[1+(r<<1)]=s,s>i&&(i=s),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},UZIP2.F.makeCodes=function(e,t){for(var n,o,i,r,a=UZIP2.F.U,s=e.length,l=a.bl_count,c=0;c<=t;c++)l[c]=0;for(c=1;c<s;c+=2)l[e[c]]++;var d=a.next_code;for(n=0,l[0]=0,o=1;o<=t;o++)n=n+l[o-1]<<1,d[o]=n;for(i=0;i<s;i+=2)0!=(r=e[i+1])&&(e[i]=d[r],d[r]++)},UZIP2.F.codes2map=function(e,t,n){for(var o=e.length,i=UZIP2.F.U.rev15,r=0;r<o;r+=2)if(0!=e[r+1])for(var a=r>>1,s=e[r+1],l=a<<4|s,c=t-s,d=e[r]<<c,p=d+(1<<c);d!=p;)n[i[d]>>>15-t]=l,d++},UZIP2.F.revCodes=function(e,t){for(var n=UZIP2.F.U.rev15,o=15-t,i=0;i<e.length;i+=2){var r=e[i]<<t-e[i+1];e[i]=n[r]>>>o}},UZIP2.F._putsE=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},UZIP2.F._putsF=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},UZIP2.F._bitsE=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},UZIP2.F._bitsF=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},UZIP2.F._get17=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},UZIP2.F._get25=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},UZIP2.F.U=(r2=Uint16Array,i3=Uint32Array,{next_code:new r2(16),bl_count:new r2(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new r2(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new i3(32),flmap:new r2(512),fltree:[],fdmap:new r2(32),fdtree:[],lmap:new r2(32768),ltree:[],ttree:[],dmap:new r2(32768),dtree:[],imap:new r2(512),itree:[],rev15:new r2(32768),lhst:new i3(286),dhst:new i3(30),ihst:new i3(19),lits:new i3(15e3),strt:new r2(65536),prev:new r2(32768)}),function(){for(var e=UZIP2.F.U,t=0;t<32768;t++){var n=t;n=(4278255360&(n=(4042322160&(n=(3435973836&(n=(2863311530&n)>>>1|(1431655765&n)<<1))>>>2|(858993459&n)<<2))>>>4|(252645135&n)<<4))>>>8|(16711935&n)<<8,e.rev15[t]=(n>>>16|n<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];o(e.fltree,144,8),o(e.fltree,112,9),o(e.fltree,24,7),o(e.fltree,8,8),UZIP2.F.makeCodes(e.fltree,9),UZIP2.F.codes2map(e.fltree,9,e.flmap),UZIP2.F.revCodes(e.fltree,9),o(e.fdtree,32,5),UZIP2.F.makeCodes(e.fdtree,5),UZIP2.F.codes2map(e.fdtree,5,e.fdmap),UZIP2.F.revCodes(e.fdtree,5),o(e.itree,19,0),o(e.ltree,286,0),o(e.dtree,30,0),o(e.ttree,320,0)}();var UZIP=_mergeNamespaces$1({__proto__:null,default:e},[e]);const UPNG=function(){var e={nextZero(e,t){for(;0!=e[t];)t++;return t},readUshort:(e,t)=>e[t]<<8|e[t+1],writeUshort(e,t,n){e[t]=n>>8&255,e[t+1]=255&n},readUint:(e,t)=>16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3]),writeUint(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n},readASCII(e,t,n){let o="";for(let i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII(e,t,n){for(let o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},readBytes(e,t,n){const o=[];for(let i=0;i<n;i++)o.push(e[t+i]);return o},pad:e=>e.length<2?`0${e}`:e,readUTF8(t,n,o){let i,r="";for(let s=0;s<o;s++)r+=`%${e.pad(t[n+s].toString(16))}`;try{i=decodeURIComponent(r)}catch(a){return e.readASCII(t,n,o)}return i}};function t(t,n,o,i){const a=n*o,s=r(i),l=Math.ceil(n*s/8),c=new Uint8Array(4*a),d=new Uint32Array(c.buffer),{ctype:p}=i,{depth:u}=i,m=e.readUshort;if(6==p){const e=a<<2;if(8==u)for(var h=0;h<e;h+=4)c[h]=t[h],c[h+1]=t[h+1],c[h+2]=t[h+2],c[h+3]=t[h+3];if(16==u)for(h=0;h<e;h++)c[h]=t[h<<1]}else if(2==p){const e=i.tabs.tRNS;if(null==e){if(8==u)for(h=0;h<a;h++){var g=3*h;d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g]}if(16==u)for(h=0;h<a;h++)g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g]}else{var x=e[0];const n=e[1],o=e[2];if(8==u)for(h=0;h<a;h++){var f=h<<2;g=3*h,d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g],t[g]==x&&t[g+1]==n&&t[g+2]==o&&(c[f+3]=0)}if(16==u)for(h=0;h<a;h++)f=h<<2,g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g],m(t,g)==x&&m(t,g+2)==n&&m(t,g+4)==o&&(c[f+3]=0)}}else if(3==p){const e=i.tabs.PLTE,r=i.tabs.tRNS,s=r?r.length:0;if(1==u)for(var y=0;y<o;y++){var S=y*l,C=y*n;for(h=0;h<n;h++){f=C+h<<2;var b=3*($=t[S+(h>>3)]>>7-(7&h)&1);c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255}}if(2==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,b=3*($=t[S+(h>>2)]>>6-((3&h)<<1)&3),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255;if(4==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,b=3*($=t[S+(h>>1)]>>4-((1&h)<<2)&15),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255;if(8==u)for(h=0;h<a;h++){var $;f=h<<2,b=3*($=t[h]),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255}}else if(4==p){if(8==u)for(h=0;h<a;h++){f=h<<2;var v=t[E=h<<1];c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+1]}if(16==u)for(h=0;h<a;h++){var E;f=h<<2,v=t[E=h<<2],c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+2]}}else if(0==p)for(x=i.tabs.tRNS?i.tabs.tRNS:-1,y=0;y<o;y++){const e=y*l,o=y*n;if(1==u)for(var w=0;w<n;w++){var R=(v=255*(t[e+(w>>>3)]>>>7-(7&w)&1))==255*x?0:255;d[o+w]=R<<24|v<<16|v<<8|v}else if(2==u)for(w=0;w<n;w++)R=(v=85*(t[e+(w>>>2)]>>>6-((3&w)<<1)&3))==85*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(4==u)for(w=0;w<n;w++)R=(v=17*(t[e+(w>>>1)]>>>4-((1&w)<<2)&15))==17*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(8==u)for(w=0;w<n;w++)R=(v=t[e+w])==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(16==u)for(w=0;w<n;w++)v=t[e+(w<<1)],R=m(t,e+(w<<1))==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v}return c}function n(e,t,n,s){const l=r(e),c=Math.ceil(n*l/8),d=new Uint8Array((c+1+e.interlace)*s);return t=e.tabs.CgBI?i(t,d):o(t,d),0==e.interlace?t=a(t,e,0,n,s):1==e.interlace&&(t=function(e,t){const n=t.width,o=t.height,i=r(t),s=i>>3,l=Math.ceil(n*i/8),c=new Uint8Array(o*l);let d=0;const p=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],m=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1];let g=0;for(;g<7;){const r=m[g],f=h[g];let y=0,S=0,C=p[g];for(;C<o;)C+=r,S++;let b=u[g];for(;b<n;)b+=f,y++;const $=Math.ceil(y*i/8);a(e,t,d,y,S);let v=0,E=p[g];for(;E<o;){let t=u[g],o=d+v*$<<3;for(;t<n;){var x;if(1==i&&(x=(x=e[o>>3])>>7-(7&o)&1,c[E*l+(t>>3)]|=x<<7-(7&t)),2==i&&(x=(x=e[o>>3])>>6-(7&o)&3,c[E*l+(t>>2)]|=x<<6-((3&t)<<1)),4==i&&(x=(x=e[o>>3])>>4-(7&o)&15,c[E*l+(t>>1)]|=x<<4-((1&t)<<2)),i>=8){const n=E*l+t*s;for(let t=0;t<s;t++)c[n+t]=e[(o>>3)+t]}o+=i,t+=f}v++,E+=r}y*S!=0&&(d+=S*(1+$)),g+=1}return c}(t,e)),t}function o(e,t){return i(new Uint8Array(e.buffer,2,e.length-6),t)}var i=function(){const e={H:{}};return e.H.N=function(t,n){const o=Uint8Array;let i,r,a=0,s=0,l=0,c=0,d=0,p=0,u=0,m=0,h=0;if(3==t[0]&&0==t[1])return n||new o(0);const g=e.H,x=g.b,f=g.e,y=g.R,S=g.n,C=g.A,b=g.Z,$=g.m,v=null==n;for(v&&(n=new o(t.length>>>2<<5));0==a;)if(a=x(t,h,1),s=x(t,h+1,2),h+=3,0!=s){if(v&&(n=e.H.W(n,m+(1<<17))),1==s&&(i=$.J,r=$.h,p=511,u=31),2==s){l=f(t,h,5)+257,c=f(t,h+5,5)+1,d=f(t,h+10,4)+4,h+=14;let e=1;for(var E=0;E<38;E+=2)$.Q[E]=0,$.Q[E+1]=0;for(E=0;E<d;E++){const n=f(t,h+3*E,3);$.Q[1+($.X[E]<<1)]=n,n>e&&(e=n)}h+=3*d,S($.Q,e),C($.Q,e,$.u),i=$.w,r=$.d,h=y($.u,(1<<e)-1,l+c,t,h,$.v);const n=g.V($.v,0,l,$.C);p=(1<<n)-1;const o=g.V($.v,l,c,$.D);u=(1<<o)-1,S($.C,n),C($.C,n,i),S($.D,o),C($.D,o,r)}for(;;){const e=i[b(t,h)&p];h+=15&e;const o=e>>>4;if(o>>>8==0)n[m++]=o;else{if(256==o)break;{let e=m+o-254;if(o>264){const n=$.q[o-257];e=m+(n>>>3)+f(t,h,7&n),h+=7&n}const i=r[b(t,h)&u];h+=15&i;const a=i>>>4,s=$.c[a],l=(s>>>4)+x(t,h,15&s);for(h+=15&s;m<e;)n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l];m=e}}}}else{7&h&&(h+=8-(7&h));const i=4+(h>>>3),r=t[i-4]|t[i-3]<<8;v&&(n=e.H.W(n,m+r)),n.set(new o(t.buffer,t.byteOffset+i,r),m),h=i+r<<3,m+=r}return n.length==m?n:n.slice(0,m)},e.H.W=function(e,t){const n=e.length;if(t<=n)return e;const o=new Uint8Array(n<<1);return o.set(e,0),o},e.H.R=function(t,n,o,i,r,a){const s=e.H.e,l=e.H.Z;let c=0;for(;c<o;){const e=t[l(i,r)&n];r+=15&e;const o=e>>>4;if(o<=15)a[c]=o,c++;else{let e=0,t=0;16==o?(t=3+s(i,r,2),r+=2,e=a[c-1]):17==o?(t=3+s(i,r,3),r+=3):18==o&&(t=11+s(i,r,7),r+=7);const n=c+t;for(;c<n;)a[c]=e,c++}}return r},e.H.V=function(e,t,n,o){let i=0,r=0;const a=o.length>>>1;for(;r<n;){const n=e[r+t];o[r<<1]=0,o[1+(r<<1)]=n,n>i&&(i=n),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},e.H.n=function(t,n){const o=e.H.m,i=t.length;let r,a,s,l;const c=o.j;for(var d=0;d<=n;d++)c[d]=0;for(d=1;d<i;d+=2)c[t[d]]++;const p=o.K;for(r=0,c[0]=0,a=1;a<=n;a++)r=r+c[a-1]<<1,p[a]=r;for(s=0;s<i;s+=2)l=t[s+1],0!=l&&(t[s]=p[l],p[l]++)},e.H.A=function(t,n,o){const i=t.length,r=e.H.m.r;for(let e=0;e<i;e+=2)if(0!=t[e+1]){const i=e>>1,a=t[e+1],s=i<<4|a,l=n-a;let c=t[e]<<l;const d=c+(1<<l);for(;c!=d;)o[r[c]>>>15-n]=s,c++}},e.H.l=function(t,n){const o=e.H.m.r,i=15-n;for(let e=0;e<t.length;e+=2){const r=t[e]<<n-t[e+1];t[e]=o[r]>>>i}},e.H.M=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},e.H.I=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},e.H.e=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},e.H.b=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},e.H.Z=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},e.H.i=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},e.H.m=function(){const e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}}(),function(){const t=e.H.m;for(var n=0;n<32768;n++){let e=n;e=(2863311530&e)>>>1|(1431655765&e)<<1,e=(3435973836&e)>>>2|(858993459&e)<<2,e=(4042322160&e)>>>4|(252645135&e)<<4,e=(4278255360&e)>>>8|(16711935&e)<<8,t.r[n]=(e>>>16|e<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(n=0;n<32;n++)t.q[n]=t.S[n]<<3|t.T[n],t.c[n]=t.p[n]<<4|t.z[n];o(t._,144,8),o(t._,112,9),o(t._,24,7),o(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),o(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),o(t.Q,19,0),o(t.C,286,0),o(t.D,30,0),o(t.v,320,0)}(),e.H.N}();function r(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth}function a(e,t,n,o,i){let a=r(t);const l=Math.ceil(o*a/8);let c,d;a=Math.ceil(a/8);let p=e[n],u=0;if(p>1&&(e[n]=[0,0,1][p-2]),3==p)for(u=a;u<l;u++)e[u+1]=e[u+1]+(e[u+1-a]>>>1)&255;for(let r=0;r<i;r++)if(c=n+r*l,d=c+r+1,p=e[d-1],u=0,0==p)for(;u<l;u++)e[c+u]=e[d+u];else if(1==p){for(;u<a;u++)e[c+u]=e[d+u];for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-a]}else if(2==p)for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-l];else if(3==p){for(;u<a;u++)e[c+u]=e[d+u]+(e[c+u-l]>>>1);for(;u<l;u++)e[c+u]=e[d+u]+(e[c+u-l]+e[c+u-a]>>>1)}else{for(;u<a;u++)e[c+u]=e[d+u]+s(0,e[c+u-l],0);for(;u<l;u++)e[c+u]=e[d+u]+s(e[c+u-a],e[c+u-l],e[c+u-a-l])}return e}function s(e,t,n){const o=e+t-n,i=o-e,r=o-t,a=o-n;return i*i<=r*r&&i*i<=a*a?e:r*r<=a*a?t:n}function l(t,n,o){o.width=e.readUint(t,n),n+=4,o.height=e.readUint(t,n),n+=4,o.depth=t[n],n++,o.ctype=t[n],n++,o.compress=t[n],n++,o.filter=t[n],n++,o.interlace=t[n],n++}function c(e,t,n,o,i,r,a,s,l){const c=Math.min(t,i),d=Math.min(n,r);let p=0,u=0;for(let b=0;b<d;b++)for(let n=0;n<c;n++)if(a>=0&&s>=0?(p=b*t+n<<2,u=(s+b)*i+a+n<<2):(p=(-s+b)*t-a+n<<2,u=b*i+n<<2),0==l)o[u]=e[p],o[u+1]=e[p+1],o[u+2]=e[p+2],o[u+3]=e[p+3];else if(1==l){var m=e[p+3]*(1/255),h=e[p]*m,g=e[p+1]*m,x=e[p+2]*m,f=o[u+3]*(1/255),y=o[u]*f,S=o[u+1]*f,C=o[u+2]*f;const t=1-m,n=m+f*t,i=0==n?0:1/n;o[u+3]=255*n,o[u+0]=(h+y*t)*i,o[u+1]=(g+S*t)*i,o[u+2]=(x+C*t)*i}else if(2==l)m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C?(o[u]=0,o[u+1]=0,o[u+2]=0,o[u+3]=0):(o[u]=h,o[u+1]=g,o[u+2]=x,o[u+3]=m);else if(3==l){if(m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C)continue;if(m<220&&f>20)return!1}return!0}return{decode:function(t){const r=new Uint8Array(t);let a=8;const s=e,c=s.readUshort,d=s.readUint,p={tabs:{},frames:[]},u=new Uint8Array(r.length);let m,h=0,g=0;const x=[137,80,78,71,13,10,26,10];for(var f=0;f<8;f++)if(r[f]!=x[f])throw"The input is not a PNG file!";for(;a<r.length;){const e=s.readUint(r,a);a+=4;const t=s.readASCII(r,a,4);if(a+=4,"IHDR"==t)l(r,a,p);else if("iCCP"==t){for(var y=a;0!=r[y];)y++;s.readASCII(r,a,y-a),r[y+1];const n=r.slice(y+2,a+e);let l=null;try{l=o(n)}catch(w){l=i(n)}p.tabs[t]=l}else if("CgBI"==t)p.tabs[t]=r.slice(a,a+4);else if("IDAT"==t){for(f=0;f<e;f++)u[h+f]=r[a+f];h+=e}else if("acTL"==t)p.tabs[t]={num_frames:d(r,a),num_plays:d(r,a+4)},m=new Uint8Array(r.length);else if("fcTL"==t){0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height),g=0);const e={x:d(r,a+12),y:d(r,a+16),width:d(r,a+4),height:d(r,a+8)};let t=c(r,a+22);t=c(r,a+20)/(0==t?100:t);const o={rect:e,delay:Math.round(1e3*t),dispose:r[a+24],blend:r[a+25]};p.frames.push(o)}else if("fdAT"==t){for(f=0;f<e-4;f++)m[g+f]=r[a+f+4];g+=e-4}else if("pHYs"==t)p.tabs[t]=[s.readUint(r,a),s.readUint(r,a+4),r[a+8]];else if("cHRM"==t)for(p.tabs[t]=[],f=0;f<8;f++)p.tabs[t].push(s.readUint(r,a+4*f));else if("tEXt"==t||"zTXt"==t){null==p.tabs[t]&&(p.tabs[t]={});var S=s.nextZero(r,a),C=s.readASCII(r,a,S-a),b=a+e-S-1;if("tEXt"==t)v=s.readASCII(r,S+1,b);else{var $=o(r.slice(S+2,S+2+b));v=s.readUTF8($,0,$.length)}p.tabs[t][C]=v}else if("iTXt"==t){null==p.tabs[t]&&(p.tabs[t]={}),S=0,y=a,S=s.nextZero(r,y),C=s.readASCII(r,y,S-y);const n=r[y=S+1];var v;r[y+1],y+=2,S=s.nextZero(r,y),s.readASCII(r,y,S-y),y=S+1,S=s.nextZero(r,y),s.readUTF8(r,y,S-y),b=e-((y=S+1)-a),0==n?v=s.readUTF8(r,y,b):($=o(r.slice(y,y+b)),v=s.readUTF8($,0,$.length)),p.tabs[t][C]=v}else if("PLTE"==t)p.tabs[t]=s.readBytes(r,a,e);else if("hIST"==t){const e=p.tabs.PLTE.length/3;for(p.tabs[t]=[],f=0;f<e;f++)p.tabs[t].push(c(r,a+2*f))}else if("tRNS"==t)3==p.ctype?p.tabs[t]=s.readBytes(r,a,e):0==p.ctype?p.tabs[t]=c(r,a):2==p.ctype&&(p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]);else if("gAMA"==t)p.tabs[t]=s.readUint(r,a)/1e5;else if("sRGB"==t)p.tabs[t]=r[a];else if("bKGD"==t)0==p.ctype||4==p.ctype?p.tabs[t]=[c(r,a)]:2==p.ctype||6==p.ctype?p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]:3==p.ctype&&(p.tabs[t]=r[a]);else if("IEND"==t)break;a+=e,s.readUint(r,a),a+=4}var E;return 0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height)),p.data=n(p,u,p.width,p.height),delete p.compress,delete p.interlace,delete p.filter,p},toRGBA8:function(e){const n=e.width,o=e.height;if(null==e.tabs.acTL)return[t(e.data,n,o,e).buffer];const i=[];null==e.frames[0].data&&(e.frames[0].data=e.data);const r=n*o*4,a=new Uint8Array(r),s=new Uint8Array(r),l=new Uint8Array(r);for(let p=0;p<e.frames.length;p++){const u=e.frames[p],m=u.rect.x,h=u.rect.y,g=u.rect.width,x=u.rect.height,f=t(u.data,g,x,e);if(0!=p)for(var d=0;d<r;d++)l[d]=a[d];if(0==u.blend?c(f,g,x,a,n,o,m,h,0):1==u.blend&&c(f,g,x,a,n,o,m,h,1),i.push(a.buffer.slice(0)),0==u.dispose);else if(1==u.dispose)c(s,g,x,a,n,o,m,h,0);else if(2==u.dispose)for(d=0;d<r;d++)a[d]=l[d]}return i},_paeth:s,_copyTile:c,_bin:e}}();!function(){const{_copyTile:e}=UPNG,{_bin:t}=UPNG,n=UPNG._paeth;var o={table:function(){const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update(e,t,n,i){for(let r=0;r<i;r++)e=o.table[255&(e^t[n+r])]^e>>>8;return e},crc:(e,t,n)=>4294967295^o.update(4294967295,e,t,n)};function i(e,t,n,o){t[n]+=e[0]*o>>4,t[n+1]+=e[1]*o>>4,t[n+2]+=e[2]*o>>4,t[n+3]+=e[3]*o>>4}function r(e){return Math.max(0,Math.min(255,e))}function a(e,t){const n=e[0]-t[0],o=e[1]-t[1],i=e[2]-t[2],r=e[3]-t[3];return n*n+o*o+i*i+r*r}function s(e,t,n,o,s,l,c){null==c&&(c=1);const d=o.length,p=[];for(var u=0;u<d;u++){const e=o[u];p.push([e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255])}for(u=0;u<d;u++){let e=4294967295;for(var m=0,h=0;h<d;h++){var g=a(p[u],p[h]);h!=u&&g<e&&(e=g,m=h)}}const x=new Uint32Array(s.buffer),f=new Int16Array(t*n*4),y=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(u=0;u<y.length;u++)y[u]=255*((y[u]+.5)/16-.5);for(let C=0;C<n;C++)for(let s=0;s<t;s++){var S;u=4*(C*t+s),2!=c?S=[r(e[u]+f[u]),r(e[u+1]+f[u+1]),r(e[u+2]+f[u+2]),r(e[u+3]+f[u+3])]:(g=y[4*(3&C)+(3&s)],S=[r(e[u]+g),r(e[u+1]+g),r(e[u+2]+g),r(e[u+3]+g)]),m=0;let b=16777215;for(h=0;h<d;h++){const e=a(S,p[h]);e<b&&(b=e,m=h)}const $=p[m],v=[S[0]-$[0],S[1]-$[1],S[2]-$[2],S[3]-$[3]];1==c&&(s!=t-1&&i(v,f,u+4,7),C!=n-1&&(0!=s&&i(v,f,u+4*t-4,3),i(v,f,u+4*t,5),s!=t-1&&i(v,f,u+4*t+4,1))),l[u>>2]=m,x[u>>2]=o[m]}}function l(e,n,i,r,a){null==a&&(a={});const{crc:s}=o,l=t.writeUint,c=t.writeUshort,d=t.writeASCII;let p=8;const u=e.frames.length>1;let m,h=!1,g=33+(u?20:0);if(null!=a.sRGB&&(g+=13),null!=a.pHYs&&(g+=21),null!=a.iCCP&&(m=pako.deflate(a.iCCP),g+=21+m.length+4),3==e.ctype){for(var x=e.plte.length,f=0;f<x;f++)e.plte[f]>>>24!=255&&(h=!0);g+=8+3*x+4+(h?8+1*x+4:0)}for(var y=0;y<e.frames.length;y++)u&&(g+=38),g+=($=e.frames[y]).cimg.length+12,0!=y&&(g+=4);g+=12;const S=new Uint8Array(g),C=[137,80,78,71,13,10,26,10];for(f=0;f<8;f++)S[f]=C[f];if(l(S,p,13),p+=4,d(S,p,"IHDR"),p+=4,l(S,p,n),p+=4,l(S,p,i),p+=4,S[p]=e.depth,p++,S[p]=e.ctype,p++,S[p]=0,p++,S[p]=0,p++,S[p]=0,p++,l(S,p,s(S,p-17,17)),p+=4,null!=a.sRGB&&(l(S,p,1),p+=4,d(S,p,"sRGB"),p+=4,S[p]=a.sRGB,p++,l(S,p,s(S,p-5,5)),p+=4),null!=a.iCCP){const e=13+m.length;l(S,p,e),p+=4,d(S,p,"iCCP"),p+=4,d(S,p,"ICC profile"),p+=11,p+=2,S.set(m,p),p+=m.length,l(S,p,s(S,p-(e+4),e+4)),p+=4}if(null!=a.pHYs&&(l(S,p,9),p+=4,d(S,p,"pHYs"),p+=4,l(S,p,a.pHYs[0]),p+=4,l(S,p,a.pHYs[1]),p+=4,S[p]=a.pHYs[2],p++,l(S,p,s(S,p-13,13)),p+=4),u&&(l(S,p,8),p+=4,d(S,p,"acTL"),p+=4,l(S,p,e.frames.length),p+=4,l(S,p,null!=a.loop?a.loop:0),p+=4,l(S,p,s(S,p-12,12)),p+=4),3==e.ctype){for(l(S,p,3*(x=e.plte.length)),p+=4,d(S,p,"PLTE"),p+=4,f=0;f<x;f++){const t=3*f,n=e.plte[f],o=255&n,i=n>>>8&255,r=n>>>16&255;S[p+t+0]=o,S[p+t+1]=i,S[p+t+2]=r}if(p+=3*x,l(S,p,s(S,p-3*x-4,3*x+4)),p+=4,h){for(l(S,p,x),p+=4,d(S,p,"tRNS"),p+=4,f=0;f<x;f++)S[p+f]=e.plte[f]>>>24&255;p+=x,l(S,p,s(S,p-x-4,x+4)),p+=4}}let b=0;for(y=0;y<e.frames.length;y++){var $=e.frames[y];u&&(l(S,p,26),p+=4,d(S,p,"fcTL"),p+=4,l(S,p,b++),p+=4,l(S,p,$.rect.width),p+=4,l(S,p,$.rect.height),p+=4,l(S,p,$.rect.x),p+=4,l(S,p,$.rect.y),p+=4,c(S,p,r[y]),p+=2,c(S,p,1e3),p+=2,S[p]=$.dispose,p++,S[p]=$.blend,p++,l(S,p,s(S,p-30,30)),p+=4);const t=$.cimg;l(S,p,(x=t.length)+(0==y?0:4)),p+=4;const n=p;d(S,p,0==y?"IDAT":"fdAT"),p+=4,0!=y&&(l(S,p,b++),p+=4),S.set(t,p),p+=x,l(S,p,s(S,n,p-n)),p+=4}return l(S,p,0),p+=4,d(S,p,"IEND"),p+=4,l(S,p,s(S,p-4,4)),p+=4,S.buffer}function c(e,t,n){for(let o=0;o<e.frames.length;o++){const i=e.frames[o];i.rect.width;const r=i.rect.height,a=new Uint8Array(r*i.bpl+r);i.cimg=m(i.img,r,i.bpp,i.bpl,a,t,n)}}function d(t,n,o,i,r){const a=r[0],l=r[1],c=r[2],d=r[3],m=r[4],h=r[5];let x=6,f=8,y=255;for(var S=0;S<t.length;S++){const e=new Uint8Array(t[S]);for(var C=e.length,b=0;b<C;b+=4)y&=e[b+3]}const $=255!=y,v=function(t,n,o,i,r,a){const s=[];for(var l=0;l<t.length;l++){const p=new Uint8Array(t[l]),m=new Uint32Array(p.buffer);var c;let g=0,x=0,f=n,y=o,S=i?1:0;if(0!=l){const C=a||i||1==l||0!=s[l-2].dispose?1:2;let b=0,$=1e9;for(let e=0;e<C;e++){var d=new Uint8Array(t[l-1-e]);const i=new Uint32Array(t[l-1-e]);let a=n,s=o,c=-1,p=-1;for(let e=0;e<o;e++)for(let t=0;t<n;t++)m[h=e*n+t]!=i[h]&&(t<a&&(a=t),t>c&&(c=t),e<s&&(s=e),e>p&&(p=e));-1==c&&(a=s=c=p=0),r&&(!(1&~a)&&a--,!(1&~s)&&s--);const u=(c-a+1)*(p-s+1);u<$&&($=u,b=e,g=a,x=s,f=c-a+1,y=p-s+1)}d=new Uint8Array(t[l-1-b]),1==b&&(s[l-1].dispose=2),c=new Uint8Array(f*y*4),e(d,n,o,c,f,y,-g,-x,0),S=e(p,n,o,c,f,y,-g,-x,3)?1:0,1==S?u(p,n,o,c,{x:g,y:x,width:f,height:y}):e(p,n,o,c,f,y,-g,-x,0)}else c=p.slice(0);s.push({rect:{x:g,y:x,width:f,height:y},img:c,blend:S,dispose:0})}if(i)for(l=0;l<s.length;l++){if(1==(g=s[l]).blend)continue;const e=g.rect,i=s[l-1].rect,a=Math.min(e.x,i.x),c=Math.min(e.y,i.y),d={x:a,y:c,width:Math.max(e.x+e.width,i.x+i.width)-a,height:Math.max(e.y+e.height,i.y+i.height)-c};s[l-1].dispose=1,l-1!=0&&p(t,n,o,s,l-1,d,r),p(t,n,o,s,l,d,r)}let m=0;if(1!=t.length)for(var h=0;h<s.length;h++){var g;m+=(g=s[h]).rect.width*g.rect.height}return s}(t,n,o,a,l,c),E={},w=[],R=[];if(0!=i){const e=[];for(b=0;b<v.length;b++)e.push(v[b].img.buffer);const t=g(function(e){let t=0;for(var n=0;n<e.length;n++)t+=e[n].byteLength;const o=new Uint8Array(t);let i=0;for(n=0;n<e.length;n++){const t=new Uint8Array(e[n]),r=t.length;for(let e=0;e<r;e+=4){let n=t[e],r=t[e+1],a=t[e+2];const s=t[e+3];0==s&&(n=r=a=0),o[i+e]=n,o[i+e+1]=r,o[i+e+2]=a,o[i+e+3]=s}i+=r}return o.buffer}(e),i);for(b=0;b<t.plte.length;b++)w.push(t.plte[b].est.rgba);let n=0;for(b=0;b<v.length;b++){const e=(j=v[b]).img.length;var A=new Uint8Array(t.inds.buffer,n>>2,e>>2);R.push(A);const o=new Uint8Array(t.abuf,n,e);h&&s(j.img,j.rect.width,j.rect.height,w,o,A),j.img.set(o),n+=e}}else for(S=0;S<v.length;S++){var j=v[S];const e=new Uint32Array(j.img.buffer);var T=j.rect.width;for(C=e.length,A=new Uint8Array(C),R.push(A),b=0;b<C;b++){const t=e[b];if(0!=b&&t==e[b-1])A[b]=A[b-1];else if(b>T&&t==e[b-T])A[b]=A[b-T];else{let e=E[t];if(null==e&&(E[t]=e=w.length,w.push(t),w.length>=300))break;A[b]=e}}}const I=w.length;for(I<=256&&0==m&&(f=I<=2?1:I<=4?2:I<=16?4:8,f=Math.max(f,d)),S=0;S<v.length;S++){(j=v[S]).rect.x,j.rect.y,T=j.rect.width;const e=j.rect.height;let t=j.img;new Uint32Array(t.buffer);let n=4*T,o=4;if(I<=256&&0==m){n=Math.ceil(f*T/8);var k=new Uint8Array(n*e);const i=R[S];for(let t=0;t<e;t++){b=t*n;const e=t*T;if(8==f)for(var L=0;L<T;L++)k[b+L]=i[e+L];else if(4==f)for(L=0;L<T;L++)k[b+(L>>1)]|=i[e+L]<<4-4*(1&L);else if(2==f)for(L=0;L<T;L++)k[b+(L>>2)]|=i[e+L]<<6-2*(3&L);else if(1==f)for(L=0;L<T;L++)k[b+(L>>3)]|=i[e+L]<<7-1*(7&L)}t=k,x=3,o=1}else if(0==$&&1==v.length){k=new Uint8Array(T*e*3);const i=T*e;for(b=0;b<i;b++){const e=3*b,n=4*b;k[e]=t[n],k[e+1]=t[n+1],k[e+2]=t[n+2]}t=k,x=2,o=3,n=3*T}j.img=t,j.bpl=n,j.bpp=o}return{ctype:x,depth:f,plte:w,frames:v}}function p(t,n,o,i,r,a,s){const l=Uint8Array,c=Uint32Array,d=new l(t[r-1]),p=new c(t[r-1]),m=r+1<t.length?new l(t[r+1]):null,h=new l(t[r]),g=new c(h.buffer);let x=n,f=o,y=-1,S=-1;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++){const o=a.x+t,s=a.y+e,l=s*n+o,c=g[l];0==c||0==i[r-1].dispose&&p[l]==c&&(null==m||0!=m[4*l+3])||(o<x&&(x=o),o>y&&(y=o),s<f&&(f=s),s>S&&(S=s))}-1==y&&(x=f=y=S=0),s&&(!(1&~x)&&x--,!(1&~f)&&f--),a={x:x,y:f,width:y-x+1,height:S-f+1};const C=i[r];C.rect=a,C.blend=1,C.img=new Uint8Array(a.width*a.height*4),0==i[r-1].dispose?(e(d,n,o,C.img,a.width,a.height,-a.x,-a.y,0),u(h,n,o,C.img,a)):e(h,n,o,C.img,a.width,a.height,-a.x,-a.y,0)}function u(t,n,o,i,r){e(t,n,o,i,r.width,r.height,-r.x,-r.y,2)}function m(e,t,n,o,i,r,a){const s=[];let l,c=[0,1,2,3,4];-1!=r?c=[r]:(t*o>5e5||1==n)&&(c=[0]),a&&(l={level:0});const d=UZIP;for(var p=0;p<c.length;p++){for(let r=0;r<t;r++)h(i,e,r,o,n,c[p]);s.push(d.deflate(i,l))}let u,m=1e9;for(p=0;p<s.length;p++)s[p].length<m&&(u=p,m=s[p].length);return s[u]}function h(e,t,o,i,r,a){const s=o*i;let l=s+o;if(e[l]=a,l++,0==a)if(i<500)for(var c=0;c<i;c++)e[l+c]=t[s+c];else e.set(new Uint8Array(t.buffer,s,i),l);else if(1==a){for(c=0;c<r;c++)e[l+c]=t[s+c];for(c=r;c<i;c++)e[l+c]=t[s+c]-t[s+c-r]+256&255}else if(0==o){for(c=0;c<r;c++)e[l+c]=t[s+c];if(2==a)for(c=r;c<i;c++)e[l+c]=t[s+c];if(3==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-(t[s+c-r]>>1)+256&255;if(4==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-n(t[s+c-r],0,0)+256&255}else{if(2==a)for(c=0;c<i;c++)e[l+c]=t[s+c]+256-t[s+c-i]&255;if(3==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-(t[s+c-i]>>1)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-(t[s+c-i]+t[s+c-r]>>1)&255}if(4==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-n(0,t[s+c-i],0)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-n(t[s+c-r],t[s+c-i],t[s+c-r-i])&255}}}function g(e,t){const n=new Uint8Array(e),o=n.slice(0),i=new Uint32Array(o.buffer),r=x(o,t),a=r[0],s=r[1],l=n.length,c=new Uint8Array(l>>2);let d;if(n.length<2e7)for(var p=0;p<l;p+=4)d=f(a,u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255)),c[p>>2]=d.ind,i[p>>2]=d.est.rgba;else for(p=0;p<l;p+=4){var u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255);for(d=a;d.left;)d=y(d.est,u,m,h,g)<=0?d.left:d.right;c[p>>2]=d.ind,i[p>>2]=d.est.rgba}return{abuf:o.buffer,inds:c,plte:s}}function x(e,t,n){null==n&&(n=1e-4);const o=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=b(e,i.i0,i.i1),i.est=$(i.bst);const r=[i];for(;r.length<t;){let t=0,i=0;for(var a=0;a<r.length;a++)r[a].est.L>t&&(t=r[a].est.L,i=a);if(t<n)break;const s=r[i],l=S(e,o,s.i0,s.i1,s.est.e,s.est.eMq255);if(s.i0>=l||s.i1<=l){s.est.L=0;continue}const c={i0:s.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};c.bst=b(e,c.i0,c.i1),c.est=$(c.bst);const d={i0:l,i1:s.i1,bst:null,est:null,tdst:0,left:null,right:null};for(d.bst={R:[],m:[],N:s.bst.N-c.bst.N},a=0;a<16;a++)d.bst.R[a]=s.bst.R[a]-c.bst.R[a];for(a=0;a<4;a++)d.bst.m[a]=s.bst.m[a]-c.bst.m[a];d.est=$(d.bst),s.left=c,s.right=d,r[i]=c,r.push(d)}for(r.sort((e,t)=>t.bst.N-e.bst.N),a=0;a<r.length;a++)r[a].ind=a;return[i,r]}function f(e,t,n,o,i){if(null==e.left)return e.tdst=function(e,t,n,o,i){const r=t-e[0],a=n-e[1],s=o-e[2],l=i-e[3];return r*r+a*a+s*s+l*l}(e.est.q,t,n,o,i),e;const r=y(e.est,t,n,o,i);let a=e.left,s=e.right;r>0&&(a=e.right,s=e.left);const l=f(a,t,n,o,i);if(l.tdst<=r*r)return l;const c=f(s,t,n,o,i);return c.tdst<l.tdst?c:l}function y(e,t,n,o,i){const{e:r}=e;return r[0]*t+r[1]*n+r[2]*o+r[3]*i-e.eMq}function S(e,t,n,o,i,r){for(o-=4;n<o;){for(;C(e,n,i)<=r;)n+=4;for(;C(e,o,i)>r;)o-=4;if(n>=o)break;const a=t[n>>2];t[n>>2]=t[o>>2],t[o>>2]=a,n+=4,o-=4}for(;C(e,n,i)>r;)n-=4;return n+4}function C(e,t,n){return e[t]*n[0]+e[t+1]*n[1]+e[t+2]*n[2]+e[t+3]*n[3]}function b(e,t,n){const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],r=n-t>>2;for(let a=t;a<n;a+=4){const t=e[a]*(1/255),n=e[a+1]*(1/255),r=e[a+2]*(1/255),s=e[a+3]*(1/255);i[0]+=t,i[1]+=n,i[2]+=r,i[3]+=s,o[0]+=t*t,o[1]+=t*n,o[2]+=t*r,o[3]+=t*s,o[5]+=n*n,o[6]+=n*r,o[7]+=n*s,o[10]+=r*r,o[11]+=r*s,o[15]+=s*s}return o[4]=o[1],o[8]=o[2],o[9]=o[6],o[12]=o[3],o[13]=o[7],o[14]=o[11],{R:o,m:i,N:r}}function $(e){const{R:t}=e,{m:n}=e,{N:o}=e,i=n[0],r=n[1],a=n[2],s=n[3],l=0==o?0:1/o,c=[t[0]-i*i*l,t[1]-i*r*l,t[2]-i*a*l,t[3]-i*s*l,t[4]-r*i*l,t[5]-r*r*l,t[6]-r*a*l,t[7]-r*s*l,t[8]-a*i*l,t[9]-a*r*l,t[10]-a*a*l,t[11]-a*s*l,t[12]-s*i*l,t[13]-s*r*l,t[14]-s*a*l,t[15]-s*s*l],d=c,p=v;let u=[Math.random(),Math.random(),Math.random(),Math.random()],m=0,h=0;if(0!=o)for(let x=0;x<16&&(u=p.multVec(d,u),h=Math.sqrt(p.dot(u,u)),u=p.sml(1/h,u),!(0!=x&&Math.abs(h-m)<1e-9));x++)m=h;const g=[i*l,r*l,a*l,s*l];return{Cov:c,q:g,e:u,L:m,eMq255:p.dot(p.sml(255,g),u),eMq:p.dot(u,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0]))>>>0}}var v={multVec:(e,t)=>[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]],dot:(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],sml:(e,t)=>[e*t[0],e*t[1],e*t[2],e*t[3]]};UPNG.encode=function(e,t,n,o,i,r,a){null==o&&(o=0),null==a&&(a=!1);const s=d(e,t,n,o,[!1,!1,!1,0,a,!1]);return c(s,-1),l(s,t,n,i,r)},UPNG.encodeLL=function(e,t,n,o,i,r,a,s){const d={ctype:0+(1==o?0:2)+(0==i?0:4),depth:r,frames:[]},p=(o+i)*r,u=p*t;for(let l=0;l<e.length;l++)d.frames.push({rect:{x:0,y:0,width:t,height:n},img:new Uint8Array(e[l]),blend:0,dispose:1,bpp:Math.ceil(p/8),bpl:Math.ceil(u/8)});return c(d,0,!0),l(d,t,n,a,s)},UPNG.encode.compress=d,UPNG.encode.dither=s,UPNG.quantize=g,UPNG.quantize.getKDtree=x,UPNG.quantize.getNearest=f}();const r={toArrayBuffer(e,t){const n=e.width,o=e.height,i=n<<2,a=e.getContext("2d").getImageData(0,0,n,o),s=new Uint32Array(a.data.buffer),l=(32*n+31)/32<<2,c=l*o,d=122+c,p=new ArrayBuffer(d),u=new DataView(p),m=1<<20;let h,g,x,f,y=m,S=0,C=0,b=0;function $(e){u.setUint16(C,e,!0),C+=2}function v(e){u.setUint32(C,e,!0),C+=4}function E(e){C+=e}$(19778),v(d),E(4),v(122),v(108),v(n),v(-o>>>0),$(1),$(32),v(3),v(c),v(2835),v(2835),E(8),v(16711680),v(65280),v(255),v(4278190080),v(1466527264),function e(){for(;S<o&&y>0;){for(f=122+S*l,h=0;h<i;)y--,g=s[b++],x=g>>>24,u.setUint32(f+h,g<<8|x),h+=4;S++}b<s.length?(y=m,setTimeout(e,r._dly)):t(p)}()},toBlob(e,t){this.toArrayBuffer(e,e=>{t(new Blob([e],{type:"image/bmp"}))})},_dly:9};var i={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},o={[i.CHROME]:16384,[i.FIREFOX]:11180,[i.DESKTOP_SAFARI]:16384,[i.IE]:8192,[i.IOS]:4096,[i.ETC]:8192};const a="undefined"!=typeof window,s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,f=a&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),CustomFile=(a||s)&&(f&&f.getOriginalSymbol(window,"File")||"undefined"!=typeof File&&File),CustomFileReader=(a||s)&&(f&&f.getOriginalSymbol(window,"FileReader")||"undefined"!=typeof FileReader&&FileReader);function getFilefromDataUrl(e,t,n=Date.now()){return new Promise(o=>{const i=e.split(","),r=i[0].match(/:(.*?);/)[1],a=globalThis.atob(i[1]);let s=a.length;const l=new Uint8Array(s);for(;s--;)l[s]=a.charCodeAt(s);const c=new Blob([l],{type:r});c.name=t,c.lastModified=n,o(c)})}function getDataUrlFromFile(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=()=>t(o.result),o.onerror=e=>n(e),o.readAsDataURL(e)})}function loadImage(e){return new Promise((t,n)=>{const o=new Image;o.onload=()=>t(o),o.onerror=e=>n(e),o.src=e})}function getBrowserName(){if(void 0!==getBrowserName.cachedResult)return getBrowserName.cachedResult;let e=i.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?e=i.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?e=i.IOS:/Safari/i.test(t)?e=i.DESKTOP_SAFARI:/Firefox/i.test(t)?e=i.FIREFOX:(/MSIE/i.test(t)||1==!!document.documentMode)&&(e=i.IE),getBrowserName.cachedResult=e,getBrowserName.cachedResult}function approximateBelowMaximumCanvasSizeOfBrowser(e,t){const n=getBrowserName(),i=o[n];let r=e,a=t,s=r*a;const l=r>a?a/r:r/a;for(;s>i*i;){const e=(i+r)/2,t=(i+a)/2;e<t?(a=t,r=t*l):(a=e*l,r=e),s=r*a}return{width:r,height:a}}function getNewCanvasAndCtx(e,t){let n,o;try{if(n=new OffscreenCanvas(e,t),o=n.getContext("2d"),null===o)throw new Error("getContext of OffscreenCanvas returns null")}catch(i){n=document.createElement("canvas"),o=n.getContext("2d")}return n.width=e,n.height=t,[n,o]}function drawImageInCanvas(e,t){const{width:n,height:o}=approximateBelowMaximumCanvasSizeOfBrowser(e.width,e.height),[i,r]=getNewCanvasAndCtx(n,o);return t&&/jpe?g/.test(t)&&(r.fillStyle="white",r.fillRect(0,0,i.width,i.height)),r.drawImage(e,0,0,i.width,i.height),i}function isIOS(){return void 0!==isIOS.cachedResult||(isIOS.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"undefined"!=typeof document&&"ontouchend"in document),isIOS.cachedResult}function drawFileInCanvas(e,t={}){return new Promise(function(n,o){let r,a;var s=function(){try{return a=drawImageInCanvas(r,t.fileType||e.type),n([r,a])}catch(i){return o(i)}},l=function(t){try{var n=function(e){try{throw e}catch(t){return o(t)}};try{let t;return getDataUrlFromFile(e).then(function(e){try{return t=e,loadImage(t).then(function(e){try{return r=e,function(){try{return s()}catch(e){return o(e)}}()}catch(t){return n(t)}},n)}catch(i){return n(i)}},n)}catch(i){n(i)}}catch(i){return o(i)}};try{if(isIOS()||[i.DESKTOP_SAFARI,i.MOBILE_SAFARI].includes(getBrowserName()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then(function(e){try{return r=e,s()}catch(t){return l()}},l)}catch(c){l()}})}function canvasToFile(e,t,n,o,i=1){return new Promise(function(a,s){let l;if("image/png"===t){let r,a,s;return r=e.getContext("2d"),({data:a}=r.getImageData(0,0,e.width,e.height)),s=UPNG.encode([a.buffer],e.width,e.height,4096*i),l=new Blob([s],{type:t}),l.name=n,l.lastModified=o,c.call(this)}{let a=function(){return c.call(this)};if("image/bmp"===t)return new Promise(t=>r.toBlob(e,t)).then(function(e){try{return l=e,l.name=n,l.lastModified=o,a.call(this)}catch(t){return s(t)}}.bind(this),s);{let r=function(){return a.call(this)};if("function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas)return e.convertToBlob({type:t,quality:i}).then(function(e){try{return l=e,l.name=n,l.lastModified=o,r.call(this)}catch(t){return s(t)}}.bind(this),s);{let a;return a=e.toDataURL(t,i),getFilefromDataUrl(a,n,o).then(function(e){try{return l=e,r.call(this)}catch(t){return s(t)}}.bind(this),s)}}}function c(){return a(l)}})}function cleanupCanvasMemory(e){e.width=0,e.height=0}function isAutoOrientationInBrowser(){return new Promise(function(e,t){let n,o,i,r;return void 0!==isAutoOrientationInBrowser.cachedResult?e(isAutoOrientationInBrowser.cachedResult):getFilefromDataUrl("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(a){try{return n=a,drawFileInCanvas(n).then(function(a){try{return o=a[1],canvasToFile(o,n.type,n.name,n.lastModified).then(function(n){try{return i=n,cleanupCanvasMemory(o),drawFileInCanvas(i).then(function(n){try{return r=n[0],isAutoOrientationInBrowser.cachedResult=1===r.width&&2===r.height,e(isAutoOrientationInBrowser.cachedResult)}catch(o){return t(o)}},t)}catch(a){return t(a)}},t)}catch(s){return t(s)}},t)}catch(s){return t(s)}},t)})}function getExifOrientation(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=e=>{const n=new DataView(e.target.result);if(65496!=n.getUint16(0,!1))return t(-2);const o=n.byteLength;let i=2;for(;i<o;){if(n.getUint16(i+2,!1)<=8)return t(-1);const e=n.getUint16(i,!1);if(i+=2,65505==e){if(1165519206!=n.getUint32(i+=2,!1))return t(-1);const e=18761==n.getUint16(i+=6,!1);i+=n.getUint32(i+4,e);const o=n.getUint16(i,e);i+=2;for(let r=0;r<o;r++)if(274==n.getUint16(i+12*r,e))return t(n.getUint16(i+12*r+8,e))}else{if(65280&~e)break;i+=n.getUint16(i,!1)}}return t(-1)},o.onerror=e=>n(e),o.readAsArrayBuffer(e)})}function handleMaxWidthOrHeight(e,t){const{width:n}=e,{height:o}=e,{maxWidthOrHeight:i}=t;let r,a=e;return isFinite(i)&&(n>i||o>i)&&([a,r]=getNewCanvasAndCtx(n,o),n>o?(a.width=i,a.height=o/n*i):(a.width=n/o*i,a.height=i),r.drawImage(e,0,0,a.width,a.height),cleanupCanvasMemory(e)),a}function followExifOrientation(e,t){const{width:n}=e,{height:o}=e,[i,r]=getNewCanvasAndCtx(n,o);switch(t>4&&t<9?(i.width=o,i.height=n):(i.width=n,i.height=o),t){case 2:r.transform(-1,0,0,1,n,0);break;case 3:r.transform(-1,0,0,-1,n,o);break;case 4:r.transform(1,0,0,-1,0,o);break;case 5:r.transform(0,1,1,0,0,0);break;case 6:r.transform(0,1,-1,0,o,0);break;case 7:r.transform(0,-1,-1,0,o,n);break;case 8:r.transform(0,-1,1,0,0,n)}return r.drawImage(e,0,0,n,o),cleanupCanvasMemory(e),i}function compress(e,t,n=0){return new Promise(function(o,i){let r,a,s,l,c,d,p,u,m,h,g,x,f,y,S,C,b,$,v,E;function w(e=5){if(t.signal&&t.signal.aborted)throw t.signal.reason;r+=e,t.onProgress(Math.min(r,100))}function R(e){if(t.signal&&t.signal.aborted)throw t.signal.reason;r=Math.min(Math.max(e,r),100),t.onProgress(r)}return r=n,a=t.maxIteration||10,s=1024*t.maxSizeMB*1024,w(),drawFileInCanvas(e,t).then(function(n){try{return[,l]=n,w(),c=handleMaxWidthOrHeight(l,t),w(),new Promise(function(n,o){var i;if(!(i=t.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,r.call(this)}catch(t){return o(t)}}.bind(this),o);function r(){return n(i)}return r.call(this)}).then(function(n){try{return d=n,w(),isAutoOrientationInBrowser().then(function(n){try{return p=n?c:followExifOrientation(c,d),w(),u=t.initialQuality||1,m=t.fileType||e.type,canvasToFile(p,m,e.name,e.lastModified,u).then(function(n){try{{let d=function(){if(a--&&(S>s||S>f)){let t,n;return t=E?.95*v.width:v.width,n=E?.95*v.height:v.height,[b,$]=getNewCanvasAndCtx(t,n),$.drawImage(v,0,0,t,n),u*="image/png"===m?.85:.95,canvasToFile(b,m,e.name,e.lastModified,u).then(function(e){try{return C=e,cleanupCanvasMemory(v),v=b,S=C.size,R(Math.min(99,Math.floor((y-S)/(y-s)*100))),d}catch(t){return i(t)}},i)}return[1]},A=function(){return cleanupCanvasMemory(v),cleanupCanvasMemory(b),cleanupCanvasMemory(c),cleanupCanvasMemory(p),cleanupCanvasMemory(l),R(100),o(C)};return h=n,w(),g=h.size>s,x=h.size>e.size,g||x?(f=e.size,y=h.size,S=y,v=p,E=!t.alwaysKeepResolution&&g,(r=function(e){for(;e;){if(e.then)return void e.then(r,i);try{if(e.pop){if(e.length)return e.pop()?A.call(this):e;e=d}else e=e.call(this)}catch(t){return i(t)}}}.bind(this))(d)):(R(100),o(h));var r}}catch(d){return i(d)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)})}const l="\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n})\n";let c;function compressOnWebWorker(e,t){return new Promise((n,o)=>{c||(c=function(e){const t=[];return t.push(e),URL.createObjectURL(new Blob(t))}(l));const i=new Worker(c);i.addEventListener("message",function(e){if(t.signal&&t.signal.aborted)i.terminate();else if(void 0===e.data.progress){if(e.data.error)return o(new Error(e.data.error)),void i.terminate();n(e.data.file),i.terminate()}else t.onProgress(e.data.progress)}),i.addEventListener("error",o),t.signal&&t.signal.addEventListener("abort",()=>{o(t.signal.reason),i.terminate()}),i.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})})}function imageCompression(e,t){return new Promise(function(n,o){let i,r,a,s,l,c;if(i={...t},a=0,({onProgress:s}=i),i.maxSizeMB=i.maxSizeMB||Number.POSITIVE_INFINITY,l="boolean"!=typeof i.useWebWorker||i.useWebWorker,delete i.useWebWorker,i.onProgress=e=>{a=e,"function"==typeof s&&s(a)},!(e instanceof Blob||e instanceof CustomFile))return o(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return o(new Error("The file given is not an image"));if(c="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!l||"function"!=typeof Worker||c)return compress(e,i).then(function(e){try{return r=e,u.call(this)}catch(t){return o(t)}}.bind(this),o);var d=function(){try{return u.call(this)}catch(e){return o(e)}}.bind(this),p=function(t){try{return compress(e,i).then(function(e){try{return r=e,d()}catch(t){return o(t)}},o)}catch(n){return o(n)}};try{return i.libURL=i.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",compressOnWebWorker(e,i).then(function(e){try{return r=e,d()}catch(t){return p()}},p)}catch(m){p()}function u(){try{r.name=e.name,r.lastModified=e.lastModified}catch(m){}try{i.preserveExif&&"image/jpeg"===e.type&&(!i.fileType||i.fileType&&i.fileType===e.type)&&(r=copyExifWithoutOrientation(e,r))}catch(m){}return n(r)}})}imageCompression.getDataUrlFromFile=getDataUrlFromFile,imageCompression.getFilefromDataUrl=getFilefromDataUrl,imageCompression.loadImage=loadImage,imageCompression.drawImageInCanvas=drawImageInCanvas,imageCompression.drawFileInCanvas=drawFileInCanvas,imageCompression.canvasToFile=canvasToFile,imageCompression.getExifOrientation=getExifOrientation,imageCompression.handleMaxWidthOrHeight=handleMaxWidthOrHeight,imageCompression.followExifOrientation=followExifOrientation,imageCompression.cleanupCanvasMemory=cleanupCanvasMemory,imageCompression.isAutoOrientationInBrowser=isAutoOrientationInBrowser,imageCompression.approximateBelowMaximumCanvasSizeOfBrowser=approximateBelowMaximumCanvasSizeOfBrowser,imageCompression.copyExifWithoutOrientation=copyExifWithoutOrientation,imageCompression.getBrowserName=getBrowserName,imageCompression.version="2.0.2";const PDF_MIME_TYPE$1="application/pdf",imageCompressionAcceptableFileTypes=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],RECEIPT_IMAGE_COMPRESSION_OPTIONS={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2},handleImageCompression=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,{useWebWorker:!0,maxWidthOrHeight:900,initialQuality:1,maxSizeMB:1.4}),o=n.lastModified,i=n.type.split("/")[1];let r=`image_${o}.${i}`;null!=t&&(r=`${t}.${i}`);return new File([n],r,{lastModified:o,type:n.type})},compressImageForReceipt=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,RECEIPT_IMAGE_COMPRESSION_OPTIONS),o=n.type.split("/")[1],i=t.replace(/\.[^.]+$/,"")||"image";return new File([n],`${i}.${o}`,{lastModified:e.lastModified,type:n.type})},PDF_RENDER_SCALE=1.5,PDF_JPEG_QUALITY=.7;function canvasToJpegBlob(e,t){return new Promise((n,o)=>{e.toBlob(e=>{null!=e?n(e):o(new Error("canvas.toBlob returned null"))},"image/jpeg",t)})}async function renderPageToJpeg(e,t,n){const o=e.getViewport({scale:t}),i=document.createElement("canvas");i.width=Math.floor(o.width),i.height=Math.floor(o.height);const r=i.getContext("2d");if(null==r)throw new Error("Could not get canvas 2d context");await e.render({canvasContext:r,viewport:o}).promise;return(await canvasToJpegBlob(i,n)).arrayBuffer()}async function compressPdfForReceipt(e,t){const[{PDFDocument:n},o]=await Promise.all([Promise.resolve().then(()=>require("./index-BgQJAw4w.cjs")),Promise.resolve().then(()=>index$2).then(e=>e.pdfjs)]),i=await e.arrayBuffer(),r=await o.getDocument({data:new Uint8Array(i)}).promise,a=r.numPages,s=await n.create();for(let d=1;d<=a;d++){const e=await r.getPage(d),t=await renderPageToJpeg(e,PDF_RENDER_SCALE,PDF_JPEG_QUALITY),n=await s.embedJpg(new Uint8Array(t)),o=n.scale(1);s.addPage([o.width,o.height]).drawImage(n,{x:0,y:0,width:o.width,height:o.height})}const l=await s.save(),c=t.toLowerCase().endsWith(".pdf")?t:`${t}.pdf`;return new File([l],c,{type:PDF_MIME_TYPE$1,lastModified:e.lastModified})}async function compressSingleFile(e,t){const n=e instanceof File?e:new File([e],t,{type:e.type});if(e.type===PDF_MIME_TYPE$1){const o=await compressPdfForReceipt(n,t);return o.size<n.size?{blob:o,name:o.name}:{blob:e,name:t}}const o=await compressImageForReceipt(n,t);return{blob:o,name:o.name}}async function compressReceiptFiles(e,t){const n=await Promise.all(e.map((e,n)=>{const o=t[n]??`file_${n}`;return compressSingleFile(e,o).catch(t=>(console.warn("[compressReceiptFiles] compression failed, using original:",t instanceof Error?t.message:t),{blob:e,name:o}))}));return{blobs:n.map(e=>e.blob),names:n.map(e=>e.name)}}const InputElementMobileCamera=({fileType:e="file",fileRef:t,name:n,value:o="",multiple:i=!1,acceptableTypes:r,onFileSizeError:a,onImageChange:s})=>jsxRuntimeExports.jsx("input",{type:e,ref:t,name:n,value:o,size:1e3,"data-testid":generateDataTestId("input-file-element-mobile",n),onChange:async e=>{const t=e.target.files?.[0],n=t?.size;null!=t&&null!=n?(a?.(!1),s(t),e.target.value=""):(a?.(!0),e.target.value="")},style:{display:"none"},accept:`${(r??"image/jpg, image/jpeg").toString()}`,multiple:i,capture:!0}),MoneyTransferSuccessAnimation=({shouldDisplay:e,width:t=30,height:n=30,styles:o,animationInLoop:i=!1})=>{const[,r]=useMusic(SUCCESS_SOUND_SOURCE),[a]=useAnimation("MoneyTransferSuccess");return React.useEffect(()=>{e&&r(!0)},[e,r]),e&&null!=a?jsxRuntimeExports.jsx(Lottie,{style:{width:t,height:n,...o},play:!0,animationData:a,loop:i,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null};var browserPonyfill={exports:{}},hasRequiredBrowserPonyfill;function requireBrowserPonyfill(){return hasRequiredBrowserPonyfill||(hasRequiredBrowserPonyfill=1,function(e,t){var n,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1,i=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();n=i,function(e){var t=void 0!==n&&n||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1||{},o="URLSearchParams"in t,i="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in t,s="ArrayBuffer"in t;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function x(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(r)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,o,i,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=o?o[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=p(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},m.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},m.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},i&&(m.prototype[Symbol.iterator]=m.prototype.entries);var S=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(e,n){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var o,i,r=(n=n||{}).body;if(e instanceof C){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new m(n.headers)),this.method=(o=n.method||this.method||"GET",i=o.toUpperCase(),S.indexOf(i)>-1?i:o),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function b(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function $(e,t){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},y.call(C.prototype),y.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},$.error=function(){var e=new $(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var v=[301,302,303,307,308];$.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new $(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(w){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function E(n,o){return new Promise(function(i,a){var l=new C(n,o);if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),o=n.shift().trim();if(o){var i=n.join(":").trim();try{t.append(o,i)}catch(r){console.warn("Response "+r.message)}}}),t)};0===l.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout(function(){i(new $(o,n))},0)},c.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(n){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(r?c.responseType="blob":s&&(c.responseType="arraybuffer")),o&&"object"==typeof o.headers&&!(o.headers instanceof m||t.Headers&&o.headers instanceof t.Headers)){var h=[];Object.getOwnPropertyNames(o.headers).forEach(function(e){h.push(d(e)),c.setRequestHeader(e,p(o.headers[e]))}),l.headers.forEach(function(e,t){-1===h.indexOf(t)&&c.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){c.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",u)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=m,t.Request=C,t.Response=$),e.Headers=m,e.Request=C,e.Response=$,e.fetch=E,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=o.fetch?o:i;(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}var browserPonyfillExports=requireBrowserPonyfill();const fetch$1=getDefaultExportFromCjs(browserPonyfillExports),SvgNewVendor=e=>React__namespace.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},React__namespace.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));__webpack_exports__GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${__webpack_exports__version}/pdf.worker.mjs`;const{common:common$3b}=appLocale.getLocalizedStrings(),FileInputElementName$1="invoice",getEffectiveCitationVariant=(e,t,n)=>{if("deleted"===e.variant)return"deleted";if("excluded"===e.variant)return"excluded";return null!=t&&e.statementTransactionId===t||null!=n&&e.statementTransactionId===n?"hovered":e.variant??"default"},findCitationTransactionIdAtPoint=(e,t,n)=>{const o=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const i of o){if("excluded"===i.dataset.citationVariant)continue;const e=i.getBoundingClientRect();if(t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom)return i.dataset.statementTransactionId}},getScrollTargetPageNumber=(e,t)=>{if(null==t)return;const n=e.find(e=>e.statementTransactionId===t);return n?.page},isElementVisibleInContainer=(e,t)=>{const n=e.getBoundingClientRect(),o=null!=t?t.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return n.bottom>o.top&&n.top<o.bottom&&n.right>o.left&&n.left<o.right},getScrollableParent=e=>{let t=e.parentElement;for(;null!=t;){const{overflowY:e}=window.getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null},scrollPageElementIntoView=(e,t,n="smooth")=>{const o=t??getScrollableParent(e);if(null==o)return void e.scrollIntoView({behavior:n,block:"center"});const i=e.getBoundingClientRect(),r=o.getBoundingClientRect(),a=o.scrollTop+(i.top-r.top)-(o.clientHeight-i.height)/2;o.scrollTo({top:Math.max(0,a),behavior:n})};function getPolygonBounds(e){const t=e.map(e=>e.x),n=e.map(e=>e.y);return{maxX:Math.max(...t),maxY:Math.max(...n),minX:Math.min(...t),minY:Math.min(...n)}}function convertPolygonToPercent(e,t,n){const{minX:o,maxX:i,minY:r,maxY:a}=getPolygonBounds(e);return{height:(a-r)/n*100,left:o/t*100,top:r/n*100,width:(i-o)/t*100}}function RenderPdf(e){const[t,n]=React.useState(0),[o,i]=React.useState(void 0),[r,a]=React.useState(null),[s,l]=React.useState(void 0),c=useWindowSizeContext(),d=React.useRef(null),p=React.useRef(null),u=React.useRef(void 0),m=null!=e.highlightedCitations&&e.highlightedCitations.length>0;React.useLayoutEffect(()=>{if(e.isFullScreen)return void i(void 0);const t=p.current;if(null==t)return;const n=()=>{const e=Math.floor(t.clientWidth);e>0&&i(t=>t===e?t:e)};n();const o=new ResizeObserver(n);return o.observe(t),()=>{o.disconnect()}},[e.isFullScreen,e.fileUrl]);const h=t=>{u.current!==t&&(u.current=t,l(t),e.onCitationHover?.(t))},g=e=>{!0===m&&h(findCitationTransactionIdAtPoint(e.currentTarget,e.clientX,e.clientY))},x=()=>{!0===m&&h(void 0)},f=t=>{null!=e.onCitationClick&&e.onCitationClick(findCitationTransactionIdAtPoint(t.currentTarget,t.clientX,t.clientY))},y=React.useCallback(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length)return;const t=getScrollTargetPageNumber(e.highlightedCitations,e.selectedStatementTransactionId);if(null==t)return;const n=p.current?.querySelector(`[data-testid="pdf-page-${t}"]`);if(null!=n){const t=p.current,o=null!=t&&t.scrollHeight>t.clientHeight?t:null,i=(null!=e.selectedStatementTransactionId?n.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??n;if(isElementVisibleInContainer(i,o))return;scrollPageElementIntoView(i,o)}},[e.highlightedCitations,e.selectedStatementTransactionId]);React.useEffect(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length||null==e.selectedStatementTransactionId)return;y();const t=requestAnimationFrame(y),n=window.setTimeout(y,150);return()=>{cancelAnimationFrame(t),window.clearTimeout(n)}},[e.highlightedCitations,e.selectedStatementTransactionId,t,y]),React.useEffect(()=>{a(null),n(0)},[e.fileUrl]);const S=t=>{if(!e.highlightedCitations)return null;const n=e.highlightedCitations.filter(e=>e.page===t);return 0===n.length?null:jsxRuntimeExports.jsx(HighlightsOverlay,{children:n.flatMap((t,n)=>{const o=convertPolygonToPercent(t.polygon,t.pageWidth,t.pageHeight),i=getEffectiveCitationVariant(t,e.selectedStatementTransactionId,s);return jsxRuntimeExports.jsx(HighlightBox,{"data-citation-variant":i,"data-statement-transaction-id":t.statementTransactionId,$variant:i,style:{height:`${o.height}%`,left:`${o.left}%`,top:`${o.top}%`,width:`${o.width}%`}},`${n}`)})})},C=()=>{e.setShowFullScreenView(!0)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FileInputElement,{fileRef:d,name:FileInputElementName$1,onFileChange:t=>{if(null!=t.target.files){const n=t.target.files[0];e.onUploadAttachment?.([n],[n.name])}},multiple:e.allowMultiFiles,sizeLimit:SizeLimit32MB,onFileSizeError:t=>e.openSizeLimitPopup?.(t)}),jsxRuntimeExports.jsx(AttachmentContainer$2,{maxHeight:e.maxHeight??!1,$allowTextSelection:m,"data-statement-pdf-surface":"",onClick:()=>{m||C()},onDoubleClick:()=>{m&&C()},windowSize:c,"data-testid":generateDataTestId("attachment-container",e.pdfTitle),children:jsxRuntimeExports.jsxs(PdfRender,{isFullScreen:e.isFullScreen,ref:p,children:[!0===e.showTitlebar?jsxRuntimeExports.jsxs(Titlebar$2,{children:[jsxRuntimeExports.jsx(PdfTitle$2,{children:e.pdfTitle}),!0===e.showTitlebarIcon?jsxRuntimeExports.jsxs(ActionIcons$1,{className:"actionIcons",children:[!1!==e.showReplaceIcon?jsxRuntimeExports.jsx(Tooltip$6,{enterDelay:600,display:"flex",title:common$3b.texts.replace,placement:"top-end",children:jsxRuntimeExports.jsx(ReplaceIconWrapper$1,{"data-testid":generateDataTestId("replace-attachment",e.pdfTitle),onClick:e=>{e.stopPropagation(),d.current?.click()}})}):null,"small"===c?jsxRuntimeExports.jsx(DeleteIconWrapperMobile$1,{"data-testid":null!=e.deleteAttachmentDataTestId?`${e.deleteAttachmentDataTestId}-mobile`:generateDataTestId("delete-attachment-mobile",e.pdfTitle),onClick:t=>{t.stopPropagation(),e.onDeleteClick?.()}}):jsxRuntimeExports.jsx(Tooltip$6,{enterDelay:600,display:"flex",title:common$3b.delete,placement:"top",children:jsxRuntimeExports.jsx(DeleteIconWrapper$c,{onClick:t=>{t.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??generateDataTestId("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const t=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some(e=>t.includes(e))})()?jsxRuntimeExports.jsx(ImageContainer$1,{children:jsxRuntimeExports.jsxs(ImageWrapper$2,{onMouseMove:g,onMouseLeave:x,onClick:f,children:[jsxRuntimeExports.jsx(StyledImage$g,{src:e.fileUrl,alt:e.pdfTitle,onLoad:e=>{const t=e.currentTarget;a({width:t.naturalWidth,height:t.naturalHeight})}},e.fileUrl),(()=>{if(!e.highlightedCitations||null==r)return null;const t=e.highlightedCitations.filter(e=>1===e.page);return 0===t.length?null:jsxRuntimeExports.jsx(HighlightsOverlay,{children:t.flatMap((t,n)=>{const o=convertPolygonToPercent(t.polygon,t.pageWidth,t.pageHeight),i=getEffectiveCitationVariant(t,e.selectedStatementTransactionId,s);return jsxRuntimeExports.jsx(HighlightBox,{"data-citation-variant":i,"data-statement-transaction-id":t.statementTransactionId,$variant:i,style:{height:`${o.height}%`,left:`${o.left}%`,top:`${o.top}%`,width:`${o.width}%`}},`${n}`)})})})()]})}):jsxRuntimeExports.jsxs(Document,{file:e.fileUrl,onLoadSuccess:({numPages:e})=>n(e),onLoadError:()=>n(0),loading:jsxRuntimeExports.jsx(BusyContainer$e,{children:jsxRuntimeExports.jsx(ActivityIndicator,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(t),(n,i)=>jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:()=>e.onCrossClick?.(),children:jsxRuntimeExports.jsxs(PageWrapper$1,{windowSize:c,isFullScreen:e.isFullScreen,children:[jsxRuntimeExports.jsxs(PageContainer$p,{"data-testid":`pdf-page-${i+1}`,isFullScreen:e.isFullScreen,onMouseMove:g,onMouseLeave:x,onClick:f,children:[jsxRuntimeExports.jsx(Page$7,{pageNumber:i+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:null!=o?{width:o}:{scale:1},error:jsxRuntimeExports.jsx("div",{}),onRenderSuccess:()=>{(null!=e.highlightedCitations?getScrollTargetPageNumber(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===i+1&&y()}},`page_${i+1}`),S(i+1)]}),t!=i+1?jsxRuntimeExports.jsx(Divider$c,{}):null]})},`page_${i+1}`)),jsxRuntimeExports.jsx("div",{})]},e.fileUrl)]})})]})}const AttachmentContainer$2=styled$2.div`
|
|
10217
|
+
`,BottomHeader=styled$2(H6Medium)``;function _mergeNamespaces$1(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function copyExifWithoutOrientation(e,t){return new Promise(function(n,o){let i;return getApp1Segment(e).then(function(e){try{return i=e,n(new Blob([t.slice(0,2),i,t.slice(2)],{type:"image/jpeg"}))}catch(r){return o(r)}},o)})}const getApp1Segment=e=>new Promise((t,n)=>{const o=new FileReader;o.addEventListener("load",({target:{result:e}})=>{const o=new DataView(e);let i=0;if(65496!==o.getUint16(i))return n("not a valid JPEG");for(i+=2;;){const r=o.getUint16(i);if(65498===r)break;const a=o.getUint16(i+2);if(65505===r&&1165519206===o.getUint32(i+4)){const r=i+10;let s;switch(o.getUint16(r)){case 18761:s=!0;break;case 19789:s=!1;break;default:return n("TIFF header contains invalid endian")}if(42!==o.getUint16(r+2,s))return n("TIFF header contains invalid version");const l=o.getUint32(r+4,s),c=r+l+2+12*o.getUint16(r+l,s);for(let e=r+l+2;e<c;e+=12)if(274==o.getUint16(e,s)){if(3!==o.getUint16(e+2,s))return n("Orientation data type is invalid");if(1!==o.getUint32(e+4,s))return n("Orientation data count is invalid");o.setUint16(e+8,1,s);break}return t(e.slice(i,i+2+a))}i+=2+a}return t(new Blob)}),o.readAsArrayBuffer(e)});var e={},t={get exports(){return e},set exports(t){e=t}},r2,i3,UZIP2;UZIP2={},t.exports=UZIP2,UZIP2.parse=function(e,t){for(var n=UZIP2.bin.readUshort,o=UZIP2.bin.readUint,i=0,r={},a=new Uint8Array(e),s=a.length-4;101010256!=o(a,s);)s--;i=s,i+=4;var l=n(a,i+=4);n(a,i+=2);var c=o(a,i+=2),d=o(a,i+=4);i+=4,i=d;for(var p=0;p<l;p++){o(a,i),i+=4,i+=4,i+=4,o(a,i+=4),c=o(a,i+=4);var u=o(a,i+=4),m=n(a,i+=4),h=n(a,i+2),g=n(a,i+4);i+=6;var x=o(a,i+=8);i+=4,i+=m+h+g,UZIP2._readLocal(a,x,r,c,u,t)}return r},UZIP2._readLocal=function(e,t,n,o,i,r){var a=UZIP2.bin.readUshort,s=UZIP2.bin.readUint;s(e,t),a(e,t+=4),a(e,t+=2);var l=a(e,t+=2);s(e,t+=2),s(e,t+=4),t+=4;var c=a(e,t+=8),d=a(e,t+=2);t+=2;var p=UZIP2.bin.readUTF8(e,t,c);if(t+=c,t+=d,r)n[p]={size:i,csize:o};else{var u=new Uint8Array(e.buffer,t);if(0==l)n[p]=new Uint8Array(u.buffer.slice(t,t+o));else{if(8!=l)throw"unknown compression method: "+l;var m=new Uint8Array(i);UZIP2.inflateRaw(u,m),n[p]=m}}},UZIP2.inflateRaw=function(e,t){return UZIP2.F.inflate(e,t)},UZIP2.inflate=function(e,t){return e[0],e[1],UZIP2.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},UZIP2.deflate=function(e,t){null==t&&(t={level:6});var n=0,o=new Uint8Array(50+Math.floor(1.1*e.length));o[n]=120,o[n+1]=156,n+=2,n=UZIP2.F.deflateRaw(e,o,n,t.level);var i=UZIP2.adler(e,0,e.length);return o[n+0]=i>>>24&255,o[n+1]=i>>>16&255,o[n+2]=i>>>8&255,o[n+3]=i>>>0&255,new Uint8Array(o.buffer,0,n+4)},UZIP2.deflateRaw=function(e,t){null==t&&(t={level:6});var n=new Uint8Array(50+Math.floor(1.1*e.length)),o=UZIP2.F.deflateRaw(e,n,o,t.level);return new Uint8Array(n.buffer,0,o)},UZIP2.encode=function(e,t){null==t&&(t=!1);var n=0,o=UZIP2.bin.writeUint,i=UZIP2.bin.writeUshort,r={};for(var a in e){var s=!UZIP2._noNeed(a)&&!t,l=e[a],c=UZIP2.crc.crc(l,0,l.length);r[a]={cpr:s,usize:l.length,crc:c,file:s?UZIP2.deflateRaw(l):l}}for(var a in r)n+=r[a].file.length+30+46+2*UZIP2.bin.sizeUTF8(a);n+=22;var d=new Uint8Array(n),p=0,u=[];for(var a in r){var m=r[a];u.push(p),p=UZIP2._writeHeader(d,p,a,m,0)}var h=0,g=p;for(var a in r)m=r[a],u.push(p),p=UZIP2._writeHeader(d,p,a,m,1,u[h++]);var x=p-g;return o(d,p,101010256),p+=4,i(d,p+=4,h),i(d,p+=2,h),o(d,p+=2,x),o(d,p+=4,g),p+=4,p+=2,d.buffer},UZIP2._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return-1!="png,jpg,jpeg,zip".indexOf(t)},UZIP2._writeHeader=function(e,t,n,o,i,r){var a=UZIP2.bin.writeUint,s=UZIP2.bin.writeUshort,l=o.file;return a(e,t,0==i?67324752:33639248),t+=4,1==i&&(t+=2),s(e,t,20),s(e,t+=2,0),s(e,t+=2,o.cpr?8:0),a(e,t+=2,0),a(e,t+=4,o.crc),a(e,t+=4,l.length),a(e,t+=4,o.usize),s(e,t+=4,UZIP2.bin.sizeUTF8(n)),s(e,t+=2,0),t+=2,1==i&&(t+=2,t+=2,a(e,t+=6,r),t+=4),t+=UZIP2.bin.writeUTF8(e,t,n),0==i&&(e.set(l,t),t+=l.length),t},UZIP2.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var n=t,o=0;o<8;o++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update:function(e,t,n,o){for(var i=0;i<o;i++)e=UZIP2.crc.table[255&(e^t[n+i])]^e>>>8;return e},crc:function(e,t,n){return 4294967295^UZIP2.crc.update(4294967295,e,t,n)}},UZIP2.adler=function(e,t,n){for(var o=1,i=0,r=t,a=t+n;r<a;){for(var s=Math.min(r+5552,a);r<s;)i+=o+=e[r++];o%=65521,i%=65521}return i<<16|o},UZIP2.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255,e[t+2]=n>>16&255,e[t+3]=n>>24&255},readASCII:function(e,t,n){for(var o="",i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII:function(e,t,n){for(var o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,n){for(var o,i="",r=0;r<n;r++)i+="%"+UZIP2.bin.pad(e[t+r].toString(16));try{o=decodeURIComponent(i)}catch(a){return UZIP2.bin.readASCII(e,t,n)}return o},writeUTF8:function(e,t,n){for(var o=n.length,i=0,r=0;r<o;r++){var a=n.charCodeAt(r);if(4294967168&a)if(4294965248&a)if(4294901760&a){if(4292870144&a)throw"e";e[t+i]=240|a>>18,e[t+i+1]=128|a>>12&63,e[t+i+2]=128|a>>6&63,e[t+i+3]=128|63&a,i+=4}else e[t+i]=224|a>>12,e[t+i+1]=128|a>>6&63,e[t+i+2]=128|63&a,i+=3;else e[t+i]=192|a>>6,e[t+i+1]=128|63&a,i+=2;else e[t+i]=a,i++}return i},sizeUTF8:function(e){for(var t=e.length,n=0,o=0;o<t;o++){var i=e.charCodeAt(o);if(4294967168&i)if(4294965248&i)if(4294901760&i){if(4292870144&i)throw"e";n+=4}else n+=3;else n+=2;else n++}return n}},UZIP2.F={},UZIP2.F.deflateRaw=function(e,t,n,o){var i=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][o],r=UZIP2.F.U,a=UZIP2.F._goodIndex;UZIP2.F._hash;var s=UZIP2.F._putsE,l=0,c=n<<3,d=0,p=e.length;if(0==o){for(;l<p;)s(t,c,l+(v=Math.min(65535,p-l))==p?1:0),c=UZIP2.F._copyExact(e,l,v,t,c+8),l+=v;return c>>>3}var u=r.lits,m=r.strt,h=r.prev,g=0,x=0,f=0,y=0,S=0,C=0;for(p>2&&(m[C=UZIP2.F._hash(e,0)]=0),l=0;l<p;l++){if(S=C,l+1<p-2){C=UZIP2.F._hash(e,l+1);var b=l+1&32767;h[b]=m[C],m[C]=b}if(d<=l){(g>14e3||x>26697)&&p-l>100&&(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(l==p-1||d==p?1:0,u,g,y,e,f,l-f,t,c),g=x=y=0,f=l);var $=0;l<p-2&&($=UZIP2.F._bestMatch(e,l,h,S,Math.min(i[2],p-l),i[3]));var v=$>>>16,E=65535&$;if(0!=$){E=65535&$;var w=a(v=$>>>16,r.of0);r.lhst[257+w]++;var R=a(E,r.df0);r.dhst[R]++,y+=r.exb[w]+r.dxb[R],u[g]=v<<23|l-d,u[g+1]=E<<16|w<<8|R,g+=2,d=l+v}else r.lhst[e[l]]++;x++}}for(f==l&&0!=e.length||(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(1,u,g,y,e,f,l-f,t,c),g=0,x=0,g=x=y=0,f=l);7&c;)c++;return c>>>3},UZIP2.F._bestMatch=function(e,t,n,o,i,r){var a=32767&t,s=n[a],l=a-s+32768&32767;if(s==a||o!=UZIP2.F._hash(e,t-l))return 0;for(var c=0,d=0,p=Math.min(32767,t);l<=p&&0!=--r&&s!=a;){if(0==c||e[t+c]==e[t+c-l]){var u=UZIP2.F._howLong(e,t,l);if(u>c){if(d=l,(c=u)>=i)break;l+2<u&&(u=l+2);for(var m=0,h=0;h<u-2;h++){var g=t-l+h+32768&32767,x=g-n[g]+32768&32767;x>m&&(m=x,s=g)}}}l+=(a=s)-(s=n[a])+32768&32767}return c<<16|d},UZIP2.F._howLong=function(e,t,n){if(e[t]!=e[t-n]||e[t+1]!=e[t+1-n]||e[t+2]!=e[t+2-n])return 0;var o=t,i=Math.min(e.length,t+258);for(t+=3;t<i&&e[t]==e[t-n];)t++;return t-o},UZIP2.F._hash=function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},UZIP2.saved=0,UZIP2.F._writeBlock=function(e,t,n,o,i,r,a,s,l){var c,d,p,u,m,h,g,x,f,y=UZIP2.F.U,S=UZIP2.F._putsF,C=UZIP2.F._putsE;y.lhst[256]++,d=(c=UZIP2.F.getTrees())[0],p=c[1],u=c[2],m=c[3],h=c[4],g=c[5],x=c[6],f=c[7];var b=32+(l+3&7?8-(l+3&7):0)+(a<<3),$=o+UZIP2.F.contSize(y.fltree,y.lhst)+UZIP2.F.contSize(y.fdtree,y.dhst),v=o+UZIP2.F.contSize(y.ltree,y.lhst)+UZIP2.F.contSize(y.dtree,y.dhst);v+=14+3*g+UZIP2.F.contSize(y.itree,y.ihst)+(2*y.ihst[16]+3*y.ihst[17]+7*y.ihst[18]);for(var E=0;E<286;E++)y.lhst[E]=0;for(E=0;E<30;E++)y.dhst[E]=0;for(E=0;E<19;E++)y.ihst[E]=0;var w=b<$&&b<v?0:$<v?1:2;if(S(s,l,e),S(s,l+1,w),l+=3,0==w){for(;7&l;)l++;l=UZIP2.F._copyExact(i,r,a,s,l)}else{var R,A;if(1==w&&(R=y.fltree,A=y.fdtree),2==w){UZIP2.F.makeCodes(y.ltree,d),UZIP2.F.revCodes(y.ltree,d),UZIP2.F.makeCodes(y.dtree,p),UZIP2.F.revCodes(y.dtree,p),UZIP2.F.makeCodes(y.itree,u),UZIP2.F.revCodes(y.itree,u),R=y.ltree,A=y.dtree,C(s,l,m-257),C(s,l+=5,h-1),C(s,l+=5,g-4),l+=4;for(var j=0;j<g;j++)C(s,l+3*j,y.itree[1+(y.ordr[j]<<1)]);l+=3*g,l=UZIP2.F._codeTiny(x,y.itree,s,l),l=UZIP2.F._codeTiny(f,y.itree,s,l)}for(var T=r,I=0;I<n;I+=2){for(var k=t[I],L=k>>>23,D=T+(8388607&k);T<D;)l=UZIP2.F._writeLit(i[T++],R,s,l);if(0!=L){var _=t[I+1],P=_>>16,B=_>>8&255,M=255&_;C(s,l=UZIP2.F._writeLit(257+B,R,s,l),L-y.of0[B]),l+=y.exb[B],S(s,l=UZIP2.F._writeLit(M,A,s,l),P-y.df0[M]),l+=y.dxb[M],T+=L}}l=UZIP2.F._writeLit(256,R,s,l)}return l},UZIP2.F._copyExact=function(e,t,n,o,i){var r=i>>>3;return o[r]=n,o[r+1]=n>>>8,o[r+2]=255-o[r],o[r+3]=255-o[r+1],r+=4,o.set(new Uint8Array(e.buffer,t,n),r),i+(n+4<<3)},UZIP2.F.getTrees=function(){for(var e=UZIP2.F.U,t=UZIP2.F._hufTree(e.lhst,e.ltree,15),n=UZIP2.F._hufTree(e.dhst,e.dtree,15),o=[],i=UZIP2.F._lenCodes(e.ltree,o),r=[],a=UZIP2.F._lenCodes(e.dtree,r),s=0;s<o.length;s+=2)e.ihst[o[s]]++;for(s=0;s<r.length;s+=2)e.ihst[r[s]]++;for(var l=UZIP2.F._hufTree(e.ihst,e.itree,7),c=19;c>4&&0==e.itree[1+(e.ordr[c-1]<<1)];)c--;return[t,n,l,i,a,c,o,r]},UZIP2.F.getSecond=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(e[n+1]);return t},UZIP2.F.nonZero=function(e){for(var t="",n=0;n<e.length;n+=2)0!=e[n+1]&&(t+=(n>>1)+",");return t},UZIP2.F.contSize=function(e,t){for(var n=0,o=0;o<t.length;o++)n+=t[o]*e[1+(o<<1)];return n},UZIP2.F._codeTiny=function(e,t,n,o){for(var i=0;i<e.length;i+=2){var r=e[i],a=e[i+1];o=UZIP2.F._writeLit(r,t,n,o);var s=16==r?2:17==r?3:7;r>15&&(UZIP2.F._putsE(n,o,a,s),o+=s)}return o},UZIP2.F._lenCodes=function(e,t){for(var n=e.length;2!=n&&0==e[n-1];)n-=2;for(var o=0;o<n;o+=2){var i=e[o+1],r=o+3<n?e[o+3]:-1,a=o+5<n?e[o+5]:-1,s=0==o?-1:e[o-1];if(0==i&&r==i&&a==i){for(var l=o+5;l+2<n&&e[l+2]==i;)l+=2;(c=Math.min(l+1-o>>>1,138))<11?t.push(17,c-3):t.push(18,c-11),o+=2*c-2}else if(i==s&&r==i&&a==i){for(l=o+5;l+2<n&&e[l+2]==i;)l+=2;var c=Math.min(l+1-o>>>1,6);t.push(16,c-3),o+=2*c-2}else t.push(i,0)}return n>>>1},UZIP2.F._hufTree=function(e,t,n){var o=[],i=e.length,r=t.length,a=0;for(a=0;a<r;a+=2)t[a]=0,t[a+1]=0;for(a=0;a<i;a++)0!=e[a]&&o.push({lit:a,f:e[a]});var s=o.length,l=o.slice(0);if(0==s)return 0;if(1==s){var c=o[0].lit;return l=0==c?1:0,t[1+(c<<1)]=1,t[1+(l<<1)]=1,1}o.sort(function(e,t){return e.f-t.f});var d=o[0],p=o[1],u=0,m=1,h=2;for(o[0]={lit:-1,f:d.f+p.f,l:d,r:p,d:0};m!=s-1;)d=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],p=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],o[m++]={lit:-1,f:d.f+p.f,l:d,r:p};var g=UZIP2.F.setDepth(o[m-1],0);for(g>n&&(UZIP2.F.restrictDepth(l,n,g),g=n),a=0;a<s;a++)t[1+(l[a].lit<<1)]=l[a].d;return g},UZIP2.F.setDepth=function(e,t){return-1!=e.lit?(e.d=t,t):Math.max(UZIP2.F.setDepth(e.l,t+1),UZIP2.F.setDepth(e.r,t+1))},UZIP2.F.restrictDepth=function(e,t,n){var o=0,i=1<<n-t,r=0;for(e.sort(function(e,t){return t.d==e.d?e.f-t.f:t.d-e.d}),o=0;o<e.length&&e[o].d>t;o++){var a=e[o].d;e[o].d=t,r+=i-(1<<n-a)}for(r>>>=n-t;r>0;)(a=e[o].d)<t?(e[o].d++,r-=1<<t-a-1):o++;for(;o>=0;o--)e[o].d==t&&r<0&&(e[o].d--,r++);0!=r&&console.log("debt left")},UZIP2.F._goodIndex=function(e,t){var n=0;return t[16|n]<=e&&(n|=16),t[8|n]<=e&&(n|=8),t[4|n]<=e&&(n|=4),t[2|n]<=e&&(n|=2),t[1|n]<=e&&(n|=1),n},UZIP2.F._writeLit=function(e,t,n,o){return UZIP2.F._putsF(n,o,t[e<<1]),o+t[1+(e<<1)]},UZIP2.F.inflate=function(e,t){var n=Uint8Array;if(3==e[0]&&0==e[1])return t||new n(0);var o=UZIP2.F,i=o._bitsF,r=o._bitsE,a=o._decodeTiny,s=o.makeCodes,l=o.codes2map,c=o._get17,d=o.U,p=null==t;p&&(t=new n(e.length>>>2<<3));for(var u,m,h=0,g=0,x=0,f=0,y=0,S=0,C=0,b=0,$=0;0==h;)if(h=i(e,$,1),g=i(e,$+1,2),$+=3,0!=g){if(p&&(t=UZIP2.F._check(t,b+(1<<17))),1==g&&(u=d.flmap,m=d.fdmap,S=511,C=31),2==g){x=r(e,$,5)+257,f=r(e,$+5,5)+1,y=r(e,$+10,4)+4,$+=14;for(var v=0;v<38;v+=2)d.itree[v]=0,d.itree[v+1]=0;var E=1;for(v=0;v<y;v++){var w=r(e,$+3*v,3);d.itree[1+(d.ordr[v]<<1)]=w,w>E&&(E=w)}$+=3*y,s(d.itree,E),l(d.itree,E,d.imap),u=d.lmap,m=d.dmap,$=a(d.imap,(1<<E)-1,x+f,e,$,d.ttree);var R=o._copyOut(d.ttree,0,x,d.ltree);S=(1<<R)-1;var A=o._copyOut(d.ttree,x,f,d.dtree);C=(1<<A)-1,s(d.ltree,R),l(d.ltree,R,u),s(d.dtree,A),l(d.dtree,A,m)}for(;;){var j=u[c(e,$)&S];$+=15&j;var T=j>>>4;if(T>>>8==0)t[b++]=T;else{if(256==T)break;var I=b+T-254;if(T>264){var k=d.ldef[T-257];I=b+(k>>>3)+r(e,$,7&k),$+=7&k}var L=m[c(e,$)&C];$+=15&L;var D=L>>>4,_=d.ddef[D],P=(_>>>4)+i(e,$,15&_);for($+=15&_,p&&(t=UZIP2.F._check(t,b+(1<<17)));b<I;)t[b]=t[b++-P],t[b]=t[b++-P],t[b]=t[b++-P],t[b]=t[b++-P];b=I}}}else{7&$&&($+=8-(7&$));var B=4+($>>>3),M=e[B-4]|e[B-3]<<8;p&&(t=UZIP2.F._check(t,b+M)),t.set(new n(e.buffer,e.byteOffset+B,M),b),$=B+M<<3,b+=M}return t.length==b?t:t.slice(0,b)},UZIP2.F._check=function(e,t){var n=e.length;if(t<=n)return e;var o=new Uint8Array(Math.max(n<<1,t));return o.set(e,0),o},UZIP2.F._decodeTiny=function(e,t,n,o,i,r){for(var a=UZIP2.F._bitsE,s=UZIP2.F._get17,l=0;l<n;){var c=e[s(o,i)&t];i+=15&c;var d=c>>>4;if(d<=15)r[l]=d,l++;else{var p=0,u=0;16==d?(u=3+a(o,i,2),i+=2,p=r[l-1]):17==d?(u=3+a(o,i,3),i+=3):18==d&&(u=11+a(o,i,7),i+=7);for(var m=l+u;l<m;)r[l]=p,l++}}return i},UZIP2.F._copyOut=function(e,t,n,o){for(var i=0,r=0,a=o.length>>>1;r<n;){var s=e[r+t];o[r<<1]=0,o[1+(r<<1)]=s,s>i&&(i=s),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},UZIP2.F.makeCodes=function(e,t){for(var n,o,i,r,a=UZIP2.F.U,s=e.length,l=a.bl_count,c=0;c<=t;c++)l[c]=0;for(c=1;c<s;c+=2)l[e[c]]++;var d=a.next_code;for(n=0,l[0]=0,o=1;o<=t;o++)n=n+l[o-1]<<1,d[o]=n;for(i=0;i<s;i+=2)0!=(r=e[i+1])&&(e[i]=d[r],d[r]++)},UZIP2.F.codes2map=function(e,t,n){for(var o=e.length,i=UZIP2.F.U.rev15,r=0;r<o;r+=2)if(0!=e[r+1])for(var a=r>>1,s=e[r+1],l=a<<4|s,c=t-s,d=e[r]<<c,p=d+(1<<c);d!=p;)n[i[d]>>>15-t]=l,d++},UZIP2.F.revCodes=function(e,t){for(var n=UZIP2.F.U.rev15,o=15-t,i=0;i<e.length;i+=2){var r=e[i]<<t-e[i+1];e[i]=n[r]>>>o}},UZIP2.F._putsE=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},UZIP2.F._putsF=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},UZIP2.F._bitsE=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},UZIP2.F._bitsF=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},UZIP2.F._get17=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},UZIP2.F._get25=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},UZIP2.F.U=(r2=Uint16Array,i3=Uint32Array,{next_code:new r2(16),bl_count:new r2(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new r2(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new i3(32),flmap:new r2(512),fltree:[],fdmap:new r2(32),fdtree:[],lmap:new r2(32768),ltree:[],ttree:[],dmap:new r2(32768),dtree:[],imap:new r2(512),itree:[],rev15:new r2(32768),lhst:new i3(286),dhst:new i3(30),ihst:new i3(19),lits:new i3(15e3),strt:new r2(65536),prev:new r2(32768)}),function(){for(var e=UZIP2.F.U,t=0;t<32768;t++){var n=t;n=(4278255360&(n=(4042322160&(n=(3435973836&(n=(2863311530&n)>>>1|(1431655765&n)<<1))>>>2|(858993459&n)<<2))>>>4|(252645135&n)<<4))>>>8|(16711935&n)<<8,e.rev15[t]=(n>>>16|n<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];o(e.fltree,144,8),o(e.fltree,112,9),o(e.fltree,24,7),o(e.fltree,8,8),UZIP2.F.makeCodes(e.fltree,9),UZIP2.F.codes2map(e.fltree,9,e.flmap),UZIP2.F.revCodes(e.fltree,9),o(e.fdtree,32,5),UZIP2.F.makeCodes(e.fdtree,5),UZIP2.F.codes2map(e.fdtree,5,e.fdmap),UZIP2.F.revCodes(e.fdtree,5),o(e.itree,19,0),o(e.ltree,286,0),o(e.dtree,30,0),o(e.ttree,320,0)}();var UZIP=_mergeNamespaces$1({__proto__:null,default:e},[e]);const UPNG=function(){var e={nextZero(e,t){for(;0!=e[t];)t++;return t},readUshort:(e,t)=>e[t]<<8|e[t+1],writeUshort(e,t,n){e[t]=n>>8&255,e[t+1]=255&n},readUint:(e,t)=>16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3]),writeUint(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n},readASCII(e,t,n){let o="";for(let i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII(e,t,n){for(let o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},readBytes(e,t,n){const o=[];for(let i=0;i<n;i++)o.push(e[t+i]);return o},pad:e=>e.length<2?`0${e}`:e,readUTF8(t,n,o){let i,r="";for(let s=0;s<o;s++)r+=`%${e.pad(t[n+s].toString(16))}`;try{i=decodeURIComponent(r)}catch(a){return e.readASCII(t,n,o)}return i}};function t(t,n,o,i){const a=n*o,s=r(i),l=Math.ceil(n*s/8),c=new Uint8Array(4*a),d=new Uint32Array(c.buffer),{ctype:p}=i,{depth:u}=i,m=e.readUshort;if(6==p){const e=a<<2;if(8==u)for(var h=0;h<e;h+=4)c[h]=t[h],c[h+1]=t[h+1],c[h+2]=t[h+2],c[h+3]=t[h+3];if(16==u)for(h=0;h<e;h++)c[h]=t[h<<1]}else if(2==p){const e=i.tabs.tRNS;if(null==e){if(8==u)for(h=0;h<a;h++){var g=3*h;d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g]}if(16==u)for(h=0;h<a;h++)g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g]}else{var x=e[0];const n=e[1],o=e[2];if(8==u)for(h=0;h<a;h++){var f=h<<2;g=3*h,d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g],t[g]==x&&t[g+1]==n&&t[g+2]==o&&(c[f+3]=0)}if(16==u)for(h=0;h<a;h++)f=h<<2,g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g],m(t,g)==x&&m(t,g+2)==n&&m(t,g+4)==o&&(c[f+3]=0)}}else if(3==p){const e=i.tabs.PLTE,r=i.tabs.tRNS,s=r?r.length:0;if(1==u)for(var y=0;y<o;y++){var S=y*l,C=y*n;for(h=0;h<n;h++){f=C+h<<2;var b=3*($=t[S+(h>>3)]>>7-(7&h)&1);c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255}}if(2==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,b=3*($=t[S+(h>>2)]>>6-((3&h)<<1)&3),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255;if(4==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,b=3*($=t[S+(h>>1)]>>4-((1&h)<<2)&15),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255;if(8==u)for(h=0;h<a;h++){var $;f=h<<2,b=3*($=t[h]),c[f]=e[b],c[f+1]=e[b+1],c[f+2]=e[b+2],c[f+3]=$<s?r[$]:255}}else if(4==p){if(8==u)for(h=0;h<a;h++){f=h<<2;var v=t[E=h<<1];c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+1]}if(16==u)for(h=0;h<a;h++){var E;f=h<<2,v=t[E=h<<2],c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+2]}}else if(0==p)for(x=i.tabs.tRNS?i.tabs.tRNS:-1,y=0;y<o;y++){const e=y*l,o=y*n;if(1==u)for(var w=0;w<n;w++){var R=(v=255*(t[e+(w>>>3)]>>>7-(7&w)&1))==255*x?0:255;d[o+w]=R<<24|v<<16|v<<8|v}else if(2==u)for(w=0;w<n;w++)R=(v=85*(t[e+(w>>>2)]>>>6-((3&w)<<1)&3))==85*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(4==u)for(w=0;w<n;w++)R=(v=17*(t[e+(w>>>1)]>>>4-((1&w)<<2)&15))==17*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(8==u)for(w=0;w<n;w++)R=(v=t[e+w])==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(16==u)for(w=0;w<n;w++)v=t[e+(w<<1)],R=m(t,e+(w<<1))==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v}return c}function n(e,t,n,s){const l=r(e),c=Math.ceil(n*l/8),d=new Uint8Array((c+1+e.interlace)*s);return t=e.tabs.CgBI?i(t,d):o(t,d),0==e.interlace?t=a(t,e,0,n,s):1==e.interlace&&(t=function(e,t){const n=t.width,o=t.height,i=r(t),s=i>>3,l=Math.ceil(n*i/8),c=new Uint8Array(o*l);let d=0;const p=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],m=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1];let g=0;for(;g<7;){const r=m[g],f=h[g];let y=0,S=0,C=p[g];for(;C<o;)C+=r,S++;let b=u[g];for(;b<n;)b+=f,y++;const $=Math.ceil(y*i/8);a(e,t,d,y,S);let v=0,E=p[g];for(;E<o;){let t=u[g],o=d+v*$<<3;for(;t<n;){var x;if(1==i&&(x=(x=e[o>>3])>>7-(7&o)&1,c[E*l+(t>>3)]|=x<<7-(7&t)),2==i&&(x=(x=e[o>>3])>>6-(7&o)&3,c[E*l+(t>>2)]|=x<<6-((3&t)<<1)),4==i&&(x=(x=e[o>>3])>>4-(7&o)&15,c[E*l+(t>>1)]|=x<<4-((1&t)<<2)),i>=8){const n=E*l+t*s;for(let t=0;t<s;t++)c[n+t]=e[(o>>3)+t]}o+=i,t+=f}v++,E+=r}y*S!=0&&(d+=S*(1+$)),g+=1}return c}(t,e)),t}function o(e,t){return i(new Uint8Array(e.buffer,2,e.length-6),t)}var i=function(){const e={H:{}};return e.H.N=function(t,n){const o=Uint8Array;let i,r,a=0,s=0,l=0,c=0,d=0,p=0,u=0,m=0,h=0;if(3==t[0]&&0==t[1])return n||new o(0);const g=e.H,x=g.b,f=g.e,y=g.R,S=g.n,C=g.A,b=g.Z,$=g.m,v=null==n;for(v&&(n=new o(t.length>>>2<<5));0==a;)if(a=x(t,h,1),s=x(t,h+1,2),h+=3,0!=s){if(v&&(n=e.H.W(n,m+(1<<17))),1==s&&(i=$.J,r=$.h,p=511,u=31),2==s){l=f(t,h,5)+257,c=f(t,h+5,5)+1,d=f(t,h+10,4)+4,h+=14;let e=1;for(var E=0;E<38;E+=2)$.Q[E]=0,$.Q[E+1]=0;for(E=0;E<d;E++){const n=f(t,h+3*E,3);$.Q[1+($.X[E]<<1)]=n,n>e&&(e=n)}h+=3*d,S($.Q,e),C($.Q,e,$.u),i=$.w,r=$.d,h=y($.u,(1<<e)-1,l+c,t,h,$.v);const n=g.V($.v,0,l,$.C);p=(1<<n)-1;const o=g.V($.v,l,c,$.D);u=(1<<o)-1,S($.C,n),C($.C,n,i),S($.D,o),C($.D,o,r)}for(;;){const e=i[b(t,h)&p];h+=15&e;const o=e>>>4;if(o>>>8==0)n[m++]=o;else{if(256==o)break;{let e=m+o-254;if(o>264){const n=$.q[o-257];e=m+(n>>>3)+f(t,h,7&n),h+=7&n}const i=r[b(t,h)&u];h+=15&i;const a=i>>>4,s=$.c[a],l=(s>>>4)+x(t,h,15&s);for(h+=15&s;m<e;)n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l];m=e}}}}else{7&h&&(h+=8-(7&h));const i=4+(h>>>3),r=t[i-4]|t[i-3]<<8;v&&(n=e.H.W(n,m+r)),n.set(new o(t.buffer,t.byteOffset+i,r),m),h=i+r<<3,m+=r}return n.length==m?n:n.slice(0,m)},e.H.W=function(e,t){const n=e.length;if(t<=n)return e;const o=new Uint8Array(n<<1);return o.set(e,0),o},e.H.R=function(t,n,o,i,r,a){const s=e.H.e,l=e.H.Z;let c=0;for(;c<o;){const e=t[l(i,r)&n];r+=15&e;const o=e>>>4;if(o<=15)a[c]=o,c++;else{let e=0,t=0;16==o?(t=3+s(i,r,2),r+=2,e=a[c-1]):17==o?(t=3+s(i,r,3),r+=3):18==o&&(t=11+s(i,r,7),r+=7);const n=c+t;for(;c<n;)a[c]=e,c++}}return r},e.H.V=function(e,t,n,o){let i=0,r=0;const a=o.length>>>1;for(;r<n;){const n=e[r+t];o[r<<1]=0,o[1+(r<<1)]=n,n>i&&(i=n),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},e.H.n=function(t,n){const o=e.H.m,i=t.length;let r,a,s,l;const c=o.j;for(var d=0;d<=n;d++)c[d]=0;for(d=1;d<i;d+=2)c[t[d]]++;const p=o.K;for(r=0,c[0]=0,a=1;a<=n;a++)r=r+c[a-1]<<1,p[a]=r;for(s=0;s<i;s+=2)l=t[s+1],0!=l&&(t[s]=p[l],p[l]++)},e.H.A=function(t,n,o){const i=t.length,r=e.H.m.r;for(let e=0;e<i;e+=2)if(0!=t[e+1]){const i=e>>1,a=t[e+1],s=i<<4|a,l=n-a;let c=t[e]<<l;const d=c+(1<<l);for(;c!=d;)o[r[c]>>>15-n]=s,c++}},e.H.l=function(t,n){const o=e.H.m.r,i=15-n;for(let e=0;e<t.length;e+=2){const r=t[e]<<n-t[e+1];t[e]=o[r]>>>i}},e.H.M=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},e.H.I=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},e.H.e=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},e.H.b=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},e.H.Z=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},e.H.i=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},e.H.m=function(){const e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}}(),function(){const t=e.H.m;for(var n=0;n<32768;n++){let e=n;e=(2863311530&e)>>>1|(1431655765&e)<<1,e=(3435973836&e)>>>2|(858993459&e)<<2,e=(4042322160&e)>>>4|(252645135&e)<<4,e=(4278255360&e)>>>8|(16711935&e)<<8,t.r[n]=(e>>>16|e<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(n=0;n<32;n++)t.q[n]=t.S[n]<<3|t.T[n],t.c[n]=t.p[n]<<4|t.z[n];o(t._,144,8),o(t._,112,9),o(t._,24,7),o(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),o(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),o(t.Q,19,0),o(t.C,286,0),o(t.D,30,0),o(t.v,320,0)}(),e.H.N}();function r(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth}function a(e,t,n,o,i){let a=r(t);const l=Math.ceil(o*a/8);let c,d;a=Math.ceil(a/8);let p=e[n],u=0;if(p>1&&(e[n]=[0,0,1][p-2]),3==p)for(u=a;u<l;u++)e[u+1]=e[u+1]+(e[u+1-a]>>>1)&255;for(let r=0;r<i;r++)if(c=n+r*l,d=c+r+1,p=e[d-1],u=0,0==p)for(;u<l;u++)e[c+u]=e[d+u];else if(1==p){for(;u<a;u++)e[c+u]=e[d+u];for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-a]}else if(2==p)for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-l];else if(3==p){for(;u<a;u++)e[c+u]=e[d+u]+(e[c+u-l]>>>1);for(;u<l;u++)e[c+u]=e[d+u]+(e[c+u-l]+e[c+u-a]>>>1)}else{for(;u<a;u++)e[c+u]=e[d+u]+s(0,e[c+u-l],0);for(;u<l;u++)e[c+u]=e[d+u]+s(e[c+u-a],e[c+u-l],e[c+u-a-l])}return e}function s(e,t,n){const o=e+t-n,i=o-e,r=o-t,a=o-n;return i*i<=r*r&&i*i<=a*a?e:r*r<=a*a?t:n}function l(t,n,o){o.width=e.readUint(t,n),n+=4,o.height=e.readUint(t,n),n+=4,o.depth=t[n],n++,o.ctype=t[n],n++,o.compress=t[n],n++,o.filter=t[n],n++,o.interlace=t[n],n++}function c(e,t,n,o,i,r,a,s,l){const c=Math.min(t,i),d=Math.min(n,r);let p=0,u=0;for(let b=0;b<d;b++)for(let n=0;n<c;n++)if(a>=0&&s>=0?(p=b*t+n<<2,u=(s+b)*i+a+n<<2):(p=(-s+b)*t-a+n<<2,u=b*i+n<<2),0==l)o[u]=e[p],o[u+1]=e[p+1],o[u+2]=e[p+2],o[u+3]=e[p+3];else if(1==l){var m=e[p+3]*(1/255),h=e[p]*m,g=e[p+1]*m,x=e[p+2]*m,f=o[u+3]*(1/255),y=o[u]*f,S=o[u+1]*f,C=o[u+2]*f;const t=1-m,n=m+f*t,i=0==n?0:1/n;o[u+3]=255*n,o[u+0]=(h+y*t)*i,o[u+1]=(g+S*t)*i,o[u+2]=(x+C*t)*i}else if(2==l)m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C?(o[u]=0,o[u+1]=0,o[u+2]=0,o[u+3]=0):(o[u]=h,o[u+1]=g,o[u+2]=x,o[u+3]=m);else if(3==l){if(m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C)continue;if(m<220&&f>20)return!1}return!0}return{decode:function(t){const r=new Uint8Array(t);let a=8;const s=e,c=s.readUshort,d=s.readUint,p={tabs:{},frames:[]},u=new Uint8Array(r.length);let m,h=0,g=0;const x=[137,80,78,71,13,10,26,10];for(var f=0;f<8;f++)if(r[f]!=x[f])throw"The input is not a PNG file!";for(;a<r.length;){const e=s.readUint(r,a);a+=4;const t=s.readASCII(r,a,4);if(a+=4,"IHDR"==t)l(r,a,p);else if("iCCP"==t){for(var y=a;0!=r[y];)y++;s.readASCII(r,a,y-a),r[y+1];const n=r.slice(y+2,a+e);let l=null;try{l=o(n)}catch(w){l=i(n)}p.tabs[t]=l}else if("CgBI"==t)p.tabs[t]=r.slice(a,a+4);else if("IDAT"==t){for(f=0;f<e;f++)u[h+f]=r[a+f];h+=e}else if("acTL"==t)p.tabs[t]={num_frames:d(r,a),num_plays:d(r,a+4)},m=new Uint8Array(r.length);else if("fcTL"==t){0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height),g=0);const e={x:d(r,a+12),y:d(r,a+16),width:d(r,a+4),height:d(r,a+8)};let t=c(r,a+22);t=c(r,a+20)/(0==t?100:t);const o={rect:e,delay:Math.round(1e3*t),dispose:r[a+24],blend:r[a+25]};p.frames.push(o)}else if("fdAT"==t){for(f=0;f<e-4;f++)m[g+f]=r[a+f+4];g+=e-4}else if("pHYs"==t)p.tabs[t]=[s.readUint(r,a),s.readUint(r,a+4),r[a+8]];else if("cHRM"==t)for(p.tabs[t]=[],f=0;f<8;f++)p.tabs[t].push(s.readUint(r,a+4*f));else if("tEXt"==t||"zTXt"==t){null==p.tabs[t]&&(p.tabs[t]={});var S=s.nextZero(r,a),C=s.readASCII(r,a,S-a),b=a+e-S-1;if("tEXt"==t)v=s.readASCII(r,S+1,b);else{var $=o(r.slice(S+2,S+2+b));v=s.readUTF8($,0,$.length)}p.tabs[t][C]=v}else if("iTXt"==t){null==p.tabs[t]&&(p.tabs[t]={}),S=0,y=a,S=s.nextZero(r,y),C=s.readASCII(r,y,S-y);const n=r[y=S+1];var v;r[y+1],y+=2,S=s.nextZero(r,y),s.readASCII(r,y,S-y),y=S+1,S=s.nextZero(r,y),s.readUTF8(r,y,S-y),b=e-((y=S+1)-a),0==n?v=s.readUTF8(r,y,b):($=o(r.slice(y,y+b)),v=s.readUTF8($,0,$.length)),p.tabs[t][C]=v}else if("PLTE"==t)p.tabs[t]=s.readBytes(r,a,e);else if("hIST"==t){const e=p.tabs.PLTE.length/3;for(p.tabs[t]=[],f=0;f<e;f++)p.tabs[t].push(c(r,a+2*f))}else if("tRNS"==t)3==p.ctype?p.tabs[t]=s.readBytes(r,a,e):0==p.ctype?p.tabs[t]=c(r,a):2==p.ctype&&(p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]);else if("gAMA"==t)p.tabs[t]=s.readUint(r,a)/1e5;else if("sRGB"==t)p.tabs[t]=r[a];else if("bKGD"==t)0==p.ctype||4==p.ctype?p.tabs[t]=[c(r,a)]:2==p.ctype||6==p.ctype?p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]:3==p.ctype&&(p.tabs[t]=r[a]);else if("IEND"==t)break;a+=e,s.readUint(r,a),a+=4}var E;return 0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height)),p.data=n(p,u,p.width,p.height),delete p.compress,delete p.interlace,delete p.filter,p},toRGBA8:function(e){const n=e.width,o=e.height;if(null==e.tabs.acTL)return[t(e.data,n,o,e).buffer];const i=[];null==e.frames[0].data&&(e.frames[0].data=e.data);const r=n*o*4,a=new Uint8Array(r),s=new Uint8Array(r),l=new Uint8Array(r);for(let p=0;p<e.frames.length;p++){const u=e.frames[p],m=u.rect.x,h=u.rect.y,g=u.rect.width,x=u.rect.height,f=t(u.data,g,x,e);if(0!=p)for(var d=0;d<r;d++)l[d]=a[d];if(0==u.blend?c(f,g,x,a,n,o,m,h,0):1==u.blend&&c(f,g,x,a,n,o,m,h,1),i.push(a.buffer.slice(0)),0==u.dispose);else if(1==u.dispose)c(s,g,x,a,n,o,m,h,0);else if(2==u.dispose)for(d=0;d<r;d++)a[d]=l[d]}return i},_paeth:s,_copyTile:c,_bin:e}}();!function(){const{_copyTile:e}=UPNG,{_bin:t}=UPNG,n=UPNG._paeth;var o={table:function(){const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update(e,t,n,i){for(let r=0;r<i;r++)e=o.table[255&(e^t[n+r])]^e>>>8;return e},crc:(e,t,n)=>4294967295^o.update(4294967295,e,t,n)};function i(e,t,n,o){t[n]+=e[0]*o>>4,t[n+1]+=e[1]*o>>4,t[n+2]+=e[2]*o>>4,t[n+3]+=e[3]*o>>4}function r(e){return Math.max(0,Math.min(255,e))}function a(e,t){const n=e[0]-t[0],o=e[1]-t[1],i=e[2]-t[2],r=e[3]-t[3];return n*n+o*o+i*i+r*r}function s(e,t,n,o,s,l,c){null==c&&(c=1);const d=o.length,p=[];for(var u=0;u<d;u++){const e=o[u];p.push([e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255])}for(u=0;u<d;u++){let e=4294967295;for(var m=0,h=0;h<d;h++){var g=a(p[u],p[h]);h!=u&&g<e&&(e=g,m=h)}}const x=new Uint32Array(s.buffer),f=new Int16Array(t*n*4),y=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(u=0;u<y.length;u++)y[u]=255*((y[u]+.5)/16-.5);for(let C=0;C<n;C++)for(let s=0;s<t;s++){var S;u=4*(C*t+s),2!=c?S=[r(e[u]+f[u]),r(e[u+1]+f[u+1]),r(e[u+2]+f[u+2]),r(e[u+3]+f[u+3])]:(g=y[4*(3&C)+(3&s)],S=[r(e[u]+g),r(e[u+1]+g),r(e[u+2]+g),r(e[u+3]+g)]),m=0;let b=16777215;for(h=0;h<d;h++){const e=a(S,p[h]);e<b&&(b=e,m=h)}const $=p[m],v=[S[0]-$[0],S[1]-$[1],S[2]-$[2],S[3]-$[3]];1==c&&(s!=t-1&&i(v,f,u+4,7),C!=n-1&&(0!=s&&i(v,f,u+4*t-4,3),i(v,f,u+4*t,5),s!=t-1&&i(v,f,u+4*t+4,1))),l[u>>2]=m,x[u>>2]=o[m]}}function l(e,n,i,r,a){null==a&&(a={});const{crc:s}=o,l=t.writeUint,c=t.writeUshort,d=t.writeASCII;let p=8;const u=e.frames.length>1;let m,h=!1,g=33+(u?20:0);if(null!=a.sRGB&&(g+=13),null!=a.pHYs&&(g+=21),null!=a.iCCP&&(m=pako.deflate(a.iCCP),g+=21+m.length+4),3==e.ctype){for(var x=e.plte.length,f=0;f<x;f++)e.plte[f]>>>24!=255&&(h=!0);g+=8+3*x+4+(h?8+1*x+4:0)}for(var y=0;y<e.frames.length;y++)u&&(g+=38),g+=($=e.frames[y]).cimg.length+12,0!=y&&(g+=4);g+=12;const S=new Uint8Array(g),C=[137,80,78,71,13,10,26,10];for(f=0;f<8;f++)S[f]=C[f];if(l(S,p,13),p+=4,d(S,p,"IHDR"),p+=4,l(S,p,n),p+=4,l(S,p,i),p+=4,S[p]=e.depth,p++,S[p]=e.ctype,p++,S[p]=0,p++,S[p]=0,p++,S[p]=0,p++,l(S,p,s(S,p-17,17)),p+=4,null!=a.sRGB&&(l(S,p,1),p+=4,d(S,p,"sRGB"),p+=4,S[p]=a.sRGB,p++,l(S,p,s(S,p-5,5)),p+=4),null!=a.iCCP){const e=13+m.length;l(S,p,e),p+=4,d(S,p,"iCCP"),p+=4,d(S,p,"ICC profile"),p+=11,p+=2,S.set(m,p),p+=m.length,l(S,p,s(S,p-(e+4),e+4)),p+=4}if(null!=a.pHYs&&(l(S,p,9),p+=4,d(S,p,"pHYs"),p+=4,l(S,p,a.pHYs[0]),p+=4,l(S,p,a.pHYs[1]),p+=4,S[p]=a.pHYs[2],p++,l(S,p,s(S,p-13,13)),p+=4),u&&(l(S,p,8),p+=4,d(S,p,"acTL"),p+=4,l(S,p,e.frames.length),p+=4,l(S,p,null!=a.loop?a.loop:0),p+=4,l(S,p,s(S,p-12,12)),p+=4),3==e.ctype){for(l(S,p,3*(x=e.plte.length)),p+=4,d(S,p,"PLTE"),p+=4,f=0;f<x;f++){const t=3*f,n=e.plte[f],o=255&n,i=n>>>8&255,r=n>>>16&255;S[p+t+0]=o,S[p+t+1]=i,S[p+t+2]=r}if(p+=3*x,l(S,p,s(S,p-3*x-4,3*x+4)),p+=4,h){for(l(S,p,x),p+=4,d(S,p,"tRNS"),p+=4,f=0;f<x;f++)S[p+f]=e.plte[f]>>>24&255;p+=x,l(S,p,s(S,p-x-4,x+4)),p+=4}}let b=0;for(y=0;y<e.frames.length;y++){var $=e.frames[y];u&&(l(S,p,26),p+=4,d(S,p,"fcTL"),p+=4,l(S,p,b++),p+=4,l(S,p,$.rect.width),p+=4,l(S,p,$.rect.height),p+=4,l(S,p,$.rect.x),p+=4,l(S,p,$.rect.y),p+=4,c(S,p,r[y]),p+=2,c(S,p,1e3),p+=2,S[p]=$.dispose,p++,S[p]=$.blend,p++,l(S,p,s(S,p-30,30)),p+=4);const t=$.cimg;l(S,p,(x=t.length)+(0==y?0:4)),p+=4;const n=p;d(S,p,0==y?"IDAT":"fdAT"),p+=4,0!=y&&(l(S,p,b++),p+=4),S.set(t,p),p+=x,l(S,p,s(S,n,p-n)),p+=4}return l(S,p,0),p+=4,d(S,p,"IEND"),p+=4,l(S,p,s(S,p-4,4)),p+=4,S.buffer}function c(e,t,n){for(let o=0;o<e.frames.length;o++){const i=e.frames[o];i.rect.width;const r=i.rect.height,a=new Uint8Array(r*i.bpl+r);i.cimg=m(i.img,r,i.bpp,i.bpl,a,t,n)}}function d(t,n,o,i,r){const a=r[0],l=r[1],c=r[2],d=r[3],m=r[4],h=r[5];let x=6,f=8,y=255;for(var S=0;S<t.length;S++){const e=new Uint8Array(t[S]);for(var C=e.length,b=0;b<C;b+=4)y&=e[b+3]}const $=255!=y,v=function(t,n,o,i,r,a){const s=[];for(var l=0;l<t.length;l++){const p=new Uint8Array(t[l]),m=new Uint32Array(p.buffer);var c;let g=0,x=0,f=n,y=o,S=i?1:0;if(0!=l){const C=a||i||1==l||0!=s[l-2].dispose?1:2;let b=0,$=1e9;for(let e=0;e<C;e++){var d=new Uint8Array(t[l-1-e]);const i=new Uint32Array(t[l-1-e]);let a=n,s=o,c=-1,p=-1;for(let e=0;e<o;e++)for(let t=0;t<n;t++)m[h=e*n+t]!=i[h]&&(t<a&&(a=t),t>c&&(c=t),e<s&&(s=e),e>p&&(p=e));-1==c&&(a=s=c=p=0),r&&(!(1&~a)&&a--,!(1&~s)&&s--);const u=(c-a+1)*(p-s+1);u<$&&($=u,b=e,g=a,x=s,f=c-a+1,y=p-s+1)}d=new Uint8Array(t[l-1-b]),1==b&&(s[l-1].dispose=2),c=new Uint8Array(f*y*4),e(d,n,o,c,f,y,-g,-x,0),S=e(p,n,o,c,f,y,-g,-x,3)?1:0,1==S?u(p,n,o,c,{x:g,y:x,width:f,height:y}):e(p,n,o,c,f,y,-g,-x,0)}else c=p.slice(0);s.push({rect:{x:g,y:x,width:f,height:y},img:c,blend:S,dispose:0})}if(i)for(l=0;l<s.length;l++){if(1==(g=s[l]).blend)continue;const e=g.rect,i=s[l-1].rect,a=Math.min(e.x,i.x),c=Math.min(e.y,i.y),d={x:a,y:c,width:Math.max(e.x+e.width,i.x+i.width)-a,height:Math.max(e.y+e.height,i.y+i.height)-c};s[l-1].dispose=1,l-1!=0&&p(t,n,o,s,l-1,d,r),p(t,n,o,s,l,d,r)}let m=0;if(1!=t.length)for(var h=0;h<s.length;h++){var g;m+=(g=s[h]).rect.width*g.rect.height}return s}(t,n,o,a,l,c),E={},w=[],R=[];if(0!=i){const e=[];for(b=0;b<v.length;b++)e.push(v[b].img.buffer);const t=g(function(e){let t=0;for(var n=0;n<e.length;n++)t+=e[n].byteLength;const o=new Uint8Array(t);let i=0;for(n=0;n<e.length;n++){const t=new Uint8Array(e[n]),r=t.length;for(let e=0;e<r;e+=4){let n=t[e],r=t[e+1],a=t[e+2];const s=t[e+3];0==s&&(n=r=a=0),o[i+e]=n,o[i+e+1]=r,o[i+e+2]=a,o[i+e+3]=s}i+=r}return o.buffer}(e),i);for(b=0;b<t.plte.length;b++)w.push(t.plte[b].est.rgba);let n=0;for(b=0;b<v.length;b++){const e=(j=v[b]).img.length;var A=new Uint8Array(t.inds.buffer,n>>2,e>>2);R.push(A);const o=new Uint8Array(t.abuf,n,e);h&&s(j.img,j.rect.width,j.rect.height,w,o,A),j.img.set(o),n+=e}}else for(S=0;S<v.length;S++){var j=v[S];const e=new Uint32Array(j.img.buffer);var T=j.rect.width;for(C=e.length,A=new Uint8Array(C),R.push(A),b=0;b<C;b++){const t=e[b];if(0!=b&&t==e[b-1])A[b]=A[b-1];else if(b>T&&t==e[b-T])A[b]=A[b-T];else{let e=E[t];if(null==e&&(E[t]=e=w.length,w.push(t),w.length>=300))break;A[b]=e}}}const I=w.length;for(I<=256&&0==m&&(f=I<=2?1:I<=4?2:I<=16?4:8,f=Math.max(f,d)),S=0;S<v.length;S++){(j=v[S]).rect.x,j.rect.y,T=j.rect.width;const e=j.rect.height;let t=j.img;new Uint32Array(t.buffer);let n=4*T,o=4;if(I<=256&&0==m){n=Math.ceil(f*T/8);var k=new Uint8Array(n*e);const i=R[S];for(let t=0;t<e;t++){b=t*n;const e=t*T;if(8==f)for(var L=0;L<T;L++)k[b+L]=i[e+L];else if(4==f)for(L=0;L<T;L++)k[b+(L>>1)]|=i[e+L]<<4-4*(1&L);else if(2==f)for(L=0;L<T;L++)k[b+(L>>2)]|=i[e+L]<<6-2*(3&L);else if(1==f)for(L=0;L<T;L++)k[b+(L>>3)]|=i[e+L]<<7-1*(7&L)}t=k,x=3,o=1}else if(0==$&&1==v.length){k=new Uint8Array(T*e*3);const i=T*e;for(b=0;b<i;b++){const e=3*b,n=4*b;k[e]=t[n],k[e+1]=t[n+1],k[e+2]=t[n+2]}t=k,x=2,o=3,n=3*T}j.img=t,j.bpl=n,j.bpp=o}return{ctype:x,depth:f,plte:w,frames:v}}function p(t,n,o,i,r,a,s){const l=Uint8Array,c=Uint32Array,d=new l(t[r-1]),p=new c(t[r-1]),m=r+1<t.length?new l(t[r+1]):null,h=new l(t[r]),g=new c(h.buffer);let x=n,f=o,y=-1,S=-1;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++){const o=a.x+t,s=a.y+e,l=s*n+o,c=g[l];0==c||0==i[r-1].dispose&&p[l]==c&&(null==m||0!=m[4*l+3])||(o<x&&(x=o),o>y&&(y=o),s<f&&(f=s),s>S&&(S=s))}-1==y&&(x=f=y=S=0),s&&(!(1&~x)&&x--,!(1&~f)&&f--),a={x:x,y:f,width:y-x+1,height:S-f+1};const C=i[r];C.rect=a,C.blend=1,C.img=new Uint8Array(a.width*a.height*4),0==i[r-1].dispose?(e(d,n,o,C.img,a.width,a.height,-a.x,-a.y,0),u(h,n,o,C.img,a)):e(h,n,o,C.img,a.width,a.height,-a.x,-a.y,0)}function u(t,n,o,i,r){e(t,n,o,i,r.width,r.height,-r.x,-r.y,2)}function m(e,t,n,o,i,r,a){const s=[];let l,c=[0,1,2,3,4];-1!=r?c=[r]:(t*o>5e5||1==n)&&(c=[0]),a&&(l={level:0});const d=UZIP;for(var p=0;p<c.length;p++){for(let r=0;r<t;r++)h(i,e,r,o,n,c[p]);s.push(d.deflate(i,l))}let u,m=1e9;for(p=0;p<s.length;p++)s[p].length<m&&(u=p,m=s[p].length);return s[u]}function h(e,t,o,i,r,a){const s=o*i;let l=s+o;if(e[l]=a,l++,0==a)if(i<500)for(var c=0;c<i;c++)e[l+c]=t[s+c];else e.set(new Uint8Array(t.buffer,s,i),l);else if(1==a){for(c=0;c<r;c++)e[l+c]=t[s+c];for(c=r;c<i;c++)e[l+c]=t[s+c]-t[s+c-r]+256&255}else if(0==o){for(c=0;c<r;c++)e[l+c]=t[s+c];if(2==a)for(c=r;c<i;c++)e[l+c]=t[s+c];if(3==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-(t[s+c-r]>>1)+256&255;if(4==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-n(t[s+c-r],0,0)+256&255}else{if(2==a)for(c=0;c<i;c++)e[l+c]=t[s+c]+256-t[s+c-i]&255;if(3==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-(t[s+c-i]>>1)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-(t[s+c-i]+t[s+c-r]>>1)&255}if(4==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-n(0,t[s+c-i],0)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-n(t[s+c-r],t[s+c-i],t[s+c-r-i])&255}}}function g(e,t){const n=new Uint8Array(e),o=n.slice(0),i=new Uint32Array(o.buffer),r=x(o,t),a=r[0],s=r[1],l=n.length,c=new Uint8Array(l>>2);let d;if(n.length<2e7)for(var p=0;p<l;p+=4)d=f(a,u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255)),c[p>>2]=d.ind,i[p>>2]=d.est.rgba;else for(p=0;p<l;p+=4){var u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255);for(d=a;d.left;)d=y(d.est,u,m,h,g)<=0?d.left:d.right;c[p>>2]=d.ind,i[p>>2]=d.est.rgba}return{abuf:o.buffer,inds:c,plte:s}}function x(e,t,n){null==n&&(n=1e-4);const o=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=b(e,i.i0,i.i1),i.est=$(i.bst);const r=[i];for(;r.length<t;){let t=0,i=0;for(var a=0;a<r.length;a++)r[a].est.L>t&&(t=r[a].est.L,i=a);if(t<n)break;const s=r[i],l=S(e,o,s.i0,s.i1,s.est.e,s.est.eMq255);if(s.i0>=l||s.i1<=l){s.est.L=0;continue}const c={i0:s.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};c.bst=b(e,c.i0,c.i1),c.est=$(c.bst);const d={i0:l,i1:s.i1,bst:null,est:null,tdst:0,left:null,right:null};for(d.bst={R:[],m:[],N:s.bst.N-c.bst.N},a=0;a<16;a++)d.bst.R[a]=s.bst.R[a]-c.bst.R[a];for(a=0;a<4;a++)d.bst.m[a]=s.bst.m[a]-c.bst.m[a];d.est=$(d.bst),s.left=c,s.right=d,r[i]=c,r.push(d)}for(r.sort((e,t)=>t.bst.N-e.bst.N),a=0;a<r.length;a++)r[a].ind=a;return[i,r]}function f(e,t,n,o,i){if(null==e.left)return e.tdst=function(e,t,n,o,i){const r=t-e[0],a=n-e[1],s=o-e[2],l=i-e[3];return r*r+a*a+s*s+l*l}(e.est.q,t,n,o,i),e;const r=y(e.est,t,n,o,i);let a=e.left,s=e.right;r>0&&(a=e.right,s=e.left);const l=f(a,t,n,o,i);if(l.tdst<=r*r)return l;const c=f(s,t,n,o,i);return c.tdst<l.tdst?c:l}function y(e,t,n,o,i){const{e:r}=e;return r[0]*t+r[1]*n+r[2]*o+r[3]*i-e.eMq}function S(e,t,n,o,i,r){for(o-=4;n<o;){for(;C(e,n,i)<=r;)n+=4;for(;C(e,o,i)>r;)o-=4;if(n>=o)break;const a=t[n>>2];t[n>>2]=t[o>>2],t[o>>2]=a,n+=4,o-=4}for(;C(e,n,i)>r;)n-=4;return n+4}function C(e,t,n){return e[t]*n[0]+e[t+1]*n[1]+e[t+2]*n[2]+e[t+3]*n[3]}function b(e,t,n){const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],r=n-t>>2;for(let a=t;a<n;a+=4){const t=e[a]*(1/255),n=e[a+1]*(1/255),r=e[a+2]*(1/255),s=e[a+3]*(1/255);i[0]+=t,i[1]+=n,i[2]+=r,i[3]+=s,o[0]+=t*t,o[1]+=t*n,o[2]+=t*r,o[3]+=t*s,o[5]+=n*n,o[6]+=n*r,o[7]+=n*s,o[10]+=r*r,o[11]+=r*s,o[15]+=s*s}return o[4]=o[1],o[8]=o[2],o[9]=o[6],o[12]=o[3],o[13]=o[7],o[14]=o[11],{R:o,m:i,N:r}}function $(e){const{R:t}=e,{m:n}=e,{N:o}=e,i=n[0],r=n[1],a=n[2],s=n[3],l=0==o?0:1/o,c=[t[0]-i*i*l,t[1]-i*r*l,t[2]-i*a*l,t[3]-i*s*l,t[4]-r*i*l,t[5]-r*r*l,t[6]-r*a*l,t[7]-r*s*l,t[8]-a*i*l,t[9]-a*r*l,t[10]-a*a*l,t[11]-a*s*l,t[12]-s*i*l,t[13]-s*r*l,t[14]-s*a*l,t[15]-s*s*l],d=c,p=v;let u=[Math.random(),Math.random(),Math.random(),Math.random()],m=0,h=0;if(0!=o)for(let x=0;x<16&&(u=p.multVec(d,u),h=Math.sqrt(p.dot(u,u)),u=p.sml(1/h,u),!(0!=x&&Math.abs(h-m)<1e-9));x++)m=h;const g=[i*l,r*l,a*l,s*l];return{Cov:c,q:g,e:u,L:m,eMq255:p.dot(p.sml(255,g),u),eMq:p.dot(u,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0]))>>>0}}var v={multVec:(e,t)=>[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]],dot:(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],sml:(e,t)=>[e*t[0],e*t[1],e*t[2],e*t[3]]};UPNG.encode=function(e,t,n,o,i,r,a){null==o&&(o=0),null==a&&(a=!1);const s=d(e,t,n,o,[!1,!1,!1,0,a,!1]);return c(s,-1),l(s,t,n,i,r)},UPNG.encodeLL=function(e,t,n,o,i,r,a,s){const d={ctype:0+(1==o?0:2)+(0==i?0:4),depth:r,frames:[]},p=(o+i)*r,u=p*t;for(let l=0;l<e.length;l++)d.frames.push({rect:{x:0,y:0,width:t,height:n},img:new Uint8Array(e[l]),blend:0,dispose:1,bpp:Math.ceil(p/8),bpl:Math.ceil(u/8)});return c(d,0,!0),l(d,t,n,a,s)},UPNG.encode.compress=d,UPNG.encode.dither=s,UPNG.quantize=g,UPNG.quantize.getKDtree=x,UPNG.quantize.getNearest=f}();const r={toArrayBuffer(e,t){const n=e.width,o=e.height,i=n<<2,a=e.getContext("2d").getImageData(0,0,n,o),s=new Uint32Array(a.data.buffer),l=(32*n+31)/32<<2,c=l*o,d=122+c,p=new ArrayBuffer(d),u=new DataView(p),m=1<<20;let h,g,x,f,y=m,S=0,C=0,b=0;function $(e){u.setUint16(C,e,!0),C+=2}function v(e){u.setUint32(C,e,!0),C+=4}function E(e){C+=e}$(19778),v(d),E(4),v(122),v(108),v(n),v(-o>>>0),$(1),$(32),v(3),v(c),v(2835),v(2835),E(8),v(16711680),v(65280),v(255),v(4278190080),v(1466527264),function e(){for(;S<o&&y>0;){for(f=122+S*l,h=0;h<i;)y--,g=s[b++],x=g>>>24,u.setUint32(f+h,g<<8|x),h+=4;S++}b<s.length?(y=m,setTimeout(e,r._dly)):t(p)}()},toBlob(e,t){this.toArrayBuffer(e,e=>{t(new Blob([e],{type:"image/bmp"}))})},_dly:9};var i={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},o={[i.CHROME]:16384,[i.FIREFOX]:11180,[i.DESKTOP_SAFARI]:16384,[i.IE]:8192,[i.IOS]:4096,[i.ETC]:8192};const a="undefined"!=typeof window,s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,f=a&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),CustomFile=(a||s)&&(f&&f.getOriginalSymbol(window,"File")||"undefined"!=typeof File&&File),CustomFileReader=(a||s)&&(f&&f.getOriginalSymbol(window,"FileReader")||"undefined"!=typeof FileReader&&FileReader);function getFilefromDataUrl(e,t,n=Date.now()){return new Promise(o=>{const i=e.split(","),r=i[0].match(/:(.*?);/)[1],a=globalThis.atob(i[1]);let s=a.length;const l=new Uint8Array(s);for(;s--;)l[s]=a.charCodeAt(s);const c=new Blob([l],{type:r});c.name=t,c.lastModified=n,o(c)})}function getDataUrlFromFile(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=()=>t(o.result),o.onerror=e=>n(e),o.readAsDataURL(e)})}function loadImage(e){return new Promise((t,n)=>{const o=new Image;o.onload=()=>t(o),o.onerror=e=>n(e),o.src=e})}function getBrowserName(){if(void 0!==getBrowserName.cachedResult)return getBrowserName.cachedResult;let e=i.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?e=i.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?e=i.IOS:/Safari/i.test(t)?e=i.DESKTOP_SAFARI:/Firefox/i.test(t)?e=i.FIREFOX:(/MSIE/i.test(t)||1==!!document.documentMode)&&(e=i.IE),getBrowserName.cachedResult=e,getBrowserName.cachedResult}function approximateBelowMaximumCanvasSizeOfBrowser(e,t){const n=getBrowserName(),i=o[n];let r=e,a=t,s=r*a;const l=r>a?a/r:r/a;for(;s>i*i;){const e=(i+r)/2,t=(i+a)/2;e<t?(a=t,r=t*l):(a=e*l,r=e),s=r*a}return{width:r,height:a}}function getNewCanvasAndCtx(e,t){let n,o;try{if(n=new OffscreenCanvas(e,t),o=n.getContext("2d"),null===o)throw new Error("getContext of OffscreenCanvas returns null")}catch(i){n=document.createElement("canvas"),o=n.getContext("2d")}return n.width=e,n.height=t,[n,o]}function drawImageInCanvas(e,t){const{width:n,height:o}=approximateBelowMaximumCanvasSizeOfBrowser(e.width,e.height),[i,r]=getNewCanvasAndCtx(n,o);return t&&/jpe?g/.test(t)&&(r.fillStyle="white",r.fillRect(0,0,i.width,i.height)),r.drawImage(e,0,0,i.width,i.height),i}function isIOS(){return void 0!==isIOS.cachedResult||(isIOS.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"undefined"!=typeof document&&"ontouchend"in document),isIOS.cachedResult}function drawFileInCanvas(e,t={}){return new Promise(function(n,o){let r,a;var s=function(){try{return a=drawImageInCanvas(r,t.fileType||e.type),n([r,a])}catch(i){return o(i)}},l=function(t){try{var n=function(e){try{throw e}catch(t){return o(t)}};try{let t;return getDataUrlFromFile(e).then(function(e){try{return t=e,loadImage(t).then(function(e){try{return r=e,function(){try{return s()}catch(e){return o(e)}}()}catch(t){return n(t)}},n)}catch(i){return n(i)}},n)}catch(i){n(i)}}catch(i){return o(i)}};try{if(isIOS()||[i.DESKTOP_SAFARI,i.MOBILE_SAFARI].includes(getBrowserName()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then(function(e){try{return r=e,s()}catch(t){return l()}},l)}catch(c){l()}})}function canvasToFile(e,t,n,o,i=1){return new Promise(function(a,s){let l;if("image/png"===t){let r,a,s;return r=e.getContext("2d"),({data:a}=r.getImageData(0,0,e.width,e.height)),s=UPNG.encode([a.buffer],e.width,e.height,4096*i),l=new Blob([s],{type:t}),l.name=n,l.lastModified=o,c.call(this)}{let a=function(){return c.call(this)};if("image/bmp"===t)return new Promise(t=>r.toBlob(e,t)).then(function(e){try{return l=e,l.name=n,l.lastModified=o,a.call(this)}catch(t){return s(t)}}.bind(this),s);{let r=function(){return a.call(this)};if("function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas)return e.convertToBlob({type:t,quality:i}).then(function(e){try{return l=e,l.name=n,l.lastModified=o,r.call(this)}catch(t){return s(t)}}.bind(this),s);{let a;return a=e.toDataURL(t,i),getFilefromDataUrl(a,n,o).then(function(e){try{return l=e,r.call(this)}catch(t){return s(t)}}.bind(this),s)}}}function c(){return a(l)}})}function cleanupCanvasMemory(e){e.width=0,e.height=0}function isAutoOrientationInBrowser(){return new Promise(function(e,t){let n,o,i,r;return void 0!==isAutoOrientationInBrowser.cachedResult?e(isAutoOrientationInBrowser.cachedResult):getFilefromDataUrl("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(a){try{return n=a,drawFileInCanvas(n).then(function(a){try{return o=a[1],canvasToFile(o,n.type,n.name,n.lastModified).then(function(n){try{return i=n,cleanupCanvasMemory(o),drawFileInCanvas(i).then(function(n){try{return r=n[0],isAutoOrientationInBrowser.cachedResult=1===r.width&&2===r.height,e(isAutoOrientationInBrowser.cachedResult)}catch(o){return t(o)}},t)}catch(a){return t(a)}},t)}catch(s){return t(s)}},t)}catch(s){return t(s)}},t)})}function getExifOrientation(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=e=>{const n=new DataView(e.target.result);if(65496!=n.getUint16(0,!1))return t(-2);const o=n.byteLength;let i=2;for(;i<o;){if(n.getUint16(i+2,!1)<=8)return t(-1);const e=n.getUint16(i,!1);if(i+=2,65505==e){if(1165519206!=n.getUint32(i+=2,!1))return t(-1);const e=18761==n.getUint16(i+=6,!1);i+=n.getUint32(i+4,e);const o=n.getUint16(i,e);i+=2;for(let r=0;r<o;r++)if(274==n.getUint16(i+12*r,e))return t(n.getUint16(i+12*r+8,e))}else{if(65280&~e)break;i+=n.getUint16(i,!1)}}return t(-1)},o.onerror=e=>n(e),o.readAsArrayBuffer(e)})}function handleMaxWidthOrHeight(e,t){const{width:n}=e,{height:o}=e,{maxWidthOrHeight:i}=t;let r,a=e;return isFinite(i)&&(n>i||o>i)&&([a,r]=getNewCanvasAndCtx(n,o),n>o?(a.width=i,a.height=o/n*i):(a.width=n/o*i,a.height=i),r.drawImage(e,0,0,a.width,a.height),cleanupCanvasMemory(e)),a}function followExifOrientation(e,t){const{width:n}=e,{height:o}=e,[i,r]=getNewCanvasAndCtx(n,o);switch(t>4&&t<9?(i.width=o,i.height=n):(i.width=n,i.height=o),t){case 2:r.transform(-1,0,0,1,n,0);break;case 3:r.transform(-1,0,0,-1,n,o);break;case 4:r.transform(1,0,0,-1,0,o);break;case 5:r.transform(0,1,1,0,0,0);break;case 6:r.transform(0,1,-1,0,o,0);break;case 7:r.transform(0,-1,-1,0,o,n);break;case 8:r.transform(0,-1,1,0,0,n)}return r.drawImage(e,0,0,n,o),cleanupCanvasMemory(e),i}function compress(e,t,n=0){return new Promise(function(o,i){let r,a,s,l,c,d,p,u,m,h,g,x,f,y,S,C,b,$,v,E;function w(e=5){if(t.signal&&t.signal.aborted)throw t.signal.reason;r+=e,t.onProgress(Math.min(r,100))}function R(e){if(t.signal&&t.signal.aborted)throw t.signal.reason;r=Math.min(Math.max(e,r),100),t.onProgress(r)}return r=n,a=t.maxIteration||10,s=1024*t.maxSizeMB*1024,w(),drawFileInCanvas(e,t).then(function(n){try{return[,l]=n,w(),c=handleMaxWidthOrHeight(l,t),w(),new Promise(function(n,o){var i;if(!(i=t.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,r.call(this)}catch(t){return o(t)}}.bind(this),o);function r(){return n(i)}return r.call(this)}).then(function(n){try{return d=n,w(),isAutoOrientationInBrowser().then(function(n){try{return p=n?c:followExifOrientation(c,d),w(),u=t.initialQuality||1,m=t.fileType||e.type,canvasToFile(p,m,e.name,e.lastModified,u).then(function(n){try{{let d=function(){if(a--&&(S>s||S>f)){let t,n;return t=E?.95*v.width:v.width,n=E?.95*v.height:v.height,[b,$]=getNewCanvasAndCtx(t,n),$.drawImage(v,0,0,t,n),u*="image/png"===m?.85:.95,canvasToFile(b,m,e.name,e.lastModified,u).then(function(e){try{return C=e,cleanupCanvasMemory(v),v=b,S=C.size,R(Math.min(99,Math.floor((y-S)/(y-s)*100))),d}catch(t){return i(t)}},i)}return[1]},A=function(){return cleanupCanvasMemory(v),cleanupCanvasMemory(b),cleanupCanvasMemory(c),cleanupCanvasMemory(p),cleanupCanvasMemory(l),R(100),o(C)};return h=n,w(),g=h.size>s,x=h.size>e.size,g||x?(f=e.size,y=h.size,S=y,v=p,E=!t.alwaysKeepResolution&&g,(r=function(e){for(;e;){if(e.then)return void e.then(r,i);try{if(e.pop){if(e.length)return e.pop()?A.call(this):e;e=d}else e=e.call(this)}catch(t){return i(t)}}}.bind(this))(d)):(R(100),o(h));var r}}catch(d){return i(d)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)})}const l="\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n})\n";let c;function compressOnWebWorker(e,t){return new Promise((n,o)=>{c||(c=function(e){const t=[];return t.push(e),URL.createObjectURL(new Blob(t))}(l));const i=new Worker(c);i.addEventListener("message",function(e){if(t.signal&&t.signal.aborted)i.terminate();else if(void 0===e.data.progress){if(e.data.error)return o(new Error(e.data.error)),void i.terminate();n(e.data.file),i.terminate()}else t.onProgress(e.data.progress)}),i.addEventListener("error",o),t.signal&&t.signal.addEventListener("abort",()=>{o(t.signal.reason),i.terminate()}),i.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})})}function imageCompression(e,t){return new Promise(function(n,o){let i,r,a,s,l,c;if(i={...t},a=0,({onProgress:s}=i),i.maxSizeMB=i.maxSizeMB||Number.POSITIVE_INFINITY,l="boolean"!=typeof i.useWebWorker||i.useWebWorker,delete i.useWebWorker,i.onProgress=e=>{a=e,"function"==typeof s&&s(a)},!(e instanceof Blob||e instanceof CustomFile))return o(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return o(new Error("The file given is not an image"));if(c="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!l||"function"!=typeof Worker||c)return compress(e,i).then(function(e){try{return r=e,u.call(this)}catch(t){return o(t)}}.bind(this),o);var d=function(){try{return u.call(this)}catch(e){return o(e)}}.bind(this),p=function(t){try{return compress(e,i).then(function(e){try{return r=e,d()}catch(t){return o(t)}},o)}catch(n){return o(n)}};try{return i.libURL=i.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",compressOnWebWorker(e,i).then(function(e){try{return r=e,d()}catch(t){return p()}},p)}catch(m){p()}function u(){try{r.name=e.name,r.lastModified=e.lastModified}catch(m){}try{i.preserveExif&&"image/jpeg"===e.type&&(!i.fileType||i.fileType&&i.fileType===e.type)&&(r=copyExifWithoutOrientation(e,r))}catch(m){}return n(r)}})}imageCompression.getDataUrlFromFile=getDataUrlFromFile,imageCompression.getFilefromDataUrl=getFilefromDataUrl,imageCompression.loadImage=loadImage,imageCompression.drawImageInCanvas=drawImageInCanvas,imageCompression.drawFileInCanvas=drawFileInCanvas,imageCompression.canvasToFile=canvasToFile,imageCompression.getExifOrientation=getExifOrientation,imageCompression.handleMaxWidthOrHeight=handleMaxWidthOrHeight,imageCompression.followExifOrientation=followExifOrientation,imageCompression.cleanupCanvasMemory=cleanupCanvasMemory,imageCompression.isAutoOrientationInBrowser=isAutoOrientationInBrowser,imageCompression.approximateBelowMaximumCanvasSizeOfBrowser=approximateBelowMaximumCanvasSizeOfBrowser,imageCompression.copyExifWithoutOrientation=copyExifWithoutOrientation,imageCompression.getBrowserName=getBrowserName,imageCompression.version="2.0.2";const PDF_MIME_TYPE$1="application/pdf",imageCompressionAcceptableFileTypes=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],RECEIPT_IMAGE_COMPRESSION_OPTIONS={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2},handleImageCompression=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,{useWebWorker:!0,maxWidthOrHeight:900,initialQuality:1,maxSizeMB:1.4}),o=n.lastModified,i=n.type.split("/")[1];let r=`image_${o}.${i}`;null!=t&&(r=`${t}.${i}`);return new File([n],r,{lastModified:o,type:n.type})},compressImageForReceipt=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,RECEIPT_IMAGE_COMPRESSION_OPTIONS),o=n.type.split("/")[1],i=t.replace(/\.[^.]+$/,"")||"image";return new File([n],`${i}.${o}`,{lastModified:e.lastModified,type:n.type})},PDF_RENDER_SCALE=1.5,PDF_JPEG_QUALITY=.7;function canvasToJpegBlob(e,t){return new Promise((n,o)=>{e.toBlob(e=>{null!=e?n(e):o(new Error("canvas.toBlob returned null"))},"image/jpeg",t)})}async function renderPageToJpeg(e,t,n){const o=e.getViewport({scale:t}),i=document.createElement("canvas");i.width=Math.floor(o.width),i.height=Math.floor(o.height);const r=i.getContext("2d");if(null==r)throw new Error("Could not get canvas 2d context");await e.render({canvasContext:r,viewport:o}).promise;return(await canvasToJpegBlob(i,n)).arrayBuffer()}async function compressPdfForReceipt(e,t){const[{PDFDocument:n},o]=await Promise.all([Promise.resolve().then(()=>require("./index-By9FvrjI.cjs")),Promise.resolve().then(()=>index$2).then(e=>e.pdfjs)]),i=await e.arrayBuffer(),r=await o.getDocument({data:new Uint8Array(i)}).promise,a=r.numPages,s=await n.create();for(let d=1;d<=a;d++){const e=await r.getPage(d),t=await renderPageToJpeg(e,PDF_RENDER_SCALE,PDF_JPEG_QUALITY),n=await s.embedJpg(new Uint8Array(t)),o=n.scale(1);s.addPage([o.width,o.height]).drawImage(n,{x:0,y:0,width:o.width,height:o.height})}const l=await s.save(),c=t.toLowerCase().endsWith(".pdf")?t:`${t}.pdf`;return new File([l],c,{type:PDF_MIME_TYPE$1,lastModified:e.lastModified})}async function compressSingleFile(e,t){const n=e instanceof File?e:new File([e],t,{type:e.type});if(e.type===PDF_MIME_TYPE$1){const o=await compressPdfForReceipt(n,t);return o.size<n.size?{blob:o,name:o.name}:{blob:e,name:t}}const o=await compressImageForReceipt(n,t);return{blob:o,name:o.name}}async function compressReceiptFiles(e,t){const n=await Promise.all(e.map((e,n)=>{const o=t[n]??`file_${n}`;return compressSingleFile(e,o).catch(t=>(console.warn("[compressReceiptFiles] compression failed, using original:",t instanceof Error?t.message:t),{blob:e,name:o}))}));return{blobs:n.map(e=>e.blob),names:n.map(e=>e.name)}}const InputElementMobileCamera=({fileType:e="file",fileRef:t,name:n,value:o="",multiple:i=!1,acceptableTypes:r,onFileSizeError:a,onImageChange:s})=>jsxRuntimeExports.jsx("input",{type:e,ref:t,name:n,value:o,size:1e3,"data-testid":generateDataTestId("input-file-element-mobile",n),onChange:async e=>{const t=e.target.files?.[0],n=t?.size;null!=t&&null!=n?(a?.(!1),s(t),e.target.value=""):(a?.(!0),e.target.value="")},style:{display:"none"},accept:`${(r??"image/jpg, image/jpeg").toString()}`,multiple:i,capture:!0}),MoneyTransferSuccessAnimation=({shouldDisplay:e,width:t=30,height:n=30,styles:o,animationInLoop:i=!1})=>{const[,r]=useMusic(SUCCESS_SOUND_SOURCE),[a]=useAnimation("MoneyTransferSuccess");return React.useEffect(()=>{e&&r(!0)},[e,r]),e&&null!=a?jsxRuntimeExports.jsx(Lottie,{style:{width:t,height:n,...o},play:!0,animationData:a,loop:i,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null};var browserPonyfill={exports:{}},hasRequiredBrowserPonyfill;function requireBrowserPonyfill(){return hasRequiredBrowserPonyfill||(hasRequiredBrowserPonyfill=1,function(e,t){var n,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1,i=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();n=i,function(e){var t=void 0!==n&&n||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1||{},o="URLSearchParams"in t,i="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in t,s="ArrayBuffer"in t;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function x(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(r)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,o,i,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=o?o[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=p(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},m.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},m.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},i&&(m.prototype[Symbol.iterator]=m.prototype.entries);var S=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(e,n){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var o,i,r=(n=n||{}).body;if(e instanceof C){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new m(n.headers)),this.method=(o=n.method||this.method||"GET",i=o.toUpperCase(),S.indexOf(i)>-1?i:o),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function b(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function $(e,t){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},y.call(C.prototype),y.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},$.error=function(){var e=new $(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var v=[301,302,303,307,308];$.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new $(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(w){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function E(n,o){return new Promise(function(i,a){var l=new C(n,o);if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),o=n.shift().trim();if(o){var i=n.join(":").trim();try{t.append(o,i)}catch(r){console.warn("Response "+r.message)}}}),t)};0===l.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout(function(){i(new $(o,n))},0)},c.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(n){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(r?c.responseType="blob":s&&(c.responseType="arraybuffer")),o&&"object"==typeof o.headers&&!(o.headers instanceof m||t.Headers&&o.headers instanceof t.Headers)){var h=[];Object.getOwnPropertyNames(o.headers).forEach(function(e){h.push(d(e)),c.setRequestHeader(e,p(o.headers[e]))}),l.headers.forEach(function(e,t){-1===h.indexOf(t)&&c.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){c.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",u)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=m,t.Request=C,t.Response=$),e.Headers=m,e.Request=C,e.Response=$,e.fetch=E,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=o.fetch?o:i;(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}var browserPonyfillExports=requireBrowserPonyfill();const fetch$1=getDefaultExportFromCjs(browserPonyfillExports),SvgNewVendor=e=>React__namespace.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},React__namespace.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));__webpack_exports__GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${__webpack_exports__version}/pdf.worker.mjs`;const{common:common$3b}=appLocale.getLocalizedStrings(),FileInputElementName$1="invoice",getEffectiveCitationVariant=(e,t,n)=>{if("deleted"===e.variant)return"deleted";if("excluded"===e.variant)return"excluded";return null!=t&&e.statementTransactionId===t||null!=n&&e.statementTransactionId===n?"hovered":e.variant??"default"},findCitationTransactionIdAtPoint=(e,t,n)=>{const o=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const i of o){if("excluded"===i.dataset.citationVariant)continue;const e=i.getBoundingClientRect();if(t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom)return i.dataset.statementTransactionId}},getScrollTargetPageNumber=(e,t)=>{if(null==t)return;const n=e.find(e=>e.statementTransactionId===t);return n?.page},isElementVisibleInContainer=(e,t)=>{const n=e.getBoundingClientRect(),o=null!=t?t.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return n.bottom>o.top&&n.top<o.bottom&&n.right>o.left&&n.left<o.right},getScrollableParent=e=>{let t=e.parentElement;for(;null!=t;){const{overflowY:e}=window.getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null},scrollPageElementIntoView=(e,t,n="smooth")=>{const o=t??getScrollableParent(e);if(null==o)return void e.scrollIntoView({behavior:n,block:"center"});const i=e.getBoundingClientRect(),r=o.getBoundingClientRect(),a=o.scrollTop+(i.top-r.top)-(o.clientHeight-i.height)/2;o.scrollTo({top:Math.max(0,a),behavior:n})};function getPolygonBounds(e){const t=e.map(e=>e.x),n=e.map(e=>e.y);return{maxX:Math.max(...t),maxY:Math.max(...n),minX:Math.min(...t),minY:Math.min(...n)}}function convertPolygonToPercent(e,t,n){const{minX:o,maxX:i,minY:r,maxY:a}=getPolygonBounds(e);return{height:(a-r)/n*100,left:o/t*100,top:r/n*100,width:(i-o)/t*100}}function RenderPdf(e){const[t,n]=React.useState(0),[o,i]=React.useState(void 0),[r,a]=React.useState(null),[s,l]=React.useState(void 0),c=useWindowSizeContext(),d=React.useRef(null),p=React.useRef(null),u=React.useRef(void 0),m=null!=e.highlightedCitations&&e.highlightedCitations.length>0;React.useLayoutEffect(()=>{if(e.isFullScreen)return void i(void 0);const t=p.current;if(null==t)return;const n=()=>{const e=Math.floor(t.clientWidth);e>0&&i(t=>t===e?t:e)};n();const o=new ResizeObserver(n);return o.observe(t),()=>{o.disconnect()}},[e.isFullScreen,e.fileUrl]);const h=t=>{u.current!==t&&(u.current=t,l(t),e.onCitationHover?.(t))},g=e=>{!0===m&&h(findCitationTransactionIdAtPoint(e.currentTarget,e.clientX,e.clientY))},x=()=>{!0===m&&h(void 0)},f=t=>{null!=e.onCitationClick&&e.onCitationClick(findCitationTransactionIdAtPoint(t.currentTarget,t.clientX,t.clientY))},y=React.useCallback(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length)return;const t=getScrollTargetPageNumber(e.highlightedCitations,e.selectedStatementTransactionId);if(null==t)return;const n=p.current?.querySelector(`[data-testid="pdf-page-${t}"]`);if(null!=n){const t=p.current,o=null!=t&&t.scrollHeight>t.clientHeight?t:null,i=(null!=e.selectedStatementTransactionId?n.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??n;if(isElementVisibleInContainer(i,o))return;scrollPageElementIntoView(i,o)}},[e.highlightedCitations,e.selectedStatementTransactionId]);React.useEffect(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length||null==e.selectedStatementTransactionId)return;y();const t=requestAnimationFrame(y),n=window.setTimeout(y,150);return()=>{cancelAnimationFrame(t),window.clearTimeout(n)}},[e.highlightedCitations,e.selectedStatementTransactionId,t,y]),React.useEffect(()=>{a(null),n(0)},[e.fileUrl]);const S=t=>{if(!e.highlightedCitations)return null;const n=e.highlightedCitations.filter(e=>e.page===t);return 0===n.length?null:jsxRuntimeExports.jsx(HighlightsOverlay,{children:n.flatMap((t,n)=>{const o=convertPolygonToPercent(t.polygon,t.pageWidth,t.pageHeight),i=getEffectiveCitationVariant(t,e.selectedStatementTransactionId,s);return jsxRuntimeExports.jsx(HighlightBox,{"data-citation-variant":i,"data-statement-transaction-id":t.statementTransactionId,$variant:i,style:{height:`${o.height}%`,left:`${o.left}%`,top:`${o.top}%`,width:`${o.width}%`}},`${n}`)})})},C=()=>{e.setShowFullScreenView(!0)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FileInputElement,{fileRef:d,name:FileInputElementName$1,onFileChange:t=>{if(null!=t.target.files){const n=t.target.files[0];e.onUploadAttachment?.([n],[n.name])}},multiple:e.allowMultiFiles,sizeLimit:SizeLimit32MB,onFileSizeError:t=>e.openSizeLimitPopup?.(t)}),jsxRuntimeExports.jsx(AttachmentContainer$2,{maxHeight:e.maxHeight??!1,$allowTextSelection:m,"data-statement-pdf-surface":"",onClick:()=>{m||C()},onDoubleClick:()=>{m&&C()},windowSize:c,"data-testid":generateDataTestId("attachment-container",e.pdfTitle),children:jsxRuntimeExports.jsxs(PdfRender,{isFullScreen:e.isFullScreen,ref:p,children:[!0===e.showTitlebar?jsxRuntimeExports.jsxs(Titlebar$2,{children:[jsxRuntimeExports.jsx(PdfTitle$2,{children:e.pdfTitle}),!0===e.showTitlebarIcon?jsxRuntimeExports.jsxs(ActionIcons$1,{className:"actionIcons",children:[!1!==e.showReplaceIcon?jsxRuntimeExports.jsx(Tooltip$6,{enterDelay:600,display:"flex",title:common$3b.texts.replace,placement:"top-end",children:jsxRuntimeExports.jsx(ReplaceIconWrapper$1,{"data-testid":generateDataTestId("replace-attachment",e.pdfTitle),onClick:e=>{e.stopPropagation(),d.current?.click()}})}):null,"small"===c?jsxRuntimeExports.jsx(DeleteIconWrapperMobile$1,{"data-testid":null!=e.deleteAttachmentDataTestId?`${e.deleteAttachmentDataTestId}-mobile`:generateDataTestId("delete-attachment-mobile",e.pdfTitle),onClick:t=>{t.stopPropagation(),e.onDeleteClick?.()}}):jsxRuntimeExports.jsx(Tooltip$6,{enterDelay:600,display:"flex",title:common$3b.delete,placement:"top",children:jsxRuntimeExports.jsx(DeleteIconWrapper$c,{onClick:t=>{t.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??generateDataTestId("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const t=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some(e=>t.includes(e))})()?jsxRuntimeExports.jsx(ImageContainer$1,{children:jsxRuntimeExports.jsxs(ImageWrapper$2,{onMouseMove:g,onMouseLeave:x,onClick:f,children:[jsxRuntimeExports.jsx(StyledImage$g,{src:e.fileUrl,alt:e.pdfTitle,onLoad:e=>{const t=e.currentTarget;a({width:t.naturalWidth,height:t.naturalHeight})}},e.fileUrl),(()=>{if(!e.highlightedCitations||null==r)return null;const t=e.highlightedCitations.filter(e=>1===e.page);return 0===t.length?null:jsxRuntimeExports.jsx(HighlightsOverlay,{children:t.flatMap((t,n)=>{const o=convertPolygonToPercent(t.polygon,t.pageWidth,t.pageHeight),i=getEffectiveCitationVariant(t,e.selectedStatementTransactionId,s);return jsxRuntimeExports.jsx(HighlightBox,{"data-citation-variant":i,"data-statement-transaction-id":t.statementTransactionId,$variant:i,style:{height:`${o.height}%`,left:`${o.left}%`,top:`${o.top}%`,width:`${o.width}%`}},`${n}`)})})})()]})}):jsxRuntimeExports.jsxs(Document,{file:e.fileUrl,onLoadSuccess:({numPages:e})=>n(e),onLoadError:()=>n(0),loading:jsxRuntimeExports.jsx(BusyContainer$e,{children:jsxRuntimeExports.jsx(ActivityIndicator,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(t),(n,i)=>jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:()=>e.onCrossClick?.(),children:jsxRuntimeExports.jsxs(PageWrapper$1,{windowSize:c,isFullScreen:e.isFullScreen,children:[jsxRuntimeExports.jsxs(PageContainer$p,{"data-testid":`pdf-page-${i+1}`,isFullScreen:e.isFullScreen,onMouseMove:g,onMouseLeave:x,onClick:f,children:[jsxRuntimeExports.jsx(Page$7,{pageNumber:i+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:null!=o?{width:o}:{scale:1},error:jsxRuntimeExports.jsx("div",{}),onRenderSuccess:()=>{(null!=e.highlightedCitations?getScrollTargetPageNumber(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===i+1&&y()}},`page_${i+1}`),S(i+1)]}),t!=i+1?jsxRuntimeExports.jsx(Divider$c,{}):null]})},`page_${i+1}`)),jsxRuntimeExports.jsx("div",{})]},e.fileUrl)]})})]})}const AttachmentContainer$2=styled$2.div`
|
|
10218
10218
|
max-height: ${e=>!0===e.maxHeight?"650px":"auto"};
|
|
10219
10219
|
display: flex;
|
|
10220
10220
|
flex-direction: column;
|
|
@@ -78523,7 +78523,7 @@ to {
|
|
|
78523
78523
|
display: flex;
|
|
78524
78524
|
justify-content: flex-end;
|
|
78525
78525
|
padding: ${Space.sp0} ${Space.sp3};
|
|
78526
|
-
`,KPI_TILE_BREAKDOWN_PLACEHOLDER=" ";function formatAmount(e){return amountToString("0,0",e)}function buildTypeBreakdown(e,t){const n={};for(const o of e){const e=clientEpicState.getJEScheduleRowType(o);null!=e&&(n[e]=(n[e]??0)+1)}return Object.entries(n).filter(([,e])=>e>0).map(([e,n])=>`${n} ${t[e]??e}`).join(" • ")}function buildTypeBreakdownItems(e,t){const n={};for(const o of e){const e=clientEpicState.getJEScheduleRowType(o);null!=e&&(n[e]=(n[e]??0)+1)}return Object.entries(n).filter(([,e])=>e>0).map(([e,n])=>({text:t[e]??e,amount:n.toString()}))}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$a,oneTimeAccrualType:oneTimeAccrualType$2}},common:{strings:{hyphen:hyphen$k}},dateFormat:dateFormat$o}=appLocale.getLocalizedStrings(),EMPTY_ACTUAL_MATCHING_KPI_SUMMARY={actualsReceived:{count:0,expectedCount:0,vendorsPending:0},autoReversed:{count:0,percent:0,clearedAmount:0},pendingReview:{count:0,amount:0,estimatedMinutesToClear:0},variance:{percent:0,averagePercentPerMatch:0,netAmount:0}},EMPTY_ACTUAL_MATCHING_VIEW={fetchState:"Not-Started",error:void 0,reversed:[],pendingReview:[],kpiSummary:EMPTY_ACTUAL_MATCHING_KPI_SUMMARY,uiState:{sortKey:"date",sortOrder:"descending",searchString:"",scrollPosition:void 0,statusFilter:"all"},refreshStatus:{fetchState:"Not-Started",error:void 0},ignoreStatusByMatchId:{},undoReversalStatusByMatchId:{},hasLoadedForSelectedPeriod:!1,matchModal:{isOpen:!1,confirmStatus:{fetchState:"Not-Started",error:void 0},transactionSearch:{query:"",results:[],fetchState:{fetchState:"Not-Started",error:void 0},nextPageToken:null,isLoadingMore:!1},accrualSearch:{query:"",results:[],fetchState:{fetchState:"Not-Started",error:void 0},nextPageToken:null,isLoadingMore:!1}}};function getActualMatchingFromSelector(e){return e.actualMatching??EMPTY_ACTUAL_MATCHING_VIEW}function getAccruedAmount(e){return e.accruedAmount?.amount??e.estimatedAmount.amount}function isGroupedClearedMatch(e){const t=e?.groupSum?.amount;if(null==t||t<=0)return!1;const n=e?.matchShape;return"1:N"===n||"N:1"===n||(e?.accrualIds?.length??0)>1}function getActualAmount(e){return null!=e.actualAmount?e.actualAmount.amount:"pending_review"===e.kind?e.matchSuggestion?.matchedAmount?.amount:e.cleared?.matchedAmount?.amount}function getVariancePercent(e){if(isGroupedClearedMatch(e.cleared)){const t=e.cleared?.matchedAmount?.amount,n=e.cleared?.groupSum?.amount;if(null==t||null==n||0===n)return;return(t-n)/n*100}const t=getAccruedAmount(e),n=getActualAmount(e);if(null!=n&&0!==t)return(n-t)/t*100}function formatVariancePercent(e){const t=Math.round(10*e)/10;return`${t>0?"+":""}${t.toFixed(1)}%`}function getVarianceCapsuleType(e){const t=Math.abs(e);return t<=5?"success":t<=15?"warning":"attention"}function getMatchTierKey(e){return e.cleared?.matchTier??e.matchSuggestion?.matchTier}function getMatchTierLabel(e){const t=getMatchTierKey(e);return"tier_1"===t?actualMatchingStrings$a.matchTier.exact:"tier_2"===t?actualMatchingStrings$a.matchTier.fuzzy:"manual"===t?actualMatchingStrings$a.matchTier.manual:"agent"===e.origin?actualMatchingStrings$a.matchTier.aiAccountant:hyphen$k}function getMatchTierCapsuleType(e){const t=getMatchTierKey(e);return"tier_1"===t?"success":"tier_2"===t?"warning":"manual"===t?"default":"info"}function getActualMatchingTypeLabel(e){const t=e.cleared?.matchedTransactionType??e.matchSuggestion?.matchedTransactionType;return null!=t&&""!==t?formatTransactionTypeLabel(t):oneTimeAccrualType$2}function getActualMatchingTypeCapsuleType(e){const t=(e.cleared?.matchedTransactionType??e.matchSuggestion?.matchedTransactionType??"").toLowerCase();return"bill"===t?"info":"expense"===t||t.includes("card")||"credit_card_payment"===t?"success":t.includes("payroll")?"attention":t.includes("ach")||"check"===t||"transfer"===t?"warning":"default"}function formatActualMatchingServiceMonth(e){return/^\d{4}-\d{2}$/.test(e)?clientEpicState.zeniDate(`${e}-01`).format(dateFormat$o.visual.MMMYYYYFormat):""===e?hyphen$k:e}function toServiceMonthIndex(e){const t=/^(\d{4})-(\d{2})$/.exec(e);return null==t?null:12*Number(t[1])+Number(t[2])-1}function formatServiceMonthName(e){return clientEpicState.zeniDate(`${e}-01`).format("MMM")}function getUniqueSortedServiceMonths(e){return[...new Set(e.filter(e=>null!=toServiceMonthIndex(e)))].sort((e,t)=>(toServiceMonthIndex(e)??0)-(toServiceMonthIndex(t)??0))}function collapseServiceMonthRuns(e){const t=[];return e.forEach(e=>{const n=t.at(-1),o=toServiceMonthIndex(e),i=null!=n?toServiceMonthIndex(n.end):null;null==n||null==o||null==i||o!==i+1?t.push({start:e,end:e}):n.end=e}),t}function formatServiceMonthRun(e,t){const n=formatServiceMonthName(e.start),o=e.start.slice(0,4);if(e.start===e.end)return t?`${n} ${o}`:n;const i=formatServiceMonthName(e.end),r=e.end.slice(0,4);if(o===r){const e=`${n}-${i}`;return t?`${e} ${o}`:e}return`${n} ${o}-${i} ${r}`}function formatActualMatchingServiceMonths(e){const t=getUniqueSortedServiceMonths(e);if(0===t.length)return hyphen$k;if(1===t.length)return formatActualMatchingServiceMonth(t[0]);const n=collapseServiceMonthRuns(t);if(1===new Set(t.map(e=>e.slice(0,4))).size){const e=t[0].slice(0,4);return`${n.map(e=>formatServiceMonthRun(e,!1)).join(", ")} ${e}`}return n.map(e=>formatServiceMonthRun(e,!0)).join(", ")}function getActualMatchingServiceMonths(e){const t=(e.groupedMembers??[]).map(e=>e.serviceMonth).filter(e=>null!=e&&""!==e);return t.length>0?getUniqueSortedServiceMonths(t):""===e.serviceMonth?[]:getUniqueSortedServiceMonths([e.serviceMonth])}function getActualMatchingServiceLabel(e){return formatActualMatchingServiceMonths(getActualMatchingServiceMonths(e))}function getReceivedDate(e){if(null!=e.reversalDate)return e.reversalDate;if(null==e.transactionDate||""===e.transactionDate)return;const t=clientEpicState.zeniDate(e.transactionDate);return Number.isFinite(t.valueOf())?t:void 0}function getReceivedLabel(e){return getReceivedDate(e)?.format(dateFormat$o.visual.MMMDFormat)??hyphen$k}function getReversesGroupedCount(e){const t=e.intendedAccrualIds;if(null!=t&&t.length>0)return t.length;const n=e.leftovers?.length??0,o=e.groupedAccrualIds??e.cleared?.accrualIds;return(null!=o&&o.length>0?o.length:1)+n}function isGroupedActualMatchingRow(e){return getReversesGroupedCount(e)>1}function groupedMemberFromRow(e,t){return t!==e.accrualId?{accrualId:t}:{accrualId:t,estimatedAmount:e.estimatedAmount,jeDebitAccountName:e.jeDebitAccountName,memo:e.memo,serviceMonth:e.serviceMonth}}const MAX_GROUPED_MENU_ITEMS=12;function getGroupedAccrualMenuItems(e){if(!isGroupedActualMatchingRow(e))return[];if(null!=e.groupedMembers&&e.groupedMembers.length>0)return e.groupedMembers.slice(0,MAX_GROUPED_MENU_ITEMS);const t=e.groupedAccrualIds??e.cleared?.accrualIds;return null==t||t.length<=1?[]:t.slice(0,MAX_GROUPED_MENU_ITEMS).map(t=>groupedMemberFromRow(e,t))}function getReversesLabel(e){const t=getReversesGroupedCount(e);if(t>1)return actualMatchingStrings$a.reversesCount.replace("{count}",String(t));const n=e.memo.trim();return""!==n?n:hyphen$k}function getReversesTooltip(e){if(isGroupedActualMatchingRow(e)){const t=getGroupedAccrualMenuItems(e).map(e=>e.memo?.trim()).filter(e=>null!=e&&""!==e),n=[...new Set(t)];if(n.length>0)return n.join(", ")}return e.memo.trim()}function isSameMatchVendor(e,t){const n=e.vendorId,o=t.vendorId;return null!=n&&""!==n&&null!=o&&""!==o&&n===o}const DEFAULT_DISPLAY_CURRENCY={amount:0,currencyCode:"USD",currencySymbol:"$"};function getAccruedDisplayAmount(e){if(null!=e.accruedAmount)return e.accruedAmount;const t=e.groupedMembers;if(null!=t&&t.length>1){const n=t.map(e=>e.estimatedAmount);if(n.every(e=>null!=e)){const t=n.reduce((e,t)=>e+t.amount,0);return clientEpicState.toAmount(t,e.estimatedAmount.currencyCode,e.estimatedAmount.currencySymbol)}}return e.estimatedAmount}function getActualDisplayAmount(e){const t=getActualAmount(e);if(null!=t)return clientEpicState.toAmount(t,e.estimatedAmount.currencyCode,e.estimatedAmount.currencySymbol)}function getActualMatchingDisplayCurrency(e){return e[0]?.estimatedAmount??DEFAULT_DISPLAY_CURRENCY}function formatKpiAmount(e,t){return formatAmount(clientEpicState.toAmount(e,t.currencyCode,t.currencySymbol))}function isHumanReversedRow(e){return"manually_reversed"===e.kind||"manual_reverse"===e.reversalTrigger}function isAiReversedBy(e){return"pending_review"===e.kind||!isHumanReversedRow(e)}function getColumnKeyForActualMatchingSortKey(e){switch(e){case"vendor":return"vendor";case"type":return"type";case"amount":case"accrued":return"accrued";case"actual":return"actual";case"variance":return"variance";default:return"received"}}function getActualMatchingColumnSortValue(e,t){switch(t){case"received":return getReceivedDate(e)?.valueOf()??null;case"vendor":return e.vendorName.toLowerCase();case"type":return getActualMatchingTypeLabel(e).toLowerCase();case"accrued":return getAccruedAmount(e);case"actual":return getActualAmount(e)??null;case"variance":return getVariancePercent(e)??null;default:return null}}function sortActualMatchingRowsByColumn(e,t,n){const o="ascending"===n?1:-1;return[...e].sort((e,n)=>{const i=getActualMatchingColumnSortValue(e,t),r=getActualMatchingColumnSortValue(n,t);return null==i&&null==r?0:null==i?1:null==r?-1:"number"==typeof i&&"number"==typeof r?(i-r)*o:String(i).localeCompare(String(r),void 0,{numeric:!0,sensitivity:"base"})*o})}function getUndoReversalAccrualIds(e){const t=(e.groupedMembers??[]).map(e=>e.accrualId).filter(e=>""!==e);return t.length>0?Array.from(new Set(t)):""!==e.accrualId?[e.accrualId]:[]}function getActualMatchingStatusFilter(e){const t=e.statusFilter;return"pending_review"===t||"auto_reversed"===t?t:"all"}function getMatchedBillTransaction(e){const t=[...e.members,...e.leftovers??[]];for(const n of t){const t=n.cleared?.matchedTransactionId??n.matchSuggestion?.matchedTransactionId??"";if(""===t)continue;const o=n.cleared?.matchedTransactionType??n.matchSuggestion?.matchedTransactionType??e.transactionType;if(""!==o)return{id:t,type:o}}return null}function getUndoReversalAccrualIdsFromMatch(e){return Array.from(new Set(e.members.map(e=>e.accrualId).filter(e=>""!==e)))}function getApproveAndReverseParams(e){const t=e.members.map(e=>e.matchSuggestion).find(e=>null!=e?.matchedTransactionId&&""!==e.matchedTransactionId),n=t?.matchedTransactionId??"",o=t?.matchedTransactionIntegrationId??e.transactionIntegrationId,i=(t?.matchedTransactionType??e.transactionType).toLowerCase(),r=t?.matchedLineId??"",a=getUndoReversalAccrualIdsFromMatch(e);return""===n||""===o||""===i||""===r||0===a.length?null:{accrualIds:a,lineIds:[r],transactionId:n,transactionIntegrationId:o,transactionSyncToken:t?.matchedTransactionSyncToken??"",transactionType:i}}function getLeftoverWarningTooltip(e){return(e.leftovers??[]).map(e=>`${null!=e.memo&&""!==e.memo.trim()?e.memo.trim():hyphen$k} · ${null!=e.serviceMonth&&""!==e.serviceMonth?formatActualMatchingServiceMonth(e.serviceMonth):hyphen$k} · ${null!=e.estimatedAmount?formatAmount(e.estimatedAmount):hyphen$k}`).join("\n")}function pruneSelectionToVisibleResults(e,t,n){return"Completed"!==n?e:e.filter(e=>t.has(e))}function nextSelectedTransactionLines(e,t,n){if(e.includes(t))return e.filter(e=>e!==t);const o=n.find(e=>getTransactionLineKey(e.transactionId,e.lineId)===t);if(null==o)return e;if(0===e.length)return[t];const i=n.find(t=>getTransactionLineKey(t.transactionId,t.lineId)===e[0]);return null!=i&&i.transactionIntegrationId===o.transactionIntegrationId&&i.transactionType===o.transactionType?[...e,t]:[t]}function pickPrefillTransactionLines(e,t){if(0===e.length)return[];const n=t?.consumedLineIds,o=t?.matchedTransactionId;if(null!=n&&n.length>0){if(null==o)return[];const t=e.filter(e=>e.transactionId===o);return n.flatMap(e=>{const n=t.find(t=>t.lineId===e);return null!=n?[getTransactionLineKey(n.transactionId,n.lineId)]:[]})}const i=pickPrefillTransactionLine(e,t);return null!=i?[i]:[]}function pickPrefillTransactionLine(e,t){if(0===e.length)return null;const n=t?.matchedLineId,o=t?.matchedTransactionId;if(null!=o&&null!=n){const t=e.find(e=>e.transactionId===o&&e.lineId===n);if(null!=t)return getTransactionLineKey(t.transactionId,t.lineId)}const i=null!=o?e.filter(e=>e.transactionId===o):e;if(null!=o&&0===i.length)return null;const r=i;if(1===r.length)return getTransactionLineKey(r[0].transactionId,r[0].lineId);const a=t?.actualAmount;if(null!=a){const e=r.filter(e=>areMatchAmountsEqual(e.amount,a));if(1===e.length)return getTransactionLineKey(e[0].transactionId,e[0].lineId)}return null}function shouldPromptSelectMatchLine({isTxnSearchComplete:e,lineCount:t,openedFromMatchId:n,selectedLineKey:o}){return null!=n&&""!==n&&e&&t>1&&null==o}function areMatchAmountsEqual(e,t){return Math.abs(e-t)<.005}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$9}},common:{strings:{middleDot:middleDot$2}}}=appLocale.getLocalizedStrings();function KpiTile$3({footer:e,footerTone:t="default",hover:n,icon:o,label:i,primary:r,secondary:a,secondaryWithDot:s=!1}){return jsxRuntimeExports.jsx(Tile$2,{children:jsxRuntimeExports.jsxs(Header$6,{children:[jsxRuntimeExports.jsxs(TitleRow$2,{children:[jsxRuntimeExports.jsx(TileLabel$2,{children:i}),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"flex",placement:"bottom",title:n,children:jsxRuntimeExports.jsx(IconWrap,{children:o})})]}),jsxRuntimeExports.jsxs(ValueRow,{children:[jsxRuntimeExports.jsx(TilePrimary,{children:r}),null!=a&&""!==a?jsxRuntimeExports.jsx(TileSecondary,{children:s?`${middleDot$2} ${a}`:a}):null]}),jsxRuntimeExports.jsx(TileFooter,{$tone:t,children:e??" "})]})})}function vendorsPendingFooter(e){if(!(e<=0))return 1===e?actualMatchingStrings$9.kpi.vendorStillPending:actualMatchingStrings$9.kpi.vendorsStillPending.replace("{count}",String(e))}function ActualMatchingKpiStrip({displayCurrency:e,kpiSummary:t}){const{actualsReceived:n,autoReversed:o,pendingReview:i,variance:r}=t,a=n.expectedCount>n.count;return jsxRuntimeExports.jsxs(Strip$3,{"data-testid":generateDataTestId("actual matching kpi strip"),children:[jsxRuntimeExports.jsx(KpiTile$3,{footer:vendorsPendingFooter(n.vendorsPending),hover:actualMatchingStrings$9.kpi.hover.actualsReceived,icon:jsxRuntimeExports.jsx(StyledDownloadIcon,{}),label:actualMatchingStrings$9.kpi.actualsReceived,primary:String(n.count),secondary:a?actualMatchingStrings$9.kpi.ofExpected.replace("{count}",String(n.expectedCount)):void 0}),jsxRuntimeExports.jsx(KpiTile$3,{footer:i.count>0?actualMatchingStrings$9.kpi.estMinutesToClear.replace("{minutes}",String(i.estimatedMinutesToClear)):void 0,hover:actualMatchingStrings$9.kpi.hover.pendingReview,icon:jsxRuntimeExports.jsx(StyledActivityIcon$3,{}),label:actualMatchingStrings$9.kpi.pendingReview,primary:String(i.count),secondary:formatKpiAmount(i.amount,e),secondaryWithDot:!0}),jsxRuntimeExports.jsx(KpiTile$3,{footer:actualMatchingStrings$9.kpi.cleared.replace("{amount}",formatKpiAmount(o.clearedAmount,e)),footerTone:"success",hover:actualMatchingStrings$9.kpi.hover.autoReversed,icon:jsxRuntimeExports.jsx(StyledTickIcon$2,{}),label:actualMatchingStrings$9.kpi.autoReversed,primary:String(o.count),secondary:`${o.percent}%`,secondaryWithDot:!0}),jsxRuntimeExports.jsx(KpiTile$3,{footer:actualMatchingStrings$9.kpi.varianceFooter.replace("{amount}",formatKpiAmount(r.netAmount,e)),hover:actualMatchingStrings$9.kpi.hover.variance,icon:jsxRuntimeExports.jsx(StyledReceiptsMultipleIcon$2,{}),label:actualMatchingStrings$9.kpi.variance,primary:formatVariancePercent(r.percent)})]})}const Strip$3=styled$2.div`
|
|
78526
|
+
`,KPI_TILE_BREAKDOWN_PLACEHOLDER=" ";function formatAmount(e){return amountToString("0,0",e)}function buildTypeBreakdown(e,t){const n={};for(const o of e){const e=clientEpicState.getJEScheduleRowType(o);null!=e&&(n[e]=(n[e]??0)+1)}return Object.entries(n).filter(([,e])=>e>0).map(([e,n])=>`${n} ${t[e]??e}`).join(" • ")}function buildTypeBreakdownItems(e,t){const n={};for(const o of e){const e=clientEpicState.getJEScheduleRowType(o);null!=e&&(n[e]=(n[e]??0)+1)}return Object.entries(n).filter(([,e])=>e>0).map(([e,n])=>({text:t[e]??e,amount:n.toString()}))}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$a,oneTimeAccrualType:oneTimeAccrualType$2}},common:{strings:{hyphen:hyphen$k}},dateFormat:dateFormat$o}=appLocale.getLocalizedStrings(),EMPTY_ACTUAL_MATCHING_KPI_SUMMARY={actualsReceived:{count:0,expectedCount:0,vendorsPending:0},autoReversed:{count:0,percent:0,clearedAmount:0},pendingReview:{count:0,amount:0,estimatedMinutesToClear:0},variance:{percent:0,averagePercentPerMatch:0,netAmount:0}},EMPTY_ACTUAL_MATCHING_VIEW={fetchState:"Not-Started",error:void 0,reversed:[],pendingReview:[],kpiSummary:EMPTY_ACTUAL_MATCHING_KPI_SUMMARY,uiState:{sortKey:"date",sortOrder:"descending",searchString:"",scrollPosition:void 0,statusFilter:"all"},refreshStatus:{fetchState:"Not-Started",error:void 0},ignoreStatusByMatchId:{},undoReversalStatusByMatchId:{},hasLoadedForSelectedPeriod:!1,matchModal:{isOpen:!1,confirmStatus:{fetchState:"Not-Started",error:void 0},transactionSearch:{query:"",results:[],fetchState:{fetchState:"Not-Started",error:void 0},nextPageToken:null,isLoadingMore:!1},accrualSearch:{query:"",results:[],fetchState:{fetchState:"Not-Started",error:void 0},nextPageToken:null,isLoadingMore:!1}}};function getActualMatchingFromSelector(e){return e.actualMatching??EMPTY_ACTUAL_MATCHING_VIEW}function getAccruedAmount(e){return e.accruedAmount?.amount??e.estimatedAmount.amount}function isGroupedClearedMatch(e){const t=e?.groupSum?.amount;if(null==t||t<=0)return!1;const n=e?.matchShape;return"1:N"===n||"N:1"===n||(e?.accrualIds?.length??0)>1}function getActualAmount(e){return null!=e.actualAmount?e.actualAmount.amount:"pending_review"===e.kind?e.matchSuggestion?.matchedAmount?.amount:e.cleared?.matchedAmount?.amount}function getVariancePercent(e){if(isGroupedClearedMatch(e.cleared)){const t=e.cleared?.matchedAmount?.amount,n=e.cleared?.groupSum?.amount;if(null==t||null==n||0===n)return;return(t-n)/n*100}const t=getAccruedAmount(e),n=getActualAmount(e);if(null!=n&&0!==t)return(n-t)/t*100}function formatVariancePercent(e){const t=Math.round(10*e)/10;return`${t>0?"+":""}${t.toFixed(1)}%`}function getVarianceCapsuleType(e){const t=Math.abs(e);return t<=5?"success":t<=15?"warning":"attention"}function getMatchTierKey(e){return e.cleared?.matchTier??e.matchSuggestion?.matchTier}function getMatchTierLabel(e){const t=getMatchTierKey(e);return"tier_1"===t?actualMatchingStrings$a.matchTier.exact:"tier_2"===t?actualMatchingStrings$a.matchTier.fuzzy:"manual"===t?actualMatchingStrings$a.matchTier.manual:"agent"===e.origin?actualMatchingStrings$a.matchTier.aiAccountant:hyphen$k}function getMatchTierCapsuleType(e){const t=getMatchTierKey(e);return"tier_1"===t?"success":"tier_2"===t?"warning":"manual"===t?"default":"info"}function getActualMatchingTypeLabel(e){const t=e.cleared?.matchedTransactionType??e.matchSuggestion?.matchedTransactionType;return null!=t&&""!==t?formatTransactionTypeLabel(t):oneTimeAccrualType$2}function getActualMatchingTypeCapsuleType(e){const t=(e.cleared?.matchedTransactionType??e.matchSuggestion?.matchedTransactionType??"").toLowerCase();return"bill"===t?"info":"expense"===t||t.includes("card")||"credit_card_payment"===t?"success":t.includes("payroll")?"attention":t.includes("ach")||"check"===t||"transfer"===t?"warning":"default"}function formatActualMatchingServiceMonth(e){return/^\d{4}-\d{2}$/.test(e)?clientEpicState.zeniDate(`${e}-01`).format(dateFormat$o.visual.MMMYYYYFormat):""===e?hyphen$k:e}function toServiceMonthIndex(e){const t=/^(\d{4})-(\d{2})$/.exec(e);return null==t?null:12*Number(t[1])+Number(t[2])-1}function formatServiceMonthName(e){return clientEpicState.zeniDate(`${e}-01`).format("MMM")}function getUniqueSortedServiceMonths(e){return[...new Set(e.filter(e=>null!=toServiceMonthIndex(e)))].sort((e,t)=>(toServiceMonthIndex(e)??0)-(toServiceMonthIndex(t)??0))}function collapseServiceMonthRuns(e){const t=[];return e.forEach(e=>{const n=t.at(-1),o=toServiceMonthIndex(e),i=null!=n?toServiceMonthIndex(n.end):null;null==n||null==o||null==i||o!==i+1?t.push({start:e,end:e}):n.end=e}),t}function formatServiceMonthRun(e,t){const n=formatServiceMonthName(e.start),o=e.start.slice(0,4);if(e.start===e.end)return t?`${n} ${o}`:n;const i=formatServiceMonthName(e.end),r=e.end.slice(0,4);if(o===r){const e=`${n}-${i}`;return t?`${e} ${o}`:e}return`${n} ${o}-${i} ${r}`}function formatActualMatchingServiceMonths(e){const t=getUniqueSortedServiceMonths(e);if(0===t.length)return hyphen$k;if(1===t.length)return formatActualMatchingServiceMonth(t[0]);const n=collapseServiceMonthRuns(t);if(1===new Set(t.map(e=>e.slice(0,4))).size){const e=t[0].slice(0,4);return`${n.map(e=>formatServiceMonthRun(e,!1)).join(", ")} ${e}`}return n.map(e=>formatServiceMonthRun(e,!0)).join(", ")}function getActualMatchingServiceMonths(e){const t=(e.groupedMembers??[]).map(e=>e.serviceMonth).filter(e=>null!=e&&""!==e);return t.length>0?getUniqueSortedServiceMonths(t):""===e.serviceMonth?[]:getUniqueSortedServiceMonths([e.serviceMonth])}function getActualMatchingServiceLabel(e){return formatActualMatchingServiceMonths(getActualMatchingServiceMonths(e))}function getReceivedDate(e){if(null!=e.reversalDate)return e.reversalDate;if(null==e.transactionDate||""===e.transactionDate)return;const t=clientEpicState.zeniDate(e.transactionDate);return Number.isFinite(t.valueOf())?t:void 0}function getReceivedLabel(e){return getReceivedDate(e)?.format(dateFormat$o.visual.MMMDFormat)??hyphen$k}function getReversesGroupedCount(e){const t=e.intendedAccrualIds;if(null!=t&&t.length>0)return t.length;const n=e.leftovers?.length??0,o=e.groupedAccrualIds??e.cleared?.accrualIds;return(null!=o&&o.length>0?o.length:1)+n}function isGroupedActualMatchingRow(e){return getReversesGroupedCount(e)>1}function groupedMemberFromRow(e,t){return t!==e.accrualId?{accrualId:t}:{accrualId:t,estimatedAmount:e.estimatedAmount,jeDebitAccountName:e.jeDebitAccountName,memo:e.memo,serviceMonth:e.serviceMonth}}const MAX_GROUPED_MENU_ITEMS=12;function getGroupedAccrualMenuItems(e){if(!isGroupedActualMatchingRow(e))return[];if(null!=e.groupedMembers&&e.groupedMembers.length>0)return e.groupedMembers.slice(0,MAX_GROUPED_MENU_ITEMS);const t=e.groupedAccrualIds??e.cleared?.accrualIds;return null==t||t.length<=1?[]:t.slice(0,MAX_GROUPED_MENU_ITEMS).map(t=>groupedMemberFromRow(e,t))}function getReversesLabel(e){const t=getReversesGroupedCount(e);if(t>1)return actualMatchingStrings$a.reversesCount.replace("{count}",String(t));const n=e.memo.trim();return""!==n?n:hyphen$k}function getReversesTooltip(e){if(isGroupedActualMatchingRow(e)){const t=getGroupedAccrualMenuItems(e).map(e=>e.memo?.trim()).filter(e=>null!=e&&""!==e),n=[...new Set(t)];if(n.length>0)return n.join(", ")}return e.memo.trim()}function isSameMatchVendor(e,t){const n=e.vendorId,o=t.vendorId;return null!=n&&""!==n&&null!=o&&""!==o&&n===o}const DEFAULT_DISPLAY_CURRENCY={amount:0,currencyCode:"USD",currencySymbol:"$"};function getAccruedDisplayAmount(e){if(null!=e.accruedAmount)return e.accruedAmount;const t=e.groupedMembers;if(null!=t&&t.length>1){const n=t.map(e=>e.estimatedAmount);if(n.every(e=>null!=e)){const t=n.reduce((e,t)=>e+t.amount,0);return clientEpicState.toAmount(t,e.estimatedAmount.currencyCode,e.estimatedAmount.currencySymbol)}}return e.estimatedAmount}function getActualDisplayAmount(e){const t=getActualAmount(e);if(null!=t)return clientEpicState.toAmount(t,e.estimatedAmount.currencyCode,e.estimatedAmount.currencySymbol)}function getActualMatchingDisplayCurrency(e){return e[0]?.estimatedAmount??DEFAULT_DISPLAY_CURRENCY}function formatKpiAmount(e,t){return formatAmount(clientEpicState.toAmount(e,t.currencyCode,t.currencySymbol))}function isHumanReversedRow(e){return"manually_reversed"===e.kind||"manual_reverse"===e.reversalTrigger}function isAiReversedBy(e){return"pending_review"===e.kind||!isHumanReversedRow(e)}function getColumnKeyForActualMatchingSortKey(e){switch(e){case"vendor":return"vendor";case"type":return"type";case"amount":case"accrued":return"accrued";case"actual":return"actual";case"variance":return"variance";default:return"received"}}function getActualMatchingColumnSortValue(e,t){switch(t){case"received":return getReceivedDate(e)?.valueOf()??null;case"vendor":return e.vendorName.toLowerCase();case"type":return getActualMatchingTypeLabel(e).toLowerCase();case"accrued":return getAccruedAmount(e);case"actual":return getActualAmount(e)??null;case"variance":return getVariancePercent(e)??null;default:return null}}function sortActualMatchingRowsByColumn(e,t,n){const o="ascending"===n?1:-1;return[...e].sort((e,n)=>{const i=getActualMatchingColumnSortValue(e,t),r=getActualMatchingColumnSortValue(n,t);return null==i&&null==r?0:null==i?1:null==r?-1:"number"==typeof i&&"number"==typeof r?(i-r)*o:String(i).localeCompare(String(r),void 0,{numeric:!0,sensitivity:"base"})*o})}function getUndoReversalAccrualIds(e){const t=(e.groupedMembers??[]).map(e=>e.accrualId).filter(e=>""!==e);return t.length>0?Array.from(new Set(t)):""!==e.accrualId?[e.accrualId]:[]}function getActualMatchingStatusFilter(e){const t=e.statusFilter;return"pending_review"===t||"auto_reversed"===t?t:"all"}function getMatchedBillTransaction(e){const t=[...e.members,...e.leftovers??[]];for(const n of t){const t=n.cleared?.matchedTransactionId??n.matchSuggestion?.matchedTransactionId??"";if(""===t)continue;const o=n.cleared?.matchedTransactionType??n.matchSuggestion?.matchedTransactionType??e.transactionType;if(""!==o)return{id:t,type:o}}return null}function getUndoReversalAccrualIdsFromMatch(e){return Array.from(new Set(e.members.map(e=>e.accrualId).filter(e=>""!==e)))}function getApproveAndReverseParams(e){const t=e.members.map(e=>e.matchSuggestion).find(e=>null!=e?.matchedTransactionId&&""!==e.matchedTransactionId),n=t?.matchedTransactionId??"",o=t?.matchedTransactionIntegrationId??e.transactionIntegrationId,i=(t?.matchedTransactionType??e.transactionType).toLowerCase(),r=suggestionLineIds(t),a=getUndoReversalAccrualIdsFromMatch(e);return""===n||""===o||""===i||0===r.length||0===a.length?null:{accrualIds:a,lineIds:r,transactionId:n,transactionIntegrationId:o,transactionSyncToken:t?.matchedTransactionSyncToken??"",transactionType:i}}function suggestionLineIds(e){const t=(e?.consumedLineIds??[]).filter(e=>""!==e);if(t.length>0)return t;const n=e?.matchedLineId??"";return""===n?[]:[n]}function getLeftoverWarningTooltip(e){return(e.leftovers??[]).map(e=>`${null!=e.memo&&""!==e.memo.trim()?e.memo.trim():hyphen$k} · ${null!=e.serviceMonth&&""!==e.serviceMonth?formatActualMatchingServiceMonth(e.serviceMonth):hyphen$k} · ${null!=e.estimatedAmount?formatAmount(e.estimatedAmount):hyphen$k}`).join("\n")}function pruneSelectionToVisibleResults(e,t,n){return"Completed"!==n?e:e.filter(e=>t.has(e))}function nextSelectedTransactionLines(e,t,n){if(e.includes(t))return e.filter(e=>e!==t);const o=n.find(e=>getTransactionLineKey(e.transactionId,e.lineId)===t);if(null==o)return e;if(0===e.length)return[t];const i=n.find(t=>getTransactionLineKey(t.transactionId,t.lineId)===e[0]);return null!=i&&i.transactionIntegrationId===o.transactionIntegrationId&&i.transactionType===o.transactionType?[...e,t]:[t]}function pickPrefillTransactionLines(e,t){if(0===e.length)return[];const n=t?.consumedLineIds,o=t?.matchedTransactionId;if(null!=n&&n.length>0){if(null==o)return[];const t=e.filter(e=>e.transactionId===o);return n.flatMap(e=>{const n=t.find(t=>t.lineId===e);return null!=n?[getTransactionLineKey(n.transactionId,n.lineId)]:[]})}const i=pickPrefillTransactionLine(e,t);return null!=i?[i]:[]}function pickPrefillTransactionLine(e,t){if(0===e.length)return null;const n=t?.matchedLineId,o=t?.matchedTransactionId;if(null!=o&&null!=n){const t=e.find(e=>e.transactionId===o&&e.lineId===n);if(null!=t)return getTransactionLineKey(t.transactionId,t.lineId)}const i=null!=o?e.filter(e=>e.transactionId===o):e;if(null!=o&&0===i.length)return null;const r=i;if(1===r.length)return getTransactionLineKey(r[0].transactionId,r[0].lineId);const a=t?.actualAmount;if(null!=a){const e=r.filter(e=>areMatchAmountsEqual(e.amount,a));if(1===e.length)return getTransactionLineKey(e[0].transactionId,e[0].lineId)}return null}function shouldPromptSelectMatchLine({isTxnSearchComplete:e,lineCount:t,openedFromMatchId:n,selectedLineKey:o}){return null!=n&&""!==n&&e&&t>1&&null==o}function areMatchAmountsEqual(e,t){return Math.abs(e-t)<.005}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$9}},common:{strings:{middleDot:middleDot$2}}}=appLocale.getLocalizedStrings();function KpiTile$3({footer:e,footerTone:t="default",hover:n,icon:o,label:i,primary:r,secondary:a,secondaryWithDot:s=!1}){return jsxRuntimeExports.jsx(Tile$2,{children:jsxRuntimeExports.jsxs(Header$6,{children:[jsxRuntimeExports.jsxs(TitleRow$2,{children:[jsxRuntimeExports.jsx(TileLabel$2,{children:i}),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"flex",placement:"bottom",title:n,children:jsxRuntimeExports.jsx(IconWrap,{children:o})})]}),jsxRuntimeExports.jsxs(ValueRow,{children:[jsxRuntimeExports.jsx(TilePrimary,{children:r}),null!=a&&""!==a?jsxRuntimeExports.jsx(TileSecondary,{children:s?`${middleDot$2} ${a}`:a}):null]}),jsxRuntimeExports.jsx(TileFooter,{$tone:t,children:e??" "})]})})}function vendorsPendingFooter(e){if(!(e<=0))return 1===e?actualMatchingStrings$9.kpi.vendorStillPending:actualMatchingStrings$9.kpi.vendorsStillPending.replace("{count}",String(e))}function ActualMatchingKpiStrip({displayCurrency:e,kpiSummary:t}){const{actualsReceived:n,autoReversed:o,pendingReview:i,variance:r}=t,a=n.expectedCount>n.count;return jsxRuntimeExports.jsxs(Strip$3,{"data-testid":generateDataTestId("actual matching kpi strip"),children:[jsxRuntimeExports.jsx(KpiTile$3,{footer:vendorsPendingFooter(n.vendorsPending),hover:actualMatchingStrings$9.kpi.hover.actualsReceived,icon:jsxRuntimeExports.jsx(StyledDownloadIcon,{}),label:actualMatchingStrings$9.kpi.actualsReceived,primary:String(n.count),secondary:a?actualMatchingStrings$9.kpi.ofExpected.replace("{count}",String(n.expectedCount)):void 0}),jsxRuntimeExports.jsx(KpiTile$3,{footer:i.count>0?actualMatchingStrings$9.kpi.estMinutesToClear.replace("{minutes}",String(i.estimatedMinutesToClear)):void 0,hover:actualMatchingStrings$9.kpi.hover.pendingReview,icon:jsxRuntimeExports.jsx(StyledActivityIcon$3,{}),label:actualMatchingStrings$9.kpi.pendingReview,primary:String(i.count),secondary:formatKpiAmount(i.amount,e),secondaryWithDot:!0}),jsxRuntimeExports.jsx(KpiTile$3,{footer:actualMatchingStrings$9.kpi.cleared.replace("{amount}",formatKpiAmount(o.clearedAmount,e)),footerTone:"success",hover:actualMatchingStrings$9.kpi.hover.autoReversed,icon:jsxRuntimeExports.jsx(StyledTickIcon$2,{}),label:actualMatchingStrings$9.kpi.autoReversed,primary:String(o.count),secondary:`${o.percent}%`,secondaryWithDot:!0}),jsxRuntimeExports.jsx(KpiTile$3,{footer:actualMatchingStrings$9.kpi.varianceFooter.replace("{amount}",formatKpiAmount(r.netAmount,e)),hover:actualMatchingStrings$9.kpi.hover.variance,icon:jsxRuntimeExports.jsx(StyledReceiptsMultipleIcon$2,{}),label:actualMatchingStrings$9.kpi.variance,primary:formatVariancePercent(r.percent)})]})}const Strip$3=styled$2.div`
|
|
78527
78527
|
display: grid;
|
|
78528
78528
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
78529
78529
|
gap: ${Space.sp3};
|
|
@@ -78818,6 +78818,286 @@ to {
|
|
|
78818
78818
|
`,GroupBandFill=styled$2.div`
|
|
78819
78819
|
grid-column: 1 / -1;
|
|
78820
78820
|
min-width: 0;
|
|
78821
|
+
`,{dateFormat:dateFormat$n,common:{strings:{hyphen:hyphen$h}}}=appLocale.getLocalizedStrings();function formatServiceMonthLabel(e){return""===e?hyphen$h:clientEpicState.zeniDate(`${e}-01`).format(dateFormat$n.visual.MMMYYYYFormat)}function formatAccrualJeDate(e,t){const n=formatServiceMonthLabel(e);return n===hyphen$h?t:`${n}, ${t}`}function formatJeShortDate(e){if(""===e)return hyphen$h;const t=clientEpicState.zeniDate(e);return null!=t&&"function"==typeof t.isValid&&t.isValid()?t.format(dateFormat$n.visual.MMMDFormat):e}function formatReversalJeDate(e){return null==e?hyphen$h:"function"!=typeof e.isValid||e.isValid()?e.format(dateFormat$n.visual.MMMDFormat):hyphen$h}function sumAccruedAmount(e){return e.reduce((e,t)=>e+(t.estimatedAmount?.amount??0),0)}function variancePercent(e,t){return 0===t?null:(e-t)/t*100}function uniqueServiceMonthLabel(e){const t=Array.from(new Set(e.map(e=>formatServiceMonthLabel(e.serviceMonth)).filter(e=>e!==hyphen$h)));return 1!==t.length?null:t[0]}function transactionMatchLabel(e,t){const n=uniqueServiceMonthLabel(t);return null==n?e.vendorName:`${e.vendorName} — ${n}`}function creditAccountName(e,t){return null!=e.jeCreditAccountName&&""!==e.jeCreditAccountName?e.jeCreditAccountName:t}function debitAccountName(e,t){return null!=e.jeDebitAccountName&&""!==e.jeDebitAccountName?e.jeDebitAccountName:t}const{common:{strings:{hyphen:hyphen$g}},expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$5}}}=appLocale.getLocalizedStrings(),detailStrings$1=actualMatchingStrings$5.matchDetail;function getMatchServiceMonthsLabel(e){return formatActualMatchingServiceMonths(e.map(e=>e.serviceMonth))}function matchTierFromMatch(e){const t=e.matchTier??"";if(""!==t)return t.toLowerCase();const n=e.members[0];return(n?.cleared?.matchTier??n?.matchSuggestion?.matchTier??"").toLowerCase()}function getMatchMethodKey(e){const t=matchTierFromMatch(e);return"tier_1"===t||"deterministic"===t||"exact"===t?"exact":"tier_2"===t||"fuzzy"===t?"fuzzy":"manual"===t?"manual":"ai"}function getMatchMethodLabel(e){const t=getMatchMethodKey(e);return"exact"===t?detailStrings$1.matchMethodExact:"fuzzy"===t?detailStrings$1.matchMethodFuzzy:"manual"===t?detailStrings$1.matchMethodManual:detailStrings$1.matchMethodAi}function getWhyThisMatchedCopy(e){const t=getMatchServiceMonthsLabel(e.members),n=getMatchMethodKey(e);if("exact"===n)return detailStrings$1.whyExact.replace("{service}",t);if("fuzzy"===n){const t=getMatchVariancePercent(e),n=null==t?hyphen$g:`${(Math.round(10*Math.abs(t))/10).toFixed(1)}%`;return detailStrings$1.whyFuzzy.replace("{variance}",n)}return"manual"===n?detailStrings$1.whyManual.replace("{service}",t):detailStrings$1.whyAi.replace("{service}",t)}function getMatchJeSectionTitle(e){return"pending_review"===e?detailStrings$1.pendingReversalJe:detailStrings$1.reversedJe}function getMatchStatusLabel(e,t){return"pending_review"===e?t.statusPendingReview:"manually_reversed"===e?t.statusManuallyReversed:t.statusAutoReversed}function getMatchVariancePercent(e){return variancePercent(e.actualAmount.amount,e.accruedAmount.amount)}function formatMatchVarianceLabel(e){const t=getMatchVariancePercent(e);return null==t?null:formatVariancePercent(t)}function isMatchRefreshSpinning(e,t,n){return"In-Progress"===n||null==e&&("In-Progress"===t||"Not-Started"===t)}function transactionTypeDisplayLabel(e){const t=formatTransactionTypeLabel(e);return""===t?"transaction":t.toLowerCase()}function getOpenMatchedTransactionLabel(e,t){return t.openTransaction.replace("{type}",transactionTypeDisplayLabel(e))}const{common:{back:back$1,ignore:ignoreText$1,texts:{refresh:refresh},strings:{colon:colon$2,hyphen:hyphen$f}},expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$4}}}=appLocale.getLocalizedStrings(),previewStrings$5=actualMatchingStrings$4.matchModal,detailStrings=actualMatchingStrings$4.matchDetail,{reversalFailed:reversalFailed,undoFailed:undoFailed}=detailStrings,TEST_ID_PREFIX$2="actual-matching-match-detail",AMOUNT_FORMAT$1="0,0.[00]";function ActualMatchingOpenBillActionButton({match:e,transaction:t,onOpenBill:n}){const o=t??(null!=e?getMatchedBillTransaction(e):null);if(null==e&&null==o)return null;const i=getOpenMatchedTransactionLabel(o?.type??e?.transactionType??"bill",actualMatchingStrings$4);return jsxRuntimeExports.jsx(Tooltip$6,{title:i,enterDelay:600,placement:"bottom",children:jsxRuntimeExports.jsx("span",{style:{display:"inline-flex"},children:jsxRuntimeExports.jsx(OpenBillIconButton,{"data-testid":generateDataTestId(TEST_ID_PREFIX$2,"open-bill"),type:"button","aria-label":i,disabled:null==o,onClick:()=>{null!=o&&n?.(o)},children:jsxRuntimeExports.jsx(OpenBillIcon,{})})})})}function formatMemberAmount(e){return amountToString(AMOUNT_FORMAT$1,e.estimatedAmount)??hyphen$f}function ActualMatchingMatchDetailPage({detailFetchState:e,isRenderedInPanel:t=!1,isApproveInFlight:n=!1,isIgnoreInFlight:o=!1,isUndoInFlight:i=!1,match:r,onNavigateBack:a,onRefresh:s,onOpenBill:l,onApproveAndReverse:c,onIgnoreMatchSuggestion:d,onUndoReversal:p,lastMatchResults:u,lastUndoResults:m,refreshStatus:h}){const g=useTheme(),[x,f]=React.useState(!1),y=null!=r?getMatchedBillTransaction(r):null,S=r?.leftovers??[],C=null!=r?getApproveAndReverseParams(r):null,b=null!=r&&"pending_review"===r.kind&&null!=d,$=null!=r&&"pending_review"===r.kind&&null!=c,v=null!=r&&"pending_review"!==r.kind&&null!=p,E=isMatchRefreshSpinning(r,e,h),w=()=>{E||s()},R=null!=r?.vendorName&&""!==r.vendorName?r.vendorName:void 0,A=null!=l?jsxRuntimeExports.jsx(ActualMatchingOpenBillActionButton,{match:r,transaction:y??void 0,onOpenBill:l}):null,j=jsxRuntimeExports.jsx(Tooltip$6,{title:refresh,enterDelay:600,placement:"bottom",children:jsxRuntimeExports.jsx(RefreshButtonWrapper,{"data-testid":generateDataTestId("refresh-icon"),onClick:w,children:jsxRuntimeExports.jsx(StyledRefreshIcon$1,{$spinning:E})})});return jsxRuntimeExports.jsxs(PageRoot,{"data-testid":generateDataTestId(TEST_ID_PREFIX$2,"page"),children:[t?null:jsxRuntimeExports.jsx(NavbarContainer,{children:jsxRuntimeExports.jsx(NavBar,{title:R??"",source:"ActualMatchingMatchDetail",backgroundColor:g.colors.grey5,onBackClick:a,leftSideComponent:jsxRuntimeExports.jsx(Tooltip$6,{title:back$1,enterDelay:600,placement:"bottom",children:jsxRuntimeExports.jsx(BackButtonWrapper,{"data-testid":generateDataTestId(TEST_ID_PREFIX$2,"back"),onClick:a,children:jsxRuntimeExports.jsx(Back,{})})}),rightSideComponent:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[A,j]})})}),null==r?"In-Progress"===e||"Not-Started"===e?jsxRuntimeExports.jsx(MatchDetailSkeleton,{}):jsxRuntimeExports.jsx(MatchDetailLoadError,{onRefresh:w}):jsxRuntimeExports.jsxs(Content$1,{children:[jsxRuntimeExports.jsxs(HeaderCard,{children:[jsxRuntimeExports.jsxs(VendorRow,{children:[jsxRuntimeExports.jsx(EntityAvatar,{name:r.vendorName??""}),jsxRuntimeExports.jsx(VendorName,{children:r.vendorName??""}),jsxRuntimeExports.jsx(FitContentCapsule,{children:jsxRuntimeExports.jsx(StyledCapsule,{label:getMatchStatusLabel(r.kind,detailStrings),type:"pending_review"===r.kind?"warning":"manually_reversed"===r.kind?"default":"success"})}),jsxRuntimeExports.jsx(HeaderAmount,{children:formatAmount(r.actualAmount)})]}),jsxRuntimeExports.jsxs(SummaryRows,{children:[jsxRuntimeExports.jsxs(SummaryRow$1,{children:[jsxRuntimeExports.jsx(SummaryLabel,{children:detailStrings.servicePeriod}),jsxRuntimeExports.jsx(SummaryValue,{children:getMatchServiceMonthsLabel(r.members)})]}),jsxRuntimeExports.jsxs(SummaryRow$1,{children:[jsxRuntimeExports.jsx(SummaryLabel,{children:detailStrings.billDate}),jsxRuntimeExports.jsx(SummaryValue,{children:null!=r.transactionDate&&""!==r.transactionDate?formatJeShortDate(r.transactionDate):hyphen$f})]})]})]}),jsxRuntimeExports.jsxs(BodyPad,{children:[jsxRuntimeExports.jsxs(FieldCard,{children:[jsxRuntimeExports.jsx(FieldRow,{label:detailStrings.matchMethod,value:getMatchMethodLabel(r)}),jsxRuntimeExports.jsx(FieldRow,{label:detailStrings.source,value:detailStrings.sourceJeAgent}),jsxRuntimeExports.jsx(FieldRow,{label:detailStrings.accruedAmount,value:formatAmount(r.accruedAmount)}),jsxRuntimeExports.jsx(FieldRow,{label:detailStrings.actualAmount,value:formatAmount(r.actualAmount)}),jsxRuntimeExports.jsx(FieldRow,{label:detailStrings.variance,value:jsxRuntimeExports.jsx(VarianceValue,{match:r})})]}),jsxRuntimeExports.jsx(SectionTitle$9,{children:getMatchJeSectionTitle(r.kind)}),r.members.map(e=>jsxRuntimeExports.jsx(ReversalJeBlock,{accrual:e,postingDateLabel:"pending_review"===r.kind?null!=r.transactionDate&&""!==r.transactionDate?formatJeShortDate(r.transactionDate):hyphen$f:formatReversalJeDate(e.reversalPostingDate),failureReason:undoFailureReason(m,e.accrualId),testIdSuffix:`reversal-je-${e.accrualId}`},`reversal-je-${e.accrualId}`)),S.filter(e=>shouldShowLeftoverReversalFailure(e.accrualId,u,m)).map(e=>jsxRuntimeExports.jsx(ReversalJeBlock,{accrual:e,postingDateLabel:null!=r.transactionDate&&""!==r.transactionDate?formatJeShortDate(r.transactionDate):hyphen$f,failureReason:leftoverReversalFailureReason(u,e.accrualId),testIdSuffix:`reversal-je-${e.accrualId}`},`reversal-je-${e.accrualId}`)),jsxRuntimeExports.jsx(SectionTitle$9,{children:detailStrings.whyThisMatched}),jsxRuntimeExports.jsxs(WhyPanel,{"data-testid":generateDataTestId(TEST_ID_PREFIX$2,"why"),children:[jsxRuntimeExports.jsxs(WhyHead,{children:[jsxRuntimeExports.jsx(WhyMethod,{children:getMatchMethodLabel(r)}),jsxRuntimeExports.jsx(WhySource,{children:detailStrings.sourceAttribution.replace("{source}",detailStrings.sourceJeAgent)})]}),jsxRuntimeExports.jsx(WhyCopy,{children:getWhyThisMatchedCopy(r)})]})]})]}),b&&$?jsxRuntimeExports.jsx(Footer$7,{cancelBtn:{isDisabled:o||n,isLoading:o,label:ignoreText$1,reverseSpinnerColor:!1,onClick:()=>f(!0)},primaryBtn:{isDisabled:o||n||null==C,isLoading:n,label:actualMatchingStrings$4.approveAndReverse,type:"button",onClick:()=>{null!=C&&c?.(C)}},showCancel:!0}):$?jsxRuntimeExports.jsx(Footer$7,{primaryBtn:{isDisabled:n||null==C,isLoading:n,label:actualMatchingStrings$4.approveAndReverse,type:"button",onClick:()=>{null!=C&&c?.(C)}}}):null,v&&null!=p&&null!=r?jsxRuntimeExports.jsx(Footer$7,{primaryBtn:{isDisabled:i,isLoading:i,label:actualMatchingStrings$4.undoReversal,reverseSpinnerColor:!1,type:"button",variant:"outline",onClick:()=>p(getUndoReversalAccrualIdsFromMatch(r))}}):null,b&&jsxRuntimeExports.jsx(JEAccrualFeedbackDialog,{amount:amountToString(AMOUNT_FORMAT$1,r.actualAmount)??"",isOpen:x,isSubmitting:o,mode:"ignoreMatchSuggestion",vendorName:r.vendorName??"",onClose:()=>f(!1),onSubmit:(e,t)=>{d?.(e,t)}})]})}function prefixLastAction(e,t){return`${e}: ${t}`}function resultDetail(e,t){return null!=e&&""!==e?e:null!=t&&""!==t?t:void 0}function leftoverMatchFailureDetail(e,t){const n=e?.find(e=>e.accrualId===t);if(null!=n&&"reversed"!==n.status&&"noop"!==n.status)return resultDetail(n.reason,n.status)}function leftoverReversalFailureReason(e,t){const n=leftoverMatchFailureDetail(e,t);if(null!=n)return prefixLastAction(reversalFailed,n)}function shouldShowLeftoverReversalFailure(e,t,n){return!0!==n?.some(t=>t.accrualId===e&&"undone"===t.status)&&null!=leftoverMatchFailureDetail(t,e)}function undoFailureReason(e,t){const n=e?.find(e=>e.accrualId===t);if(null==n||"undone"===n.status)return;const o=resultDetail(n.reason,n.status);return null!=o?prefixLastAction(undoFailed,o):void 0}function FieldRow({label:e,value:t}){return jsxRuntimeExports.jsxs(FieldRowRoot,{children:[jsxRuntimeExports.jsx(FieldLabel$1,{children:`${e}${colon$2}`}),jsxRuntimeExports.jsx(FieldValue,{children:t})]})}function VarianceValue({match:e}){const t=formatMatchVarianceLabel(e),n=getMatchVariancePercent(e);return null==t||null==n?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:hyphen$f}):jsxRuntimeExports.jsx(FitContentCapsule,{children:jsxRuntimeExports.jsx(StyledCapsule,{label:t,type:getVarianceCapsuleType(n)})})}function ReversalJeBlock({accrual:e,postingDateLabel:t,testIdSuffix:n,failureReason:o}){const i=formatMemberAmount(e);return jsxRuntimeExports.jsx(JeBlock$1,{creditAccount:debitAccountName(e,hyphen$f),creditAmount:i,dateLabel:t,debitAccount:creditAccountName(e,previewStrings$5.accruedExpensesFallback),debitAmount:i,failureReason:o,testIdSuffix:n})}function JeBlock$1({creditAccount:e,creditAmount:t,dateLabel:n,debitAccount:o,debitAmount:i,testIdSuffix:r,failureReason:a}){const s=null!=a&&""!==a;return jsxRuntimeExports.jsxs(JeCard$1,{$hasFailure:s,"data-testid":generateDataTestId(TEST_ID_PREFIX$2,r),children:[jsxRuntimeExports.jsxs(JeTable$1,{children:[jsxRuntimeExports.jsx(JeHeaderCell$1,{children:detailStrings.jePostingDate}),jsxRuntimeExports.jsx(JeHeaderCell$1,{children:previewStrings$5.columnAccount}),jsxRuntimeExports.jsx(JeHeaderCell$1,{$align:"right",children:previewStrings$5.columnDebit}),jsxRuntimeExports.jsx(JeHeaderCell$1,{$align:"right",children:previewStrings$5.columnCredit}),jsxRuntimeExports.jsx(JeCell$1,{children:n}),jsxRuntimeExports.jsx(JeCell$1,{children:o}),jsxRuntimeExports.jsx(JeCell$1,{$align:"right",$isFailureAmount:s,children:i}),jsxRuntimeExports.jsx(JeCell$1,{$align:"right",$muted:!0,children:hyphen$f}),jsxRuntimeExports.jsx(JeCell$1,{children:n}),jsxRuntimeExports.jsx(JeCell$1,{children:e}),jsxRuntimeExports.jsx(JeCell$1,{$align:"right",$muted:!0,children:hyphen$f}),jsxRuntimeExports.jsx(JeCell$1,{$align:"right",$isFailureAmount:s,children:t})]}),s?jsxRuntimeExports.jsx(JeFailureReason,{"data-testid":generateDataTestId(TEST_ID_PREFIX$2,`${r}-reason`),children:a}):null]})}function MatchDetailLoadError({onRefresh:e}){return jsxRuntimeExports.jsxs(LoadErrorRoot,{"data-testid":generateDataTestId(TEST_ID_PREFIX$2,"load-error"),children:[jsxRuntimeExports.jsx(Tooltip$6,{title:refresh,enterDelay:600,placement:"bottom",children:jsxRuntimeExports.jsx(LoadErrorIconButton,{type:"button","aria-label":refresh,onClick:e,children:jsxRuntimeExports.jsx(StyledAlertIcon$2,{})})}),jsxRuntimeExports.jsx(LoadErrorTitle,{children:detailStrings.loadErrorTitle}),jsxRuntimeExports.jsx(LoadErrorSubTitle,{children:detailStrings.loadErrorSubTitle})]})}function MatchDetailSkeleton(){return jsxRuntimeExports.jsxs(Content$1,{"data-testid":generateDataTestId(TEST_ID_PREFIX$2,"skeleton"),children:[jsxRuntimeExports.jsxs(HeaderCard,{children:[jsxRuntimeExports.jsxs(VendorRow,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[5],height:sp[5]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:180,height:sp[4]})]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:240,height:sp[3]})]}),jsxRuntimeExports.jsxs(BodyPad,{children:[jsxRuntimeExports.jsxs(FieldCard,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[6]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[6]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[6]})]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:240,height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:120})]})]})}const spin=react$1.keyframes`
|
|
78822
|
+
0% {
|
|
78823
|
+
transform: rotate(0deg);
|
|
78824
|
+
}
|
|
78825
|
+
100% {
|
|
78826
|
+
transform: rotate(360deg);
|
|
78827
|
+
}
|
|
78828
|
+
`,PageRoot=styled$2.div`
|
|
78829
|
+
display: flex;
|
|
78830
|
+
flex-direction: column;
|
|
78831
|
+
flex: 1;
|
|
78832
|
+
width: 100%;
|
|
78833
|
+
height: 100%;
|
|
78834
|
+
min-height: 0;
|
|
78835
|
+
overflow: hidden;
|
|
78836
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
78837
|
+
`,NavbarContainer=styled$2.div`
|
|
78838
|
+
position: sticky;
|
|
78839
|
+
z-index: 3;
|
|
78840
|
+
top: ${Space.sp0};
|
|
78841
|
+
width: 100%;
|
|
78842
|
+
`,BackButtonWrapper=styled$2.div`
|
|
78843
|
+
display: flex;
|
|
78844
|
+
align-items: center;
|
|
78845
|
+
justify-content: center;
|
|
78846
|
+
padding: ${Space.sp1};
|
|
78847
|
+
width: ${Space.sp4};
|
|
78848
|
+
height: ${Space.sp4};
|
|
78849
|
+
border-radius: ${Space.sp1};
|
|
78850
|
+
box-sizing: border-box;
|
|
78851
|
+
cursor: pointer;
|
|
78852
|
+
&:hover {
|
|
78853
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
78854
|
+
}
|
|
78855
|
+
`,Back=styled$2(SvgArrowLeft)`
|
|
78856
|
+
width: ${Space.sp3};
|
|
78857
|
+
height: ${Space.sp3};
|
|
78858
|
+
color: ${e=>e.theme.colors.champion};
|
|
78859
|
+
&:hover {
|
|
78860
|
+
color: ${e=>e.theme.colors.primary};
|
|
78861
|
+
}
|
|
78862
|
+
`,RefreshButtonWrapper=styled$2.div`
|
|
78863
|
+
display: flex;
|
|
78864
|
+
align-items: center;
|
|
78865
|
+
justify-content: center;
|
|
78866
|
+
width: ${Space.sp4};
|
|
78867
|
+
height: ${Space.sp4};
|
|
78868
|
+
border-radius: ${Space.sp1};
|
|
78869
|
+
cursor: pointer;
|
|
78870
|
+
&:hover {
|
|
78871
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
78872
|
+
}
|
|
78873
|
+
`,StyledRefreshIcon$1=styled$2(SvgRefresh,{shouldForwardProp:e=>"string"==typeof e&&"$spinning"!==e})`
|
|
78874
|
+
cursor: pointer;
|
|
78875
|
+
width: ${Space.sp3};
|
|
78876
|
+
height: ${Space.sp3};
|
|
78877
|
+
color: ${e=>e.theme.colors.champion};
|
|
78878
|
+
animation: ${e=>e.$spinning?react$1.css`
|
|
78879
|
+
${spin} 2s linear infinite;
|
|
78880
|
+
`:"none"};
|
|
78881
|
+
&:hover {
|
|
78882
|
+
color: ${e=>e.theme.colors.primary};
|
|
78883
|
+
}
|
|
78884
|
+
`,Content$1=styled$2.div`
|
|
78885
|
+
display: flex;
|
|
78886
|
+
flex: 1;
|
|
78887
|
+
flex-direction: column;
|
|
78888
|
+
overflow-y: auto;
|
|
78889
|
+
min-height: 0;
|
|
78890
|
+
background: ${e=>e.theme.colors.grey4};
|
|
78891
|
+
`,LoadErrorRoot=styled$2.div`
|
|
78892
|
+
display: flex;
|
|
78893
|
+
flex: 1;
|
|
78894
|
+
flex-direction: column;
|
|
78895
|
+
align-items: center;
|
|
78896
|
+
justify-content: center;
|
|
78897
|
+
gap: ${Space.sp2};
|
|
78898
|
+
padding: ${Space.sp4};
|
|
78899
|
+
min-height: 0;
|
|
78900
|
+
`,LoadErrorIconButton=styled$2.button`
|
|
78901
|
+
display: flex;
|
|
78902
|
+
align-items: center;
|
|
78903
|
+
justify-content: center;
|
|
78904
|
+
width: ${sp[8]}px;
|
|
78905
|
+
height: ${sp[8]}px;
|
|
78906
|
+
padding: 0;
|
|
78907
|
+
border: none;
|
|
78908
|
+
border-radius: 50%;
|
|
78909
|
+
background: ${e=>e.theme.colors.grey5};
|
|
78910
|
+
cursor: pointer;
|
|
78911
|
+
color: ${e=>e.theme.colors.alert};
|
|
78912
|
+
&:hover {
|
|
78913
|
+
background: ${e=>e.theme.colors.grey3};
|
|
78914
|
+
}
|
|
78915
|
+
`,StyledAlertIcon$2=styled$2(SvgAlertRound)`
|
|
78916
|
+
width: ${sp[5]}px;
|
|
78917
|
+
height: ${sp[5]}px;
|
|
78918
|
+
`,LoadErrorTitle=styled$2(H6Regular)`
|
|
78919
|
+
color: ${e=>e.theme.colors.alert};
|
|
78920
|
+
`,LoadErrorSubTitle=styled$2(ExtraLargeRegular)`
|
|
78921
|
+
color: ${e=>e.theme.colors.primary};
|
|
78922
|
+
`,HeaderCard=styled$2.div`
|
|
78923
|
+
display: flex;
|
|
78924
|
+
flex-direction: column;
|
|
78925
|
+
width: 100%;
|
|
78926
|
+
box-sizing: border-box;
|
|
78927
|
+
background: ${e=>e.theme.colors.grey5};
|
|
78928
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey2};
|
|
78929
|
+
padding: ${Space.sp3} ${Space.sp5} ${Space.sp2};
|
|
78930
|
+
`,VendorRow=styled$2.div`
|
|
78931
|
+
display: flex;
|
|
78932
|
+
align-items: center;
|
|
78933
|
+
gap: ${Space.sp2};
|
|
78934
|
+
min-width: 0;
|
|
78935
|
+
min-height: ${Space.sp6};
|
|
78936
|
+
margin-bottom: ${Space.sp2};
|
|
78937
|
+
`,HeaderAmount=styled$2(H7SemiBold)`
|
|
78938
|
+
color: ${e=>e.theme.colors.champion};
|
|
78939
|
+
font-variant-numeric: tabular-nums;
|
|
78940
|
+
white-space: nowrap;
|
|
78941
|
+
margin-left: auto;
|
|
78942
|
+
`,SummaryRows=styled$2.div`
|
|
78943
|
+
display: flex;
|
|
78944
|
+
flex-direction: column;
|
|
78945
|
+
margin-bottom: ${Space.sp1};
|
|
78946
|
+
`,SummaryRow$1=styled$2.div`
|
|
78947
|
+
display: flex;
|
|
78948
|
+
flex-direction: row;
|
|
78949
|
+
justify-content: space-between;
|
|
78950
|
+
align-items: center;
|
|
78951
|
+
gap: ${Space.sp3};
|
|
78952
|
+
min-height: ${Space.sp5};
|
|
78953
|
+
`,SummaryLabel=styled$2(StandardMedium)`
|
|
78954
|
+
color: ${e=>e.theme.colors.hero};
|
|
78955
|
+
`,SummaryValue=styled$2(StandardMedium)`
|
|
78956
|
+
color: ${e=>e.theme.colors.champion};
|
|
78957
|
+
text-align: right;
|
|
78958
|
+
word-break: break-all;
|
|
78959
|
+
`,BodyPad=styled$2.div`
|
|
78960
|
+
display: flex;
|
|
78961
|
+
flex-direction: column;
|
|
78962
|
+
gap: ${Space.sp4};
|
|
78963
|
+
padding: ${Space.sp4};
|
|
78964
|
+
`,FieldCard=styled$2.div`
|
|
78965
|
+
display: flex;
|
|
78966
|
+
flex-direction: column;
|
|
78967
|
+
width: 100%;
|
|
78968
|
+
box-sizing: border-box;
|
|
78969
|
+
overflow: hidden;
|
|
78970
|
+
background: ${e=>e.theme.colors.grey5};
|
|
78971
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
78972
|
+
border-radius: ${Space.sp2};
|
|
78973
|
+
`,FieldRowRoot=styled$2.div`
|
|
78974
|
+
display: flex;
|
|
78975
|
+
align-items: center;
|
|
78976
|
+
gap: ${Space.sp3};
|
|
78977
|
+
min-height: ${sp[8]}px;
|
|
78978
|
+
padding: ${Space.sp1} ${Space.sp3} ${Space.sp1} ${Space.sp4};
|
|
78979
|
+
box-sizing: border-box;
|
|
78980
|
+
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
78981
|
+
&:first-of-type {
|
|
78982
|
+
border-top: none;
|
|
78983
|
+
}
|
|
78984
|
+
&:hover {
|
|
78985
|
+
background: ${e=>e.theme.colors.background};
|
|
78986
|
+
}
|
|
78987
|
+
`,FieldLabel$1=styled$2(StandardMedium)`
|
|
78988
|
+
flex: 0 1 268px;
|
|
78989
|
+
min-width: 0;
|
|
78990
|
+
color: ${e=>e.theme.colors.hero};
|
|
78991
|
+
white-space: nowrap;
|
|
78992
|
+
overflow: hidden;
|
|
78993
|
+
text-overflow: ellipsis;
|
|
78994
|
+
`,FieldValue=styled$2.div`
|
|
78995
|
+
flex: 1;
|
|
78996
|
+
min-width: 0;
|
|
78997
|
+
display: flex;
|
|
78998
|
+
align-items: center;
|
|
78999
|
+
justify-content: flex-end;
|
|
79000
|
+
${textStyles.standardMedium.css}
|
|
79001
|
+
color: ${e=>e.theme.colors.champion};
|
|
79002
|
+
text-align: right;
|
|
79003
|
+
`,OpenBillIconButton=styled$2.button`
|
|
79004
|
+
display: flex;
|
|
79005
|
+
align-items: center;
|
|
79006
|
+
justify-content: center;
|
|
79007
|
+
width: ${Space.sp4};
|
|
79008
|
+
height: ${Space.sp4};
|
|
79009
|
+
padding: ${Space.sp1};
|
|
79010
|
+
border: none;
|
|
79011
|
+
border-radius: ${Space.sp1};
|
|
79012
|
+
background: none;
|
|
79013
|
+
cursor: pointer;
|
|
79014
|
+
color: ${e=>e.theme.colors.champion};
|
|
79015
|
+
&:hover:not(:disabled) {
|
|
79016
|
+
background: ${e=>e.theme.colors.grey3};
|
|
79017
|
+
color: ${e=>e.theme.colors.primary};
|
|
79018
|
+
}
|
|
79019
|
+
&:disabled {
|
|
79020
|
+
cursor: default;
|
|
79021
|
+
opacity: 0.4;
|
|
79022
|
+
}
|
|
79023
|
+
`,OpenBillIcon=styled$2(SvgOpenLink)`
|
|
79024
|
+
width: ${Space.sp3};
|
|
79025
|
+
height: ${Space.sp3};
|
|
79026
|
+
flex-shrink: 0;
|
|
79027
|
+
color: inherit;
|
|
79028
|
+
`,VendorName=styled$2(H7SemiBold)`
|
|
79029
|
+
color: ${e=>e.theme.colors.champion};
|
|
79030
|
+
min-width: 0;
|
|
79031
|
+
`,FitContentCapsule=styled$2.div`
|
|
79032
|
+
display: inline-flex;
|
|
79033
|
+
width: fit-content;
|
|
79034
|
+
max-width: 100%;
|
|
79035
|
+
flex: 0 0 auto;
|
|
79036
|
+
align-self: center;
|
|
79037
|
+
`,SectionTitle$9=styled$2(LargeSemiBold)`
|
|
79038
|
+
color: ${e=>e.theme.colors.champion};
|
|
79039
|
+
`,WhyPanel=styled$2.div`
|
|
79040
|
+
display: flex;
|
|
79041
|
+
flex-direction: column;
|
|
79042
|
+
gap: ${Space.sp2};
|
|
79043
|
+
padding: ${Space.sp3};
|
|
79044
|
+
border-radius: ${Space.sp2};
|
|
79045
|
+
background: color-mix(
|
|
79046
|
+
in srgb,
|
|
79047
|
+
${Colors.brandColorOpalLight} 34%,
|
|
79048
|
+
${e=>e.theme.colors.grey5}
|
|
79049
|
+
);
|
|
79050
|
+
border: 1px solid ${Colors.brandColorOpalLight};
|
|
79051
|
+
`,WhyHead=styled$2.div`
|
|
79052
|
+
display: flex;
|
|
79053
|
+
align-items: center;
|
|
79054
|
+
gap: ${Space.sp2};
|
|
79055
|
+
`,WhyMethod=styled$2(ExtraSmallMedium)`
|
|
79056
|
+
color: ${Colors.brandColorOpalDark};
|
|
79057
|
+
`,WhySource=styled$2(ExtraSmallMedium)`
|
|
79058
|
+
color: ${e=>e.theme.colors.hero};
|
|
79059
|
+
margin-left: auto;
|
|
79060
|
+
`,WhyCopy=styled$2(StandardMedium)`
|
|
79061
|
+
color: ${e=>e.theme.colors.champion};
|
|
79062
|
+
line-height: 1.55;
|
|
79063
|
+
`,JeCard$1=styled$2.div`
|
|
79064
|
+
display: flex;
|
|
79065
|
+
flex-direction: column;
|
|
79066
|
+
overflow: hidden;
|
|
79067
|
+
background: ${e=>e.theme.colors.grey5};
|
|
79068
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
79069
|
+
border-radius: ${Space.sp2};
|
|
79070
|
+
${e=>!0===e.$hasFailure?`\n border-left: 2px solid ${e.theme.colors.important};\n `:""}
|
|
79071
|
+
`,JeFailureReason=styled$2(ExtraSmallMedium)`
|
|
79072
|
+
color: ${e=>e.theme.colors.important};
|
|
79073
|
+
padding: ${Space.sp2} ${Space.sp3} ${Space.sp3};
|
|
79074
|
+
`,JeTable$1=styled$2.div`
|
|
79075
|
+
display: grid;
|
|
79076
|
+
grid-template-columns: 140px minmax(0, 1fr) 100px 100px;
|
|
79077
|
+
`,JeHeaderCell$1=styled$2.span`
|
|
79078
|
+
${textStyles.extraSmallSemiBold.css}
|
|
79079
|
+
color: ${e=>e.theme.colors.hero};
|
|
79080
|
+
background: ${e=>e.theme.colors.grey4};
|
|
79081
|
+
height: ${Space.sp5};
|
|
79082
|
+
display: flex;
|
|
79083
|
+
align-items: center;
|
|
79084
|
+
padding: ${Space.sp0} ${Space.sp3};
|
|
79085
|
+
text-align: ${e=>e.$align??"left"};
|
|
79086
|
+
justify-content: ${e=>"right"===e.$align?"flex-end":"flex-start"};
|
|
79087
|
+
border-bottom: 1px solid ${e=>e.theme.colors.grey2};
|
|
79088
|
+
`,JeCell$1=styled$2.span`
|
|
79089
|
+
${textStyles.standardMedium.css}
|
|
79090
|
+
color: ${e=>!0===e.$isFailureAmount?e.theme.colors.important:!0===e.$muted?e.theme.colors.hero:e.theme.colors.champion};
|
|
79091
|
+
text-align: ${e=>e.$align??"left"};
|
|
79092
|
+
min-width: 0;
|
|
79093
|
+
overflow: hidden;
|
|
79094
|
+
text-overflow: ellipsis;
|
|
79095
|
+
white-space: nowrap;
|
|
79096
|
+
padding: ${Space.sp3};
|
|
79097
|
+
font-variant-numeric: tabular-nums;
|
|
79098
|
+
&:nth-child(n + 9) {
|
|
79099
|
+
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
79100
|
+
}
|
|
78821
79101
|
`;function ActualMatchingKpiStripSkeleton(){return jsxRuntimeExports.jsx(KpiStrip$1,{children:Array.from({length:4},(e,t)=>jsxRuntimeExports.jsxs(KpiTile$2,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:90,height:16}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:70,height:20}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:110,height:12})]},`actual-matching-kpi-skeleton-${t}`))})}function ActualMatchingPageSkeleton(){const e=useQuickViewMode();return jsxRuntimeExports.jsx(ListFill,{children:jsxRuntimeExports.jsx(ListTableSkeleton,{colPcts:e?[18,28,20,18,16]:[20,12,10,14,14,14,16],rowCount:6})})}const KpiStrip$1=styled$2.div`
|
|
78822
79102
|
display: grid;
|
|
78823
79103
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
@@ -78854,7 +79134,7 @@ to {
|
|
|
78854
79134
|
background: ${e=>e.theme.colors.grey5};
|
|
78855
79135
|
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
78856
79136
|
border-radius: ${Space.sp2};
|
|
78857
|
-
`,{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$
|
|
79137
|
+
`,{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$3}}}=appLocale.getLocalizedStrings();function ActualMatchingStatusFilterBar({pendingReviewCount:e,autoReversedCount:t,selectedFilter:n,onFilterChange:o}){const i=React.useMemo(()=>[{id:"all",label:actualMatchingStrings$3.statusFilter.all},{id:"pending_review",label:actualMatchingStrings$3.statusFilter.pendingReview,inlineCount:e},{id:"auto_reversed",label:actualMatchingStrings$3.statusFilter.autoReversed,inlineCount:t}],[t,e]);return jsxRuntimeExports.jsx(ExpenseAutomationSubTabSwitcher,{activeSubTab:n,allTabs:i,onSubTabChange:o})}const{dateFormat:{visual:{MMMDCommaYYYYformat:MMMDCommaYYYYformat$2}}}=appLocale.getLocalizedStrings(),UNMATCHED_LIST_AMOUNT_FORMAT="0,0.[00]";function getVisualDateFormat(){return MMMDCommaYYYYformat$2}function formatUnmatchedListZeniDate(e){return e.format(getVisualDateFormat())}function formatUnmatchedListTransactionDate(e){if(null==e||""===String(e).trim())return"";const t=String(e).trim(),n=getVisualDateFormat(),o=clientEpicState.zeniDate(t);return null!=o&&"function"==typeof o.isValid&&o.isValid()?o.format(n):t}function currencySymbolForListAmount(e){if(null==e||""===e)return"";if(!/^[A-Z]{3}$/.test(e))return e;try{const t=new Intl.NumberFormat("en",{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0);return t.find(e=>"currency"===e.type)?.value??e}catch{return e}}function formatUnmatchedListAmount(e,t){return amountValueToString(UNMATCHED_LIST_AMOUNT_FORMAT,e,currencySymbolForListAmount(t))}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$2}},common:{strings:{hyphen:hyphen$e},currency:currency$8}}=appLocale.getLocalizedStrings(),previewStrings$4=actualMatchingStrings$2.matchModal,TEST_ID_PREFIX$1="actual-matching-match-new",AMOUNT_FORMAT="0,0.[00]";function formatAccrualAmount$1(e){return amountToString(AMOUNT_FORMAT,e.estimatedAmount)??formatUnmatchedListAmount(e.estimatedAmount.amount,e.estimatedAmount.currencySymbol??currency$8.currencySymbol)}function MatchNewPreview({selectedAccruals:e,selectedTransactions:t}){const n=t[0]??null;if(null==n||0===e.length)return jsxRuntimeExports.jsx(EmptyPreview,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,"preview-empty"),children:jsxRuntimeExports.jsx(SmallMedium,{children:previewStrings$4.previewEmpty})});const o=sumAccruedAmount(e),i=t.reduce((e,t)=>e+t.amount,0),r=variancePercent(i,o),a=null!=n.accountName&&""!==n.accountName?n.accountName:debitAccountName(e[0],hyphen$e),s=n.currencySymbol||currency$8.currencySymbol,l=formatUnmatchedListAmount(o,s),c=formatUnmatchedListAmount(i,s);return jsxRuntimeExports.jsxs(PreviewRoot,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,"preview"),children:[jsxRuntimeExports.jsxs(PreviewSection,{children:[jsxRuntimeExports.jsx(SectionTitle$8,{children:previewStrings$4.accrualJeTitle}),e.map(e=>jsxRuntimeExports.jsx(JeBlock,{creditAccount:creditAccountName(e,previewStrings$4.accruedExpensesFallback),creditAmount:formatAccrualAmount$1(e),dateLabel:formatAccrualJeDate(e.serviceMonth,previewStrings$4.lastDayOfMonth),debitAccount:debitAccountName(e,hyphen$e),debitAmount:formatAccrualAmount$1(e),subtitle:`${e.vendorName} · ${formatServiceMonthLabel(e.serviceMonth)}`,testIdSuffix:`accrual-je-${e.accrualId}`},`accrual-je-${e.accrualId}`))]}),jsxRuntimeExports.jsxs(PreviewSection,{children:[jsxRuntimeExports.jsx(SectionTitle$8,{children:previewStrings$4.reversalJeTitle}),jsxRuntimeExports.jsx(SectionNote,{children:previewStrings$4.reversalJeNote}),e.map(e=>jsxRuntimeExports.jsx(JeBlock,{creditAccount:debitAccountName(e,hyphen$e),creditAmount:formatAccrualAmount$1(e),dateLabel:hyphen$e,debitAccount:creditAccountName(e,previewStrings$4.accruedExpensesFallback),debitAmount:formatAccrualAmount$1(e),subtitle:`${previewStrings$4.reversesLabel} · ${formatServiceMonthLabel(e.serviceMonth)}`,testIdSuffix:`reversal-je-${e.accrualId}`},`reversal-je-${e.accrualId}`))]}),jsxRuntimeExports.jsxs(PreviewSection,{children:[jsxRuntimeExports.jsx(SectionTitle$8,{children:previewStrings$4.transactionMatchedTitle}),jsxRuntimeExports.jsxs(TxnMatchRow,{children:[jsxRuntimeExports.jsx(TxnMatchDate,{children:formatUnmatchedListTransactionDate(n.transactionDate)}),jsxRuntimeExports.jsx(TxnMatchVendor,{children:transactionMatchLabel(n,e)}),jsxRuntimeExports.jsx(TxnMatchAmount,{children:c})]}),jsxRuntimeExports.jsxs(VarianceRow,{children:[jsxRuntimeExports.jsx(VarianceCopy,{children:previewStrings$4.vsAccrued.replace("{amount}",l).replace("{account}",a)}),jsxRuntimeExports.jsx(TxnMatchAmount,{children:c}),null!=r?jsxRuntimeExports.jsx(StyledCapsule,{dataTestId:generateDataTestId(TEST_ID_PREFIX$1,"variance"),label:formatVariancePercent(r),type:getVarianceCapsuleType(r)}):null]})]})]})}function JeBlock({creditAccount:e,creditAmount:t,dateLabel:n,debitAccount:o,debitAmount:i,subtitle:r,testIdSuffix:a}){return jsxRuntimeExports.jsxs(JeCard,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,a),children:[jsxRuntimeExports.jsx(JeSubtitle,{children:r}),jsxRuntimeExports.jsxs(JeTable,{children:[jsxRuntimeExports.jsx(JeHeaderCell,{children:previewStrings$4.columnDate}),jsxRuntimeExports.jsx(JeHeaderCell,{children:previewStrings$4.columnAccount}),jsxRuntimeExports.jsx(JeHeaderCell,{align:"right",children:previewStrings$4.columnDebit}),jsxRuntimeExports.jsx(JeHeaderCell,{align:"right",children:previewStrings$4.columnCredit}),jsxRuntimeExports.jsx(JeCell,{children:n}),jsxRuntimeExports.jsx(JeCell,{children:o}),jsxRuntimeExports.jsx(JeCell,{align:"right",children:i}),jsxRuntimeExports.jsx(JeCell,{align:"right",children:hyphen$e}),jsxRuntimeExports.jsx(JeCell,{children:n}),jsxRuntimeExports.jsx(JeCell,{children:e}),jsxRuntimeExports.jsx(JeCell,{align:"right",children:hyphen$e}),jsxRuntimeExports.jsx(JeCell,{align:"right",children:t})]})]})}const PreviewRoot=styled$2.div`
|
|
78858
79138
|
display: flex;
|
|
78859
79139
|
flex-direction: column;
|
|
78860
79140
|
gap: ${Space.sp3};
|
|
@@ -78883,29 +79163,29 @@ to {
|
|
|
78883
79163
|
display: flex;
|
|
78884
79164
|
flex-direction: column;
|
|
78885
79165
|
gap: ${Space.sp2};
|
|
78886
|
-
`,SectionTitle$
|
|
79166
|
+
`,SectionTitle$8=styled$2(ExtraSmallSemiBold)`
|
|
78887
79167
|
color: ${e=>e.theme.colors.hero};
|
|
78888
79168
|
text-transform: uppercase;
|
|
78889
79169
|
`,SectionNote=styled$2(ExtraSmallMedium)`
|
|
78890
79170
|
color: ${e=>e.theme.colors.hero};
|
|
78891
|
-
`,JeCard
|
|
79171
|
+
`,JeCard=styled$2.div`
|
|
78892
79172
|
display: flex;
|
|
78893
79173
|
flex-direction: column;
|
|
78894
79174
|
gap: ${Space.sp2};
|
|
78895
79175
|
`,JeSubtitle=styled$2(SmallSemiBold)`
|
|
78896
79176
|
color: ${e=>e.theme.colors.champion};
|
|
78897
|
-
`,JeTable
|
|
79177
|
+
`,JeTable=styled$2.div`
|
|
78898
79178
|
display: grid;
|
|
78899
79179
|
grid-template-columns:
|
|
78900
79180
|
minmax(56px, auto) minmax(0, 1fr) minmax(72px, auto)
|
|
78901
79181
|
minmax(72px, auto);
|
|
78902
79182
|
column-gap: ${Space.sp2};
|
|
78903
79183
|
row-gap: ${Space.sp1};
|
|
78904
|
-
`,JeHeaderCell
|
|
79184
|
+
`,JeHeaderCell=styled$2(ExtraSmallSemiBold)`
|
|
78905
79185
|
color: ${e=>e.theme.colors.hero};
|
|
78906
79186
|
text-transform: uppercase;
|
|
78907
79187
|
text-align: ${e=>"right"===e.align?"right":"left"};
|
|
78908
|
-
`,JeCell
|
|
79188
|
+
`,JeCell=styled$2(ExtraSmallMedium)`
|
|
78909
79189
|
color: ${e=>e.theme.colors.champion};
|
|
78910
79190
|
text-align: ${e=>"right"===e.align?"right":"left"};
|
|
78911
79191
|
min-width: 0;
|
|
@@ -78939,7 +79219,7 @@ to {
|
|
|
78939
79219
|
flex: 1;
|
|
78940
79220
|
min-width: 0;
|
|
78941
79221
|
color: ${e=>e.theme.colors.hero};
|
|
78942
|
-
`,{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$3}},common:{cancel:cancel$1,close:close,strings:{hyphen:hyphen$f},currency:currency$7}}=appLocale.getLocalizedStrings(),TEST_ID_PREFIX$1="actual-matching-match-new",SET_VALUE_OPTS={shouldDirty:!0,shouldTouch:!0},MATCH_NEW_DRAWER_WIDTH=new ResponsiveSized(100,100,55);function MatchNewModal({initialFormValues:e,matchModal:t,onClearMatchNewModal:n,onCloseMatchNewModal:o,onMatchAndReverse:i,onSearchMatchAccruals:r,onSearchMatchTransactions:a}){const s=useTheme(),l=useWindowSizeContext(),c=useForm({mode:"all",defaultValues:{selectedTransactionLines:[],selectedAccrualIds:[],...e}}),d=c.watch("selectedTransactionLines")??[],p=c.watch("selectedAccrualIds")??[],u=React.useRef(null),m=React.useRef(null),h=t.openedFromMatchId??"",g=t.transactionSearch.results,x=t.accrualSearch.results,f="In-Progress"===t.confirmStatus.fetchState,y=React.useMemo(()=>new Set(g.map(e=>getTransactionLineKey(e.transactionId,e.lineId))),[g]),S=React.useMemo(()=>new Set(x.map(e=>e.accrualId)),[x]);React.useEffect(()=>{const e=c.getValues("selectedTransactionLines")??[],n=c.getValues("selectedAccrualIds")??[],o=pruneSelectionToVisibleResults(e,y,t.transactionSearch.fetchState.fetchState);o.length!==e.length&&c.setValue("selectedTransactionLines",o,SET_VALUE_OPTS);const i=pruneSelectionToVisibleResults(n,S,t.accrualSearch.fetchState.fetchState);i.length!==n.length&&c.setValue("selectedAccrualIds",i,SET_VALUE_OPTS)},[c,t.accrualSearch.fetchState.fetchState,t.transactionSearch.fetchState.fetchState,y,S]);const C=d.filter(e=>y.has(e)).map(e=>g.find(t=>getTransactionLineKey(t.transactionId,t.lineId)===e)??null).filter(e=>null!=e),b=C[0]??null;React.useEffect(()=>{if(null==b)return;const e=c.getValues("selectedAccrualIds")??[],t=e.filter(e=>{const t=x.find(t=>t.accrualId===e);return null!=t&&isSameMatchVendor(b,t)});t.length!==e.length&&c.setValue("selectedAccrualIds",t,SET_VALUE_OPTS)},[c,x,b]),React.useEffect(()=>{t.isOpen||(u.current=null,m.current=null,c.reset({selectedTransactionLines:[],selectedAccrualIds:[]}))},[c,t.isOpen]),React.useEffect(()=>{t.isOpen&&null!=t.openedFromMatchId&&(u.current=null,m.current=null,c.setValue("selectedTransactionLines",[],SET_VALUE_OPTS),c.setValue("selectedAccrualIds",[],SET_VALUE_OPTS))},[c,t.isOpen,t.openedFromMatchId]),React.useEffect(()=>{if(!t.isOpen||null==t.prefill)return;if(u.current===h)return;const e=t.prefill.selectedAccrualIds.filter(e=>S.has(e));0!==e.length&&(c.setValue("selectedAccrualIds",e,SET_VALUE_OPTS),u.current=h)},[c,t.isOpen,t.prefill,h,S]),React.useEffect(()=>{if(!t.isOpen||null==t.prefill)return;if(m.current===h)return;const e=pickPrefillTransactionLines(g,t.prefill).filter(e=>y.has(e));0!==e.length&&(c.setValue("selectedTransactionLines",e,SET_VALUE_OPTS),m.current=h)},[c,g,t.isOpen,t.prefill,h,y]);const $=p.filter(e=>{if(!S.has(e))return!1;if(null==b)return!0;const t=x.find(t=>t.accrualId===e);return null!=t&&isSameMatchVendor(b,t)}),v=$.map(e=>x.find(t=>t.accrualId===e)).filter(e=>null!=e),E=null!=b&&v.length>=1&&!f,w=React.useCallback(()=>{c.reset({selectedTransactionLines:[],selectedAccrualIds:[]}),o(),n()},[c,n,o]),R=()=>{if(f)return;const e=c.getValues(),t=(e.selectedTransactionLines??[]).map(e=>g.find(t=>getTransactionLineKey(t.transactionId,t.lineId)===e)).filter(e=>null!=e),n=t[0],o=(e.selectedAccrualIds??[]).filter(e=>{if(!S.has(e))return!1;if(null==n)return!1;const t=x.find(t=>t.accrualId===e);return null!=t&&isSameMatchVendor(n,t)});null!=n&&0!==t.length&&0!==o.length&&i({transactionId:n.transactionId,transactionIntegrationId:n.transactionIntegrationId,transactionType:n.transactionType,lineIds:t.map(e=>e.lineId),transactionSyncToken:n.syncToken,accrualIds:o})},A=C.length,j=0===A?null:C[0]?getTransactionLineKey(C[0].transactionId,C[0].lineId):null,T=shouldPromptSelectMatchLine({isTxnSearchComplete:"Completed"===t.transactionSearch.fetchState.fetchState,lineCount:g.length,openedFromMatchId:t.openedFromMatchId,selectedLineKey:0===A?null:j});return jsxRuntimeExports.jsx(Drawer,{anchor:"right",open:t.isOpen,PaperProps:{role:"dialog",style:{width:MATCH_NEW_DRAWER_WIDTH.valuePercentage(l),maxWidth:922,height:"100%",maxHeight:"100%",overflow:"hidden",display:"flex",flexDirection:"column",boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:w,children:jsxRuntimeExports.jsx(FormProvider,{...c,children:jsxRuntimeExports.jsxs(Panel,{id:MATCH_NEW_FORM,onSubmit:e=>{e.preventDefault(),R()},children:[jsxRuntimeExports.jsxs(Header$4,{children:[jsxRuntimeExports.jsxs(TitleBlock$1,{children:[jsxRuntimeExports.jsx(PanelTitle,{children:actualMatchingStrings$3.matchModal.title}),jsxRuntimeExports.jsx(PanelSubtitle,{children:actualMatchingStrings$3.matchModal.subtitle})]}),jsxRuntimeExports.jsx(CloseIconButton$2,{"aria-label":close,"data-testid":generateDataTestId(TEST_ID_PREFIX$1,"close"),type:"button",onClick:w,children:jsxRuntimeExports.jsx(StyledCloseIcon$c,{})})]}),jsxRuntimeExports.jsxs(Panes,{children:[jsxRuntimeExports.jsx(MatchPane,{emptyText:actualMatchingStrings$3.matchModal.emptyLeft,hint:T?actualMatchingStrings$3.matchModal.selectLineHint:void 0,isLoading:"In-Progress"===t.transactionSearch.fetchState.fetchState,searchPlaceholder:actualMatchingStrings$3.matchModal.leftSearchPlaceholder,searchValue:t.transactionSearch.query,selectedCount:A,testIdSuffix:"transactions",title:actualMatchingStrings$3.matchModal.leftTitle,onSearchChange:a,children:g.map(e=>{const t=getTransactionLineKey(e.transactionId,e.lineId);return jsxRuntimeExports.jsx(TransactionMatchRow,{isDisabled:f,isSelected:d.includes(t),row:e,onSelect:()=>(e=>{if(f)return;const t=c.getValues("selectedTransactionLines")??[];c.setValue("selectedTransactionLines",nextSelectedTransactionLines(t,e,g),SET_VALUE_OPTS)})(t)},t)})}),jsxRuntimeExports.jsx(MatchPane,{emptyText:actualMatchingStrings$3.matchModal.emptyRight,isLoading:"In-Progress"===t.accrualSearch.fetchState.fetchState,searchPlaceholder:actualMatchingStrings$3.matchModal.rightSearchPlaceholder,searchValue:t.accrualSearch.query,selectedCount:$.length,testIdSuffix:"accruals",title:actualMatchingStrings$3.matchModal.rightTitle,onSearchChange:r,children:x.map(e=>{const t=null!=b&&!isSameMatchVendor(b,e);return jsxRuntimeExports.jsx(AccrualMatchRow,{isDisabled:f||t,isSelected:p.includes(e.accrualId),row:e,vendorLockReason:t?actualMatchingStrings$3.matchModal.vendorLock:void 0,onToggle:()=>(e=>{if(f)return;if(null!=b){const t=x.find(t=>t.accrualId===e);if(null==t||!isSameMatchVendor(b,t))return}const t=c.getValues("selectedAccrualIds")??[];t.includes(e)?c.setValue("selectedAccrualIds",t.filter(t=>t!==e),SET_VALUE_OPTS):t.length>=MATCH_ACCRUAL_SELECTION_CAP||c.setValue("selectedAccrualIds",[...t,e],SET_VALUE_OPTS)})(e.accrualId)},e.accrualId)})})]}),jsxRuntimeExports.jsx(MatchNewPreview,{selectedAccruals:v,selectedTransactions:C}),jsxRuntimeExports.jsxs(DialogActions$1,{children:[jsxRuntimeExports.jsx(Button$4,{dataTestId:generateDataTestId(TEST_ID_PREFIX$1,"cancel"),label:cancel$1,type:"button",variant:"outline",onClick:w}),jsxRuntimeExports.jsx(Button$4,{dataTestId:generateDataTestId(TEST_ID_PREFIX$1,"confirm"),disabled:!E,label:actualMatchingStrings$3.matchModal.confirm,loading:f,type:"button",variant:"primary",onClick:()=>R()})]})]})})})}function MatchPane({children:e,emptyText:t,hint:n,isLoading:o,searchPlaceholder:i,searchValue:r,selectedCount:a,testIdSuffix:s,title:l,onSearchChange:c}){const[d,p]=React.useState(r);React.useEffect(()=>{p(r)},[r]);const u=Array.isArray(e)?e.length:0;return jsxRuntimeExports.jsxs(Pane,{children:[jsxRuntimeExports.jsxs(PaneHeader,{children:[jsxRuntimeExports.jsx(LargeSemiBold,{children:l}),jsxRuntimeExports.jsx(PaneSelectedCount,{children:`${a} ${actualMatchingStrings$3.matchModal.selectedLabel}`})]}),null!=n?jsxRuntimeExports.jsx(PaneHint,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,`hint-${s}`),children:n}):null,jsxRuntimeExports.jsxs(SearchRow,{children:[jsxRuntimeExports.jsx(StyledSearchIcon$2,{}),jsxRuntimeExports.jsx(SearchInput$1,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,`search-${s}`),placeholder:i,value:d,onChange:e=>{const t=e.target.value;p(t),c(t)}})]}),jsxRuntimeExports.jsx(ScrollableRows,{children:o?jsxRuntimeExports.jsx(MatchPaneLoader,{testIdSuffix:s}):0===u?jsxRuntimeExports.jsx(EmptyPaneText,{children:jsxRuntimeExports.jsx(SmallMedium,{children:t})}):e})]})}const MATCH_PANE_LOADER_ROW_COUNT=3;function MatchPaneLoader({testIdSuffix:e}){return jsxRuntimeExports.jsx(LoaderList,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,`loader-${e}`),children:Array.from({length:MATCH_PANE_LOADER_ROW_COUNT},(e,t)=>jsxRuntimeExports.jsxs(LoaderRow,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{height:16,width:16}),jsxRuntimeExports.jsx(CircularContentLoader,{height:24,width:24}),jsxRuntimeExports.jsxs(LoaderTexts,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{height:14,width:140}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{height:12,width:96})]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{height:14,width:48})]},t))})}function DisplayCheckBox({checked:e,name:t}){return jsxRuntimeExports.jsx(CheckCell,{children:jsxRuntimeExports.jsx(StyledCheckBox$1,{checkBoxValue:t,isDisabled:"readonly",name:t,value:e,onChange:()=>{}})})}function TransactionMatchRow({isDisabled:e,isSelected:t,row:n,onSelect:o}){const i=getTransactionLineKey(n.transactionId,n.lineId);return jsxRuntimeExports.jsxs(MatchRow$1,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,`txn-row-${i}`),$isDisabled:e,$isSelected:t,onClick:e?void 0:o,children:[jsxRuntimeExports.jsx(DisplayCheckBox,{checked:t,name:`txn-select-${i}`}),jsxRuntimeExports.jsx(EntityAvatar,{name:n.vendorName}),jsxRuntimeExports.jsxs(RowBody,{children:[jsxRuntimeExports.jsxs(RowTitleLine,{children:[jsxRuntimeExports.jsx(TooltipWithEllipsisText,{maxWidth:"160px",text:n.vendorName,withNoHover:!0,itemTextStyle:{fontWeight:600,color:"inherit"}}),jsxRuntimeExports.jsx(StyledCapsule,{label:formatTransactionTypeLabel(n.transactionType),style:{flexShrink:0},type:"info"})]}),jsxRuntimeExports.jsxs(RowMeta,{children:[formatUnmatchedListTransactionDate(n.transactionDate),null!=n.transactionMemo&&""!==n.transactionMemo?` · ${n.transactionMemo}`:""]})]}),jsxRuntimeExports.jsx(RowAmount,{children:amountToString("0,0.[00]",{amount:n.amount,currencyCode:n.currencyCode||"USD",currencySymbol:n.currencySymbol||currency$7.currencySymbol})??formatUnmatchedListAmount(n.amount,n.currencySymbol||currency$7.currencySymbol)})]})}function AccrualMatchRow({isDisabled:e,isSelected:t,row:n,vendorLockReason:o,onToggle:i}){const r=null!=n.jeDebitAccountName&&""!==n.jeDebitAccountName?n.jeDebitAccountName:hyphen$f,a=`${formatServiceMonthLabel(n.serviceMonth)} · ${r}`;return jsxRuntimeExports.jsx(AccrualRowBlock,{title:o,children:jsxRuntimeExports.jsxs(MatchRow$1,{"aria-disabled":e,"data-testid":generateDataTestId(TEST_ID_PREFIX$1,`accrual-row-${n.accrualId}`),$isDisabled:e,$isSelected:t,onClick:e?void 0:i,children:[jsxRuntimeExports.jsx(DisplayCheckBox,{checked:t,name:`accrual-select-${n.accrualId}`}),jsxRuntimeExports.jsx(EntityAvatar,{name:n.vendorName}),jsxRuntimeExports.jsxs(RowBody,{children:[jsxRuntimeExports.jsx(RowTitleLine,{children:jsxRuntimeExports.jsx(TooltipWithEllipsisText,{maxWidth:"180px",text:n.vendorName,withNoHover:!0,itemTextStyle:{fontWeight:600,color:"inherit"}})}),jsxRuntimeExports.jsx(RowMeta,{children:a})]}),jsxRuntimeExports.jsx(RowAmount,{children:amountToString("0,0.[00]",n.estimatedAmount)??formatUnmatchedListAmount(n.estimatedAmount.amount,n.estimatedAmount.currencySymbol??currency$7.currencySymbol)})]})})}const Panel=styled$2.form`
|
|
79222
|
+
`,{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$1}},common:{cancel:cancel$1,close:close,strings:{hyphen:hyphen$d},currency:currency$7}}=appLocale.getLocalizedStrings(),TEST_ID_PREFIX="actual-matching-match-new",SET_VALUE_OPTS={shouldDirty:!0,shouldTouch:!0},MATCH_NEW_DRAWER_WIDTH=new ResponsiveSized(100,100,55);function MatchNewModal({initialFormValues:e,matchModal:t,onClearMatchNewModal:n,onCloseMatchNewModal:o,onMatchAndReverse:i,onSearchMatchAccruals:r,onSearchMatchTransactions:a}){const s=useTheme(),l=useWindowSizeContext(),c=useForm({mode:"all",defaultValues:{selectedTransactionLines:[],selectedAccrualIds:[],...e}}),d=c.watch("selectedTransactionLines")??[],p=c.watch("selectedAccrualIds")??[],u=React.useRef(null),m=React.useRef(null),h=t.openedFromMatchId??"",g=t.transactionSearch.results,x=t.accrualSearch.results,f="In-Progress"===t.confirmStatus.fetchState,y=React.useMemo(()=>new Set(g.map(e=>getTransactionLineKey(e.transactionId,e.lineId))),[g]),S=React.useMemo(()=>new Set(x.map(e=>e.accrualId)),[x]);React.useEffect(()=>{const e=c.getValues("selectedTransactionLines")??[],n=c.getValues("selectedAccrualIds")??[],o=pruneSelectionToVisibleResults(e,y,t.transactionSearch.fetchState.fetchState);o.length!==e.length&&c.setValue("selectedTransactionLines",o,SET_VALUE_OPTS);const i=pruneSelectionToVisibleResults(n,S,t.accrualSearch.fetchState.fetchState);i.length!==n.length&&c.setValue("selectedAccrualIds",i,SET_VALUE_OPTS)},[c,t.accrualSearch.fetchState.fetchState,t.transactionSearch.fetchState.fetchState,y,S]);const C=d.filter(e=>y.has(e)).map(e=>g.find(t=>getTransactionLineKey(t.transactionId,t.lineId)===e)??null).filter(e=>null!=e),b=C[0]??null;React.useEffect(()=>{if(null==b)return;const e=c.getValues("selectedAccrualIds")??[],t=e.filter(e=>{const t=x.find(t=>t.accrualId===e);return null!=t&&isSameMatchVendor(b,t)});t.length!==e.length&&c.setValue("selectedAccrualIds",t,SET_VALUE_OPTS)},[c,x,b]),React.useEffect(()=>{t.isOpen||(u.current=null,m.current=null,c.reset({selectedTransactionLines:[],selectedAccrualIds:[]}))},[c,t.isOpen]),React.useEffect(()=>{t.isOpen&&null!=t.openedFromMatchId&&(u.current=null,m.current=null,c.setValue("selectedTransactionLines",[],SET_VALUE_OPTS),c.setValue("selectedAccrualIds",[],SET_VALUE_OPTS))},[c,t.isOpen,t.openedFromMatchId]),React.useEffect(()=>{if(!t.isOpen||null==t.prefill)return;if(u.current===h)return;const e=t.prefill.selectedAccrualIds.filter(e=>S.has(e));0!==e.length&&(c.setValue("selectedAccrualIds",e,SET_VALUE_OPTS),u.current=h)},[c,t.isOpen,t.prefill,h,S]),React.useEffect(()=>{if(!t.isOpen||null==t.prefill)return;if(m.current===h)return;const e=pickPrefillTransactionLines(g,t.prefill).filter(e=>y.has(e));0!==e.length&&(c.setValue("selectedTransactionLines",e,SET_VALUE_OPTS),m.current=h)},[c,g,t.isOpen,t.prefill,h,y]);const $=p.filter(e=>{if(!S.has(e))return!1;if(null==b)return!0;const t=x.find(t=>t.accrualId===e);return null!=t&&isSameMatchVendor(b,t)}),v=$.map(e=>x.find(t=>t.accrualId===e)).filter(e=>null!=e),E=null!=b&&v.length>=1&&!f,w=React.useCallback(()=>{c.reset({selectedTransactionLines:[],selectedAccrualIds:[]}),o(),n()},[c,n,o]),R=()=>{if(f)return;const e=c.getValues(),t=(e.selectedTransactionLines??[]).map(e=>g.find(t=>getTransactionLineKey(t.transactionId,t.lineId)===e)).filter(e=>null!=e),n=t[0],o=(e.selectedAccrualIds??[]).filter(e=>{if(!S.has(e))return!1;if(null==n)return!1;const t=x.find(t=>t.accrualId===e);return null!=t&&isSameMatchVendor(n,t)});null!=n&&0!==t.length&&0!==o.length&&i({transactionId:n.transactionId,transactionIntegrationId:n.transactionIntegrationId,transactionType:n.transactionType,lineIds:t.map(e=>e.lineId),transactionSyncToken:n.syncToken,accrualIds:o})},A=C.length,j=0===A?null:C[0]?getTransactionLineKey(C[0].transactionId,C[0].lineId):null,T=shouldPromptSelectMatchLine({isTxnSearchComplete:"Completed"===t.transactionSearch.fetchState.fetchState,lineCount:g.length,openedFromMatchId:t.openedFromMatchId,selectedLineKey:0===A?null:j});return jsxRuntimeExports.jsx(Drawer,{anchor:"right",open:t.isOpen,PaperProps:{role:"dialog",style:{width:MATCH_NEW_DRAWER_WIDTH.valuePercentage(l),maxWidth:922,height:"100%",maxHeight:"100%",overflow:"hidden",display:"flex",flexDirection:"column",boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:w,children:jsxRuntimeExports.jsx(FormProvider,{...c,children:jsxRuntimeExports.jsxs(Panel,{id:MATCH_NEW_FORM,onSubmit:e=>{e.preventDefault(),R()},children:[jsxRuntimeExports.jsxs(Header$4,{children:[jsxRuntimeExports.jsxs(TitleBlock$1,{children:[jsxRuntimeExports.jsx(PanelTitle,{children:actualMatchingStrings$1.matchModal.title}),jsxRuntimeExports.jsx(PanelSubtitle,{children:actualMatchingStrings$1.matchModal.subtitle})]}),jsxRuntimeExports.jsx(CloseIconButton$2,{"aria-label":close,"data-testid":generateDataTestId(TEST_ID_PREFIX,"close"),type:"button",onClick:w,children:jsxRuntimeExports.jsx(StyledCloseIcon$c,{})})]}),jsxRuntimeExports.jsxs(Panes,{children:[jsxRuntimeExports.jsx(MatchPane,{emptyText:actualMatchingStrings$1.matchModal.emptyLeft,hint:T?actualMatchingStrings$1.matchModal.selectLineHint:void 0,isLoading:"In-Progress"===t.transactionSearch.fetchState.fetchState,searchPlaceholder:actualMatchingStrings$1.matchModal.leftSearchPlaceholder,searchValue:t.transactionSearch.query,selectedCount:A,testIdSuffix:"transactions",title:actualMatchingStrings$1.matchModal.leftTitle,onSearchChange:a,children:g.map(e=>{const t=getTransactionLineKey(e.transactionId,e.lineId);return jsxRuntimeExports.jsx(TransactionMatchRow,{isDisabled:f,isSelected:d.includes(t),row:e,onSelect:()=>(e=>{if(f)return;const t=c.getValues("selectedTransactionLines")??[];c.setValue("selectedTransactionLines",nextSelectedTransactionLines(t,e,g),SET_VALUE_OPTS)})(t)},t)})}),jsxRuntimeExports.jsx(MatchPane,{emptyText:actualMatchingStrings$1.matchModal.emptyRight,isLoading:"In-Progress"===t.accrualSearch.fetchState.fetchState,searchPlaceholder:actualMatchingStrings$1.matchModal.rightSearchPlaceholder,searchValue:t.accrualSearch.query,selectedCount:$.length,testIdSuffix:"accruals",title:actualMatchingStrings$1.matchModal.rightTitle,onSearchChange:r,children:x.map(e=>{const t=null!=b&&!isSameMatchVendor(b,e);return jsxRuntimeExports.jsx(AccrualMatchRow,{isDisabled:f||t,isSelected:p.includes(e.accrualId),row:e,vendorLockReason:t?actualMatchingStrings$1.matchModal.vendorLock:void 0,onToggle:()=>(e=>{if(f)return;if(null!=b){const t=x.find(t=>t.accrualId===e);if(null==t||!isSameMatchVendor(b,t))return}const t=c.getValues("selectedAccrualIds")??[];t.includes(e)?c.setValue("selectedAccrualIds",t.filter(t=>t!==e),SET_VALUE_OPTS):t.length>=MATCH_ACCRUAL_SELECTION_CAP||c.setValue("selectedAccrualIds",[...t,e],SET_VALUE_OPTS)})(e.accrualId)},e.accrualId)})})]}),jsxRuntimeExports.jsx(MatchNewPreview,{selectedAccruals:v,selectedTransactions:C}),jsxRuntimeExports.jsxs(DialogActions$1,{children:[jsxRuntimeExports.jsx(Button$4,{dataTestId:generateDataTestId(TEST_ID_PREFIX,"cancel"),label:cancel$1,type:"button",variant:"outline",onClick:w}),jsxRuntimeExports.jsx(Button$4,{dataTestId:generateDataTestId(TEST_ID_PREFIX,"confirm"),disabled:!E,label:actualMatchingStrings$1.matchModal.confirm,loading:f,type:"button",variant:"primary",onClick:()=>R()})]})]})})})}function MatchPane({children:e,emptyText:t,hint:n,isLoading:o,searchPlaceholder:i,searchValue:r,selectedCount:a,testIdSuffix:s,title:l,onSearchChange:c}){const[d,p]=React.useState(r);React.useEffect(()=>{p(r)},[r]);const u=Array.isArray(e)?e.length:0;return jsxRuntimeExports.jsxs(Pane,{children:[jsxRuntimeExports.jsxs(PaneHeader,{children:[jsxRuntimeExports.jsx(LargeSemiBold,{children:l}),jsxRuntimeExports.jsx(PaneSelectedCount,{children:`${a} ${actualMatchingStrings$1.matchModal.selectedLabel}`})]}),null!=n?jsxRuntimeExports.jsx(PaneHint,{"data-testid":generateDataTestId(TEST_ID_PREFIX,`hint-${s}`),children:n}):null,jsxRuntimeExports.jsxs(SearchRow,{children:[jsxRuntimeExports.jsx(StyledSearchIcon$2,{}),jsxRuntimeExports.jsx(SearchInput$1,{"data-testid":generateDataTestId(TEST_ID_PREFIX,`search-${s}`),placeholder:i,value:d,onChange:e=>{const t=e.target.value;p(t),c(t)}})]}),jsxRuntimeExports.jsx(ScrollableRows,{children:o?jsxRuntimeExports.jsx(MatchPaneLoader,{testIdSuffix:s}):0===u?jsxRuntimeExports.jsx(EmptyPaneText,{children:jsxRuntimeExports.jsx(SmallMedium,{children:t})}):e})]})}const MATCH_PANE_LOADER_ROW_COUNT=3;function MatchPaneLoader({testIdSuffix:e}){return jsxRuntimeExports.jsx(LoaderList,{"data-testid":generateDataTestId(TEST_ID_PREFIX,`loader-${e}`),children:Array.from({length:MATCH_PANE_LOADER_ROW_COUNT},(e,t)=>jsxRuntimeExports.jsxs(LoaderRow,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{height:16,width:16}),jsxRuntimeExports.jsx(CircularContentLoader,{height:24,width:24}),jsxRuntimeExports.jsxs(LoaderTexts,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{height:14,width:140}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{height:12,width:96})]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{height:14,width:48})]},t))})}function DisplayCheckBox({checked:e,name:t}){return jsxRuntimeExports.jsx(CheckCell,{children:jsxRuntimeExports.jsx(StyledCheckBox$1,{checkBoxValue:t,isDisabled:"readonly",name:t,value:e,onChange:()=>{}})})}function TransactionMatchRow({isDisabled:e,isSelected:t,row:n,onSelect:o}){const i=getTransactionLineKey(n.transactionId,n.lineId);return jsxRuntimeExports.jsxs(MatchRow$1,{"data-testid":generateDataTestId(TEST_ID_PREFIX,`txn-row-${i}`),$isDisabled:e,$isSelected:t,onClick:e?void 0:o,children:[jsxRuntimeExports.jsx(DisplayCheckBox,{checked:t,name:`txn-select-${i}`}),jsxRuntimeExports.jsx(EntityAvatar,{name:n.vendorName}),jsxRuntimeExports.jsxs(RowBody,{children:[jsxRuntimeExports.jsxs(RowTitleLine,{children:[jsxRuntimeExports.jsx(TooltipWithEllipsisText,{maxWidth:"160px",text:n.vendorName,withNoHover:!0,itemTextStyle:{fontWeight:600,color:"inherit"}}),jsxRuntimeExports.jsx(StyledCapsule,{label:formatTransactionTypeLabel(n.transactionType),style:{flexShrink:0},type:"info"})]}),jsxRuntimeExports.jsxs(RowMeta,{children:[formatUnmatchedListTransactionDate(n.transactionDate),null!=n.transactionMemo&&""!==n.transactionMemo?` · ${n.transactionMemo}`:""]})]}),jsxRuntimeExports.jsx(RowAmount,{children:amountToString("0,0.[00]",{amount:n.amount,currencyCode:n.currencyCode||"USD",currencySymbol:n.currencySymbol||currency$7.currencySymbol})??formatUnmatchedListAmount(n.amount,n.currencySymbol||currency$7.currencySymbol)})]})}function AccrualMatchRow({isDisabled:e,isSelected:t,row:n,vendorLockReason:o,onToggle:i}){const r=null!=n.jeDebitAccountName&&""!==n.jeDebitAccountName?n.jeDebitAccountName:hyphen$d,a=`${formatServiceMonthLabel(n.serviceMonth)} · ${r}`;return jsxRuntimeExports.jsx(AccrualRowBlock,{title:o,children:jsxRuntimeExports.jsxs(MatchRow$1,{"aria-disabled":e,"data-testid":generateDataTestId(TEST_ID_PREFIX,`accrual-row-${n.accrualId}`),$isDisabled:e,$isSelected:t,onClick:e?void 0:i,children:[jsxRuntimeExports.jsx(DisplayCheckBox,{checked:t,name:`accrual-select-${n.accrualId}`}),jsxRuntimeExports.jsx(EntityAvatar,{name:n.vendorName}),jsxRuntimeExports.jsxs(RowBody,{children:[jsxRuntimeExports.jsx(RowTitleLine,{children:jsxRuntimeExports.jsx(TooltipWithEllipsisText,{maxWidth:"180px",text:n.vendorName,withNoHover:!0,itemTextStyle:{fontWeight:600,color:"inherit"}})}),jsxRuntimeExports.jsx(RowMeta,{children:a})]}),jsxRuntimeExports.jsx(RowAmount,{children:amountToString("0,0.[00]",n.estimatedAmount)??formatUnmatchedListAmount(n.estimatedAmount.amount,n.estimatedAmount.currencySymbol??currency$7.currencySymbol)})]})})}const Panel=styled$2.form`
|
|
78943
79223
|
display: flex;
|
|
78944
79224
|
flex-direction: column;
|
|
78945
79225
|
flex: 1;
|
|
@@ -79125,7 +79405,7 @@ to {
|
|
|
79125
79405
|
gap: ${Space.sp2};
|
|
79126
79406
|
padding: ${Space.sp3} ${Space.sp4};
|
|
79127
79407
|
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
79128
|
-
`;function ActualMatchingPageKpis({actualMatching:e}){return jsxRuntimeExports.jsx(KpiHeader,{children:e.hasLoadedForSelectedPeriod?jsxRuntimeExports.jsx(ActualMatchingKpiStrip,{displayCurrency:getActualMatchingDisplayCurrency([...e.reversed,...e.pendingReview]),kpiSummary:e.kpiSummary}):jsxRuntimeExports.jsx(ActualMatchingKpiStripSkeleton,{})})}function ActualMatchingPage({actualMatching:e,isMatchPanelOpen:t=!1,matchPanelContent:n,onClearMatchNewModal:o,onCloseMatchNewModal:i,onIgnoreMatchSuggestion:r,onMatchAndReverse:a,
|
|
79408
|
+
`;function ActualMatchingPageKpis({actualMatching:e}){return jsxRuntimeExports.jsx(KpiHeader,{children:e.hasLoadedForSelectedPeriod?jsxRuntimeExports.jsx(ActualMatchingKpiStrip,{displayCurrency:getActualMatchingDisplayCurrency([...e.reversed,...e.pendingReview]),kpiSummary:e.kpiSummary}):jsxRuntimeExports.jsx(ActualMatchingKpiStripSkeleton,{})})}function ActualMatchingPage({actualMatching:e,isMatchPanelOpen:t=!1,matchPanelContent:n,onClearMatchNewModal:o,onCloseMatchNewModal:i,onIgnoreMatchSuggestion:r,onMatchAndReverse:a,onOpenBill:s,onOpenMatch:l,onSearchMatchAccruals:c,onSearchMatchTransactions:d,onUndoReversal:p,onUpdateActualMatchingUIState:u}){const m=t,h=usePanelInternal()?.selectedItemId,g=null==h?void 0:e.pendingReview.find(e=>e.matchId===h)??e.reversed.find(e=>e.matchId===h),x=null==g?void 0:getMatchedBillTransaction({members:[g],transactionType:g.transactionType??"bill"})??void 0,[f,y]=React.useState(),S=null!=f?e.ignoreStatusByMatchId?.[f.matchId]:void 0;React.useEffect(()=>{null!=f&&"Completed"===S?.fetchState&&y(void 0)},[S?.fetchState,f]);const C=e.hasLoadedForSelectedPeriod?jsxRuntimeExports.jsx(ListShell,{children:jsxRuntimeExports.jsx(ActualMatchingList,{ignoreStatusByMatchId:e.ignoreStatusByMatchId,pendingReview:e.pendingReview,reversed:e.reversed,sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder,undoStatusByMatchId:e.undoReversalStatusByMatchId,onIgnoreMatchSuggestion:t=>{const n=e.pendingReview.find(e=>e.matchId===t);y(n)},onOpenMatch:l,onUndoReversal:p,onUpdateActualMatchingUIState:u})}):jsxRuntimeExports.jsx(ActualMatchingPageSkeleton,{});return jsxRuntimeExports.jsxs(SectionWrapper$2,{children:[jsxRuntimeExports.jsxs(SectionContent$2,{$isPanelOpen:m,children:[jsxRuntimeExports.jsx(ActualMatchingStatusFilterBar,{autoReversedCount:e.kpiSummary.autoReversed.count,pendingReviewCount:e.kpiSummary.pendingReview.count,selectedFilter:getActualMatchingStatusFilter(e.uiState),onFilterChange:e=>u?.({statusFilter:e})}),jsxRuntimeExports.jsx(ActualMatchingPageKpis,{actualMatching:e}),jsxRuntimeExports.jsx(SidePanelLayout,{isOpen:m,isFullView:!1,disableMarginTop:!0,panelStyle:PANEL_FLUSH_WITH_LIST_STYLE$2,panelActionBarContent:null==s?void 0:jsxRuntimeExports.jsx(ActualMatchingOpenBillActionButton,{transaction:x,onOpenBill:s}),panelContent:n,listContent:C})]}),jsxRuntimeExports.jsx(MatchNewModal,{matchModal:e.matchModal,onClearMatchNewModal:o,onCloseMatchNewModal:i,onMatchAndReverse:a,onSearchMatchAccruals:c,onSearchMatchTransactions:d}),null!=f&&jsxRuntimeExports.jsx(JEAccrualFeedbackDialog,{amount:amountToString("0,0.[00]",f.actualAmount)??amountToString("0,0.[00]",f.estimatedAmount)??"",isOpen:!0,isSubmitting:"In-Progress"===S?.fetchState,mode:"ignoreMatchSuggestion",vendorName:f.vendorName,onClose:()=>y(void 0),onSubmit:(e,t)=>{r(f.matchId,e,t)}})]})}const PANEL_FLUSH_WITH_LIST_STYLE$2={paddingTop:Space.sp0,right:Space.sp0},SectionWrapper$2=styled$2.div`
|
|
79129
79409
|
display: flex;
|
|
79130
79410
|
flex-direction: column;
|
|
79131
79411
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -79163,7 +79443,7 @@ to {
|
|
|
79163
79443
|
`,KpiHeader=styled$2.div`
|
|
79164
79444
|
flex-shrink: 0;
|
|
79165
79445
|
background-color: ${e=>e.theme.colors.grey4};
|
|
79166
|
-
`,{expenseAutomation:{jeSchedules:jeScheduleStrings$b},common:{strings:{hyphen:hyphen$
|
|
79446
|
+
`,{expenseAutomation:{jeSchedules:jeScheduleStrings$b},common:{strings:{hyphen:hyphen$c}},dateFormat:dateFormat$m}=appLocale.getLocalizedStrings(),PROGRESS_BAR_WIDTH_PX=115,LIFECYCLE_COLUMN_WIDTH_PX=PROGRESS_BAR_WIDTH_PX+sp[4],JEScheduleLifecycle=({endDate:e,forcePostedLabel:t,isOneTimeAccrual:n=!1,posted:o,reversesOnBillMatch:i,scheduleType:r,total:a})=>{if(n){if(!0===i)return jsxRuntimeExports.jsx(Container$y,{children:jsxRuntimeExports.jsx(ReversalColumn,{children:jsxRuntimeExports.jsx(ReversalText,{children:jeScheduleStrings$b.scheduleHeaders.reversesOnMatch})})});const t=e?.format(dateFormat$m.visual.MMMDCommaYYYYformat);return jsxRuntimeExports.jsx(Container$y,{children:jsxRuntimeExports.jsx(ReversalColumn,{children:null!=t?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ReversalText,{children:jeScheduleStrings$b.scheduleHeaders.reversesOn}),jsxRuntimeExports.jsx(ReversalText,{children:t})]}):jsxRuntimeExports.jsx(ReversalText,{children:hyphen$c})})})}const s=a>0?Math.round(o/a*100):0,l=a>0?Math.round(o/a*PROGRESS_BAR_WIDTH_PX):0,c=o>0&&o<a,d=!0===t?jeScheduleStrings$b.existingSchedules.kpi.posted:o>0?jeScheduleStrings$b.scheduleHeaders.scheduledAndPosted:jeScheduleStrings$b.lifecycleLabel[r];return jsxRuntimeExports.jsx(Container$y,{children:jsxRuntimeExports.jsxs(InnerColumn,{children:[jsxRuntimeExports.jsxs(TopRow$1,{children:[jsxRuntimeExports.jsx(CountText,{children:`${o}/${a}`}),jsxRuntimeExports.jsx(CountText,{children:`${s}%`})]}),jsxRuntimeExports.jsxs(ProgressBar,{children:[jsxRuntimeExports.jsx(ProgressFill,{$width:l}),c&&jsxRuntimeExports.jsx(ProgressSapphire,{}),jsxRuntimeExports.jsx(ProgressTrack,{})]}),jsxRuntimeExports.jsx(ScheduleLabel,{children:d})]})})},Container$y=styled$2.div`
|
|
79167
79447
|
display: flex;
|
|
79168
79448
|
flex-direction: row;
|
|
79169
79449
|
justify-content: center;
|
|
@@ -79370,7 +79650,7 @@ to {
|
|
|
79370
79650
|
height: ${Space.sp3};
|
|
79371
79651
|
flex-shrink: 0;
|
|
79372
79652
|
color: ${e=>e.theme.colors.hero};
|
|
79373
|
-
`,{expenseAutomation:{jeSchedules:jeScheduleStrings$8}}=appLocale.getLocalizedStrings(),{all:allLabel$1,...scheduleTypeLabels}=jeScheduleStrings$8.typeFilter,typeLabels$1=scheduleTypeLabels;function JETypeFilterBar({counts:e,selectedFilter:t,onFilterChange:n}){const o=t??"all",i=React.useMemo(()=>[{id:"all",label:allLabel$1},...Object.entries(typeLabels$1).filter(([e])=>"deferred_revenue"!==e).map(([t,n])=>({id:t,label:n,inlineCount:e[t]??0}))],[e]);return jsxRuntimeExports.jsx(ExpenseAutomationSubTabSwitcher,{activeSubTab:o,allTabs:i,onSubTabChange:e=>n("all"===e?null:e)})}const{expenseAutomation:{jeSchedules:{scheduleCot:{credit:credit$1,debit:debit$1,methodByType:methodByType,monthLifeSuffix:monthLifeSuffix,recommendedMethod:recommendedMethod}}},common:{strings:{middleDot:middleDot$1,space:space}}}=appLocale.getLocalizedStrings();function buildJEScheduleSummaryCOTData(e){if(clientEpicState.isOneTimeAccrualRow(e))return null;const t=e.aiSummaries?.scheduleSummary,n=Array.isArray(t?.cot)?t.cot:[];return 0===n.length?null:{isCOTEnabled:!0,isThoughtProcessOnly:!1,recommendations:[{id:getJEScheduleRowKey(e),title:recommendedMethod,name:buildRecommendedMethodName(e),reason:t?.reasoning??buildDebitCreditSummary(e),confidencePercentage:toConfidencePercentage(e),cot:n,isSelected:!1,isDisabled:!0}]}}function buildRecommendedMethodName(e){const t=clientEpicState.getJEScheduleRowType(e),n=null!=t?methodByType[t]:void 0,o=e.period;return null==n?null!=o?`${o}${monthLifeSuffix}`:"":null==o?n:`${n}${space}${middleDot$1}${space}${o}${monthLifeSuffix}`}function buildDebitCreditSummary(e){const t=e.jeDebit.account?.accountName,n=e.jeCredit.account?.accountName;return null==t||null==n?"":`${debit$1}${space}${t}${space}${middleDot$1}${space}${credit$1}${space}${n}`}function toConfidencePercentage(e){const t=e.aiSummaries?.scheduleSummary?.confidence??e.confidenceScore;if("number"==typeof t)return t<=1?Math.round(100*t):Math.round(t)}function getOrdinalSuffix(e){if(e>=11&&e<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function getJEPostingDateText(e,t){if(clientEpicState.isOneTimeAccrualRow(e))return t;if(!0===e.lastDayOfMonth)return"Last day of every month";if(null!=e.dayOfPostingDate){const t=e.dayOfPostingDate;return`${t}${getOrdinalSuffix(t)} of every month`}return t}const COUNTED_ENTRY_STATUS_CODES=new Set(["posted","unknown","canceled"]);function countPostedEntries(e){return null==e?0:Array.isArray(e)?e.filter(e=>COUNTED_ENTRY_STATUS_CODES.has(e.status.code)).length:COUNTED_ENTRY_STATUS_CODES.has(e.status.code)?1:0}function getRemainingMonthsText(e,t){if(clientEpicState.isOneTimeAccrualRow(e))return t;const n=e.period;if(null==n||n<=0)return t;const o=e.scheduledJournalEntry;if(Array.isArray(o))return`${countPostedEntries(o)}/${n}`;if(null!=o){const t=o;if(null!=t.expectedPostDate&&null!=e.startDate){return`${t.expectedPostDate.diff(e.startDate,"month")+1}/${n}`}}return t}function getJEScheduleRowKey(e){return clientEpicState.isOneTimeAccrualRow(e)?e.jeOneTimeAccrualKey:clientEpicState.isAccruedScheduleRow(e)?e.jeAccruedScheduleKey:e.jeScheduleTransactionKey}function getJEScheduleRowPanelId(e){return clientEpicState.isOneTimeAccrualRow(e)?e.accrualId:e.jeScheduleId}const INTERACTIVE_CELL_CLASS_NAMES=["item-value-container","hover-background","auto-complete-single-select-field__input","auto-complete-single-select-field__option","grouped-single-select-field__input","grouped-single-select-field__menu"];function isInteractiveCellClick(e){let t=e instanceof HTMLElement?e:null;for(;null!=t;){const e=t;if(INTERACTIVE_CELL_CLASS_NAMES.some(t=>e.classList.contains(t)))return!0;t=t.parentElement}return!1}const{expenseAutomation:{jeSchedules:jeScheduleStrings$7},common:{scheduleTypes:scheduleTypes$2,currency:currency$6,retry:retry,review:review$1,strings:{hyphen:hyphen$d},texts:{addCategory2:addCategory2$1,addVendor:addVendor,months:month$1}},dateFormat:dateFormat$l}=appLocale.getLocalizedStrings(),BUTTON_MIN_WIDTH$2=75,jeScheduleId="jeSchedulePage",uniqueName$d=e=>`${jeScheduleId}.${e}`,vendorFieldName=uniqueName$d("vendor"),categoryDropdownFieldName=uniqueName$d("scheduleExpenseCategory"),accumulatedDepreciationCategoryDropdownFieldName=uniqueName$d("accumulatedDepreciationCategory");function strippedDeletedName(e){return e?.split("(deleted)")[0]?.trim()??""}const JEScheduleResolveListRow$1=({allAccountGroupedOptions:e,allAccountList:t,allDepAccountGroupedOptions:n,allDepAccountList:o,dataListColumnKey:i,draft:r,localData:a,postStatus:s,uncategorizedAccounts:l,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:d,onFormDataChange:p,onPostJESchedule:u,onReviewClickHandler:m})=>{const h=r?.scheduledJournalEntry.error??[],g=h.includes("vendor_deleted"),x=h.includes("debit_category_deleted"),f=h.includes("credit_category_deleted"),y=h.every(e=>"vendor_deleted"===e?null!=a.updatedVendor?.id&&""!==a.updatedVendor.id&&null!=a.updatedVendor?.name&&""!==a.updatedVendor.name:"debit_category_deleted"===e?null!=a.updatedCategoryId:"credit_category_deleted"!==e||null!=a.updatedAccumulatedDepreciationCategoryID),S={menu:()=>({width:300}),menuPortal:e=>({...e,zIndex:9999})},C=e=>[l.expense?.qboId,l.income?.qboId].includes(e),b=e=>{const n=t.find(t=>t.qboId===e);return n?.qboId},$=e=>{const t=o.find(t=>t.qboId===e);return t?.qboId};switch(i){case"vendor":{if(g)return jsxRuntimeExports.jsx(ResolveVendorCell,{draft:r,localData:a,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:d,onFormDataChange:p});const e=r.vendor.name,t=null!=e&&""!==e;return jsxRuntimeExports.jsxs(VendorCell$4,{children:[null!=r.vendor.logo?.href?jsxRuntimeExports.jsx(EntityLogoAvatar,{photoUrl:r.vendor.logo.href,styles:{width:sp[3],height:sp[3]}}):jsxRuntimeExports.jsx(EntityAvatar,{name:e}),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText$3,{children:t?e:hyphen$d})})]})}case"category":{if(x)return jsxRuntimeExports.jsx(ResolveCategoryCell,{allAccountGroupedOptions:e,allAccountList:t,customStyle:S,draft:r,getCOAIdForCategory:b,isAccountOptionDisabled:C,localData:a,onFormDataChange:p});const n=r.jeDebit.account?.accountName,o=null!=n&&""!==n;return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:o?n:"",children:jsxRuntimeExports.jsx(TruncatedText$3,{children:o?n:hyphen$d})})})}case"class":{const e=r.jeDebit.accountingClass?.className,t=null!=e&&""!==e;return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText$3,{children:t?e:hyphen$d})})})}case"depCategory":{if("prepaid_expenses"===r.jeScheduleType)return jsxRuntimeExports.jsxs(CellWithIcon$2,{children:[jsxRuntimeExports.jsx(IconSlot$2,{}),jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$d})]});if(f&&"fixed_assets"===r.jeScheduleType)return jsxRuntimeExports.jsx(ResolveDepCategoryCell,{allDepAccountGroupedOptions:n,allDepAccountList:o,draft:r,getDepCOAIdForCategory:$,isAccountOptionDisabled:C,localData:a,onFormDataChange:p});const e=r.jeCredit.account?.accountName,t=null!=e&&""!==e;return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText$3,{children:t?e:hyphen$d})})})}case"scheduleCategory":{const e=r.baseTransaction.account.accountName,t=null!=e&&""!==e;return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText$3,{children:t?e:hyphen$d})})}case"startMonth":{const e=r.startDate?.format(dateFormat$l.visual.MMMCommaYYYYFormat);return null!=e?jsxRuntimeExports.jsx(TruncatedText$3,{children:e}):jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$d})}case"type":{const e=scheduleTypes$2[r.jeScheduleType??"prepaid_expenses"];return jsxRuntimeExports.jsx(StyledCapsule,{label:e})}case"amortizationPeriod":{const e=null!=r.period?`${r.period} ${1===r.period?month$1.slice(0,-1):month$1}`:hyphen$d;return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(TruncatedText$3,{children:e})})}case"jePostingDate":{const e=getJEPostingDateText(r,hyphen$d);return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(TruncatedText$3,{children:e})})}case"remainingMonths":{const e=getRemainingMonthsText(r,hyphen$d);return jsxRuntimeExports.jsx(TruncatedText$3,{style:{textAlign:"center"},children:e})}case"runningBalance":{const e=r.scheduledJournalEntry;if(null!=e?.runningBalance){const t=amountToString("0,0.[00]",clientEpicState.toAmount(e.runningBalance.amount,currency$6.currencyCode,currency$6.currencySymbol));return null!=t?jsxRuntimeExports.jsx(TruncatedText$3,{children:t}):jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$d})}return jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$d})}case"transactionDate":{const e=r.createTime?.format(dateFormat$l.visual.MMMDCommaYYYYformat);return null!=e?jsxRuntimeExports.jsx(TruncatedText$3,{children:e}):jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$d})}case"totalAmount":{const e=amountToString("0,0.[00]",clientEpicState.toAmount(r.baseTransaction.amount.amount,currency$6.currencyCode,currency$6.currencySymbol));return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:e??"",children:null!=e?jsxRuntimeExports.jsx(TruncatedText$3,{children:e}):jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$d})})}case"action":return jsxRuntimeExports.jsxs(ActionContainer$3,{className:"item-value-container",children:[jsxRuntimeExports.jsx(Button$4,{variant:"ghost",label:retry,size:"small",prefixIcon:jsxRuntimeExports.jsx(StyledRefreshIcon$1,{}),loading:"In-Progress"===s?.fetchState,disabled:!y,onClick:()=>{u(r.scheduledJournalEntry.scheduledJournalEntryID,r.jeScheduleTransactionKey)},style:{width:BUTTON_MIN_WIDTH$2}}),jsxRuntimeExports.jsx(Button$4,{label:review$1,variant:"secondary",size:"small",onClick:()=>{null!=r.jeScheduleId&&null!=r.jeScheduleType&&m(r.jeScheduleId,r.jeScheduleTransactionKey,r.jeScheduleType)},style:{minWidth:BUTTON_MIN_WIDTH$2}})]});case"createdBy":{const e=r.updatedByUser??r.createdByUser;return jsxRuntimeExports.jsx(JEScheduleCreatedBy,{cotData:buildJEScheduleSummaryCOTData(r),displayName:e?.firstName??e?.email,isAiAccountant:null==r.updatedByUser&&clientEpicState.isAiAccountantSchedule(r),photoUrl:e?.photo?.toString()})}case"lifecycle":return jsxRuntimeExports.jsx(JEScheduleLifecycle,{endDate:r.endDate,posted:r.postedCount,scheduleType:r.jeScheduleType??"prepaid_expenses",total:r.lifecycleTotal});default:return null}},JEScheduleResolveListRow=React.memo(JEScheduleResolveListRow$1);function ResolveVendorCell({draft:e,localData:t,vendorSearchAutoCompleteActions:n,vendorSearchAutoCompleteData:o,onFormDataChange:i}){const{updatedVendor:r}=t,a=r?.id,s=null!=a&&""!==a,l=r?.name??"",c=strippedDeletedName(e.vendor.name),d=React.useMemo(()=>{if(!s)return[];const e=o.entityAutoCompleteView.vendor.find(e=>e.id===a)??r;return[{value:e?.id??"",label:e?.name??""}]},[s,a,r,o]),p=React.useMemo(()=>({[jeScheduleId]:{vendor:{selectedOption:s?a:void 0,defaultOptions:d}}}),[s,a,d]),u=useForm({defaultValues:p,values:p}),[m,h]=React.useState(!1),g=React.useRef();React.useEffect(()=>{const t=u.watch((t,{name:n})=>{if(null!=n&&String(n).includes("vendor")){const n=t?.[jeScheduleId]?.vendor;i(e.scheduledJournalEntry.scheduledJournalEntryID,{jeScheduleID:e.jeScheduleId??"",scheduledJournalEntryID:e.scheduledJournalEntry.scheduledJournalEntryID,vendor:n})}});return()=>t.unsubscribe()},[u,e,i]),React.useEffect(()=>{if("Completed"===o.entityAutoCompleteView.fetchState){const e=o.entityAutoCompleteView.vendor;g.current?.(e.map(e=>({label:e.name??"",value:e.id})))}},[o.entityAutoCompleteView.fetchState]);const x=(e,t)=>{n.onAutoCompleteInputChange?.(e,"vendor"),g.current=t},f=()=>{h(!1)};if(!s&&!m)return jsxRuntimeExports.jsxs(VendorCell$4,{children:[jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"top-start",title:jsxRuntimeExports.jsx(TooltipText,{children:jeScheduleStrings$7.tooltipText.missingVendor.replace("_deleted_vendor_",c)}),children:jsxRuntimeExports.jsx(StyledAlertRoundIcon,{})}),jsxRuntimeExports.jsxs(AddFieldButton,{onClick:e=>{e.stopPropagation(),h(!0)},"data-testid":generateDataTestId("je-schedule-resolve-add-vendor-button",e.jeScheduleId),children:[addVendor,jsxRuntimeExports.jsx(StyledChevronIcon,{})]})]});if(m)return jsxRuntimeExports.jsx(FormProvider,{...u,children:jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:f,children:jsxRuntimeExports.jsx(DropdownWrap,{className:"item-value-container",onClick:e=>e.stopPropagation(),children:jsxRuntimeExports.jsx(AutoCompleteSingleSelectField,{autoFocus:!0,name:vendorFieldName,placeholder:addVendor,valueToId:e=>e,defaultValue:{selectedOption:s?a:void 0,defaultOptions:d},menuIsOpen:!0,menuPortal:document.body,style:{width:"100%"},customStyleConfig:{menuPortal:e=>({...e,zIndex:9999})},loadOptions:x,onMenuClose:f})})})});const y=null!=l&&""!==l;return jsxRuntimeExports.jsxs(VendorCell$4,{children:[jsxRuntimeExports.jsx(EntityAvatar,{name:l||""}),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:y?l:"",children:jsxRuntimeExports.jsx(SelectedValueLabel,{onClick:e=>{e.stopPropagation(),h(!0)},"data-testid":generateDataTestId("je-schedule-resolve-vendor-label",e.jeScheduleId),children:y?l:hyphen$d})})]})}function ResolveCategoryCell({allAccountGroupedOptions:e,allAccountList:t,customStyle:n,draft:o,getCOAIdForCategory:i,isAccountOptionDisabled:r,localData:a,onFormDataChange:s}){const l=React.useMemo(()=>{if(null==a.updatedCategoryId)return;const e=t.find(e=>e.accountId===a.updatedCategoryId);return e?.qboId},[a.updatedCategoryId,t]),c=null!=l,d=strippedDeletedName(o.jeDebit.account?.accountName),p=React.useMemo(()=>{if(null!=l){for(const t of e){const e=t.options.find(e=>e.value===l);if(null!=e)return e.label}return l}},[l,e]),u=React.useMemo(()=>({[jeScheduleId]:{scheduleExpenseCategory:{selectedOption:l,allOptions:e}}}),[l,e]),m=useForm({defaultValues:u,values:u}),[h,g]=React.useState(!1);React.useEffect(()=>{const e=m.watch((e,{name:t})=>{if(null!=t&&String(t).includes("scheduleExpenseCategory")){const t=e?.[jeScheduleId]?.scheduleExpenseCategory;s(o.scheduledJournalEntry.scheduledJournalEntryID,{jeScheduleID:o.jeScheduleId??"",scheduledJournalEntryID:o.scheduledJournalEntry.scheduledJournalEntryID,scheduleExpenseCategory:t})}});return()=>e.unsubscribe()},[m,o,s]);const x=()=>{g(!1)};if(!c&&!h)return jsxRuntimeExports.jsxs(CellWithIcon$2,{children:[jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"top-start",title:jsxRuntimeExports.jsx(TooltipText,{children:jeScheduleStrings$7.tooltipText.missingCategory.replace("_deleted_category_",d)}),children:jsxRuntimeExports.jsx(StyledAlertRoundIcon,{})}),jsxRuntimeExports.jsxs(AddFieldButton,{onClick:e=>{e.stopPropagation(),g(!0)},"data-testid":generateDataTestId("je-schedule-resolve-add-category-button",o.jeScheduleId),children:[addCategory2$1,jsxRuntimeExports.jsx(StyledChevronIcon,{})]})]});if(h)return jsxRuntimeExports.jsx(FormProvider,{...m,children:jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:x,children:jsxRuntimeExports.jsx(DropdownWrap,{className:"item-value-container",onClick:e=>e.stopPropagation(),children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{autoFocus:!0,name:categoryDropdownFieldName,placeholder:addCategory2$1,type:"category",pageSource:"list_page",transactionStatus:null,showCOT:!1,menuIsOpen:!0,menuPortal:document.body,valueToId:e=>i(e),defaultValue:{selectedOption:l,allOptions:e},registerOptions:{required:!0,validate:e=>!0===Boolean(e.selectedOption)},disableCurrentOption:r,customStyleConfig:n,onMenuClose:x})})})})});const f=null!=p&&""!==p;return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:f?p:"",children:jsxRuntimeExports.jsx(SelectedValueLabel,{onClick:e=>{e.stopPropagation(),g(!0)},"data-testid":generateDataTestId("je-schedule-resolve-category-label",o.jeScheduleId),children:f?p:hyphen$d})})})}function ResolveDepCategoryCell({allDepAccountGroupedOptions:e,allDepAccountList:t,draft:n,getDepCOAIdForCategory:o,isAccountOptionDisabled:i,localData:r,onFormDataChange:a}){const s={menu:()=>({width:350}),menuPortal:e=>({...e,zIndex:9999})},l=React.useMemo(()=>{if(null==r.updatedAccumulatedDepreciationCategoryID)return;const e=t.find(e=>e.accountId===r.updatedAccumulatedDepreciationCategoryID);return e?.qboId},[r.updatedAccumulatedDepreciationCategoryID,t]),c=null!=l,d=strippedDeletedName(n.jeCredit.account?.accountName),p=React.useMemo(()=>{if(null!=l){for(const t of e){const e=t.options.find(e=>e.value===l);if(null!=e)return e.label}return l}},[l,e]),u=React.useMemo(()=>({[jeScheduleId]:{accumulatedDepreciationCategory:{selectedOption:l,allOptions:e}}}),[l,e]),m=useForm({defaultValues:u,values:u}),[h,g]=React.useState(!1);React.useEffect(()=>{const e=m.watch((e,{name:t})=>{if(null!=t&&String(t).includes("accumulatedDepreciationCategory")){const t=e?.[jeScheduleId]?.accumulatedDepreciationCategory;a(n.scheduledJournalEntry.scheduledJournalEntryID,{jeScheduleID:n.jeScheduleId??"",scheduledJournalEntryID:n.scheduledJournalEntry.scheduledJournalEntryID,accumulatedDepreciationCategory:t})}});return()=>e.unsubscribe()},[m,n,a]);const x=()=>{g(!1)};if(!c&&!h)return jsxRuntimeExports.jsxs(CellWithIcon$2,{children:[jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"top-start",title:jsxRuntimeExports.jsx(TooltipText,{children:jeScheduleStrings$7.tooltipText.missingDepCategory.replace("_deleted_dep_category_",d)}),children:jsxRuntimeExports.jsx(StyledAlertRoundIcon,{})}),jsxRuntimeExports.jsxs(AddFieldButton,{onClick:e=>{e.stopPropagation(),g(!0)},"data-testid":generateDataTestId("je-schedule-resolve-add-dep-category-button",n.jeScheduleId),children:[jeScheduleStrings$7.addDepCategory,jsxRuntimeExports.jsx(StyledChevronIcon,{})]})]});if(h)return jsxRuntimeExports.jsx(FormProvider,{...m,children:jsxRuntimeExports.jsxs(CellWithIcon$2,{children:[jsxRuntimeExports.jsx(IconSlot$2,{}),jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:x,children:jsxRuntimeExports.jsx(DropdownWrap,{className:"item-value-container",onClick:e=>e.stopPropagation(),children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{autoFocus:!0,name:accumulatedDepreciationCategoryDropdownFieldName,placeholder:jeScheduleStrings$7.addDepCategory,type:"category",pageSource:"list_page",transactionStatus:null,showCOT:!1,menuIsOpen:!0,menuPortal:document.body,valueToId:e=>o(e),defaultValue:{selectedOption:l,allOptions:e},registerOptions:{required:!0,validate:e=>!0===Boolean(e.selectedOption)},disableCurrentOption:i,customStyleConfig:s,onMenuClose:x})})})]})});const f=null!=p&&""!==p;return jsxRuntimeExports.jsxs(CellWithIcon$2,{children:[jsxRuntimeExports.jsx(IconSlot$2,{}),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:f?p:"",children:jsxRuntimeExports.jsx(SelectedValueLabel,{onClick:e=>{e.stopPropagation(),g(!0)},"data-testid":generateDataTestId("je-schedule-resolve-dep-category-label",n.jeScheduleId),children:f?p:hyphen$d})})]})}const VendorCell$4=styled$2.div`
|
|
79653
|
+
`,{expenseAutomation:{jeSchedules:jeScheduleStrings$8}}=appLocale.getLocalizedStrings(),{all:allLabel$1,...scheduleTypeLabels}=jeScheduleStrings$8.typeFilter,typeLabels$1=scheduleTypeLabels;function JETypeFilterBar({counts:e,selectedFilter:t,onFilterChange:n}){const o=t??"all",i=React.useMemo(()=>[{id:"all",label:allLabel$1},...Object.entries(typeLabels$1).filter(([e])=>"deferred_revenue"!==e).map(([t,n])=>({id:t,label:n,inlineCount:e[t]??0}))],[e]);return jsxRuntimeExports.jsx(ExpenseAutomationSubTabSwitcher,{activeSubTab:o,allTabs:i,onSubTabChange:e=>n("all"===e?null:e)})}const{expenseAutomation:{jeSchedules:{scheduleCot:{credit:credit$1,debit:debit$1,methodByType:methodByType,monthLifeSuffix:monthLifeSuffix,recommendedMethod:recommendedMethod}}},common:{strings:{middleDot:middleDot$1,space:space}}}=appLocale.getLocalizedStrings();function buildJEScheduleSummaryCOTData(e){if(clientEpicState.isOneTimeAccrualRow(e))return null;const t=e.aiSummaries?.scheduleSummary,n=Array.isArray(t?.cot)?t.cot:[];return 0===n.length?null:{isCOTEnabled:!0,isThoughtProcessOnly:!1,recommendations:[{id:getJEScheduleRowKey(e),title:recommendedMethod,name:buildRecommendedMethodName(e),reason:t?.reasoning??buildDebitCreditSummary(e),confidencePercentage:toConfidencePercentage(e),cot:n,isSelected:!1,isDisabled:!0}]}}function buildRecommendedMethodName(e){const t=clientEpicState.getJEScheduleRowType(e),n=null!=t?methodByType[t]:void 0,o=e.period;return null==n?null!=o?`${o}${monthLifeSuffix}`:"":null==o?n:`${n}${space}${middleDot$1}${space}${o}${monthLifeSuffix}`}function buildDebitCreditSummary(e){const t=e.jeDebit.account?.accountName,n=e.jeCredit.account?.accountName;return null==t||null==n?"":`${debit$1}${space}${t}${space}${middleDot$1}${space}${credit$1}${space}${n}`}function toConfidencePercentage(e){const t=e.aiSummaries?.scheduleSummary?.confidence??e.confidenceScore;if("number"==typeof t)return t<=1?Math.round(100*t):Math.round(t)}function getOrdinalSuffix(e){if(e>=11&&e<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function getJEPostingDateText(e,t){if(clientEpicState.isOneTimeAccrualRow(e))return t;if(!0===e.lastDayOfMonth)return"Last day of every month";if(null!=e.dayOfPostingDate){const t=e.dayOfPostingDate;return`${t}${getOrdinalSuffix(t)} of every month`}return t}const COUNTED_ENTRY_STATUS_CODES=new Set(["posted","unknown","canceled"]);function countPostedEntries(e){return null==e?0:Array.isArray(e)?e.filter(e=>COUNTED_ENTRY_STATUS_CODES.has(e.status.code)).length:COUNTED_ENTRY_STATUS_CODES.has(e.status.code)?1:0}function getRemainingMonthsText(e,t){if(clientEpicState.isOneTimeAccrualRow(e))return t;const n=e.period;if(null==n||n<=0)return t;const o=e.scheduledJournalEntry;if(Array.isArray(o))return`${countPostedEntries(o)}/${n}`;if(null!=o){const t=o;if(null!=t.expectedPostDate&&null!=e.startDate){return`${t.expectedPostDate.diff(e.startDate,"month")+1}/${n}`}}return t}function getJEScheduleRowKey(e){return clientEpicState.isOneTimeAccrualRow(e)?e.jeOneTimeAccrualKey:clientEpicState.isAccruedScheduleRow(e)?e.jeAccruedScheduleKey:e.jeScheduleTransactionKey}function getJEScheduleRowPanelId(e){return clientEpicState.isOneTimeAccrualRow(e)?e.accrualId:e.jeScheduleId}const INTERACTIVE_CELL_CLASS_NAMES=["item-value-container","hover-background","auto-complete-single-select-field__input","auto-complete-single-select-field__option","grouped-single-select-field__input","grouped-single-select-field__menu"];function isInteractiveCellClick(e){let t=e instanceof HTMLElement?e:null;for(;null!=t;){const e=t;if(INTERACTIVE_CELL_CLASS_NAMES.some(t=>e.classList.contains(t)))return!0;t=t.parentElement}return!1}const{expenseAutomation:{jeSchedules:jeScheduleStrings$7},common:{scheduleTypes:scheduleTypes$2,currency:currency$6,retry:retry,review:review$1,strings:{hyphen:hyphen$b},texts:{addCategory2:addCategory2$1,addVendor:addVendor,months:month$1}},dateFormat:dateFormat$l}=appLocale.getLocalizedStrings(),BUTTON_MIN_WIDTH$2=75,jeScheduleId="jeSchedulePage",uniqueName$d=e=>`${jeScheduleId}.${e}`,vendorFieldName=uniqueName$d("vendor"),categoryDropdownFieldName=uniqueName$d("scheduleExpenseCategory"),accumulatedDepreciationCategoryDropdownFieldName=uniqueName$d("accumulatedDepreciationCategory");function strippedDeletedName(e){return e?.split("(deleted)")[0]?.trim()??""}const JEScheduleResolveListRow$1=({allAccountGroupedOptions:e,allAccountList:t,allDepAccountGroupedOptions:n,allDepAccountList:o,dataListColumnKey:i,draft:r,localData:a,postStatus:s,uncategorizedAccounts:l,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:d,onFormDataChange:p,onPostJESchedule:u,onReviewClickHandler:m})=>{const h=r?.scheduledJournalEntry.error??[],g=h.includes("vendor_deleted"),x=h.includes("debit_category_deleted"),f=h.includes("credit_category_deleted"),y=h.every(e=>"vendor_deleted"===e?null!=a.updatedVendor?.id&&""!==a.updatedVendor.id&&null!=a.updatedVendor?.name&&""!==a.updatedVendor.name:"debit_category_deleted"===e?null!=a.updatedCategoryId:"credit_category_deleted"!==e||null!=a.updatedAccumulatedDepreciationCategoryID),S={menu:()=>({width:300}),menuPortal:e=>({...e,zIndex:9999})},C=e=>[l.expense?.qboId,l.income?.qboId].includes(e),b=e=>{const n=t.find(t=>t.qboId===e);return n?.qboId},$=e=>{const t=o.find(t=>t.qboId===e);return t?.qboId};switch(i){case"vendor":{if(g)return jsxRuntimeExports.jsx(ResolveVendorCell,{draft:r,localData:a,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:d,onFormDataChange:p});const e=r.vendor.name,t=null!=e&&""!==e;return jsxRuntimeExports.jsxs(VendorCell$4,{children:[null!=r.vendor.logo?.href?jsxRuntimeExports.jsx(EntityLogoAvatar,{photoUrl:r.vendor.logo.href,styles:{width:sp[3],height:sp[3]}}):jsxRuntimeExports.jsx(EntityAvatar,{name:e}),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText$3,{children:t?e:hyphen$b})})]})}case"category":{if(x)return jsxRuntimeExports.jsx(ResolveCategoryCell,{allAccountGroupedOptions:e,allAccountList:t,customStyle:S,draft:r,getCOAIdForCategory:b,isAccountOptionDisabled:C,localData:a,onFormDataChange:p});const n=r.jeDebit.account?.accountName,o=null!=n&&""!==n;return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:o?n:"",children:jsxRuntimeExports.jsx(TruncatedText$3,{children:o?n:hyphen$b})})})}case"class":{const e=r.jeDebit.accountingClass?.className,t=null!=e&&""!==e;return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText$3,{children:t?e:hyphen$b})})})}case"depCategory":{if("prepaid_expenses"===r.jeScheduleType)return jsxRuntimeExports.jsxs(CellWithIcon$2,{children:[jsxRuntimeExports.jsx(IconSlot$2,{}),jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$b})]});if(f&&"fixed_assets"===r.jeScheduleType)return jsxRuntimeExports.jsx(ResolveDepCategoryCell,{allDepAccountGroupedOptions:n,allDepAccountList:o,draft:r,getDepCOAIdForCategory:$,isAccountOptionDisabled:C,localData:a,onFormDataChange:p});const e=r.jeCredit.account?.accountName,t=null!=e&&""!==e;return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText$3,{children:t?e:hyphen$b})})})}case"scheduleCategory":{const e=r.baseTransaction.account.accountName,t=null!=e&&""!==e;return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText$3,{children:t?e:hyphen$b})})}case"startMonth":{const e=r.startDate?.format(dateFormat$l.visual.MMMCommaYYYYFormat);return null!=e?jsxRuntimeExports.jsx(TruncatedText$3,{children:e}):jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$b})}case"type":{const e=scheduleTypes$2[r.jeScheduleType??"prepaid_expenses"];return jsxRuntimeExports.jsx(StyledCapsule,{label:e})}case"amortizationPeriod":{const e=null!=r.period?`${r.period} ${1===r.period?month$1.slice(0,-1):month$1}`:hyphen$b;return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(TruncatedText$3,{children:e})})}case"jePostingDate":{const e=getJEPostingDateText(r,hyphen$b);return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(TruncatedText$3,{children:e})})}case"remainingMonths":{const e=getRemainingMonthsText(r,hyphen$b);return jsxRuntimeExports.jsx(TruncatedText$3,{style:{textAlign:"center"},children:e})}case"runningBalance":{const e=r.scheduledJournalEntry;if(null!=e?.runningBalance){const t=amountToString("0,0.[00]",clientEpicState.toAmount(e.runningBalance.amount,currency$6.currencyCode,currency$6.currencySymbol));return null!=t?jsxRuntimeExports.jsx(TruncatedText$3,{children:t}):jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$b})}return jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$b})}case"transactionDate":{const e=r.createTime?.format(dateFormat$l.visual.MMMDCommaYYYYformat);return null!=e?jsxRuntimeExports.jsx(TruncatedText$3,{children:e}):jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$b})}case"totalAmount":{const e=amountToString("0,0.[00]",clientEpicState.toAmount(r.baseTransaction.amount.amount,currency$6.currencyCode,currency$6.currencySymbol));return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:e??"",children:null!=e?jsxRuntimeExports.jsx(TruncatedText$3,{children:e}):jsxRuntimeExports.jsx(TruncatedText$3,{children:hyphen$b})})}case"action":return jsxRuntimeExports.jsxs(ActionContainer$3,{className:"item-value-container",children:[jsxRuntimeExports.jsx(Button$4,{variant:"ghost",label:retry,size:"small",prefixIcon:jsxRuntimeExports.jsx(StyledRefreshIcon,{}),loading:"In-Progress"===s?.fetchState,disabled:!y,onClick:()=>{u(r.scheduledJournalEntry.scheduledJournalEntryID,r.jeScheduleTransactionKey)},style:{width:BUTTON_MIN_WIDTH$2}}),jsxRuntimeExports.jsx(Button$4,{label:review$1,variant:"secondary",size:"small",onClick:()=>{null!=r.jeScheduleId&&null!=r.jeScheduleType&&m(r.jeScheduleId,r.jeScheduleTransactionKey,r.jeScheduleType)},style:{minWidth:BUTTON_MIN_WIDTH$2}})]});case"createdBy":{const e=r.updatedByUser??r.createdByUser;return jsxRuntimeExports.jsx(JEScheduleCreatedBy,{cotData:buildJEScheduleSummaryCOTData(r),displayName:e?.firstName??e?.email,isAiAccountant:null==r.updatedByUser&&clientEpicState.isAiAccountantSchedule(r),photoUrl:e?.photo?.toString()})}case"lifecycle":return jsxRuntimeExports.jsx(JEScheduleLifecycle,{endDate:r.endDate,posted:r.postedCount,scheduleType:r.jeScheduleType??"prepaid_expenses",total:r.lifecycleTotal});default:return null}},JEScheduleResolveListRow=React.memo(JEScheduleResolveListRow$1);function ResolveVendorCell({draft:e,localData:t,vendorSearchAutoCompleteActions:n,vendorSearchAutoCompleteData:o,onFormDataChange:i}){const{updatedVendor:r}=t,a=r?.id,s=null!=a&&""!==a,l=r?.name??"",c=strippedDeletedName(e.vendor.name),d=React.useMemo(()=>{if(!s)return[];const e=o.entityAutoCompleteView.vendor.find(e=>e.id===a)??r;return[{value:e?.id??"",label:e?.name??""}]},[s,a,r,o]),p=React.useMemo(()=>({[jeScheduleId]:{vendor:{selectedOption:s?a:void 0,defaultOptions:d}}}),[s,a,d]),u=useForm({defaultValues:p,values:p}),[m,h]=React.useState(!1),g=React.useRef();React.useEffect(()=>{const t=u.watch((t,{name:n})=>{if(null!=n&&String(n).includes("vendor")){const n=t?.[jeScheduleId]?.vendor;i(e.scheduledJournalEntry.scheduledJournalEntryID,{jeScheduleID:e.jeScheduleId??"",scheduledJournalEntryID:e.scheduledJournalEntry.scheduledJournalEntryID,vendor:n})}});return()=>t.unsubscribe()},[u,e,i]),React.useEffect(()=>{if("Completed"===o.entityAutoCompleteView.fetchState){const e=o.entityAutoCompleteView.vendor;g.current?.(e.map(e=>({label:e.name??"",value:e.id})))}},[o.entityAutoCompleteView.fetchState]);const x=(e,t)=>{n.onAutoCompleteInputChange?.(e,"vendor"),g.current=t},f=()=>{h(!1)};if(!s&&!m)return jsxRuntimeExports.jsxs(VendorCell$4,{children:[jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"top-start",title:jsxRuntimeExports.jsx(TooltipText,{children:jeScheduleStrings$7.tooltipText.missingVendor.replace("_deleted_vendor_",c)}),children:jsxRuntimeExports.jsx(StyledAlertRoundIcon,{})}),jsxRuntimeExports.jsxs(AddFieldButton,{onClick:e=>{e.stopPropagation(),h(!0)},"data-testid":generateDataTestId("je-schedule-resolve-add-vendor-button",e.jeScheduleId),children:[addVendor,jsxRuntimeExports.jsx(StyledChevronIcon,{})]})]});if(m)return jsxRuntimeExports.jsx(FormProvider,{...u,children:jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:f,children:jsxRuntimeExports.jsx(DropdownWrap,{className:"item-value-container",onClick:e=>e.stopPropagation(),children:jsxRuntimeExports.jsx(AutoCompleteSingleSelectField,{autoFocus:!0,name:vendorFieldName,placeholder:addVendor,valueToId:e=>e,defaultValue:{selectedOption:s?a:void 0,defaultOptions:d},menuIsOpen:!0,menuPortal:document.body,style:{width:"100%"},customStyleConfig:{menuPortal:e=>({...e,zIndex:9999})},loadOptions:x,onMenuClose:f})})})});const y=null!=l&&""!==l;return jsxRuntimeExports.jsxs(VendorCell$4,{children:[jsxRuntimeExports.jsx(EntityAvatar,{name:l||""}),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:y?l:"",children:jsxRuntimeExports.jsx(SelectedValueLabel,{onClick:e=>{e.stopPropagation(),h(!0)},"data-testid":generateDataTestId("je-schedule-resolve-vendor-label",e.jeScheduleId),children:y?l:hyphen$b})})]})}function ResolveCategoryCell({allAccountGroupedOptions:e,allAccountList:t,customStyle:n,draft:o,getCOAIdForCategory:i,isAccountOptionDisabled:r,localData:a,onFormDataChange:s}){const l=React.useMemo(()=>{if(null==a.updatedCategoryId)return;const e=t.find(e=>e.accountId===a.updatedCategoryId);return e?.qboId},[a.updatedCategoryId,t]),c=null!=l,d=strippedDeletedName(o.jeDebit.account?.accountName),p=React.useMemo(()=>{if(null!=l){for(const t of e){const e=t.options.find(e=>e.value===l);if(null!=e)return e.label}return l}},[l,e]),u=React.useMemo(()=>({[jeScheduleId]:{scheduleExpenseCategory:{selectedOption:l,allOptions:e}}}),[l,e]),m=useForm({defaultValues:u,values:u}),[h,g]=React.useState(!1);React.useEffect(()=>{const e=m.watch((e,{name:t})=>{if(null!=t&&String(t).includes("scheduleExpenseCategory")){const t=e?.[jeScheduleId]?.scheduleExpenseCategory;s(o.scheduledJournalEntry.scheduledJournalEntryID,{jeScheduleID:o.jeScheduleId??"",scheduledJournalEntryID:o.scheduledJournalEntry.scheduledJournalEntryID,scheduleExpenseCategory:t})}});return()=>e.unsubscribe()},[m,o,s]);const x=()=>{g(!1)};if(!c&&!h)return jsxRuntimeExports.jsxs(CellWithIcon$2,{children:[jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"top-start",title:jsxRuntimeExports.jsx(TooltipText,{children:jeScheduleStrings$7.tooltipText.missingCategory.replace("_deleted_category_",d)}),children:jsxRuntimeExports.jsx(StyledAlertRoundIcon,{})}),jsxRuntimeExports.jsxs(AddFieldButton,{onClick:e=>{e.stopPropagation(),g(!0)},"data-testid":generateDataTestId("je-schedule-resolve-add-category-button",o.jeScheduleId),children:[addCategory2$1,jsxRuntimeExports.jsx(StyledChevronIcon,{})]})]});if(h)return jsxRuntimeExports.jsx(FormProvider,{...m,children:jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:x,children:jsxRuntimeExports.jsx(DropdownWrap,{className:"item-value-container",onClick:e=>e.stopPropagation(),children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{autoFocus:!0,name:categoryDropdownFieldName,placeholder:addCategory2$1,type:"category",pageSource:"list_page",transactionStatus:null,showCOT:!1,menuIsOpen:!0,menuPortal:document.body,valueToId:e=>i(e),defaultValue:{selectedOption:l,allOptions:e},registerOptions:{required:!0,validate:e=>!0===Boolean(e.selectedOption)},disableCurrentOption:r,customStyleConfig:n,onMenuClose:x})})})})});const f=null!=p&&""!==p;return jsxRuntimeExports.jsx(CellWithIcon$2,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:f?p:"",children:jsxRuntimeExports.jsx(SelectedValueLabel,{onClick:e=>{e.stopPropagation(),g(!0)},"data-testid":generateDataTestId("je-schedule-resolve-category-label",o.jeScheduleId),children:f?p:hyphen$b})})})}function ResolveDepCategoryCell({allDepAccountGroupedOptions:e,allDepAccountList:t,draft:n,getDepCOAIdForCategory:o,isAccountOptionDisabled:i,localData:r,onFormDataChange:a}){const s={menu:()=>({width:350}),menuPortal:e=>({...e,zIndex:9999})},l=React.useMemo(()=>{if(null==r.updatedAccumulatedDepreciationCategoryID)return;const e=t.find(e=>e.accountId===r.updatedAccumulatedDepreciationCategoryID);return e?.qboId},[r.updatedAccumulatedDepreciationCategoryID,t]),c=null!=l,d=strippedDeletedName(n.jeCredit.account?.accountName),p=React.useMemo(()=>{if(null!=l){for(const t of e){const e=t.options.find(e=>e.value===l);if(null!=e)return e.label}return l}},[l,e]),u=React.useMemo(()=>({[jeScheduleId]:{accumulatedDepreciationCategory:{selectedOption:l,allOptions:e}}}),[l,e]),m=useForm({defaultValues:u,values:u}),[h,g]=React.useState(!1);React.useEffect(()=>{const e=m.watch((e,{name:t})=>{if(null!=t&&String(t).includes("accumulatedDepreciationCategory")){const t=e?.[jeScheduleId]?.accumulatedDepreciationCategory;a(n.scheduledJournalEntry.scheduledJournalEntryID,{jeScheduleID:n.jeScheduleId??"",scheduledJournalEntryID:n.scheduledJournalEntry.scheduledJournalEntryID,accumulatedDepreciationCategory:t})}});return()=>e.unsubscribe()},[m,n,a]);const x=()=>{g(!1)};if(!c&&!h)return jsxRuntimeExports.jsxs(CellWithIcon$2,{children:[jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"top-start",title:jsxRuntimeExports.jsx(TooltipText,{children:jeScheduleStrings$7.tooltipText.missingDepCategory.replace("_deleted_dep_category_",d)}),children:jsxRuntimeExports.jsx(StyledAlertRoundIcon,{})}),jsxRuntimeExports.jsxs(AddFieldButton,{onClick:e=>{e.stopPropagation(),g(!0)},"data-testid":generateDataTestId("je-schedule-resolve-add-dep-category-button",n.jeScheduleId),children:[jeScheduleStrings$7.addDepCategory,jsxRuntimeExports.jsx(StyledChevronIcon,{})]})]});if(h)return jsxRuntimeExports.jsx(FormProvider,{...m,children:jsxRuntimeExports.jsxs(CellWithIcon$2,{children:[jsxRuntimeExports.jsx(IconSlot$2,{}),jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:x,children:jsxRuntimeExports.jsx(DropdownWrap,{className:"item-value-container",onClick:e=>e.stopPropagation(),children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{autoFocus:!0,name:accumulatedDepreciationCategoryDropdownFieldName,placeholder:jeScheduleStrings$7.addDepCategory,type:"category",pageSource:"list_page",transactionStatus:null,showCOT:!1,menuIsOpen:!0,menuPortal:document.body,valueToId:e=>o(e),defaultValue:{selectedOption:l,allOptions:e},registerOptions:{required:!0,validate:e=>!0===Boolean(e.selectedOption)},disableCurrentOption:i,customStyleConfig:s,onMenuClose:x})})})]})});const f=null!=p&&""!==p;return jsxRuntimeExports.jsxs(CellWithIcon$2,{children:[jsxRuntimeExports.jsx(IconSlot$2,{}),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:f?p:"",children:jsxRuntimeExports.jsx(SelectedValueLabel,{onClick:e=>{e.stopPropagation(),g(!0)},"data-testid":generateDataTestId("je-schedule-resolve-dep-category-label",n.jeScheduleId),children:f?p:hyphen$b})})]})}const VendorCell$4=styled$2.div`
|
|
79374
79654
|
display: flex;
|
|
79375
79655
|
align-items: center;
|
|
79376
79656
|
gap: ${Space.sp2};
|
|
@@ -79435,7 +79715,7 @@ to {
|
|
|
79435
79715
|
color: inherit;
|
|
79436
79716
|
padding-left: ${Space.sp2};
|
|
79437
79717
|
}
|
|
79438
|
-
`,StyledRefreshIcon
|
|
79718
|
+
`,StyledRefreshIcon=styled$2(SvgRefresh)`
|
|
79439
79719
|
width: 14px;
|
|
79440
79720
|
height: 14px;
|
|
79441
79721
|
color: inherit;
|
|
@@ -79460,7 +79740,7 @@ to {
|
|
|
79460
79740
|
width: ${COT_ICON_SIZE_PX}px;
|
|
79461
79741
|
height: ${COT_ICON_SIZE_PX}px;
|
|
79462
79742
|
flex-shrink: 0;
|
|
79463
|
-
`;function accrualActions(e){switch(e){case"draft":return{canIgnore:!0,canPromote:!0,canReview:!0,canRevert:!1};case"posted":return{canIgnore:!1,canPromote:!1,canReview:!0,canRevert:!0};case"reversed":return{canIgnore:!1,canPromote:!1,canReview:!0,canRevert:!1,statusState:"reversed"};default:return{canIgnore:!1,canPromote:!1,canReview:!0,canRevert:!1}}}const{expenseAutomation:{jeSchedules:jeScheduleStrings$6},common:{currency:currency$5,strings:{hyphen:hyphen$
|
|
79743
|
+
`;function accrualActions(e){switch(e){case"draft":return{canIgnore:!0,canPromote:!0,canReview:!0,canRevert:!1};case"posted":return{canIgnore:!1,canPromote:!1,canReview:!0,canRevert:!0};case"reversed":return{canIgnore:!1,canPromote:!1,canReview:!0,canRevert:!1,statusState:"reversed"};default:return{canIgnore:!1,canPromote:!1,canReview:!0,canRevert:!1}}}const{expenseAutomation:{jeSchedules:jeScheduleStrings$6},common:{currency:currency$5,strings:{hyphen:hyphen$a},ignore:ignoreText,texts:{review:reviewText$2,revert:revertText$2}},dateFormat:dateFormat$k}=appLocale.getLocalizedStrings(),{accrualDetail:accrualDetailStrings$6}=jeScheduleStrings$6,BUTTON_MIN_WIDTH$1=75,JEOneTimeAccrualCell$1=({dataListColumnKey:e,row:t,isActionInProgress:n=!1,onIgnoreOneTimeAccrual:o,onReviewOneTimeAccrual:i,onRevertOneTimeAccrual:r})=>{switch(e){case"vendor":{const e=""!==t.vendorName?t.vendorName:t.memo,n=""!==e;return jsxRuntimeExports.jsxs(VendorCell$3,{children:[n&&jsxRuntimeExports.jsx(EntityAvatar,{name:e}),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:n?e:"",children:jsxRuntimeExports.jsx(TruncatedText$2,{children:n?e:hyphen$a})})]})}case"type":return jsxRuntimeExports.jsx(StyledCapsule,{label:jeScheduleStrings$6.oneTimeAccrualType});case"category":return jsxRuntimeExports.jsx(AccrualTextCell,{text:t.jeDebitAccountName});case"class":return jsxRuntimeExports.jsx(AccrualTextCell,{text:t.jeDebitAccountingClassName});case"depCategory":return jsxRuntimeExports.jsx(AccrualTextCell,{text:t.jeCreditAccountName});case"transactionDate":{const e=t.postingDate?.format(dateFormat$k.visual.MMMDCommaYYYYformat);return jsxRuntimeExports.jsx(TruncatedText$2,{children:e??hyphen$a})}case"period":{const e=""!==t.serviceMonth?clientEpicState.zeniDate(`${t.serviceMonth}-01`).format(dateFormat$k.visual.MMMCommaYYYYFormat):void 0;return jsxRuntimeExports.jsx(TruncatedText$2,{children:e??hyphen$a})}case"createdBy":return jsxRuntimeExports.jsx(JEScheduleCreatedBy,{displayName:t.createdBy?.firstName??t.createdBy?.email,isAiAccountant:clientEpicState.isAiAccountantSchedule(t),photoUrl:t.createdBy?.photo?.toString()});case"lifecycle":return jsxRuntimeExports.jsx(JEScheduleLifecycle,{endDate:t.expectedReversalDate,isOneTimeAccrual:!0,posted:0,reversesOnBillMatch:"on_bill_match"===t.reversalPolicy,scheduleType:"accrued_expenses",total:0});case"monthlyAmount":case"totalAmount":{const e=amountToString("0,0.[00]",clientEpicState.toAmount(t.estimatedAmount.amount,currency$5.currencyCode,currency$5.currencySymbol));return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:e??"",children:jsxRuntimeExports.jsx(TruncatedText$2,{children:e??hyphen$a})})}case"memo":return""!==t.memo?jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"inline-flex",placement:"bottom",title:t.memo,children:jsxRuntimeExports.jsx(MemoIconWrapper$1,{children:jsxRuntimeExports.jsx(StyledMemoIcon$2,{})})}):jsxRuntimeExports.jsx(MemoIconWrapper$1,{children:jsxRuntimeExports.jsx(StyledMemoIcon$2,{})});case"action":{const e=accrualActions(t.accrualStatus);return null!=e.statusState?jsxRuntimeExports.jsx(ActionContainer$2,{className:"item-value-container",children:jsxRuntimeExports.jsx(StatusNote,{children:accrualDetailStrings$6.statusStates[e.statusState]})}):e.canRevert&&null!=r?jsxRuntimeExports.jsx(ActionContainer$2,{className:"item-value-container",children:jsxRuntimeExports.jsx(Button$4,{dataTestId:generateDataTestId("je-accrual-revert-button",t.accrualId),disabled:n,label:revertText$2,loading:n,reverseSpinnerColor:!1,size:"small",variant:"secondary",onClick:()=>r(t.accrualId)})}):e.canReview&&e.canIgnore?jsxRuntimeExports.jsxs(ActionContainer$2,{className:"item-value-container",children:[jsxRuntimeExports.jsx(Button$4,{dataTestId:generateDataTestId("je-accrual-ignore-button",t.accrualId),disabled:n,label:ignoreText,loading:n,reverseSpinnerColor:!1,size:"small",variant:"ghost",style:{minWidth:BUTTON_MIN_WIDTH$1},onClick:()=>o?.(t.accrualId)}),jsxRuntimeExports.jsx(Button$4,{dataTestId:generateDataTestId("je-accrual-review-button",t.accrualId),disabled:n,label:reviewText$2,reverseSpinnerColor:!1,size:"small",variant:"secondary",style:{minWidth:BUTTON_MIN_WIDTH$1},onClick:()=>i?.(t.accrualId)})]}):null}default:return jsxRuntimeExports.jsx(TruncatedText$2,{children:hyphen$a})}},JEOneTimeAccrualCell=React.memo(JEOneTimeAccrualCell$1),AccrualTextCell=({text:e})=>{const t=null!=e&&""!==e;return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText$2,{children:t?e:hyphen$a})})},ActionContainer$2=styled$2.div`
|
|
79464
79744
|
display: flex;
|
|
79465
79745
|
align-items: center;
|
|
79466
79746
|
justify-content: flex-end;
|
|
@@ -79489,7 +79769,7 @@ to {
|
|
|
79489
79769
|
width: ${Space.sp3};
|
|
79490
79770
|
height: ${Space.sp3};
|
|
79491
79771
|
flex-shrink: 0;
|
|
79492
|
-
`,{common:{scheduleTypes:scheduleTypes$1,currency:currency$4,review:review,ignore:ignore,strings:{hyphen:hyphen$
|
|
79772
|
+
`,{common:{scheduleTypes:scheduleTypes$1,currency:currency$4,review:review,ignore:ignore,strings:{hyphen:hyphen$9},texts:{months:month}},dateFormat:dateFormat$j}=appLocale.getLocalizedStrings(),BUTTON_MIN_WIDTH=75,JEScheduleDraftListRow$1=({dataListColumnKey:e,draft:t,ignoreRecommendedJeSchedule:n,ignoreStatus:o,onReviewClickHandler:i,isActionInProgress:r,onIgnoreOneTimeAccrual:a,onReviewOneTimeAccrual:s,onRevertOneTimeAccrual:l})=>{if(clientEpicState.isOneTimeAccrualRow(t))return jsxRuntimeExports.jsx(JEOneTimeAccrualCell,{dataListColumnKey:e,isActionInProgress:r,onIgnoreOneTimeAccrual:a,onReviewOneTimeAccrual:s,row:t,onRevertOneTimeAccrual:l});switch(e){case"vendor":{const e=t.vendor.name,n=null!=e&&""!==e;return jsxRuntimeExports.jsxs(VendorCell$2,{children:[null!=t.vendor.logo?jsxRuntimeExports.jsx(EntityLogoAvatar,{photoUrl:t.vendor.logo.href,styles:{width:sp[3],height:sp[3]}}):jsxRuntimeExports.jsx(EntityAvatar,{name:e}),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:n?e:"",children:jsxRuntimeExports.jsx(TruncatedText$1,{children:n?e:hyphen$9})})]})}case"category":{const e=t.jeDebit.account?.accountName,n=null!=e&&""!==e;return jsxRuntimeExports.jsx(CellWithIcon$1,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:n?e:"",children:jsxRuntimeExports.jsx(TruncatedText$1,{children:n?e:hyphen$9})})})}case"class":{const e=t.jeDebit.accountingClass?.className,n=null!=e&&""!==e;return jsxRuntimeExports.jsx(CellWithIcon$1,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:n?e:"",children:jsxRuntimeExports.jsx(TruncatedText$1,{children:n?e:hyphen$9})})})}case"depCategory":{if("prepaid_expenses"===t.jeScheduleType)return jsxRuntimeExports.jsxs(CellWithIcon$1,{children:[jsxRuntimeExports.jsx(IconSlot$1,{}),jsxRuntimeExports.jsx(TruncatedText$1,{children:hyphen$9})]});const e=t.jeCredit.account?.accountName,n=null!=e&&""!==e;return jsxRuntimeExports.jsx(CellWithIcon$1,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:n?e:"",children:jsxRuntimeExports.jsx(TruncatedText$1,{children:n?e:hyphen$9})})})}case"scheduleCategory":{const e=clientEpicState.isAccruedScheduleRow(t)?void 0:t.baseTransaction.account.accountName,n=null!=e&&""!==e;return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:n?e:"",children:jsxRuntimeExports.jsx(TruncatedText$1,{children:n?e:hyphen$9})})}case"startMonth":{const e=t.startDate?.format(dateFormat$j.visual.MMMCommaYYYYFormat);return null!=e?jsxRuntimeExports.jsx(TruncatedText$1,{children:e}):jsxRuntimeExports.jsx(TruncatedText$1,{children:hyphen$9})}case"type":{const e=scheduleTypes$1[t.jeScheduleType??"prepaid_expenses"];return jsxRuntimeExports.jsx(StyledCapsule,{label:e})}case"amortizationPeriod":{const e=null!=t.period?`${t.period} ${1===t.period?month.slice(0,-1):month}`:hyphen$9;return jsxRuntimeExports.jsx(CellWithIcon$1,{children:jsxRuntimeExports.jsx(TruncatedText$1,{children:e})})}case"transactionDate":{const e=t.createTime?.format(dateFormat$j.visual.MMMDCommaYYYYformat);return null!=e?jsxRuntimeExports.jsx(TruncatedText$1,{children:e}):jsxRuntimeExports.jsx(TruncatedText$1,{children:hyphen$9})}case"jePostingDate":{const e=getJEPostingDateText(t,hyphen$9);return jsxRuntimeExports.jsx(CellWithIcon$1,{children:jsxRuntimeExports.jsx(TruncatedText$1,{children:e})})}case"remainingMonths":{const e=getRemainingMonthsText(t,hyphen$9);return jsxRuntimeExports.jsx(TruncatedText$1,{style:{textAlign:"center"},children:e})}case"runningBalance":{const e="balanceAsOfToday"in t?t.balanceAsOfToday:void 0;if(null==e)return jsxRuntimeExports.jsx(TruncatedText$1,{children:hyphen$9});const n=amountToString("0,0.[00]",clientEpicState.toAmount(e.amount,currency$4.currencyCode,currency$4.currencySymbol));return null!=n?jsxRuntimeExports.jsx(TruncatedText$1,{children:n}):jsxRuntimeExports.jsx(TruncatedText$1,{children:hyphen$9})}case"totalAmount":{const e=amountToString("0,0.[00]",clientEpicState.toAmount(clientEpicState.isAccruedScheduleRow(t)?t.recurringAmount.amount:t.baseTransaction.amount.amount,currency$4.currencyCode,currency$4.currencySymbol));return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:e??"",children:null!=e?jsxRuntimeExports.jsx(TruncatedText$1,{children:e}):jsxRuntimeExports.jsx(TruncatedText$1,{children:hyphen$9})})}case"createdBy":{const e=t.createdByUser;return jsxRuntimeExports.jsx(JEScheduleCreatedBy,{cotData:buildJEScheduleSummaryCOTData(t),displayName:e?.firstName??e?.email,isAiAccountant:clientEpicState.isAiAccountantSchedule(t),photoUrl:e?.photo?.toString()})}case"lifecycle":return jsxRuntimeExports.jsx(JEScheduleLifecycle,{endDate:t.endDate,posted:t.postedCount,scheduleType:t.jeScheduleType??"prepaid_expenses",total:t.lifecycleTotal});case"action":return jsxRuntimeExports.jsxs(ActionContainer$1,{className:"item-value-container",children:[jsxRuntimeExports.jsx(Button$4,{"data-testid":generateDataTestId("je-schedule-draft-component-ignore-button",t.jeScheduleId),label:ignore,size:"small",variant:"ghost",reverseSpinnerColor:!1,loading:"In-Progress"===o?.fetchState,onClick:()=>{null==t.jeScheduleType||clientEpicState.isAccruedScheduleRow(t)||n(t.jeScheduleTransactionKey,t.jeScheduleType)},style:{minWidth:BUTTON_MIN_WIDTH}}),jsxRuntimeExports.jsx(Button$4,{onClick:()=>{null==t.jeScheduleId||null==t.jeScheduleType||clientEpicState.isAccruedScheduleRow(t)||i(t.jeScheduleId,t.jeScheduleTransactionKey,t.jeScheduleType)},"data-testid":generateDataTestId("je-schedule-draft-component-review-button",t.jeScheduleId),label:review,variant:"secondary",size:"small",style:{minWidth:BUTTON_MIN_WIDTH}})]});default:return null}},JEScheduleDraftListRow=React.memo(JEScheduleDraftListRow$1),VendorCell$2=styled$2.div`
|
|
79493
79773
|
display: flex;
|
|
79494
79774
|
align-items: center;
|
|
79495
79775
|
gap: ${Space.sp2};
|
|
@@ -79517,7 +79797,7 @@ to {
|
|
|
79517
79797
|
align-items: center;
|
|
79518
79798
|
justify-content: center;
|
|
79519
79799
|
gap: ${Space.sp2};
|
|
79520
|
-
`,{common:{scheduleTypes:scheduleTypes,currency:currency$3,strings:{hyphen:hyphen$
|
|
79800
|
+
`,{common:{scheduleTypes:scheduleTypes,currency:currency$3,strings:{hyphen:hyphen$8,rightArrow:rightArrow},texts:{revert:revertText$1}},dateFormat:dateFormat$i}=appLocale.getLocalizedStrings(),JEScheduleReadOnlyListRow$1=({dataListColumnKey:e,isActionInProgress:t,onIgnoreOneTimeAccrual:n,onReviewOneTimeAccrual:o,onRevertOneTimeAccrual:i,forcePostedLabel:r,revertStatus:a,onRevertJeSchedule:s,row:l})=>{if(clientEpicState.isOneTimeAccrualRow(l))return jsxRuntimeExports.jsx(JEOneTimeAccrualCell,{dataListColumnKey:e,isActionInProgress:t,onIgnoreOneTimeAccrual:n,onReviewOneTimeAccrual:o,row:l,onRevertOneTimeAccrual:i});switch(e){case"vendor":{const e=l.vendor.name,t=null!=e&&""!==e;return jsxRuntimeExports.jsxs(VendorCell$1,{children:[null!=l.vendor.logo?jsxRuntimeExports.jsx(EntityLogoAvatar,{photoUrl:l.vendor.logo.href,styles:{width:sp[3],height:sp[3]}}):jsxRuntimeExports.jsx(EntityAvatar,{name:e}),jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText,{children:t?e:hyphen$8})})]})}case"category":{const e=l.jeDebit.account?.accountName,t=null!=e&&""!==e;return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText,{children:t?e:hyphen$8})})}case"class":{const e=l.jeDebit.accountingClass?.className,t=null!=e&&""!==e;return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText,{children:t?e:hyphen$8})})}case"depCategory":{if("prepaid_expenses"===l.jeScheduleType)return jsxRuntimeExports.jsxs(CellWithIcon,{children:[jsxRuntimeExports.jsx(IconSlot,{}),jsxRuntimeExports.jsx(TruncatedText,{children:hyphen$8})]});const e=l.jeCredit.account?.accountName,t=null!=e&&""!==e;return jsxRuntimeExports.jsx(CellWithIcon,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText,{children:t?e:hyphen$8})})})}case"scheduleCategory":{const e=clientEpicState.isAccruedScheduleRow(l)?void 0:l.baseTransaction.account.accountName,t=null!=e&&""!==e;return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:t?e:"",children:jsxRuntimeExports.jsx(TruncatedText,{children:t?e:hyphen$8})})}case"transactionDate":{const e=l.createTime?.format(dateFormat$i.visual.MMMDCommaYYYYformat);return null!=e?jsxRuntimeExports.jsx(TruncatedText,{children:e}):jsxRuntimeExports.jsx(TruncatedText,{children:hyphen$8})}case"type":{if(null==l.jeScheduleType)return jsxRuntimeExports.jsx(TruncatedText,{children:hyphen$8});const e=scheduleTypes[l.jeScheduleType];return jsxRuntimeExports.jsx(StyledCapsule,{label:e})}case"memo":{const e=clientEpicState.isAccruedScheduleRow(l)?l.memo:l.baseTransaction.memo;return null!=e&&""!==e?jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"inline-flex",placement:"bottom",title:e,children:jsxRuntimeExports.jsx(MemoIconWrapper,{children:jsxRuntimeExports.jsx(StyledMemoIcon$1,{})})}):jsxRuntimeExports.jsx(MemoIconWrapper,{children:jsxRuntimeExports.jsx(StyledMemoIcon$1,{})})}case"runningBalance":{const e="balanceAsOfToday"in l?l.balanceAsOfToday:void 0;if(null==e)return jsxRuntimeExports.jsx(TruncatedText,{children:hyphen$8});const t=amountToString("0,0.[00]",clientEpicState.toAmount(e.amount,currency$3.currencyCode,currency$3.currencySymbol));return null!=t?jsxRuntimeExports.jsx(TruncatedText,{children:t}):jsxRuntimeExports.jsx(TruncatedText,{children:hyphen$8})}case"monthlyAmount":{const e=null!=l.recurringAmount?amountToString("0,0.[00]",l.recurringAmount):void 0;return jsxRuntimeExports.jsx(TruncatedText,{children:e??hyphen$8})}case"totalAmount":{const e=amountToString("0,0.[00]",clientEpicState.toAmount(clientEpicState.isAccruedScheduleRow(l)?l.recurringAmount.amount:l.baseTransaction.amount.amount,currency$3.currencyCode,currency$3.currencySymbol));return jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"bottom",style:{width:"fit-content"},title:e??"",children:null!=e?jsxRuntimeExports.jsx(TruncatedText,{children:e}):jsxRuntimeExports.jsx(TruncatedText,{children:hyphen$8})})}case"createdBy":{const e=l.createdByUser;return jsxRuntimeExports.jsx(JEScheduleCreatedBy,{cotData:buildJEScheduleSummaryCOTData(l),displayName:e?.firstName??e?.email,isAiAccountant:clientEpicState.isAiAccountantSchedule(l),photoUrl:e?.photo?.toString()})}case"lifecycle":return jsxRuntimeExports.jsx(JEScheduleLifecycle,{endDate:l.endDate,forcePostedLabel:r,posted:l.postedCount,scheduleType:l.jeScheduleType??"prepaid_expenses",total:l.lifecycleTotal});case"period":{const e=l.startDate?.format(dateFormat$i.visual.MMMCommaYYYYFormat),t=l.endDate?.format(dateFormat$i.visual.MMMCommaYYYYFormat);return null==e||null==t?jsxRuntimeExports.jsx(TruncatedText,{children:hyphen$8}):jsxRuntimeExports.jsxs(StackedPeriodCell,{children:[jsxRuntimeExports.jsx(TruncatedText,{children:e}),jsxRuntimeExports.jsx(MutedTruncatedText,{children:`${rightArrow} ${t}`})]})}case"action":{if("revert"!==resolveScheduleDecision({jeScheduleId:l.jeScheduleId,postedCount:l.postedCount,status:l.status.code}))return null;const e=clientEpicState.isAccruedScheduleRow(l)?l.jeAccruedScheduleKey:l.jeScheduleTransactionKey;return jsxRuntimeExports.jsx(ActionContainer,{className:"item-value-container",children:jsxRuntimeExports.jsx(Button$4,{"data-testid":generateDataTestId("je-schedule-revert-button",l.jeScheduleId),label:revertText$1,size:"small",variant:"secondary",reverseSpinnerColor:!1,loading:"In-Progress"===a?.fetchState,disabled:"In-Progress"===a?.fetchState,onClick:()=>{null!=l.jeScheduleId&&null!=l.jeScheduleType&&null!=s&&s(l.jeScheduleId,e,l.jeScheduleType)}})})}default:return null}},JEScheduleReadOnlyListRow=React.memo(JEScheduleReadOnlyListRow$1),VendorCell$1=styled$2.div`
|
|
79521
79801
|
display: flex;
|
|
79522
79802
|
align-items: center;
|
|
79523
79803
|
gap: ${Space.sp2};
|
|
@@ -80064,7 +80344,7 @@ to {
|
|
|
80064
80344
|
color: ${Colors.brandColorOpalDark};
|
|
80065
80345
|
`,AiAccountantInsightText=styled$2(SmallMedium)`
|
|
80066
80346
|
color: ${Colors.brandColorOpalDark};
|
|
80067
|
-
`,{expenseAutomation:{jeSchedules:jeScheduleStrings$3}}=appLocale.getLocalizedStrings(),previewStrings$
|
|
80347
|
+
`,{expenseAutomation:{jeSchedules:jeScheduleStrings$3}}=appLocale.getLocalizedStrings(),previewStrings$3=jeScheduleStrings$3.newSchedule.journalEntryPreview,JEJournalEntryPreview=({amount:e,creditAccountName:t,debitAccountName:n,reversalDescription:o,debitClassName:i,detailRows:r,showTitle:a=!0})=>jsxRuntimeExports.jsxs(PreviewCard$1,{children:[a&&jsxRuntimeExports.jsx(PreviewTitle$1,{children:previewStrings$3.title}),jsxRuntimeExports.jsxs(EntryLine,{children:[jsxRuntimeExports.jsx(SideLabel,{children:previewStrings$3.debit}),jsxRuntimeExports.jsxs(AccountName$1,{children:[n,null!=i&&""!==i&&jsxRuntimeExports.jsxs(ClassName,{children:[" · ",i]})]}),jsxRuntimeExports.jsx(EntryAmount$1,{children:e})]}),jsxRuntimeExports.jsxs(EntryLine,{children:[jsxRuntimeExports.jsx(SideLabel,{children:previewStrings$3.credit}),jsxRuntimeExports.jsx(AccountName$1,{children:t}),jsxRuntimeExports.jsx(EntryAmount$1,{children:e})]}),null!=r&&r.length>0&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Divider$2,{}),r.map(e=>jsxRuntimeExports.jsxs(DetailRow$4,{children:[jsxRuntimeExports.jsx(DetailLabel$4,{children:e.label}),jsxRuntimeExports.jsx(DetailValue$3,{children:e.value})]},e.label))]}),jsxRuntimeExports.jsx(ReversalNote,{children:o})]}),PreviewCard$1=styled$2.div`
|
|
80068
80348
|
display: flex;
|
|
80069
80349
|
flex-direction: column;
|
|
80070
80350
|
gap: ${Space.sp2};
|
|
@@ -80113,7 +80393,7 @@ to {
|
|
|
80113
80393
|
color: ${e=>e.theme.colors.champion};
|
|
80114
80394
|
`,ReversalNote=styled$2(SmallMedium)`
|
|
80115
80395
|
color: ${e=>e.theme.colors.hero};
|
|
80116
|
-
`,{expenseAutomation:{jeSchedules:jeScheduleStrings$2}}=appLocale.getLocalizedStrings(),previewStrings$
|
|
80396
|
+
`,{expenseAutomation:{jeSchedules:jeScheduleStrings$2}}=appLocale.getLocalizedStrings(),previewStrings$2=jeScheduleStrings$2.newSchedule.schedulePreview,JESchedulePreview=({eachEntry:e,posts:t,totalCommitted:n,window:o,accountingClassName:i})=>jsxRuntimeExports.jsxs(PreviewCard,{children:[jsxRuntimeExports.jsx(PreviewTitle,{children:previewStrings$2.title}),jsxRuntimeExports.jsxs(PreviewRow,{children:[jsxRuntimeExports.jsx(RowLabel$2,{children:previewStrings$2.posts}),jsxRuntimeExports.jsx(RowValue$2,{children:t})]}),jsxRuntimeExports.jsxs(PreviewRow,{children:[jsxRuntimeExports.jsx(RowLabel$2,{children:previewStrings$2.window}),jsxRuntimeExports.jsx(RowValue$2,{children:o})]}),jsxRuntimeExports.jsxs(PreviewRow,{children:[jsxRuntimeExports.jsx(RowLabel$2,{children:previewStrings$2.totalCommitted}),jsxRuntimeExports.jsx(RowValue$2,{children:n})]}),jsxRuntimeExports.jsxs(PreviewRow,{children:[jsxRuntimeExports.jsx(RowLabel$2,{children:previewStrings$2.eachEntry}),jsxRuntimeExports.jsx(RowValue$2,{children:e})]}),null!=i&&""!==i&&jsxRuntimeExports.jsxs(PreviewRow,{children:[jsxRuntimeExports.jsx(RowLabel$2,{children:previewStrings$2.class}),jsxRuntimeExports.jsx(RowValue$2,{children:i})]}),jsxRuntimeExports.jsx(Divider$1,{}),jsxRuntimeExports.jsxs(AutoPostNote,{children:[jsxRuntimeExports.jsx(StyledAiIcon$1,{}),jsxRuntimeExports.jsxs(AutoPostText,{children:[jsxRuntimeExports.jsx(SmallSemiBoldSp,{children:previewStrings$2.autoPostPrefix}),previewStrings$2.autoPostSuffix]})]})]}),PreviewCard=styled$2.div`
|
|
80117
80397
|
display: flex;
|
|
80118
80398
|
flex-direction: column;
|
|
80119
80399
|
gap: ${Space.sp2};
|
|
@@ -80367,7 +80647,7 @@ to {
|
|
|
80367
80647
|
height: 100%;
|
|
80368
80648
|
min-width: 0;
|
|
80369
80649
|
background-color: ${e=>e.theme.colors.grey4};
|
|
80370
|
-
`;function JESchedulePage({accountListNestedAccountHierarchy:e,baseTransactionSearchFetchState:t,baseTransactionSearchResults:n,classListNestedAccountHierarchy:o,expenseAutomationViewSelector:i,currentFooterFormId:r,isAccountingClassesEnabled:a,isCreatingNewSchedule:s,newScheduleSaveStatus:l,allDepreciationAccountListNestedAccountHierarchy:c,closeMonth:d,initialScheduleDetailsMode:p,initialScheduleType:u,newAccrualAccountsView:m,onCreateAccruedSchedule:h,onCreateOneTimeAccrual:g,setResetJeAccountSettingsForm:x,vendorSearchAutoCompleteData:f,onJESchedulesFormDataChange:y,onPostJESchedule:S,handleJeScheduleClick:C,onOneTimeAccrualClick:b,onOneTimeAccrualFeedback:$,onJeAccountSettingsChange:v,onSaveJeAccountSettingsClick:E,onSaveSchedule:w,onScheduleTypeChange:R,onSearchBaseTransaction:A,onViewTransaction:j,newScheduleLocalData:T,initialSelectedBaseTransaction:I,isAccrualEnabled:k,onNewScheduleFormChange:L,ignoreRecommendedJeSchedule:D,vendorSearchAutoCompleteActions:_,isMatchPanelOpen:P,isSchedulePanelOpen:B,matchPanelContent:M,schedulePanelContent:O,schedulePendingDiscardConfirmation:F,setCurrentFooterFormId:N,setIsCreatingNewSchedule:z,setIsJeAccountSettingsOpened:H,onRevertJeSchedule:V,onToggleCreatedGroupCollapsed:W,onTogglePendingGroupCollapsed:U,onUpdateJEScheduleTypeFilter:G,onUpdateJESchedulesUIState:q,onClearMatchNewModal:Q,onCloseMatchNewModal:Y,onIgnoreMatchSuggestion:K,onMatchAndReverse:Z,
|
|
80650
|
+
`;function JESchedulePage({accountListNestedAccountHierarchy:e,baseTransactionSearchFetchState:t,baseTransactionSearchResults:n,classListNestedAccountHierarchy:o,expenseAutomationViewSelector:i,currentFooterFormId:r,isAccountingClassesEnabled:a,isCreatingNewSchedule:s,newScheduleSaveStatus:l,allDepreciationAccountListNestedAccountHierarchy:c,closeMonth:d,initialScheduleDetailsMode:p,initialScheduleType:u,newAccrualAccountsView:m,onCreateAccruedSchedule:h,onCreateOneTimeAccrual:g,setResetJeAccountSettingsForm:x,vendorSearchAutoCompleteData:f,onJESchedulesFormDataChange:y,onPostJESchedule:S,handleJeScheduleClick:C,onOneTimeAccrualClick:b,onOneTimeAccrualFeedback:$,onJeAccountSettingsChange:v,onSaveJeAccountSettingsClick:E,onSaveSchedule:w,onScheduleTypeChange:R,onSearchBaseTransaction:A,onViewTransaction:j,newScheduleLocalData:T,initialSelectedBaseTransaction:I,isAccrualEnabled:k,onNewScheduleFormChange:L,ignoreRecommendedJeSchedule:D,vendorSearchAutoCompleteActions:_,isMatchPanelOpen:P,isSchedulePanelOpen:B,matchPanelContent:M,schedulePanelContent:O,schedulePendingDiscardConfirmation:F,setCurrentFooterFormId:N,setIsCreatingNewSchedule:z,setIsJeAccountSettingsOpened:H,onRevertJeSchedule:V,onToggleCreatedGroupCollapsed:W,onTogglePendingGroupCollapsed:U,onUpdateJEScheduleTypeFilter:G,onUpdateJESchedulesUIState:q,onClearMatchNewModal:Q,onCloseMatchNewModal:Y,onIgnoreMatchSuggestion:K,onMatchAndReverse:Z,onOpenBill:X,onOpenMatch:J,onOpenMatchNewModal:ee,onSearchMatchAccruals:te,onSearchMatchTransactions:ne,onUndoReversal:oe,onUpdateActualMatchingUIState:ie}){const{jeSchedules:re}=i,ae=React.useCallback(()=>{z(!1),"schedules"!==re.uiState.selectedPageTab&&q({selectedPageTab:"schedules"})},[re.uiState.selectedPageTab,q,z]),se={isAccountingClassesEnabled:a,setCurrentFooterFormId:N,handleJeScheduleClick:C,onOneTimeAccrualClick:b,onOneTimeAccrualFeedback:$,ignoreRecommendedJeSchedule:D,jeSchedules:re,onJESchedulesFormDataChange:y,onPostJESchedule:S,onRevertJeSchedule:V,onToggleCreatedGroupCollapsed:W,onTogglePendingGroupCollapsed:U,onUpdateJEScheduleTypeFilter:G,onUpdateJESchedulesUIState:q,vendorSearchAutoCompleteActions:_,vendorSearchAutoCompleteData:f,isPanelOpen:B,panelContent:O,pendingDiscardConfirmation:F};if(isActualMatchingPageTab(re.uiState.selectedPageTab))return jsxRuntimeExports.jsx(ActualMatchingPage,{actualMatching:getActualMatchingFromSelector(i),isMatchPanelOpen:P,matchPanelContent:M,selectedPeriod:i.selectedPeriod,onClearMatchNewModal:Q??(()=>{}),onCloseMatchNewModal:Y??(()=>{}),onIgnoreMatchSuggestion:K??(()=>{}),onMatchAndReverse:Z??(()=>{}),onOpenBill:X,onOpenMatch:J??(()=>{}),onOpenMatchNewModal:ee??(()=>{}),onSearchMatchAccruals:te??(()=>{}),onSearchMatchTransactions:ne??(()=>{}),onUndoReversal:oe,onUpdateActualMatchingUIState:ie});if(!re.hasLoadedForSelectedTab||!re.accountSettingsView.hasLoaded)return"existing_schedules"===re.uiState.selectedPageTab?jsxRuntimeExports.jsx(JEExistingSchedulesTabSkeleton,{isAccountingClassesEnabled:a}):jsxRuntimeExports.jsx(JESchedulesTabSkeleton,{isAccountingClassesEnabled:a});if("Completed"===re.accountSettingsView.fetchState&&0===re.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length&&0===re.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length)return jsxRuntimeExports.jsx(JEScheduleAccountSettings,{setIsJeAccountSettingsOpened:H,setResetJeAccountSettingsForm:x,currentFooterFormId:r,onJeAccountSettingsChange:v,onSaveJeAccountSettingsClick:E,accountSettings:re.accountSettingsView,setCurrentFooterFormId:N});const le=jsxRuntimeExports.jsx(NewJEScheduleDrawer,{isOpen:s,closeMonth:d,accountListNestedAccountHierarchy:e,baseTransactionSearchFetchState:t,baseTransactionSearchResults:n,classListNestedAccountHierarchy:o,isAccountingClassesEnabled:a,newScheduleSaveStatus:l,allDepreciationAccountListNestedAccountHierarchy:c,initialScheduleDetailsMode:p,initialScheduleType:u,newAccrualAccountsView:m,vendorSearchAutoCompleteActions:_,vendorSearchAutoCompleteData:f,onCancel:()=>z(!1),onCreateAccruedSchedule:h,onCreateOneTimeAccrual:g,onCreationComplete:ae,onSaveSchedule:w,onScheduleTypeChange:R,onSearchBaseTransaction:A,onViewTransaction:j,isAccrualEnabled:k,newScheduleLocalData:T,initialSelectedBaseTransaction:I,onNewScheduleFormChange:L});return"existing_schedules"===re.uiState.selectedPageTab?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(JEExistingSection,{isPanelOpen:B,panelContent:O,pendingDiscardConfirmation:F,handleJeScheduleClick:C,onOneTimeAccrualClick:b,onOneTimeAccrualFeedback:$,ignoreRecommendedJeSchedule:D,isAccountingClassesEnabled:a,jeSchedules:re,onJESchedulesFormDataChange:y,onPostJESchedule:S,onUpdateJEScheduleTypeFilter:G,setCurrentFooterFormId:N,vendorSearchAutoCompleteActions:_,vendorSearchAutoCompleteData:f}),le]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(JESchedulesSection,{...se}),le]})}const MISSING_RECEIPTS_LIST_EMPTY_TABLE_COL_PCTS=[15,22,23,16,15,9],MissingReceiptsListEmptyTable=e=>jsxRuntimeExports.jsx(Container$t,{children:jsxRuntimeExports.jsx(ListTableSkeleton,{colPcts:MISSING_RECEIPTS_LIST_EMPTY_TABLE_COL_PCTS})}),Container$t=styled$2.div``,DEFAULT_LIST_ITEM_HEIGHT_REGULAR=48,DEFAULT_LIST_HEADER_HEIGHT_REGULAR$1=32,OVERSCAN_COUNT=1,MISSING_RECEIPTS_COLUMN_NON_SORT_KEYS=["receipts"],toMissingReceiptsColumnNonSortableKeyStrict=e=>clientEpicState.stringToUnionStrict(e,MISSING_RECEIPTS_COLUMN_NON_SORT_KEYS),{common:{texts:{vendor:vendor$4,amount:amount$6,receipts:receipts$1,category:category$3,date:date$4,class:classText$2}}}=appLocale.getLocalizedStrings(),missingReceiptsVendorHeaderItem={key:"vendor",value:vendor$4,sortOrder:"ascending",width:new ResponsiveSized(25,25)},missingReceiptsCategoryHeaderItem={key:"category",value:category$3,sortOrder:"ascending",width:new ResponsiveSized(21,21)},missingReceiptsClassHeaderItem={key:"class",value:classText$2,sortOrder:"ascending",width:new ResponsiveSized(20,20)},missingReceiptsDateHeaderItem={key:"date",value:date$4,sortOrder:"descending",width:new ResponsiveSized(8,8)},missingReceiptsLabelHeaderItem={key:"receipts",value:receipts$1,sortOrder:"descending",width:new ResponsiveSized(14,14)},missingReceiptsAmountHeaderItem={key:"amount",value:amount$6,sortOrder:"ascending",width:new ResponsiveSized(12,12)};function getMissingReceiptsHeaderItemsData(e){return[missingReceiptsVendorHeaderItem,missingReceiptsCategoryHeaderItem,...e?[missingReceiptsClassHeaderItem]:[],missingReceiptsLabelHeaderItem,missingReceiptsDateHeaderItem,missingReceiptsAmountHeaderItem]}const compressedMissingReceiptsHeaderItemsData=[{...missingReceiptsVendorHeaderItem,width:new ResponsiveSized(65,65)},{...missingReceiptsAmountHeaderItem,width:new ResponsiveSized(30,30)}],defaultSortOption$1={sortKey:"date",sortOrder:"descending"},MissingReceiptsHeader=({isAccountingClassesEnabled:e,sortConfig:t,isDisabled:n,onColumnSortConfigChanged:o})=>{const i=useWindowSizeContext(),r=useQuickViewMode(),a=r?compressedMissingReceiptsHeaderItemsData:getMissingReceiptsHeaderItemsData(e),[s,l]=React.useState(a);React.useEffect(()=>{const e=[...a];for(const n of e)n.key===t.sortKey?n.sortOrder=t.sortOrder:n.sortOrder="ascending";l(e)},[t.sortKey,t.sortOrder,r]);const c=(e,n)=>{let i=n;t.sortKey===e&&(i="ascending"===n?"descending":"ascending"),o(e,i)};return jsxRuntimeExports.jsx(HeaderContainer$3,{windowSize:i,isQuickViewMode:r,children:s.map((e,o)=>{const a=null!=n||null!=toMissingReceiptsColumnNonSortableKeyStrict(e.key);return jsxRuntimeExports.jsxs(HeaderWrapper$3,{sortDataValue:t.sortKey,actualDataValue:e.key,wrapperWidth:e.width,isSortDisabled:a,windowSize:i,isQuickViewMode:r,isLastItem:o===s.length-1,style:"receipts"===e.key?{justifyContent:"center"}:void 0,children:[jsxRuntimeExports.jsxs(HeaderNameWrapper$3,{onClick:()=>a?null:(e=>{null==toMissingReceiptsColumnNonSortableKeyStrict(e.key)&&c(clientEpicState.toExpenseAutomationMissingReceiptsSortKey(e.key),e.sortOrder)})(e),isSortDisabled:a,children:[jsxRuntimeExports.jsx(HeaderName$2,{children:e.value}),a?null:jsxRuntimeExports.jsx(SortIconWrapper$3,{sortConfig:t,headerData:e,children:jsxRuntimeExports.jsx(StyledSortIcon$2,{})})]}),a?null:jsxRuntimeExports.jsx(CloseIconContainer$2,{isSortDisabled:a,sortDataValue:t.sortKey,isVisible:t.sortKey===e.key&&t.sortKey!==defaultSortOption$1.sortKey,children:jsxRuntimeExports.jsx(StyledCloseIcon$a,{onClick:()=>{a||c(defaultSortOption$1.sortKey,defaultSortOption$1.sortOrder)},"data-testid":generateDataTestId("missing-receipts-header-close-icon",e.key)})})]},e.key)})})},HeaderContainer$3=styled$2.div`
|
|
80371
80651
|
top: ${Space.sp0};
|
|
80372
80652
|
left: ${Space.sp0};
|
|
80373
80653
|
height: ${DEFAULT_LIST_HEADER_HEIGHT_REGULAR$1}px;
|
|
@@ -80439,7 +80719,7 @@ to {
|
|
|
80439
80719
|
}
|
|
80440
80720
|
`,HeaderName$2=styled$2(ExtraSmallSemiBold)`
|
|
80441
80721
|
display: flex;
|
|
80442
|
-
`,{common:{strings:{underscore:underscore$2,hyphen:hyphen$
|
|
80722
|
+
`,{common:{strings:{underscore:underscore$2,hyphen:hyphen$7,empty:empty$6},documents:{singleFileUploadSizeErrorMessage:singleFileUploadSizeErrorMessage,multipleFileUploadSizeErrorMessage:multipleFileUploadSizeErrorMessage},snackBar:{missing_receipts_attachment:{failed:failed}},tooltips:{addMissingReceipt:addMissingReceipt}},dateFormat:dateFormat$e}=appLocale.getLocalizedStrings(),D$m={containerPaddingLeftRight:new ResponsiveSized(sp[4],sp[4]),containerPaddingTopBottom:new ResponsiveSized(sp[0],sp[0])},MissingReceiptsListRow=({transaction:e,uploadReceiptsFetchState:t,receiptUploadEndpoint:n,authParams:o,isAccountingClassesEnabled:i,selectedPeriod:r,isLastRow:a=!1,onUploadReceiptComplete:s,onMissingReceiptsRowClick:l,onUploadReceiptFetchStatus:c,onUploadReceiptAttachment:d})=>{const p=useWindowSizeContext(),u=useQuickViewMode(),m=useTheme(),h=useExpenseAutomationRowCommenting({transactionId:e.id,rowEntityType:"expense_automation.receipts.row",transactionType:e.type}),{isCommentingActive:g,rowRef:x,totalThreadCount:f,isThreadsLoading:y,handleActiveThreadClick:S,handleAddRowCommentClick:C}=h,b=React.useRef(null),$=React.useCallback(async(t,n,o,i,a)=>{c(e.id,"In-Progress"),await uploadAttachment(t,n,o,i,a).then(({uploadResponse:t,errorMessage:n})=>{null!=t?null!=t.transaction.attachments&&(d(t.transaction),setTimeout(()=>s(t.transaction,r),2e3)):c(e.id,"Error",{code:500,message:failed},n)}).catch(t=>{c(e.id,"Error",t)})},[e.id,r,d,s,c]),v=React.useCallback(t=>{if(null!=t.target.files){const i=t.target.files,r=[],a=[];for(let e=0;e<i.length;e++)r.push(i[e].name),a.push(i[e]);$(n,o,i[0],i[0].name,{id:e.id,type:e.type})}},[o,$,n,e.id,e.type]),E=React.useCallback(()=>{u||b.current?.click()},[b,u]),w=u?compressedMissingReceiptsHeaderItemsData:getMissingReceiptsHeaderItemsData(i);return jsxRuntimeExports.jsxs(Container$s,{ref:x,className:"missing-receipts-row-card",$isLastRow:a,windowSize:p,isQuickViewMode:u,onClick:()=>l(e.id,e.type),"data-testid":generateDataTestId("missing-receipts-list-row",e.id),style:{position:"relative"},children:[w.map((n,o)=>{const i=`${e.id}${underscore$2}${n.key}`;switch(n.key){case"vendor":default:return jsxRuntimeExports.jsx(RowItemContainer$2,{windowSize:p,wrapperWidth:n.width,isQuickViewMode:u,children:jsxRuntimeExports.jsx(RowItem$3,{windowSize:p,isLastItem:o===w.length-1,children:jsxRuntimeExports.jsxs(TextContainer$2,{children:[jsxRuntimeExports.jsx(EntityLogoAvatarWithCustomFallback,{photoUrl:null!=e.vendorId?e.logo?.toString()??empty$6:empty$6,styles:{width:Space.sp3,height:Space.sp3,borderRadius:Space.sp2},placeholder:{width:sp[3],height:sp[3]},fallbackAvatar:jsxRuntimeExports.jsx(EntityAvatarContainer$2,{children:jsxRuntimeExports.jsx(EntityAvatar,{name:e.vendorName??e.description})})}),jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:e.vendorName??e.description,itemTextStyle:{...textStyles.standardMedium.cssObject,color:"inherit"}})]})})},i);case"category":case"class":{const t=null!=e.lines&&e.lines.length>0&&null!=e.lines[0]?.account&&Boolean(e.lines[0].account.accountName)?e.lines[0].account.accountName:hyphen$7,r=null!=e.lines&&e.lines.length>0&&null!=e.lines[0]?.class&&Boolean(e.lines[0].class?.className)?e.lines[0].class?.className??hyphen$7:hyphen$7,a="category"===n.key?t:r;return jsxRuntimeExports.jsx(RowItemContainer$2,{windowSize:p,wrapperWidth:n.width,isQuickViewMode:u,children:jsxRuntimeExports.jsx(RowItem$3,{windowSize:p,isLastItem:o===w.length-1,children:jsxRuntimeExports.jsx(TextContainer$2,{children:a!==hyphen$7?jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:a,itemTextStyle:{...textStyles.standardMedium.cssObject,color:"inherit"}}):jsxRuntimeExports.jsx(ItemText$2,{children:a})})})},i)}case"date":return jsxRuntimeExports.jsx(RowItemContainer$2,{windowSize:p,wrapperWidth:n.width,isQuickViewMode:u,children:jsxRuntimeExports.jsx(RowItem$3,{windowSize:p,isLastItem:o===w.length-1,children:jsxRuntimeExports.jsx(TextContainer$2,{children:jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:e.date.format(dateFormat$e.visual.MMMDCommaYYYYformat),itemTextStyle:{...textStyles.standardMedium.cssObject,color:"inherit"}})})})},i);case"receipts":return jsxRuntimeExports.jsx(RowItemContainer$2,{windowSize:p,wrapperWidth:n.width,isQuickViewMode:u,children:jsxRuntimeExports.jsx(RowItem$3,{windowSize:p,isLastItem:o===w.length-1,style:{justifyContent:"center"},children:"In-Progress"===t.fetchState?jsxRuntimeExports.jsx(ActivityIndicator,{size:"Small",style:{display:"flex"},start:!0}):"Completed"===t.fetchState||null!=e.attachments&&e.attachments.length>0?jsxRuntimeExports.jsx(SuccessAnimation,{shouldDisplay:!0,width:sp[4],height:sp[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StyledDiv$4,{onClick:e=>{e.stopPropagation()},children:jsxRuntimeExports.jsx(FileInputElement,{"data-testid":generateDataTestId("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:b,sizeLimit:SizeLimit32MB,multiple:!1,acceptableTypes:[...clientEpicState.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:v,onFileSizeError:(t,n)=>{t&&c(e.id,"Error",{code:500,message:!0===n?singleFileUploadSizeErrorMessage.replace("__maxFileSize__",formatFileSize(SizeLimit32MB,0)):multipleFileUploadSizeErrorMessage.replace("__maxFileSize__",formatFileSize(SizeLimit32MB,0))})}})}),jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",title:addMissingReceipt,enterDelay:600,children:jsxRuntimeExports.jsx(StyledAddRoundIcon$3,{onClick:e=>{e.stopPropagation(),E()}})})]})})},i);case"amount":{const t=amountToString("0,0.[00]",e.amount);return jsxRuntimeExports.jsx(RowItemContainer$2,{windowSize:p,wrapperWidth:n.width,isQuickViewMode:u,children:jsxRuntimeExports.jsx(RowItem$3,{windowSize:p,isLastItem:o===w.length-1,children:jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:e.amount.amount<0?`-${t}`:t,itemTextStyle:{...textStyles.standardMedium.cssObject,color:"inherit"}})})},i)}}}),g&&f>0?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,children:jsxRuntimeExports.jsx(ActiveThreadCount,{isLoading:y,count:f,style:{backgroundColor:m.colors.grey4,borderRadius:"50% 50% 50% 0",cursor:"pointer"},openThread:S})}):null,g&&!1===y&&0===f?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,innerClassName:"comment-add-icon",children:jsxRuntimeExports.jsx(StyledAddThreadsIcon$1,{"data-testid":generateDataTestId("expense-automation-receipts-row-add-comment",e.id),onClick:C})}):null,jsxRuntimeExports.jsx(ExpenseAutomationRowThreadPortals,{state:h})]})},Container$s=styled$2.div`
|
|
80443
80723
|
display: flex;
|
|
80444
80724
|
height: 100%;
|
|
80445
80725
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -80612,7 +80892,7 @@ to {
|
|
|
80612
80892
|
display: flex;
|
|
80613
80893
|
flex-direction: column;
|
|
80614
80894
|
row-gap: ${Space.sp1};
|
|
80615
|
-
`,FieldLabel
|
|
80895
|
+
`,FieldLabel=styled$2(StandardSemiBold)`
|
|
80616
80896
|
color: ${e=>e.theme.colors.grey1};
|
|
80617
80897
|
`,Note=styled$2(SmallRegular)`
|
|
80618
80898
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -80643,7 +80923,7 @@ to {
|
|
|
80643
80923
|
p:last-of-type {
|
|
80644
80924
|
margin-bottom: 0;
|
|
80645
80925
|
}
|
|
80646
|
-
`,asText=e=>"string"==typeof e?e:strings$u.common.strings.empty;function AgentInsightsEditor({edits:e,resyncToken:t,templateData:n,onEdit:o}){const i=strings$u.cockpit.monthEndReport.agentInsights,r=React.useRef({}),a=React.useRef(null),s=React.useRef({}),l=React.useRef(t);React.useEffect(()=>{const o=t!==l.current;l.current=t,o&&document.activeElement instanceof HTMLElement&&document.activeElement.blur();const i=(t,i,r,a)=>{if(null==t||!o&&t===document.activeElement)return;const l=e[i]??asText(n[i]);r(t)!==l&&a(t,l),s.current[i]=r(t)};i(a.current,AGENT_INSIGHTS_HEADER_KEY,e=>e.value,(e,t)=>{e.value=t}),AGENT_INSIGHTS_SECTION_KEYS.forEach(e=>{i(r.current[e]??null,e,e=>e.innerHTML,(e,t)=>{e.innerHTML=t})})},[e,t,n]);const c=(e,t)=>{t!==s.current[e]&&(s.current[e]=t,o({[e]:t}))};return jsxRuntimeExports.jsxs(Container$r,{children:[jsxRuntimeExports.jsx(Note,{children:i.note}),jsxRuntimeExports.jsxs(Field,{children:[jsxRuntimeExports.jsx(FieldLabel
|
|
80926
|
+
`,asText=e=>"string"==typeof e?e:strings$u.common.strings.empty;function AgentInsightsEditor({edits:e,resyncToken:t,templateData:n,onEdit:o}){const i=strings$u.cockpit.monthEndReport.agentInsights,r=React.useRef({}),a=React.useRef(null),s=React.useRef({}),l=React.useRef(t);React.useEffect(()=>{const o=t!==l.current;l.current=t,o&&document.activeElement instanceof HTMLElement&&document.activeElement.blur();const i=(t,i,r,a)=>{if(null==t||!o&&t===document.activeElement)return;const l=e[i]??asText(n[i]);r(t)!==l&&a(t,l),s.current[i]=r(t)};i(a.current,AGENT_INSIGHTS_HEADER_KEY,e=>e.value,(e,t)=>{e.value=t}),AGENT_INSIGHTS_SECTION_KEYS.forEach(e=>{i(r.current[e]??null,e,e=>e.innerHTML,(e,t)=>{e.innerHTML=t})})},[e,t,n]);const c=(e,t)=>{t!==s.current[e]&&(s.current[e]=t,o({[e]:t}))};return jsxRuntimeExports.jsxs(Container$r,{children:[jsxRuntimeExports.jsx(Note,{children:i.note}),jsxRuntimeExports.jsxs(Field,{children:[jsxRuntimeExports.jsx(FieldLabel,{children:i.fields.agent_insights_header}),jsxRuntimeExports.jsx(HeaderInput,{"aria-label":i.fields.agent_insights_header,ref:a,defaultValue:(d=AGENT_INSIGHTS_HEADER_KEY,e[d]??asText(n[d])),onBlur:e=>c(AGENT_INSIGHTS_HEADER_KEY,e.currentTarget.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),e.currentTarget.blur())}})]}),AGENT_INSIGHTS_SECTION_KEYS.map(e=>jsxRuntimeExports.jsxs(Field,{children:[jsxRuntimeExports.jsx(FieldLabel,{children:i.fields[e]}),jsxRuntimeExports.jsx(SectionBody,{ref:t=>{r.current[e]=t},contentEditable:!0,suppressContentEditableWarning:!0,role:"textbox","aria-multiline":!0,"aria-label":i.fields[e],onBlur:t=>c(e,t.currentTarget.innerHTML)})]},e))]});var d}const SvgCustomerRequest=e=>React__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},React__namespace.createElement("g",{clipPath:"url(#clip0_2060_207)"},React__namespace.createElement("path",{d:"M10.3108 13.7666L8.91958 11.6416C8.75644 11.3546 8.71341 11.0148 8.7999 10.6962C8.88638 10.3777 9.09536 10.1063 9.38121 9.94123C9.66707 9.77619 10.0066 9.73091 10.3257 9.81528C10.6449 9.89965 10.9176 10.1068 11.0846 10.3916L11.7521 11.4109V6.78552",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M11.7672 6.77606C12.5298 7.23352 13.1415 7.85903 13.5796 8.63286C14.0177 9.40668 14.2479 10.2808 14.2479 11.17V13.7544V15.7458",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M8.25208 1.2543L11.7521 4.7543V6.7421",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M8.22098 1.2543H2.75208C2.19979 1.2543 1.75208 1.70202 1.75208 2.2543L1.75208 13.2543C1.75208 13.8066 2.19979 14.2543 2.75208 14.2543H8.75208",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M8.25208 1.2543V4.7543H11.7521",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M4.1521 6.68448H7.28102",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M4.1521 8.68448H7.28102",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),React__namespace.createElement("defs",null,React__namespace.createElement("clipPath",{id:"clip0_2060_207"},React__namespace.createElement("rect",{width:16,height:16,fill:"currentColor"})))),strings$t=appLocale.getLocalizedStrings(),D$l={iconContainerMaxWidthHeight:new ResponsiveSized(sp[6],sp[7]),iconContainerMarginRight:new ResponsiveSized(12,sp[3]),iconPadding:new ResponsiveSized(10,12)},fontStyles$b={title:new ResponsiveSizedStyle("standardSemiBold","largeSemiBold")},Container$q=styled$2.div`
|
|
80647
80927
|
background-color: ${e=>e.theme.colors.grey5};
|
|
80648
80928
|
border: ${e=>`1px solid ${e.theme.colors.grey2}`};
|
|
80649
80929
|
border-radius: ${Space.sp2};
|
|
@@ -81139,7 +81419,7 @@ to {
|
|
|
81139
81419
|
position: relative;
|
|
81140
81420
|
height: fit-content;
|
|
81141
81421
|
min-height: ${Space.sp12};
|
|
81142
|
-
`,Content
|
|
81422
|
+
`,Content=styled$2.div`
|
|
81143
81423
|
flex-grow: 1;
|
|
81144
81424
|
overflow: auto;
|
|
81145
81425
|
min-height: 2em;
|
|
@@ -81242,7 +81522,7 @@ to {
|
|
|
81242
81522
|
z-index: ${sp[2]};
|
|
81243
81523
|
min-width: ${COMMENTS_SECTION_MINIMUM_WIDTH}px;
|
|
81244
81524
|
max-width: ${COMMENTS_DRAWER_MAXIMUM_WIDTH}px;
|
|
81245
|
-
`,monthEndReportFormSectionId="monthEndReportFormSection",monthEndReportPage="monthEndReportPage",{common:common$m,cockpit:cockpit,dateFormat:dateFormat$c}=appLocale.getLocalizedStrings();function MonthEndInsightsForm({companyId:e,enableZeniGPTFeature:t,monthEndReportView:n,previewMode:o,customerRequestData:i,allThreadsSectionOpen:r,filterMetaData:a,newThreadMetadata:s,isZeniUser:l,selectedPeriod:c,improveUsingZeniGPTClick:d,onRemoveFileAttachment:p,onUpdateFileAttachment:u,onCloseAllThreadsSection:m,previewMonthEndReport:h,saveMonthEndReport:g,onEditClick:x,onOpenFileAttachmentSnackBar:f,onClickCustomerRequest:y,sendMonthEndReport:S}){const C=useTheme(),[b,$]=React.useState(),[v,E]=React.useState(0),[w,R]=React.useState(0),A=React.useRef(),j=React.useRef(null),T=React.useRef(null),{html:I,subject:k,improveUsingZeniGPTStatus:L}=n,[D,_]=React.useState(),[P,B]=React.useState(!1),[M,O]=React.useState(!1),F=React.useRef(null),N=React.useRef(null),z=useDelayUnmount(r,250),H="Not-Started"===n.fetchState||"In-Progress"===n.fetchState||"Not-Started"===n.companyMonthEndReportTemplatesData.fetchState||"In-Progress"===n.companyMonthEndReportTemplatesData.fetchState,{threadsRefs:V,sortedThreads:W,threadsPositions:U,observer:G,unresolvedThreadsMap:q,handleRemoveFloatingThread:Q}=useFloatingThreads(a,F,!o,H),Y=React.useCallback(()=>{r?null!=N.current&&R(Math.min((N.current.offsetWidth-MONTH_END_INSIGHTS_FORM_WIDTH-sp[4])/2,N.current.offsetWidth-MONTH_END_INSIGHTS_FORM_WIDTH-COMMENTS_DRAWER_MAXIMUM_WIDTH-sp[4])):null!=N.current&&E(Math.min((N.current.offsetWidth-MONTH_END_INSIGHTS_FORM_WIDTH-sp[4])/2,N.current.offsetWidth-MONTH_END_INSIGHTS_FORM_WIDTH-COMMENTS_SECTION_MINIMUM_WIDTH-sp[4]))},[r]);React.useEffect(()=>{Y()},[r,Y]),React.useEffect(()=>(window.addEventListener("resize",Y),()=>{window.removeEventListener("resize",Y)}),[Y]);const{openThread:K,addThread:Z,setOpenThread:X}=React.useContext(ThreadsContext),J=useHandleSelection(MONTH_END_REPORT_CANVAS,!1,!o),ee=F.current?.getBoundingClientRect(),te=null!=J&&J.coords&&ee?{left:J.coords.left-ee.left,top:J.coords.top-ee.top}:void 0,ne=React.useCallback(()=>{const t=window.getSelection()?.getRangeAt(0),n=getSelectionData();if(!t||null==n)return;const o={...s,...n,startPath:n.startPath.join(),endPath:n.endPath.join()},i=`${nanoid()}${NEW_THREAD_SUFFIX}`;Z(i,{type:"thread",visibility:"public",id:i,roomId:`cockpit_${e}`,createdAt:new Date,comments:[],metadata:o,updatedAt:new Date,resolved:!1}),X(i)},[Z,e,s,X]);React.useEffect(()=>{null!=K&&r&&m()},[r,K,m]);const oe="In-Progress"===L.fetchState,ie=useForm({mode:"all",defaultValues:getDefaultValues$8(n),values:getDefaultValues$8(n)}),[re,ae]=React.useState(!1),{agentInsightEdits:se,agentInsightEditsRef:le,hasUnpersistedAgentEdits:ce,onAgentInsightEdit:de,saveState:pe}=useAgentInsightEdits({save:()=>me(),saveStatus:n.saveMonthEndReportStatus}),ue=ie.handleSubmit(e=>{const{recipientEmailList:t,subject:n}=e[monthEndReportFormSectionId];if(!ce)if(!0===o)S?.(D?.id);else{const e=b?.replace(EMPTY_HTML_CHECKER,common$m.strings.empty);null!=t&&null!=n&&h(t,n,D?.id,null!=e&&e.length>0?b:void 0,le.current)}}),me=()=>{const e=ie.getValues(),{recipientEmailList:t,subject:o}=e[monthEndReportFormSectionId];g(t??n.recipientEmailList??[],o??common$m.strings.empty,D?.id,b,le.current)};React.useEffect(()=>{$(n.zeniRequestsHtml)},[n.zeniRequestsHtml]),React.useEffect(()=>{A.current=D},[D]),React.useEffect(()=>{_(clientEpicState.mapAttachmentFileToAttachmentFilePayload(n.attachmentFile)),B(!1)},[n.attachmentFile]),React.useEffect(()=>{M&&f()},[M,f]);const he=clientEpicState.zeniDate(`${c.year}-${c.month}-01`).format(dateFormat$c.visual.MMMMFormat),ge=cockpit.monthEndReport.agentInsights,xe=n.templateData,fe=!o&&hasAgentInsights(xe),ye=null!=I?I.split(MONTH_END_EDITOR_PLACEHOLDER):[],Se=n.concatenatedHtml,Ce=(n.zeniRequestsData??[]).length+getTemplatesFromTemplatedData(n.companyMonthEndReportTemplatesData).length;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Content$1,{ref:N,children:[jsxRuntimeExports.jsx(EmptySection,{availableWidth:r?w:v}),jsxRuntimeExports.jsxs(FormContainer,{children:[jsxRuntimeExports.jsx(FormProvider,{...ie,children:jsxRuntimeExports.jsx("form",{id:uniqueName$b(monthEndReportPage),onSubmit:ue,children:jsxRuntimeExports.jsxs(SectionContainer$2,{children:[jsxRuntimeExports.jsx(MonthEndReportSection,{sectionId:monthEndReportFormSectionId,previewMode:o,subject:k}),!o&&Ce>0?jsxRuntimeExports.jsx(MonthEndReportCustomerRequestSection,{totalItems:Ce,onClickCustomerRequest:y}):null,jsxRuntimeExports.jsxs(EmailContent,{id:MONTH_END_REPORT_CANVAS,ref:F,children:[jsxRuntimeExports.jsxs(EmailContentWrapper,{className:"monthEndReportCanvasWrapper",children:[null!=D||M?jsxRuntimeExports.jsx(EmailAttachmentContainer,{"data-testid":generateDataTestId("email-attachment-container"),onClick:()=>{T.current&&T.current.scrollIntoView({behavior:"smooth"})},children:jsxRuntimeExports.jsx(CircleWithAttachmentSuccessIcon,{fileSizeError:M,setFileSizeError:O,loading:!1,showAnimation:!o&&P})}):null,o?jsxRuntimeExports.jsx(BodySection,{dangerouslySetInnerHTML:{__html:getHTMLWithCommentingSections(Se)}}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[fe?jsxRuntimeExports.jsxs(AgentInsightsToggleRow,{children:[jsxRuntimeExports.jsx(AgentInsightsStatus,{role:"status",children:"failed"===pe?ge.saveFailed:"saving"===pe?ge.saving:null}),jsxRuntimeExports.jsx(Button$4,{type:"button",size:"small",dataTestId:"agent_insights_edit_toggle",label:re?ge.doneButtonLabel:ge.editButtonLabel,onClick:()=>ae(!re)})]}):null,jsxRuntimeExports.jsxs(TopSection,{id:MONTH_END_EMAIL_HEADER_SECTION,children:[re&&null!=xe?jsxRuntimeExports.jsx(AgentInsightsEditor,{edits:se,templateData:xe,onEdit:de}):jsxRuntimeExports.jsx(StandardRegular,{dangerouslySetInnerHTML:{__html:null!=ye[0]?ye[0]+"</body></html>":common$m.strings.empty}}),jsxRuntimeExports.jsxs(NoteContainer,{children:[jsxRuntimeExports.jsx(EditorTitle,{children:cockpit.monthEndReport.editorTitle}),jsxRuntimeExports.jsx(EditorNote,{children:cockpit.monthEndReport.editorNote})]})]}),jsxRuntimeExports.jsx(EditorContainer,{id:MONTH_END_EMAIL_EDITOR_SECTION,children:jsxRuntimeExports.jsx(Editor,{handleFileInputClick:()=>{null!=j.current&&j.current.click()},fileAttached:null!=D,enableZeniGPTFeature:t,isZeniGPTResponseLoading:oe,initialHtmlString:n.zeniRequestsHtml,improveUsingZeniGPTClick:d,setZeniRequestsHtml:$,customerRequestData:i})}),re?null:jsxRuntimeExports.jsx(BodySection,{id:MONTH_END_EMAIL_BODY_SECTION,dangerouslySetInnerHTML:{__html:null!=ye[1]?"<html><body>"+ye[1]:common$m.strings.empty}})]}),null!=D?jsxRuntimeExports.jsx(FileAttachment,{ref:T,fileName:D.name,fileSize:base64FileSize(D.data),onRemove:()=>{void 0!==D&&null!=D&&(p([D.id]),_(void 0),B(!1))},isRemovable:!o}):null]}),te?jsxRuntimeExports.jsx(AddThreadFloating,{style:{zIndex:15},coords:te,alignment:J.alignment,onClick:ne}):null,jsxRuntimeExports.jsx(TextHighlightSection,{canvasContainerRef:F,sortedThreads:W,editorMode:!o})]})]})})}),jsxRuntimeExports.jsx(FileInputElement,{name:D?.name??common$m.strings.empty,fileRef:j,sizeLimit:allowedFileSize,acceptableTypes:allowedFileType,onFileChange:async t=>{(t=>{const n=t.target.files?t.target.files[0]:null;if(n)if(!clientEpicState.toSupportedAttachmentFileType(n.type)||M)console.warn("Please select a valid file.");else{const t=new FileReader;t.onload=function(t){const o=t.target?.result;if("string"==typeof o){const t={data:o.split(",")[1],name:n.name,id:clientEpicState.getAttachmentFileIdByFileName(e,n.name)};_(t),B(!0),u([t])}},t.readAsDataURL(n)}})(t)},onFileSizeError:e=>O(e),multiple:!1})]}),!0===l?z?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AllThreadsContainer,{allThreadsSectionOpen:r,children:jsxRuntimeExports.jsx(AllThreadsSection,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${C.colors.grey3}`},drawerSectionStyle:{width:`calc(100% - ${Space.sp5} - ${Space.sp5})`,backgroundColor:C.colors.background},threadsContainerStyle:{paddingBottom:o?"160px":Space.sp12},collapsibleThreadStyle:{width:`calc(100% - ${Space.sp4})`},allowComposer:!1,drawerTitle:common$m.texts.comments,filter:a,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(e,t)=>{X(t);const n=W.findIndex(e=>e[0]===t);m(),V.current?.[n]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>m()})}),jsxRuntimeExports.jsx(EmptySection,{availableWidth:v})]}):jsxRuntimeExports.jsx(FloatingThreads,{observer:G,canvasContainerRef:F,sortedThreads:W,threadsPositions:U,threadsRefs:V,unresolvedThreadsMap:q,editorMode:!o,style:{minWidth:`${v}px`,position:"relative",height:"fit-content",top:`${F.current?.offsetTop}px`,minHeight:Space.sp12},handleRemoveFloatingThread:Q}):jsxRuntimeExports.jsx(EmptySection,{availableWidth:v})]}),jsxRuntimeExports.jsx(Footer$7,{style:{zIndex:10},leftSideComponent:null!=n.lastDraftSavedDate&&!1===o?jsxRuntimeExports.jsx(UserWithTimestamp,{time:n.lastDraftSavedDate,user:n.reportLastSavedByUser,timeStampLabel:cockpit.monthEndReport.timeStampLabel}):null,formId:uniqueName$b(monthEndReportPage),cancelBtn:{isDisabled:oe,label:!0===o?common$m.edit:common$m.texts.saveChanges,onClick:!0===o?x:me,style:{width:"136px",padding:`${Space.sp0} ${Space.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:"In-Progress"===n.saveMonthEndReportStatus.fetchState,reverseSpinnerColor:!1},primaryBtn:{isDisabled:oe||!o&&ce,isLoading:!0===o?"In-Progress"===n.sendMonthEndReportStatus.fetchState:"In-Progress"===n.previewMonthEndReportStatus.fetchState,style:{width:!0===o?"unset":"136px"},label:!0===o?cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",he):common$m.texts.preview,size:"medium"}})]})}const getDefaultValues$8=e=>({[monthEndReportFormSectionId]:{recipientEmailList:e.recipientEmailList,subject:e.subject??common$m.strings.empty}}),uniqueName$b=e=>`${e}_form`,FlexibleWidthContext=React.createContext(!1),FlexibleWidthProvider=FlexibleWidthContext.Provider,useFlexibleWidth=()=>React.useContext(FlexibleWidthContext),DEFAULT_LIST_HEADER_HEIGHT_REGULAR=sp[5],DEFAULT_LIST_ITEM_HEIGHT_COMPACT=44,DEFAULT_ROW_VERTICAL_PADDING=12,TRANSACTIONS_CATEGORIZATION_COLUMN_NON_SORT_KEYS=["memo_and_receipt","activity","paymentAccount","receipt"],toTransactionCategorizationColumnNonSortableKeyStrict=e=>clientEpicState.stringToUnionStrict(e,TRANSACTIONS_CATEGORIZATION_COLUMN_NON_SORT_KEYS),{expenseAutomation:{transactions:{header:{toFrom:toFrom,memoReceipt:memoReceipt}}},common:{texts:{payee:vendors,category:category$2,class:classText$1,project:projectText,date:date$3,transactionType:type,amount:amount$5}}}=appLocale.getLocalizedStrings(),MEDIUM_REGULAR_MIN_PX=905,LARGE_MIN_PX=1240,EXTRA_LARGE_MIN_PX=1440,ULTRA_LARGE_MIN_PX=1920;function transactionCategorizationColumnWidth(e,t,n,o){const i=t,r=Math.round(t*LARGE_MIN_PX/MEDIUM_REGULAR_MIN_PX),a=Math.round(t*EXTRA_LARGE_MIN_PX/MEDIUM_REGULAR_MIN_PX),s=Math.round(t*ULTRA_LARGE_MIN_PX/MEDIUM_REGULAR_MIN_PX),l=n??a,c=o??l;return new ResponsiveSized(e,t,i,Math.min(r,l),Math.min(a,l),Math.min(s,c))}const transactionCategorizationVendorHeaderItem={key:"vendor",value:vendors,sortOrder:"ascending",width:transactionCategorizationColumnWidth(266,266,266,266),clippedWidth:transactionCategorizationColumnWidth(258,258,258,258),singleColumnEnabledWidthPercentage:15,doubleColumnDisabledWidthPercentage:19,doubleColumnEnabledWidthPercentage:12,customStyle:{common:{paddingLeft:sp[6],paddingRight:sp[2]},quickView:{paddingLeft:sp[9]}},isSticky:!1},transactionCategorizationPaymentAccountHeaderItem={key:"payment_account",value:toFrom,sortOrder:"ascending",width:transactionCategorizationColumnWidth(230,230,230,230),singleColumnEnabledWidthPercentage:14,doubleColumnDisabledWidthPercentage:18,doubleColumnEnabledWidthPercentage:11,customStyle:{common:{paddingLeft:sp[7],paddingRight:sp[2]}}},transactionCategorizationCategoryHeaderItem={key:"category",value:category$2,sortOrder:"ascending",width:transactionCategorizationColumnWidth(240,240,240,240),singleColumnEnabledWidthPercentage:17,doubleColumnDisabledWidthPercentage:22,doubleColumnEnabledWidthPercentage:13,customStyle:{common:{paddingLeft:sp[7],paddingRight:sp[2]}}},transactionCategorizationClassHeaderItem={key:"class",value:classText$1,sortOrder:"ascending",width:transactionCategorizationColumnWidth(240,240,240,240),singleColumnEnabledWidthPercentage:16,doubleColumnEnabledWidthPercentage:13,customStyle:{common:{paddingLeft:sp[7],paddingRight:sp[2]}}},transactionCategorizationProjectHeaderItem={key:"project",value:projectText,sortOrder:"ascending",width:transactionCategorizationColumnWidth(240,240,240,240),singleColumnEnabledWidthPercentage:16,doubleColumnEnabledWidthPercentage:13,customStyle:{common:{paddingLeft:sp[7],paddingRight:sp[2]}}},transactionCategorizationDateHeaderItem={key:"date",value:date$3,sortOrder:"descending",width:transactionCategorizationColumnWidth(116,116,116,116),singleColumnEnabledWidthPercentage:10,doubleColumnDisabledWidthPercentage:11,doubleColumnEnabledWidthPercentage:9,customStyle:{common:{paddingLeft:sp[2],paddingRight:sp[2]}}},transactionCategorizationTransactionTypeHeaderItem={key:"transaction_type",value:type,sortOrder:"descending",width:transactionCategorizationColumnWidth(165,165,165,165),singleColumnEnabledWidthPercentage:10,doubleColumnDisabledWidthPercentage:11,doubleColumnEnabledWidthPercentage:11,customStyle:{common:{paddingLeft:sp[2],paddingRight:sp[2]}}},transactionCategorizationMemoHeaderItem={key:"memo_and_receipt",value:memoReceipt,sortOrder:"ascending",width:transactionCategorizationColumnWidth(136,136,136,136),singleColumnEnabledWidthPercentage:6,doubleColumnDisabledWidthPercentage:7,doubleColumnEnabledWidthPercentage:5,customStyle:{common:{paddingLeft:sp[2],justifyContent:"center",display:"flex",alignItems:"center",paddingRight:sp[2]}}},transactionCategorizationAmountHeaderItem={key:"amount",value:amount$5,sortOrder:"ascending",width:transactionCategorizationColumnWidth(128,128,128,128),singleColumnEnabledWidthPercentage:12,doubleColumnDisabledWidthPercentage:12,doubleColumnEnabledWidthPercentage:13,customStyle:{common:{paddingRight:sp[4],justifyContent:"flex-end",display:"flex",alignItems:"center",paddingLeft:sp[2]}}},getTransactionCategorizationHeaderItemsData=(e=!0,t=!1)=>[transactionCategorizationVendorHeaderItem,transactionCategorizationPaymentAccountHeaderItem,transactionCategorizationCategoryHeaderItem,...e?[transactionCategorizationClassHeaderItem]:[],...t?[transactionCategorizationProjectHeaderItem]:[],transactionCategorizationDateHeaderItem,transactionCategorizationTransactionTypeHeaderItem,transactionCategorizationMemoHeaderItem,transactionCategorizationAmountHeaderItem],resolveTransactionCategorizationWidthPercentage=(e,t,n)=>{const o=(t?1:0)+(n?1:0);return 0===o?e.doubleColumnDisabledWidthPercentage??e.singleColumnEnabledWidthPercentage:2===o?e.doubleColumnEnabledWidthPercentage??e.singleColumnEnabledWidthPercentage:e.singleColumnEnabledWidthPercentage},compressedTransactionCategorizationHeaderItemsData=[{...transactionCategorizationVendorHeaderItem,width:new ResponsiveSized(60,60),singleColumnEnabledWidthPercentage:60,doubleColumnDisabledWidthPercentage:60,doubleColumnEnabledWidthPercentage:60,customStyle:{common:{paddingLeft:sp[9],paddingRight:sp[3]}}},{...transactionCategorizationAmountHeaderItem,width:new ResponsiveSized(40,40),singleColumnEnabledWidthPercentage:40,doubleColumnDisabledWidthPercentage:40,doubleColumnEnabledWidthPercentage:40}],defaultSortOption={sortKey:"date",sortOrder:"descending"},TABLE_BASE_WIDTH=1281,CLASS_COLUMN_WIDTH=240,PROJECT_COLUMN_WIDTH=240,getTransactionCategorizationTableMaxWidth=(e=!0,t=!1)=>{let n=TABLE_BASE_WIDTH;return e&&(n+=CLASS_COLUMN_WIDTH),t&&(n+=PROJECT_COLUMN_WIDTH),new ResponsiveSized(n,n,n,n,n,n)},TransactionCategorizationHeader=({sortConfig:e,isAccountingClassesEnabled:t,showProjectField:n,isDisabled:o,onColumnSortConfigChanged:i})=>{const r=useWindowSizeContext(),a=useQuickViewMode(),s=useFlexibleWidth(),l=React.useMemo(()=>a?compressedTransactionCategorizationHeaderItemsData:getTransactionCategorizationHeaderItemsData(t,n),[a,t,n]),[c,d]=React.useState(()=>cloneDeep(l));React.useEffect(()=>{const t=cloneDeep(l);for(const n of t)n.key===e.sortKey?n.sortOrder=e.sortOrder:n.sortOrder="ascending";d(t)},[l,e.sortKey,e.sortOrder]);const p=(t,n)=>{let o=n;e.sortKey===t&&(o="ascending"===n?"descending":"ascending"),i(t,o)};return jsxRuntimeExports.jsx(HeaderContainer$2,{"data-testid":generateDataTestId("transaction-categorization-header-container"),flexibleWidth:s,isQuickViewMode:a,windowSize:r,children:c.map((i,l)=>{const d=a||null!=o||null!=toTransactionCategorizationColumnNonSortableKeyStrict(i.key),u=resolveTransactionCategorizationWidthPercentage(i,t,n);return jsxRuntimeExports.jsxs(HeaderWrapper$2,{actualDataValue:i.key,"data-testid":generateDataTestId("transaction-categorization-header-wrapper",i.key),flexibleWidth:s,isLastItem:l===c.length-1,isQuickViewMode:a,isSortDisabled:d,isSticky:!0===i.isSticky,sortDataValue:e.sortKey,style:a&&i.customStyle?.quickView||i.customStyle?.common,windowSize:r,widthPercentage:u,wrapperWidth:"vendor"!==i.key||a?i.width:i?.clippedWidth??i.width,children:[jsxRuntimeExports.jsxs(HeaderNameWrapper$2,{"data-testid":generateDataTestId("transaction-categorization-header",!0===Boolean(i.value)?i.value:i.key),onClick:!0===d?void 0:()=>(e=>{null==toTransactionCategorizationColumnNonSortableKeyStrict(e.key)&&p(clientEpicState.toTransactionsSortKey(e.key),e.sortOrder)})(i),isSortDisabled:d,children:[jsxRuntimeExports.jsx(HeaderName$1,{children:i.value}),d?null:jsxRuntimeExports.jsx(SortIconWrapper$2,{sortConfig:e,headerData:i,"data-testid":generateDataTestId("transaction-categorization-sort-icon",i.key),children:jsxRuntimeExports.jsx(StyledSortIcon$1,{})})]}),d?null:jsxRuntimeExports.jsx(CloseIconContainer$1,{isSortDisabled:d,sortDataValue:e.sortKey,isVisible:e.sortKey===i.key&&e.sortKey!==defaultSortOption.sortKey,"data-testid":generateDataTestId("transaction-categorization-close-icon",i.key),children:jsxRuntimeExports.jsx(StyledCloseIcon$9,{onClick:()=>{p(defaultSortOption.sortKey,defaultSortOption.sortOrder)},"data-testid":generateDataTestId("transaction-categorization-close-icon-button",i.key)})})]},i.key)})})},HeaderContainer$2=styled$2.div`
|
|
81525
|
+
`,monthEndReportFormSectionId="monthEndReportFormSection",monthEndReportPage="monthEndReportPage",{common:common$m,cockpit:cockpit,dateFormat:dateFormat$c}=appLocale.getLocalizedStrings();function MonthEndInsightsForm({companyId:e,enableZeniGPTFeature:t,monthEndReportView:n,previewMode:o,customerRequestData:i,allThreadsSectionOpen:r,filterMetaData:a,newThreadMetadata:s,isZeniUser:l,selectedPeriod:c,improveUsingZeniGPTClick:d,onRemoveFileAttachment:p,onUpdateFileAttachment:u,onCloseAllThreadsSection:m,previewMonthEndReport:h,saveMonthEndReport:g,onEditClick:x,onOpenFileAttachmentSnackBar:f,onClickCustomerRequest:y,sendMonthEndReport:S}){const C=useTheme(),[b,$]=React.useState(),[v,E]=React.useState(0),[w,R]=React.useState(0),A=React.useRef(),j=React.useRef(null),T=React.useRef(null),{html:I,subject:k,improveUsingZeniGPTStatus:L}=n,[D,_]=React.useState(),[P,B]=React.useState(!1),[M,O]=React.useState(!1),F=React.useRef(null),N=React.useRef(null),z=useDelayUnmount(r,250),H="Not-Started"===n.fetchState||"In-Progress"===n.fetchState||"Not-Started"===n.companyMonthEndReportTemplatesData.fetchState||"In-Progress"===n.companyMonthEndReportTemplatesData.fetchState,{threadsRefs:V,sortedThreads:W,threadsPositions:U,observer:G,unresolvedThreadsMap:q,handleRemoveFloatingThread:Q}=useFloatingThreads(a,F,!o,H),Y=React.useCallback(()=>{r?null!=N.current&&R(Math.min((N.current.offsetWidth-MONTH_END_INSIGHTS_FORM_WIDTH-sp[4])/2,N.current.offsetWidth-MONTH_END_INSIGHTS_FORM_WIDTH-COMMENTS_DRAWER_MAXIMUM_WIDTH-sp[4])):null!=N.current&&E(Math.min((N.current.offsetWidth-MONTH_END_INSIGHTS_FORM_WIDTH-sp[4])/2,N.current.offsetWidth-MONTH_END_INSIGHTS_FORM_WIDTH-COMMENTS_SECTION_MINIMUM_WIDTH-sp[4]))},[r]);React.useEffect(()=>{Y()},[r,Y]),React.useEffect(()=>(window.addEventListener("resize",Y),()=>{window.removeEventListener("resize",Y)}),[Y]);const{openThread:K,addThread:Z,setOpenThread:X}=React.useContext(ThreadsContext),J=useHandleSelection(MONTH_END_REPORT_CANVAS,!1,!o),ee=F.current?.getBoundingClientRect(),te=null!=J&&J.coords&&ee?{left:J.coords.left-ee.left,top:J.coords.top-ee.top}:void 0,ne=React.useCallback(()=>{const t=window.getSelection()?.getRangeAt(0),n=getSelectionData();if(!t||null==n)return;const o={...s,...n,startPath:n.startPath.join(),endPath:n.endPath.join()},i=`${nanoid()}${NEW_THREAD_SUFFIX}`;Z(i,{type:"thread",visibility:"public",id:i,roomId:`cockpit_${e}`,createdAt:new Date,comments:[],metadata:o,updatedAt:new Date,resolved:!1}),X(i)},[Z,e,s,X]);React.useEffect(()=>{null!=K&&r&&m()},[r,K,m]);const oe="In-Progress"===L.fetchState,ie=useForm({mode:"all",defaultValues:getDefaultValues$8(n),values:getDefaultValues$8(n)}),[re,ae]=React.useState(!1),{agentInsightEdits:se,agentInsightEditsRef:le,hasUnpersistedAgentEdits:ce,onAgentInsightEdit:de,saveState:pe}=useAgentInsightEdits({save:()=>me(),saveStatus:n.saveMonthEndReportStatus}),ue=ie.handleSubmit(e=>{const{recipientEmailList:t,subject:n}=e[monthEndReportFormSectionId];if(!ce)if(!0===o)S?.(D?.id);else{const e=b?.replace(EMPTY_HTML_CHECKER,common$m.strings.empty);null!=t&&null!=n&&h(t,n,D?.id,null!=e&&e.length>0?b:void 0,le.current)}}),me=()=>{const e=ie.getValues(),{recipientEmailList:t,subject:o}=e[monthEndReportFormSectionId];g(t??n.recipientEmailList??[],o??common$m.strings.empty,D?.id,b,le.current)};React.useEffect(()=>{$(n.zeniRequestsHtml)},[n.zeniRequestsHtml]),React.useEffect(()=>{A.current=D},[D]),React.useEffect(()=>{_(clientEpicState.mapAttachmentFileToAttachmentFilePayload(n.attachmentFile)),B(!1)},[n.attachmentFile]),React.useEffect(()=>{M&&f()},[M,f]);const he=clientEpicState.zeniDate(`${c.year}-${c.month}-01`).format(dateFormat$c.visual.MMMMFormat),ge=cockpit.monthEndReport.agentInsights,xe=n.templateData,fe=!o&&hasAgentInsights(xe),ye=null!=I?I.split(MONTH_END_EDITOR_PLACEHOLDER):[],Se=n.concatenatedHtml,Ce=(n.zeniRequestsData??[]).length+getTemplatesFromTemplatedData(n.companyMonthEndReportTemplatesData).length;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Content,{ref:N,children:[jsxRuntimeExports.jsx(EmptySection,{availableWidth:r?w:v}),jsxRuntimeExports.jsxs(FormContainer,{children:[jsxRuntimeExports.jsx(FormProvider,{...ie,children:jsxRuntimeExports.jsx("form",{id:uniqueName$b(monthEndReportPage),onSubmit:ue,children:jsxRuntimeExports.jsxs(SectionContainer$2,{children:[jsxRuntimeExports.jsx(MonthEndReportSection,{sectionId:monthEndReportFormSectionId,previewMode:o,subject:k}),!o&&Ce>0?jsxRuntimeExports.jsx(MonthEndReportCustomerRequestSection,{totalItems:Ce,onClickCustomerRequest:y}):null,jsxRuntimeExports.jsxs(EmailContent,{id:MONTH_END_REPORT_CANVAS,ref:F,children:[jsxRuntimeExports.jsxs(EmailContentWrapper,{className:"monthEndReportCanvasWrapper",children:[null!=D||M?jsxRuntimeExports.jsx(EmailAttachmentContainer,{"data-testid":generateDataTestId("email-attachment-container"),onClick:()=>{T.current&&T.current.scrollIntoView({behavior:"smooth"})},children:jsxRuntimeExports.jsx(CircleWithAttachmentSuccessIcon,{fileSizeError:M,setFileSizeError:O,loading:!1,showAnimation:!o&&P})}):null,o?jsxRuntimeExports.jsx(BodySection,{dangerouslySetInnerHTML:{__html:getHTMLWithCommentingSections(Se)}}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[fe?jsxRuntimeExports.jsxs(AgentInsightsToggleRow,{children:[jsxRuntimeExports.jsx(AgentInsightsStatus,{role:"status",children:"failed"===pe?ge.saveFailed:"saving"===pe?ge.saving:null}),jsxRuntimeExports.jsx(Button$4,{type:"button",size:"small",dataTestId:"agent_insights_edit_toggle",label:re?ge.doneButtonLabel:ge.editButtonLabel,onClick:()=>ae(!re)})]}):null,jsxRuntimeExports.jsxs(TopSection,{id:MONTH_END_EMAIL_HEADER_SECTION,children:[re&&null!=xe?jsxRuntimeExports.jsx(AgentInsightsEditor,{edits:se,templateData:xe,onEdit:de}):jsxRuntimeExports.jsx(StandardRegular,{dangerouslySetInnerHTML:{__html:null!=ye[0]?ye[0]+"</body></html>":common$m.strings.empty}}),jsxRuntimeExports.jsxs(NoteContainer,{children:[jsxRuntimeExports.jsx(EditorTitle,{children:cockpit.monthEndReport.editorTitle}),jsxRuntimeExports.jsx(EditorNote,{children:cockpit.monthEndReport.editorNote})]})]}),jsxRuntimeExports.jsx(EditorContainer,{id:MONTH_END_EMAIL_EDITOR_SECTION,children:jsxRuntimeExports.jsx(Editor,{handleFileInputClick:()=>{null!=j.current&&j.current.click()},fileAttached:null!=D,enableZeniGPTFeature:t,isZeniGPTResponseLoading:oe,initialHtmlString:n.zeniRequestsHtml,improveUsingZeniGPTClick:d,setZeniRequestsHtml:$,customerRequestData:i})}),re?null:jsxRuntimeExports.jsx(BodySection,{id:MONTH_END_EMAIL_BODY_SECTION,dangerouslySetInnerHTML:{__html:null!=ye[1]?"<html><body>"+ye[1]:common$m.strings.empty}})]}),null!=D?jsxRuntimeExports.jsx(FileAttachment,{ref:T,fileName:D.name,fileSize:base64FileSize(D.data),onRemove:()=>{void 0!==D&&null!=D&&(p([D.id]),_(void 0),B(!1))},isRemovable:!o}):null]}),te?jsxRuntimeExports.jsx(AddThreadFloating,{style:{zIndex:15},coords:te,alignment:J.alignment,onClick:ne}):null,jsxRuntimeExports.jsx(TextHighlightSection,{canvasContainerRef:F,sortedThreads:W,editorMode:!o})]})]})})}),jsxRuntimeExports.jsx(FileInputElement,{name:D?.name??common$m.strings.empty,fileRef:j,sizeLimit:allowedFileSize,acceptableTypes:allowedFileType,onFileChange:async t=>{(t=>{const n=t.target.files?t.target.files[0]:null;if(n)if(!clientEpicState.toSupportedAttachmentFileType(n.type)||M)console.warn("Please select a valid file.");else{const t=new FileReader;t.onload=function(t){const o=t.target?.result;if("string"==typeof o){const t={data:o.split(",")[1],name:n.name,id:clientEpicState.getAttachmentFileIdByFileName(e,n.name)};_(t),B(!0),u([t])}},t.readAsDataURL(n)}})(t)},onFileSizeError:e=>O(e),multiple:!1})]}),!0===l?z?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AllThreadsContainer,{allThreadsSectionOpen:r,children:jsxRuntimeExports.jsx(AllThreadsSection,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${C.colors.grey3}`},drawerSectionStyle:{width:`calc(100% - ${Space.sp5} - ${Space.sp5})`,backgroundColor:C.colors.background},threadsContainerStyle:{paddingBottom:o?"160px":Space.sp12},collapsibleThreadStyle:{width:`calc(100% - ${Space.sp4})`},allowComposer:!1,drawerTitle:common$m.texts.comments,filter:a,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(e,t)=>{X(t);const n=W.findIndex(e=>e[0]===t);m(),V.current?.[n]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>m()})}),jsxRuntimeExports.jsx(EmptySection,{availableWidth:v})]}):jsxRuntimeExports.jsx(FloatingThreads,{observer:G,canvasContainerRef:F,sortedThreads:W,threadsPositions:U,threadsRefs:V,unresolvedThreadsMap:q,editorMode:!o,style:{minWidth:`${v}px`,position:"relative",height:"fit-content",top:`${F.current?.offsetTop}px`,minHeight:Space.sp12},handleRemoveFloatingThread:Q}):jsxRuntimeExports.jsx(EmptySection,{availableWidth:v})]}),jsxRuntimeExports.jsx(Footer$7,{style:{zIndex:10},leftSideComponent:null!=n.lastDraftSavedDate&&!1===o?jsxRuntimeExports.jsx(UserWithTimestamp,{time:n.lastDraftSavedDate,user:n.reportLastSavedByUser,timeStampLabel:cockpit.monthEndReport.timeStampLabel}):null,formId:uniqueName$b(monthEndReportPage),cancelBtn:{isDisabled:oe,label:!0===o?common$m.edit:common$m.texts.saveChanges,onClick:!0===o?x:me,style:{width:"136px",padding:`${Space.sp0} ${Space.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:"In-Progress"===n.saveMonthEndReportStatus.fetchState,reverseSpinnerColor:!1},primaryBtn:{isDisabled:oe||!o&&ce,isLoading:!0===o?"In-Progress"===n.sendMonthEndReportStatus.fetchState:"In-Progress"===n.previewMonthEndReportStatus.fetchState,style:{width:!0===o?"unset":"136px"},label:!0===o?cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",he):common$m.texts.preview,size:"medium"}})]})}const getDefaultValues$8=e=>({[monthEndReportFormSectionId]:{recipientEmailList:e.recipientEmailList,subject:e.subject??common$m.strings.empty}}),uniqueName$b=e=>`${e}_form`,FlexibleWidthContext=React.createContext(!1),FlexibleWidthProvider=FlexibleWidthContext.Provider,useFlexibleWidth=()=>React.useContext(FlexibleWidthContext),DEFAULT_LIST_HEADER_HEIGHT_REGULAR=sp[5],DEFAULT_LIST_ITEM_HEIGHT_COMPACT=44,DEFAULT_ROW_VERTICAL_PADDING=12,TRANSACTIONS_CATEGORIZATION_COLUMN_NON_SORT_KEYS=["memo_and_receipt","activity","paymentAccount","receipt"],toTransactionCategorizationColumnNonSortableKeyStrict=e=>clientEpicState.stringToUnionStrict(e,TRANSACTIONS_CATEGORIZATION_COLUMN_NON_SORT_KEYS),{expenseAutomation:{transactions:{header:{toFrom:toFrom,memoReceipt:memoReceipt}}},common:{texts:{payee:vendors,category:category$2,class:classText$1,project:projectText,date:date$3,transactionType:type,amount:amount$5}}}=appLocale.getLocalizedStrings(),MEDIUM_REGULAR_MIN_PX=905,LARGE_MIN_PX=1240,EXTRA_LARGE_MIN_PX=1440,ULTRA_LARGE_MIN_PX=1920;function transactionCategorizationColumnWidth(e,t,n,o){const i=t,r=Math.round(t*LARGE_MIN_PX/MEDIUM_REGULAR_MIN_PX),a=Math.round(t*EXTRA_LARGE_MIN_PX/MEDIUM_REGULAR_MIN_PX),s=Math.round(t*ULTRA_LARGE_MIN_PX/MEDIUM_REGULAR_MIN_PX),l=n??a,c=o??l;return new ResponsiveSized(e,t,i,Math.min(r,l),Math.min(a,l),Math.min(s,c))}const transactionCategorizationVendorHeaderItem={key:"vendor",value:vendors,sortOrder:"ascending",width:transactionCategorizationColumnWidth(266,266,266,266),clippedWidth:transactionCategorizationColumnWidth(258,258,258,258),singleColumnEnabledWidthPercentage:15,doubleColumnDisabledWidthPercentage:19,doubleColumnEnabledWidthPercentage:12,customStyle:{common:{paddingLeft:sp[6],paddingRight:sp[2]},quickView:{paddingLeft:sp[9]}},isSticky:!1},transactionCategorizationPaymentAccountHeaderItem={key:"payment_account",value:toFrom,sortOrder:"ascending",width:transactionCategorizationColumnWidth(230,230,230,230),singleColumnEnabledWidthPercentage:14,doubleColumnDisabledWidthPercentage:18,doubleColumnEnabledWidthPercentage:11,customStyle:{common:{paddingLeft:sp[7],paddingRight:sp[2]}}},transactionCategorizationCategoryHeaderItem={key:"category",value:category$2,sortOrder:"ascending",width:transactionCategorizationColumnWidth(240,240,240,240),singleColumnEnabledWidthPercentage:17,doubleColumnDisabledWidthPercentage:22,doubleColumnEnabledWidthPercentage:13,customStyle:{common:{paddingLeft:sp[7],paddingRight:sp[2]}}},transactionCategorizationClassHeaderItem={key:"class",value:classText$1,sortOrder:"ascending",width:transactionCategorizationColumnWidth(240,240,240,240),singleColumnEnabledWidthPercentage:16,doubleColumnEnabledWidthPercentage:13,customStyle:{common:{paddingLeft:sp[7],paddingRight:sp[2]}}},transactionCategorizationProjectHeaderItem={key:"project",value:projectText,sortOrder:"ascending",width:transactionCategorizationColumnWidth(240,240,240,240),singleColumnEnabledWidthPercentage:16,doubleColumnEnabledWidthPercentage:13,customStyle:{common:{paddingLeft:sp[7],paddingRight:sp[2]}}},transactionCategorizationDateHeaderItem={key:"date",value:date$3,sortOrder:"descending",width:transactionCategorizationColumnWidth(116,116,116,116),singleColumnEnabledWidthPercentage:10,doubleColumnDisabledWidthPercentage:11,doubleColumnEnabledWidthPercentage:9,customStyle:{common:{paddingLeft:sp[2],paddingRight:sp[2]}}},transactionCategorizationTransactionTypeHeaderItem={key:"transaction_type",value:type,sortOrder:"descending",width:transactionCategorizationColumnWidth(165,165,165,165),singleColumnEnabledWidthPercentage:10,doubleColumnDisabledWidthPercentage:11,doubleColumnEnabledWidthPercentage:11,customStyle:{common:{paddingLeft:sp[2],paddingRight:sp[2]}}},transactionCategorizationMemoHeaderItem={key:"memo_and_receipt",value:memoReceipt,sortOrder:"ascending",width:transactionCategorizationColumnWidth(136,136,136,136),singleColumnEnabledWidthPercentage:6,doubleColumnDisabledWidthPercentage:7,doubleColumnEnabledWidthPercentage:5,customStyle:{common:{paddingLeft:sp[2],justifyContent:"center",display:"flex",alignItems:"center",paddingRight:sp[2]}}},transactionCategorizationAmountHeaderItem={key:"amount",value:amount$5,sortOrder:"ascending",width:transactionCategorizationColumnWidth(128,128,128,128),singleColumnEnabledWidthPercentage:12,doubleColumnDisabledWidthPercentage:12,doubleColumnEnabledWidthPercentage:13,customStyle:{common:{paddingRight:sp[4],justifyContent:"flex-end",display:"flex",alignItems:"center",paddingLeft:sp[2]}}},getTransactionCategorizationHeaderItemsData=(e=!0,t=!1)=>[transactionCategorizationVendorHeaderItem,transactionCategorizationPaymentAccountHeaderItem,transactionCategorizationCategoryHeaderItem,...e?[transactionCategorizationClassHeaderItem]:[],...t?[transactionCategorizationProjectHeaderItem]:[],transactionCategorizationDateHeaderItem,transactionCategorizationTransactionTypeHeaderItem,transactionCategorizationMemoHeaderItem,transactionCategorizationAmountHeaderItem],resolveTransactionCategorizationWidthPercentage=(e,t,n)=>{const o=(t?1:0)+(n?1:0);return 0===o?e.doubleColumnDisabledWidthPercentage??e.singleColumnEnabledWidthPercentage:2===o?e.doubleColumnEnabledWidthPercentage??e.singleColumnEnabledWidthPercentage:e.singleColumnEnabledWidthPercentage},compressedTransactionCategorizationHeaderItemsData=[{...transactionCategorizationVendorHeaderItem,width:new ResponsiveSized(60,60),singleColumnEnabledWidthPercentage:60,doubleColumnDisabledWidthPercentage:60,doubleColumnEnabledWidthPercentage:60,customStyle:{common:{paddingLeft:sp[9],paddingRight:sp[3]}}},{...transactionCategorizationAmountHeaderItem,width:new ResponsiveSized(40,40),singleColumnEnabledWidthPercentage:40,doubleColumnDisabledWidthPercentage:40,doubleColumnEnabledWidthPercentage:40}],defaultSortOption={sortKey:"date",sortOrder:"descending"},TABLE_BASE_WIDTH=1281,CLASS_COLUMN_WIDTH=240,PROJECT_COLUMN_WIDTH=240,getTransactionCategorizationTableMaxWidth=(e=!0,t=!1)=>{let n=TABLE_BASE_WIDTH;return e&&(n+=CLASS_COLUMN_WIDTH),t&&(n+=PROJECT_COLUMN_WIDTH),new ResponsiveSized(n,n,n,n,n,n)},TransactionCategorizationHeader=({sortConfig:e,isAccountingClassesEnabled:t,showProjectField:n,isDisabled:o,onColumnSortConfigChanged:i})=>{const r=useWindowSizeContext(),a=useQuickViewMode(),s=useFlexibleWidth(),l=React.useMemo(()=>a?compressedTransactionCategorizationHeaderItemsData:getTransactionCategorizationHeaderItemsData(t,n),[a,t,n]),[c,d]=React.useState(()=>cloneDeep(l));React.useEffect(()=>{const t=cloneDeep(l);for(const n of t)n.key===e.sortKey?n.sortOrder=e.sortOrder:n.sortOrder="ascending";d(t)},[l,e.sortKey,e.sortOrder]);const p=(t,n)=>{let o=n;e.sortKey===t&&(o="ascending"===n?"descending":"ascending"),i(t,o)};return jsxRuntimeExports.jsx(HeaderContainer$2,{"data-testid":generateDataTestId("transaction-categorization-header-container"),flexibleWidth:s,isQuickViewMode:a,windowSize:r,children:c.map((i,l)=>{const d=a||null!=o||null!=toTransactionCategorizationColumnNonSortableKeyStrict(i.key),u=resolveTransactionCategorizationWidthPercentage(i,t,n);return jsxRuntimeExports.jsxs(HeaderWrapper$2,{actualDataValue:i.key,"data-testid":generateDataTestId("transaction-categorization-header-wrapper",i.key),flexibleWidth:s,isLastItem:l===c.length-1,isQuickViewMode:a,isSortDisabled:d,isSticky:!0===i.isSticky,sortDataValue:e.sortKey,style:a&&i.customStyle?.quickView||i.customStyle?.common,windowSize:r,widthPercentage:u,wrapperWidth:"vendor"!==i.key||a?i.width:i?.clippedWidth??i.width,children:[jsxRuntimeExports.jsxs(HeaderNameWrapper$2,{"data-testid":generateDataTestId("transaction-categorization-header",!0===Boolean(i.value)?i.value:i.key),onClick:!0===d?void 0:()=>(e=>{null==toTransactionCategorizationColumnNonSortableKeyStrict(e.key)&&p(clientEpicState.toTransactionsSortKey(e.key),e.sortOrder)})(i),isSortDisabled:d,children:[jsxRuntimeExports.jsx(HeaderName$1,{children:i.value}),d?null:jsxRuntimeExports.jsx(SortIconWrapper$2,{sortConfig:e,headerData:i,"data-testid":generateDataTestId("transaction-categorization-sort-icon",i.key),children:jsxRuntimeExports.jsx(StyledSortIcon$1,{})})]}),d?null:jsxRuntimeExports.jsx(CloseIconContainer$1,{isSortDisabled:d,sortDataValue:e.sortKey,isVisible:e.sortKey===i.key&&e.sortKey!==defaultSortOption.sortKey,"data-testid":generateDataTestId("transaction-categorization-close-icon",i.key),children:jsxRuntimeExports.jsx(StyledCloseIcon$9,{onClick:()=>{p(defaultSortOption.sortKey,defaultSortOption.sortOrder)},"data-testid":generateDataTestId("transaction-categorization-close-icon-button",i.key)})})]},i.key)})})},HeaderContainer$2=styled$2.div`
|
|
81246
81526
|
top: ${Space.sp0};
|
|
81247
81527
|
left: ${Space.sp0};
|
|
81248
81528
|
height: ${DEFAULT_LIST_HEADER_HEIGHT_REGULAR}px;
|
|
@@ -81336,7 +81616,7 @@ to {
|
|
|
81336
81616
|
`,HeaderName$1=styled$2(ExtraSmallSemiBold)`
|
|
81337
81617
|
display: flex;
|
|
81338
81618
|
white-space: nowrap;
|
|
81339
|
-
`,expenseAutomationTransactionsPage="expenseAutomationTransactionsPage",transactionCategorizationListTableSectionId="transactionCategorizationListTable",transactionDetailLineCategory="account",transactionDetailLineClass="class",transactionDetailLineProject="project",transactionDetailLineEntitySelection="lineEntitySelection",transactionDetailLineEntity="lineEntity",recommendations="recommendations",lineInfo="lineInfo",vendorDetails="vendorDetails",customerDetails="customerDetails",selectedTransactionIds="selectedTransactionIds",uniqueName$a=(e,t,n)=>`${e}.${n}.${t}`,SvgCheque=e=>React__namespace.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},React__namespace.createElement("path",{d:"M4.85022 13.5836L5.52057 12.9133C5.63229 12.8016 5.77164 12.7217 5.92438 12.6815C6.07712 12.6413 6.23779 12.6424 6.38999 12.6846C6.54218 12.7268 6.68046 12.8086 6.7907 12.9217C6.90094 13.0348 6.97919 13.1751 7.01747 13.3283L7.08174 13.5836L7.8119 13.0972C7.98361 12.9827 8.1897 12.9312 8.39508 12.9515C8.60046 12.9719 8.79245 13.0628 8.93837 13.2087L9.31326 13.5836H11.0985",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M17.4206 6H2.24629C2.12792 6 2.01441 6.04702 1.93071 6.13072C1.84701 6.21442 1.79999 6.32794 1.79999 6.4463V17.1576C1.79999 17.276 1.84701 17.3895 1.93071 17.4732C2.01441 17.5569 2.12792 17.6039 2.24629 17.6039H21.8837C22.0021 17.6039 22.1156 17.5569 22.1993 17.4732C22.283 17.3895 22.33 17.276 22.33 17.1576V6.4463C22.33 6.32794 22.283 6.21442 22.1993 6.13072C22.1156 6.04702 22.0021 6 21.8837 6H17.4206Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M16.0854 9.6521H19.6559V12.0656H16.0854V9.6521Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:underscore$1,hyphen:hyphen$8,empty:empty$4,colon:colon$2},tooltips:{addReceipt:addReceipt,viewReceipt:viewReceipt$1,viewReceipts:viewReceipts$1},texts:{account:account,addCategory2:addCategory2,addClass2:addClass2,addPayee:addPayee,description2:description2$1,memo:memoLabel,method:method}},expenseAutomation:{transactions:transactionsStrings},dateFormat:dateFormat$b}=appLocale.getLocalizedStrings(),D$k={containerPaddingLeftRight:new ResponsiveSized(sp[3],sp[3]),containerPaddingTopBottom:new ResponsiveSized(6,6),controlHeight:new ResponsiveSized(sp[4],sp[5]),nameLogoWidth:new ResponsiveSized(sp[2],sp[3]),nameLogoHeight:new ResponsiveSized(sp[2],sp[3]),borderRadius:6},RecommendationCellSkeleton=({windowSize:e,wrapperWidth:t,widthPercentage:n})=>jsxRuntimeExports.jsxs(RowItemContainer$1,{windowSize:e,wrapperWidth:t,widthPercentage:n,className:"item-value-container",children:[jsxRuntimeExports.jsx(RecommendationIconContainer,{children:jsxRuntimeExports.jsx("span",{})}),jsxRuntimeExports.jsx(SelectContainerWrapper,{children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[4]})})]}),isJournalEntryCreditLine=(e,t)=>"journal_entry"===e&&"credit"===t,TransactionCategorizationListRow=({transactionView:e,transaction:t,sectionId:n,vendorSearchAutoCompleteData:o,vendorSearchAutoCompleteActions:i,selectedTab:r,containerRef:a,listContainerRef:s,isAccountingClassesEnabled:l,showProjectField:c,isCOTEnabled:d,isCreateTransferEntryFromExpenseEnabled:p,transferConvertibleSourceTypes:u,isPanelSelected:m,cotTracking:h,onTransactionCategorizationRowClick:g,setCurrentTransactionInAction:x,vendorLoadOptions:f,openTooltipId:y,setOpenTooltipId:S,onOpenTransferDrawer:C,authParams:b,onUploadTransactionReceipt:$,rowCommenting:v})=>{const E=useWindowSizeContext(),w=useQuickViewMode(),R=useFlexibleWidth(),{isCommentingActive:A,rowRef:j,totalThreadCount:T,isThreadsLoading:I,handleActiveThreadClick:k,handleAddRowCommentClick:L}=v,[D,_]=React.useState(!1),{lineItemById:P,sortedLineItems:B}=t.transactionReviewLocalData,M=t.transactionReviewLocalData.tabSpecificLineItems?.[r]||[],O=B.filter(e=>-1!==M.indexOf(e)),F=[];O.forEach(e=>{F.push(P[e])});const{accountList:N,accountsHierarchyList:z,classHierarchyList:H,classList:V,projectList:W,uncategorizedAccounts:U,transactions:G,selectedCheckBoxTransactionIds:q}=e,Q=W?.projects??[],Y=e.uploadReceiptStatusById,K=q.includes(t.transactionId),Z=!0!==w&&!0===K,X=useTheme(),J={control:()=>({marginLeft:-2,backgroundColor:D?X.colors.background:X.colors.grey5,minHeight:sp[5]}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:sp[0],height:sp[5],backgroundColor:X.colors.grey5}),menu:()=>({width:"150%",background:X.colors.grey5}),singleValue:()=>({color:D||Z?X.colors.primary:X.colors.champion,paddingLeft:sp[2]}),input:e=>({...e,color:D||Z?X.colors.primary:X.colors.champion,textAlign:"left",paddingLeft:sp[2]}),menuPortal:e=>({...e,zIndex:10})},ee={...J,singleValue:e=>({...e,color:D||Z?X.colors.primary:X.colors.champion}),menu:()=>({marginTop:sp[1],marginLeft:-sp[2]}),input:e=>({...e,color:D||Z?X.colors.primary:X.colors.champion,textAlign:"left",...textStyles.standardMedium}),control:e=>({...e,height:sp[5]})},te=G.find(e=>e.id===t.transactionId),ne=React.useRef(null),[oe,ie]=React.useState(void 0),[re,ae]=React.useState("bottom");return React.useEffect(()=>{if(void 0===oe)return;const e=s?.current,t=e?._outerRef??null,n=()=>{const e=ne.current;if(null==e||null==t)return;const n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.scrollTop+(n.bottom-o.top),r=t.scrollHeight-i;ae(r>=288?"bottom":"top")};return n(),window.addEventListener("resize",n),t?.addEventListener("scroll",n),()=>{window.removeEventListener("resize",n),t?.removeEventListener("scroll",n)}},[s,oe]),jsxRuntimeExports.jsx(RowWrapper,{ref:j,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),children:jsxRuntimeExports.jsxs(Container$p,{className:"categorization-row-card",windowSize:E,isSelected:K,isPanelSelected:m,isQuickViewMode:w,isHovered:D,style:{position:"relative"},children:[jsxRuntimeExports.jsx(RowOuterContainer,{windowSize:E,isQuickViewMode:w,children:F.map((e,a)=>jsxRuntimeExports.jsx(RowInnerContainer,{ref:oe===a?ne:void 0,isFirstItem:0===a,isLastItem:a===F.length-1,"data-testid":generateDataTestId("transaction-categorization-list-row",e.lineId),flexibleWidth:R,isQuickViewMode:w,windowSize:E,onClick:e=>((e,t)=>{const{transactionType:n}=t.transactionReviewLocalData;if(!0!==w){const t=e.target;let n=t;for(;n;){if(n.classList.contains("select-value-container")||n!==t&&n.classList.contains("item-value-container")||n.classList.contains("grouped-single-select-field__value-container")||n.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||n.classList.contains("grouped-single-select-field__input")||n.classList.contains("grouped-single-select-field__menu"))return;n=n.parentElement}}null!=n&&g(t.transactionId,n)})(e,t),children:jsxRuntimeExports.jsx(TransactionCategorizationListItemRow,{isAccountingClassesEnabled:l,showProjectField:c,allProjectList:Q,line:e,isHovered:D||Z||m,isSelected:K,isQuickViewMode:w,lineIndex:a,sectionId:n,transaction:t,currentTransaction:te,windowSize:E,accountsHierarchyList:z,classHierarchyList:H,allAccountList:N,allClassList:V,uncategorizedAccounts:U,vendorSearchAutoCompleteData:o,vendorSearchAutoCompleteActions:i,setCurrentTransactionInAction:x,vendorLoadOptions:f,customStyle:J,customStyleAutoComplete:ee,recommendations:e.recommendationsWithCOT,selectedTab:r,isCOTEnabled:d,menuPlacement:re,cotTracking:h,openTooltipId:y,setOpenTooltipId:S,authParams:b,uploadReceiptStatus:Y?.[t.transactionId],onUploadTransactionReceipt:$,onDropdownClose:()=>ie(void 0),onDropdownOpen:()=>ie(a),onOpenTransferDrawer:C,isCreateTransferEntryFromExpenseEnabled:p,transferConvertibleSourceTypes:u})},`${t.transactionId}.${e.lineId}.${a}`))},t.transactionId),!0===w&&A&&T>0?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,children:jsxRuntimeExports.jsx(ActiveThreadCount,{isLoading:I,count:T,style:{backgroundColor:X.colors.grey4,borderRadius:"50% 50% 50% 0",cursor:"pointer"},openThread:k})}):null,!0===w&&A&&!1===I&&0===T?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,innerClassName:"comment-add-icon",children:jsxRuntimeExports.jsx(StyledAddThreadsIcon$1,{"data-testid":generateDataTestId("expense-automation-transaction-row-add-comment",t.transactionId),onClick:L})}):null,jsxRuntimeExports.jsx(ExpenseAutomationRowThreadPortals,{state:v})]},t.transactionId)})},TransactionCategorizationListItemRow=({accountsHierarchyList:e,allAccountList:t,allClassList:n,allProjectList:o,showProjectField:i,classHierarchyList:r,customStyle:a,customStyleAutoComplete:s,line:l,lineIndex:c,transaction:d,currentTransaction:p,windowSize:u,uncategorizedAccounts:m,isHovered:h=!1,isQuickViewMode:g=!1,sectionId:x,recommendations:f,vendorSearchAutoCompleteData:y,selectedTab:S,isCOTEnabled:C,menuPlacement:b,cotTracking:$,openTooltipId:v,setCurrentTransactionInAction:E,vendorLoadOptions:w,setOpenTooltipId:R,isAccountingClassesEnabled:A,isCreateTransferEntryFromExpenseEnabled:j,transferConvertibleSourceTypes:T,onDropdownClose:I,onDropdownOpen:k,authParams:L,onOpenTransferDrawer:D,uploadReceiptStatus:_,onUploadTransactionReceipt:P})=>{const{transactionDate:B,transactionType:M,transactionTypeName:O,memo:F}=d.transactionReviewLocalData,[N,z]=React.useState(!1),H=React.useMemo(()=>"undefined"!=typeof document?document.body:null,[]),V=React.useMemo(()=>({...a,control:()=>({height:0,minHeight:0,overflow:"hidden",border:"none",padding:0,margin:0}),menuPortal:e=>({...e,zIndex:TRANSFER_MENU_Z_INDEX})}),[a]),W=p?.account?.accountType,U=(p?.totalLinesCount??0)>1,G=!0===j&&isTransactionTypeDropdownInteractive(W,M)&&!U,q=!0===j&&isTransactionTypeDropdownInteractive(W,M)&&U,Q=p?.accountIntegrationId,Y=uniqueName$a(x,"transactionType",c.toString()),{setValue:K,watch:Z}=useFormContext(),X=Z(Y),J=React.useRef(X?.selectedOption);React.useEffect(()=>{const e=X?.selectedOption,t="transfer"===e||"credit_card_payment"===e,n="transfer"===J.current||"credit_card_payment"===J.current;if(J.current=e,t&&!n&&null!=D){z(!1);const t=d.transactionReviewLocalData,n=t.sortedLineItems.map(e=>t.lineItemById[e]).find(e=>null!=e);null!=n&&(D({transactionId:d.transactionId,transactionType:e,sourceTransactionType:coerceSourceTransactionType(M),sourceTransactionTypeName:O,payee:t.vendorDetails?.name??t.vendor?.name??"",category:n.account?.accountName??"",className:n.class?.className??"",amount:n.amount,debitAccountIntegrationId:Q??"",debitAccountName:p?.account?.accountName??"",memo:t.memo??""}),K(Y,buildTypeDropdownValue(M??"expense",W,O)))}},[X?.selectedOption,D,K,M,O,Y,d.transactionId,d.transactionReviewLocalData,p,Q,W]);const ee=React.useCallback((e,t)=>{null!=$?.onCOTView&&$.onCOTView(l.lineId,d.transactionId,e,t)},[$,l.lineId,d.transactionId]),te=l.lineDescription,ne=React.useMemo(()=>{if(!0===Boolean(te)||!0===Boolean(F))return[{title:description2$1,description:!0===Boolean(te)?te:hyphen$8},{title:memoLabel,description:!0===Boolean(F)?F:hyphen$8}]},[F,te]),oe=uniqueName$a(x,transactionDetailLineEntitySelection,c.toString()),ie=uniqueName$a(x,transactionDetailLineCategory,c.toString()),re=uniqueName$a(x,transactionDetailLineClass,c.toString()),ae=uniqueName$a(x,transactionDetailLineProject,c.toString()),se=(e,t)=>{if(g)return;let n;switch(t){case"vendor":n=oe;break;case"category":n=ie;break;case"class":n=re;break;default:return}K(`${n}.selectedOption`,e,{shouldValidate:!0,shouldDirty:!0})},le=useTheme(),ce=React.useMemo(()=>null!=p&&!0===clientEpicState.isVendorTransaction(p)?{id:d.transactionReviewLocalData.customer?.id??"",logo:d.transactionReviewLocalData.customer?.logo,name:d.transactionReviewLocalData.customer?.name??""}:{id:l.customer?.id??"",logo:l.customer?.logo,name:l.customer?.name??""},[p,l.customer?.id,l.customer?.logo,l.customer?.name,d.transactionReviewLocalData.customer?.id,d.transactionReviewLocalData.customer?.logo,d.transactionReviewLocalData.customer?.name]),de=React.useMemo(()=>null!=p&&!0===clientEpicState.isVendorTransaction(p)?{id:d.transactionReviewLocalData.vendor?.id??"",logo:d.transactionReviewLocalData.vendor?.logo,name:d.transactionReviewLocalData.vendor?.name??""}:{id:l.vendor?.id??"",logo:l.vendor?.logo,name:l.vendor?.name??""},[p,l.vendor?.id,l.vendor?.logo,l.vendor?.name,d.transactionReviewLocalData.vendor?.id,d.transactionReviewLocalData.vendor?.logo,d.transactionReviewLocalData.vendor?.name]),pe=l[transactionDetailLineClass]?.classId,ue=l[transactionDetailLineClass]?.className,me=l.project?.projectId,he=l.project?.projectName,ge=l[transactionDetailLineCategory]?.qboId??l[transactionDetailLineCategory]?.accountId,xe=l[transactionDetailLineCategory]?.accountName,fe=ce?.id,ye=de?.id,Se=de?.name,Ce=React.useMemo(()=>({vendor:Se??ce?.name,category:xe,className:ue,date:B?.format(dateFormat$b.visual.MMMDCommaYYYYformat),memo:!0===Boolean(te)?te:F,amount:amountToString("0,0.[00]",l.amount,!0)}),[Se,ce?.name,xe,ue,B,te,F,l.amount]),[be,$e]=React.useState(!1===Boolean(pe)),[ve,Ee]=React.useState(!1===Boolean(me)),[we,Re]=React.useState(!1===Boolean(ge)),[Ae,je]=React.useState(!1===Boolean(ye)||!1===Boolean(fe)),Te=e=>{const t=f?.find(t=>t.vendor?.qboId===e||t.vendor?.id===e||t.vendor?.name===e);return t?.vendor?.reason??""},Ie=d.transactionReviewLocalData.lineItemById[l.lineId]?.recommendationsWithCOT||[],ke=getGroupedAccountOptionsWithCOT(e,Ie),Le=getGroupedClassOptionsWithCOT(r,Ie),De=getGroupedProjectOptions(o),_e=React.useCallback(()=>!1,[]),[Pe,Be]=React.useState(!1),[Me,Oe]=React.useState(!1),[Fe,Ne]=React.useState(!1),[ze,He]=React.useState(!1),[Ve,We]=React.useState(0),[Ue,Ge]=React.useState(null),[qe,Qe]=React.useState([]),[Ye,Ke]=React.useState(void 0),Ze=React.useRef(null),[Xe,Je]=React.useState(0),[et,tt]=React.useState(0),nt=WebV2MicroService()?.url,[ot,it]=React.useState(!1),rt=(e,t)=>{E({transactionId:d.transactionId,lineItemId:l.lineId}),w(e,t)},at=()=>{!0===Boolean(ye)||!0===Boolean(fe)?je(!1):je(!0),Be(!1),I?.()},st=()=>{!0===Boolean(ge)?Re(!1):Re(!0),it(!1),I?.()},lt=()=>{!0===Boolean(pe)?$e(!1):$e(!0),Oe(!1),I?.()},ct=()=>{!0===Boolean(me)?Ee(!1):Ee(!0),Ne(!1),I?.()},dt=()=>{g||!0!==Boolean(ye)&&!0!==Boolean(fe)||(Be(!0),k?.())},pt=()=>{g||(Oe(!0),k?.())},ut=()=>{g||(Ne(!0),k?.())},mt=()=>{g||(it(!0),k?.())};React.useEffect(()=>{!0===Boolean(ge)?Re(!1):Re(!0)},[ge]),React.useEffect(()=>{!0===Boolean(pe)?$e(!1):$e(!0)},[pe]),React.useEffect(()=>{!0===Boolean(me)?Ee(!1):Ee(!0)},[me]),React.useEffect(()=>{!0===Boolean(ye)||!0===Boolean(fe)?je(!1):je(!0)},[ye,fe]);const ht=d.transactionReviewLocalData.selectedEntity,gt=d.transactionReviewLocalData.lineItemById[l.lineId].selectedEntityLine,xt=null!=p&&!0===clientEpicState.isVendorTransaction(p)?ht:gt,ft=React.useMemo(()=>{const e=d.transactionReviewLocalData.lineItemById[l.lineId]?.recommendationsWithCOT||[],t=y.entityAutoCompleteView;return{selectedOption:xt?.qboId??xt?.id,defaultOptions:getGroupedForPayeeEntityOptionsWithCOT(t,xt,e??[])}},[xt,d.transactionReviewLocalData.lineItemById,l.lineId,y.entityAutoCompleteView]),yt=(e,t,n)=>{if(null==t||!1===Boolean(t))return;let o=[];return e.forEach(e=>{o=o.concat(e.options)}),o.find(e=>e.value===t)?.label??n??t},St=yt(Le,pe,ue),Ct=yt(De,me,he),bt=yt(ke,ge,xe),$t="review"===S,vt=isMiscategorizedField("vendor",ft.defaultOptions,ft.selectedOption),Et=isMiscategorizedField("category",ke,ge),wt=isMiscategorizedField("class",Le,pe),Rt=e=>{const{isLineRecommendationsLoading:n,itemsData:o,key:i,resolvedWidthPercentage:r}=e;if(!0===n)return jsxRuntimeExports.jsx(RecommendationCellSkeleton,{windowSize:u,wrapperWidth:o.width,widthPercentage:r},i);const s=null!=p?.lines?p.lines[c]:void 0;return jsxRuntimeExports.jsxs(RowItemContainer$1,{windowSize:u,wrapperWidth:o.width,widthPercentage:r,className:"item-value-container",children:[jsxRuntimeExports.jsx(RecommendationIcon,{isCOTEnabled:C,recommendations:Ie,type:"category",isReviewTab:$t,isEnabled:Boolean(l[transactionDetailLineCategory]?.isPreFilled),isAccountOptionDisabled:_e,isMisCategorized:Et,onRecommendationClick:se,selectedValue:ge,selectedValueLabel:bt,existingOption:{label:s?.account?.accountName,value:s?.account?.qboId??s?.account?.accountId},cotTracking:$,lineId:l.lineId,transactionId:d.transactionId,openTooltipId:v,setOpenTooltipId:R}),jsxRuntimeExports.jsx(SelectContainerWrapper,{children:!0===we?jsxRuntimeExports.jsx(StyledHoveredBackground,{isHovered:h,children:jsxRuntimeExports.jsxs(ItemValue,{onClick:e=>{e.stopPropagation(),g||(k?.(),Re(!1),it(!0))},"data-testid":generateDataTestId("category-selection-field",ie),style:{display:"inline-flex",alignItems:"center",color:Colors.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[addCategory2,jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})}):!0===ot?jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:st,children:jsxRuntimeExports.jsx(SelectContainer,{isHovered:h,"data-testid":generateDataTestId("category-selection-dropdown-container",ie),children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{name:ie,transactionId:d.transactionId,lineId:l.lineId,feedbackContext:Ce,placeholder:addCategory2,valueToId:e=>(e=>{const n=t.filter(t=>t.qboId===e)[0];return n?.qboId})(e),type:"category",pageSource:"list_page",transactionStatus:$t?"pending_review":"auto_categorized",showCOT:C,defaultValue:{selectedOption:ge,selectedOptionLabel:xe,allOptions:ke},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:ot,autoFocus:!we&&(!1===Boolean(ge)||null!=l[transactionDetailLineCategory]?.qboId&&[m.expense?.qboId,m.income?.qboId].includes(l[transactionDetailLineCategory].qboId)),onMenuClose:st,customStyleConfig:a,disableCurrentOption:_e,menuPlacement:b,menuPortal:document.body,onCOTView:ee})})}):jsxRuntimeExports.jsx(StyledBackgroundHover,{isHovered:h,children:jsxRuntimeExports.jsxs(StyledDiv$2,{onClick:mt,"data-testid":generateDataTestId("category-label-text",ie),children:[jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:bt??"",itemTextStyle:{color:h?le.colors.primary:le.colors.champion,fontSize:textStyles.standardMedium.fontSizeValue,fontWeight:textStyles.standardMedium.fontWeight}}),jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})})})]},i)},At=null!=l&&"In-Progress"===l.categoryClassRecommendationsFetchState?.fetchState,jt=p?.attachments??[],Tt=Ye??jt[0];return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[(()=>{const e=g?compressedTransactionCategorizationHeaderItemsData:getTransactionCategorizationHeaderItemsData(A,i);return e.map((t,o)=>{const r=`${d.transactionId}_${t.key}_${l.lineId}`,m=resolveTransactionCategorizationWidthPercentage(t,A,i);if(c>0&&null!=p&&!0===clientEpicState.isVendorTransaction(p)&&"vendor"===t.key)return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,isQuickViewMode:g,isSticky:!0===t.isSticky},r);if(c>0&&("transaction_type"===t.key||"memo_and_receipt"===t.key||"payment_account"===t.key&&"journal_entry"!==M))return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,isQuickViewMode:g},r);switch(t.key){case"activity":return jsxRuntimeExports.jsx(EmptyCell,{},r);case"vendor":default:return jsxRuntimeExports.jsxs(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,isQuickViewMode:g,isSticky:!0===t.isSticky,className:"item-value-container",children:[jsxRuntimeExports.jsx(RecommendationIcon,{isCOTEnabled:C,recommendations:Ie,type:"vendor",isEnabled:Boolean(xt?.isPreFilled),isMisCategorized:vt,onRecommendationClick:se,selectedValue:ye,selectedValueLabel:Se,isReviewTab:$t,isAccountOptionDisabled:_e,existingOption:{label:null!=p&&!0===clientEpicState.isVendorTransaction(p)?p?.vendor?.name:void 0,value:null!=p&&!0===clientEpicState.isVendorTransaction(p)?p?.vendor?.id:void 0},cotTracking:$,lineId:l.lineId,transactionId:d.transactionId,openTooltipId:v,setOpenTooltipId:R}),jsxRuntimeExports.jsx(SelectContainerWrapper,{children:!0===Ae?jsxRuntimeExports.jsx(StyledHoveredBackground,{isHovered:h,isQuickViewMode:g,children:jsxRuntimeExports.jsxs(ItemValue,{onClick:e=>{e.stopPropagation(),g||(k?.(),je(!1),Be(!0))},"data-testid":generateDataTestId("add-vendor-button",x),style:{display:"inline-flex",alignItems:"center",color:Colors.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[addPayee,!1===g&&jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})}):!0===Pe?jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:at,children:jsxRuntimeExports.jsx(VendorSelectContainer,{"data-testid":generateDataTestId("vendor-selection-dropdown-container",uniqueName$a(x,transactionDetailLineEntitySelection,c.toString())),children:jsxRuntimeExports.jsx(AutoCompleteGroupedCreatableSingleSelectCustomGroupFieldWithCOT,{name:oe,transactionId:d.transactionId,lineId:l.lineId,feedbackContext:Ce,placeholder:addPayee,valueToInfo:Te,defaultValue:{selectedOption:ft.selectedOption,selectedOptionLabel:Se,defaultOptions:ft.defaultOptions},type:"vendor",autoFocus:!Ae,style:{width:"100%"},pageSource:"list_page",transactionStatus:$t?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:s,menuIsOpen:Pe,onMenuClose:at,registerOptions:{required:!1},loadOptions:rt,showCOT:C,onCOTView:ee,menuPlacement:b,menuPortal:document.body})})}):jsxRuntimeExports.jsx(VendorNameTextContainer,{children:jsxRuntimeExports.jsxs(StyledBackgroundHover,{isHovered:h,isQuickViewMode:g,children:[null!=xt&&null!=xt.logo?jsxRuntimeExports.jsx(EntityLogoAvatarWithCustomFallback,{photoUrl:xt.logo.toString(),styles:{width:D$k.nameLogoWidth.valuePx(u),height:D$k.nameLogoHeight.valuePx(u)},fallbackAvatar:jsxRuntimeExports.jsx(EntityAvatarContainer$1,{children:jsxRuntimeExports.jsx(EntityAvatar,{name:xt.name})})}):null!=xt&&null!=xt.name?jsxRuntimeExports.jsx(EntityAvatarContainer$1,{children:jsxRuntimeExports.jsx(EntityAvatar,{name:xt.name})}):null,jsxRuntimeExports.jsxs(VendorNameText,{onClick:dt,"data-testid":generateDataTestId("vendor-name-text",x),children:[null!=xt&&!0===Boolean(xt.name)?jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:xt.name,itemTextStyle:{color:h?le.colors.primary:le.colors.champion,fontSize:textStyles.standardMedium.fontSizeValue,fontWeight:textStyles.standardMedium.fontWeight}}):jsxRuntimeExports.jsx(NameText,{children:hyphen$8}),!1===g&&jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})]})})})]},r);case"category":return isJournalEntryCreditLine(M,l.postingType)?jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,style:{paddingLeft:Space.sp6},isLastItem:o===e.length-1,children:jsxRuntimeExports.jsx(ItemText$1,{style:{textAlign:"left",width:"100%"},children:hyphen$8})})},r):Rt({isLineRecommendationsLoading:At,itemsData:t,key:r,resolvedWidthPercentage:m});case"class":{if(!A)return null;if(!0===At)return jsxRuntimeExports.jsx(RecommendationCellSkeleton,{windowSize:u,wrapperWidth:t.width,widthPercentage:m},r);const e=null!=p?.lines?p?.lines[c]:void 0;return jsxRuntimeExports.jsxs(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,className:"item-value-container",children:[jsxRuntimeExports.jsx(RecommendationIcon,{isCOTEnabled:C,recommendations:Ie,type:"class",isReviewTab:$t,isEnabled:Boolean(l[transactionDetailLineClass]?.isPreFilled),isAccountOptionDisabled:_e,isMisCategorized:wt,onRecommendationClick:se,selectedValue:pe,selectedValueLabel:St,existingOption:{label:e?.class?.className,value:e?.class?.classId},cotTracking:$,lineId:l.lineId,transactionId:d.transactionId,openTooltipId:v,setOpenTooltipId:R}),jsxRuntimeExports.jsx(SelectContainerWrapper,{children:!0===be?jsxRuntimeExports.jsx(StyledHoveredBackground,{isHovered:h,children:jsxRuntimeExports.jsxs(ItemValue,{onClick:e=>{e.stopPropagation(),g||(k?.(),$e(!1),Oe(!0))},"data-testid":generateDataTestId("class-selection-field",re),style:{display:"inline-flex",alignItems:"center",color:Colors.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[addClass2,jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})}):!0===Me?jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:lt,children:jsxRuntimeExports.jsx(SelectContainer,{isHovered:h,"data-testid":generateDataTestId("class-selection-dropdown-container",re),children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{name:re,transactionId:d.transactionId,lineId:l.lineId,feedbackContext:Ce,placeholder:addClass2,valueToId:e=>(e=>{const t=n.filter(t=>t.classId===e)[0];return t?.accountingClassNumber??void 0})(e),type:"class",showCOT:C,defaultValue:{selectedOption:pe,selectedOptionLabel:ue,allOptions:Le},pageSource:"list_page",transactionStatus:$t?"pending_review":"auto_categorized",menuIsOpen:Me,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!be&&!1===Boolean(pe),customStyleConfig:a,onMenuClose:lt,menuPlacement:b,menuPortal:document.body,onCOTView:ee})})}):jsxRuntimeExports.jsx(StyledBackgroundHover,{isHovered:h,children:jsxRuntimeExports.jsxs(StyledDiv$2,{"data-testid":generateDataTestId("class-selection-field",re),onClick:pt,children:[jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:St??"",itemTextStyle:{color:h?le.colors.primary:le.colors.champion,fontSize:textStyles.standardMedium.fontSizeValue,fontWeight:textStyles.standardMedium.fontWeight}}),jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})})})]},r)}case"project":return i?jsxRuntimeExports.jsxs(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,className:"item-value-container",children:[jsxRuntimeExports.jsx(RecommendationIconContainer,{children:jsxRuntimeExports.jsx("span",{})}),jsxRuntimeExports.jsx(SelectContainerWrapper,{children:!0===ve?jsxRuntimeExports.jsx(StyledHoveredBackground,{isHovered:h,children:jsxRuntimeExports.jsxs(ItemValue,{onClick:e=>{e.stopPropagation(),g||(k?.(),Ee(!1),Ne(!0))},"data-testid":generateDataTestId("project-selection-field",ae),style:{display:"inline-flex",alignItems:"center",color:Colors.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[transactionsStrings.addProject,jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})}):!0===Fe?jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:ct,children:jsxRuntimeExports.jsx(SelectContainer,{isHovered:h,"data-testid":generateDataTestId("project-selection-dropdown-container",ae),children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{name:ae,placeholder:transactionsStrings.addProject,type:"project",showCOT:!1,defaultValue:{selectedOption:me,selectedOptionLabel:he,allOptions:De},pageSource:"list_page",transactionStatus:$t?"pending_review":"auto_categorized",menuIsOpen:Fe,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!ve&&!1===Boolean(me),customStyleConfig:a,onMenuClose:ct,menuPlacement:b,menuPortal:document.body})})}):jsxRuntimeExports.jsx(StyledBackgroundHover,{isHovered:h,children:jsxRuntimeExports.jsxs(StyledDiv$2,{"data-testid":generateDataTestId("project-selection-field",ae),onClick:ut,children:[jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:Ct??"",itemTextStyle:{color:h?le.colors.primary:le.colors.champion,fontSize:textStyles.standardMedium.fontSizeValue,fontWeight:textStyles.standardMedium.fontWeight}}),jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})})})]},r):null;case"date":return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,isLastItem:o===e.length-1,children:jsxRuntimeExports.jsx(TextContainer$1,{"data-testid":generateDataTestId("date-field",uniqueName$a(x,transactionDetailLineClass,c.toString())),children:jsxRuntimeExports.jsx(ItemText$1,{style:{color:h?le.colors.primary:le.colors.champion},children:null!=B?B.format(dateFormat$b.visual.MMMDCommaYYYYformat):null})})})},r);case"transaction_type":{const n=isTransferConvertibleSourceType(M,T);return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:null!=O?jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,"data-testid":generateDataTestId("transaction-type-field",uniqueName$a(x,transactionDetailLineClass,c.toString())),isLastItem:o===e.length-1,children:jsxRuntimeExports.jsxs(TypeTagAnchor,{className:n&&G?"select-value-container":void 0,children:[n&&q?jsxRuntimeExports.jsx(Tooltip$6,{title:transactionsStrings.transactionTypeDropdown.multilineNotEligibleTooltip,enterDelay:600,placement:"bottom",children:jsxRuntimeExports.jsx(StyledCapsule,{label:O??M})}):jsxRuntimeExports.jsx(StyledCapsule,{label:O??M,onClick:n&&G?()=>{K(Y,buildTypeDropdownValue(M??"expense",W,O)),z(!0)}:void 0,capsuleBackground:G&&N?le.colors.background:void 0,showChevron:n&&G}),n&&G&&N&&jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:()=>z(!1),children:jsxRuntimeExports.jsx(TypeSelectWrapper,{children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{name:Y,defaultValue:buildTypeDropdownValue(M??"expense",W,O),pageSource:"list_page",showCOT:!1,transactionStatus:$t?"pending_review":"auto_categorized",type:"category",menuIsOpen:N,autoFocus:!0,onMenuClose:()=>z(!1),customStyleConfig:V,menuPlacement:b,menuPortal:H,allowEmpty:!1,menuOptionPresentation:"typePill"})})})]})}):null},r)}case"amount":{const e=amountToString("0,0.[00]",l.amount,!0);return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,style:{marginRight:sp[0]},wrapperWidth:t.width,widthPercentage:m,isQuickViewMode:g,isLastItem:!0,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,isLastItem:!0,style:{justifyContent:"flex-end"},children:jsxRuntimeExports.jsx(TextContainer$1,{"data-testid":generateDataTestId("transaction-amount-field",uniqueName$a(x,transactionDetailLineClass,c.toString())),style:{color:h?le.colors.primary:le.colors.champion},children:e})})},r)}case"payment_account":{if("journal_entry"===M)return"credit"===l.postingType?Rt({isLineRecommendationsLoading:At,itemsData:t,key:r,resolvedWidthPercentage:m}):jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,style:{paddingLeft:Space.sp6},isLastItem:o===e.length-1,children:jsxRuntimeExports.jsx(ItemText$1,{style:{textAlign:"left",width:"100%"},children:hyphen$8})})},r);if(!("expense"===M||"check"===M||"bill_payment"===M||"vendor_credit"===M||"credit_card_credit"===M||"deposit"===M||"sales_receipt"===M||"refund"===M||"payment"===M))return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,style:{paddingLeft:Space.sp6},isLastItem:o===e.length-1,children:jsxRuntimeExports.jsx(ItemText$1,{style:{textAlign:"left",width:"100%"},children:hyphen$8})})},r);const n=p?.account?.accountName,i=p?.paymentType,a=p?.paymentTypeName,s="credit_card"===i?StyledCardsIcon:"cash"===i?StyledOfflinePaymentsIcon:"check"===i?StyledChequeIcon:"ach"===i?StyledPaymentACHIcon:StyledBankLetterIcon,c={title:empty$4,items:[{text:account+colon$2,amount:n??hyphen$8},...null!=a?[{text:method+colon$2,amount:a}]:[]]};return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,isLastItem:o===e.length-1,children:jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",variant:"list-description",data:c,title:n??hyphen$8,enterDelay:600,arrow:!0,style:{overflow:"hidden",minWidth:0},children:jsxRuntimeExports.jsxs(PaymentAccountContainer,{"data-testid":generateDataTestId("payment-account",x),style:{color:h?le.colors.primary:le.colors.champion},children:[null!=s&&jsxRuntimeExports.jsx(s,{style:{color:h?le.colors.primary:le.colors.champion,width:Space.sp5}}),jsxRuntimeExports.jsx(ItemText$1,{style:{color:"inherit",whiteSpace:"pre-wrap"},children:n??hyphen$8})]})})})},r)}case"memo_and_receipt":{const e=p?.attachments??[],n="In-Progress"===_?.fetchState,o=t=>{if(t.stopPropagation(),0===e.length||null==p)return;if(null==nt)return void console.warn("webV2MicroServiceEndpoint is not available, cannot fetch attachments.");Ke(e[0]),We(0),He(!0);const n=e.map(e=>e.id);fetchTransactionAttachments(`${nt}/transaction_attachments`,L,{transaction_key:{transaction_id:p.id,transaction_type:p.type},attachment_ids:n}).then(e=>{Qe(e),e.length>0&&Ge(e[0])})},i=e=>{e.stopPropagation(),Ze.current?.click()};return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,"data-testid":generateDataTestId("memo-field",uniqueName$a(x,transactionDetailLineClass,c.toString())),children:jsxRuntimeExports.jsxs(MemoReceiptColumnContainer,{className:"item-value-container",children:[null!=ne?jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",data:ne,variant:"multi-information-points",arrow:!0,style:{maxHeight:"min(60vh, 360px)",overflowY:"auto",overflowX:"hidden"},children:jsxRuntimeExports.jsx(StyledMemoIcon,{"data-testid":generateDataTestId("memo-icon",x),style:{color:h?le.colors.primary:le.colors.champion}})}):jsxRuntimeExports.jsx(StyledHyphen,{style:{margin:0},children:hyphen$8}),n?jsxRuntimeExports.jsx(ActivityIndicator,{size:"Small",style:{display:"flex"},start:!0}):0===e.length?jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",title:addReceipt,arrow:!0,enterDelay:600,children:jsxRuntimeExports.jsx(StyledAddRoundIcon$2,{"data-testid":generateDataTestId("upload-receipt-icon",x),style:{margin:0},onClick:e=>{e.stopPropagation(),i(e)}})}):1===e.length?jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",title:viewReceipt$1,arrow:!0,enterDelay:600,children:jsxRuntimeExports.jsx(StyledDocumentsIcon,{"data-testid":generateDataTestId("view-receipt-icon",x),style:{color:h?le.colors.primary:le.colors.champion},onClick:o})}):jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",arrow:!0,title:viewReceipts$1,enterDelay:600,children:jsxRuntimeExports.jsx(StyledReceiptsMultipleIcon,{"data-testid":generateDataTestId("view-receipts-icon",x),style:{color:h?le.colors.primary:le.colors.hero},onClick:o})}),jsxRuntimeExports.jsx(FileInputElement,{name:`transaction-receipt-${d.transactionId}`,fileRef:Ze,sizeLimit:SizeLimit32MB,multiple:!0,acceptableTypes:[...clientEpicState.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:e=>{const t=e.target.files;if(null!=t&&t.length>0){const e=Array.from(t);P(S,d.transactionId,M??empty$4,e,e.map(e=>e.name))}},onFileSizeError:()=>{}})]})},r)}}})})(),ze&&jt.length>0&&null!=Tt?ReactDOM.createPortal(jsxRuntimeExports.jsx(DocumentWithThumbnailView,{allFiles:qe,fileSource:Ue,file:Tt,title:Tt.fileName,attachments:jt,showNavigation:!1,setFileSource:Ge,setShowFullScreenView:He,onCrossClick:()=>{He(!1),Ge(null),Qe([]),Ke(void 0),We(0)},onNextClick:()=>{const e=(Ve+1)%jt.length;We(e),Ke(jt[e]),null!=qe[e]&&Ge(qe[e])},onPreviousClick:()=>{const e=(Ve-1+jt.length)%jt.length;We(e),Ke(jt[e]),null!=qe[e]&&Ge(qe[e])},setSelectedFileAttachment:e=>{Ke("function"==typeof e?t=>e(t??jt[0]):e)},handleTouchStart:e=>Je(e.targetTouches[0].clientX),handleTouchMove:e=>tt(e.targetTouches[0].clientX),handleTouchEnd:()=>{if(Xe-et>50&&0!==et&&Ve<jt.length-1){const e=Ve+1;We(e),Ke(jt[e]),null!=qe[e]&&Ge(qe[e]),Je(0),tt(0)}else if(Xe-et<-50&&0!==et&&Ve>0){const e=Ve-1;We(e),Ke(jt[e]),null!=qe[e]&&Ge(qe[e]),Je(0),tt(0)}}}),document.body):null]})},RecommendationIconContent=({isEnabled:e,isMisCategorized:t,hasRecommendations:n,isTooltipVisible:o=!1,type:i})=>e?o?jsxRuntimeExports.jsx(StyledAISelectedFilledIconPlain,{"data-testid":generateDataTestId("recommendation-icon",i)}):jsxRuntimeExports.jsx(StyledAIIconSelectedPlain,{className:"ai-icon-selected-plain","data-testid":generateDataTestId("recommendation-icon",i)}):!e&&t||n?o?jsxRuntimeExports.jsx(StyledAIFilledIcon,{"data-testid":generateDataTestId("recommendation-icon",i)}):jsxRuntimeExports.jsx(StyledAIIcon$1,{"data-testid":generateDataTestId("recommendation-icon",i)}):null,RecommendationIconContainer=({children:e})=>jsxRuntimeExports.jsx(COTContent,{children:e}),RecommendationIcon=({recommendations:e,isCOTEnabled:t,type:n,isReviewTab:o,selectedValueLabel:i,isEnabled:r=!1,isMisCategorized:a=!1,selectedValue:s,existingOption:l,cotTracking:c,lineId:d,openTooltipId:p,transactionId:u,isAccountOptionDisabled:m,onRecommendationClick:h,setOpenTooltipId:g})=>{const x=React.useMemo(()=>`${u}:${d}:${n}`,[u,d,n]),f=p===x,y=useToolkitContext().analytics,{createAlternateRecommendationCallback:S}=useCOTAnalytics(),C=React.useCallback(t=>{const r=e[1],a=e[0];S(n,{currentValue:i??empty$4,transactionCurrentStatus:o?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:c?{transactionId:u,lineId:d,onCOTView:(e,t,n,o)=>{c.onCOTView?.(e,t,n,o)}}:void 0},r,a)(t)},[S,e,i,o,n,c,d,u]),b=createCOTDataFromRecommendations(e,n,t,l,"list_page",o?"pending_review":"auto_categorized",h,C,s,m),$=hasRecommendationsForType(e,n),v=React.useCallback(()=>{g(x);const e=b?.recommendations[0]?.cot??[],t=b?.recommendations[1]?.cot??[],r=t.length>0;if(y.trackTransactionCotView({recommendationFor:n,currentValue:i??empty$4,recommendation:b?.recommendations[0]?.name??empty$4,recommendationCot:e,isRecommendationCotAvailable:e.length>0,recommendationReason:b?.recommendations[0]?.reason??empty$4,recommendationConfidencePercentage:b?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:toConfidenceLevelType(getConfidenceLevel(b?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:b?.recommendations[1]?.name??empty$4,alternativeRecommendationCot:t,isAlternativeRecommendationCotAvailable:r,alternativeRecommendationReason:b?.recommendations[1]?.reason??empty$4,alternativeRecommendationConfidencePercentage:b?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:r?toConfidenceLevelType(getConfidenceLevel(b?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:o?"pending_review":"auto_categorized",transactionPage:"list_page",transactionId:u??null,lineId:d??null}),null!=c?.onCOTView){const e=getCOTRecommendationSourceToTrack(b);null!=e&&c.onCOTView(d,u,n,e)}},[y,b,o,i,n,d,u,x,g]),E=React.useCallback(()=>{p===x&&g(void 0)},[p,x,g]),w=React.useMemo(()=>!(!1===Boolean(s)||!$)&&e.some(e=>"vendor"===n&&null!=e.vendor?e.vendor.id===s||e.vendor.qboId===s:"category"===n&&null!=e.account?e.account.qboId===s||e.account.accountId===s:"class"===n&&null!=e.class&&e.class.classId===s),[s,$,e,n]);if(!$)return jsxRuntimeExports.jsx(COTContent,{});const R=r||w;return b?jsxRuntimeExports.jsx(RecommendationIconContainer,{children:jsxRuntimeExports.jsx(Tooltip$6,{variant:"chain-of-thought",data:b,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:f,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:v,onClose:E,children:jsxRuntimeExports.jsx(COTContentWrapper,{"data-testid":generateDataTestId("recommendation-icon",n),children:jsxRuntimeExports.jsx(RecommendationIconContent,{isEnabled:R,isMisCategorized:a,hasRecommendations:$,isTooltipVisible:f})})})}):jsxRuntimeExports.jsx(RecommendationIconContainer,{children:jsxRuntimeExports.jsx(RecommendationIconContent,{isEnabled:R,isMisCategorized:a,hasRecommendations:$,isTooltipVisible:f,type:n})})},TransactionCategorizationListEmptyRow=({isAccountingClassesEnabled:e,showProjectField:t})=>{const n=useWindowSizeContext(),o=useQuickViewMode(),i=useFlexibleWidth(),r=o?compressedTransactionCategorizationHeaderItemsData:getTransactionCategorizationHeaderItemsData(e,t);return jsxRuntimeExports.jsx(EmptyRowContainer,{$flexibleWidth:i,windowSize:n,isQuickViewMode:o,children:r.map((i,a)=>{const s=`${a}${underscore$1}${i.key}`,l=resolveTransactionCategorizationWidthPercentage(i,e,t);switch(i.key){case"activity":return jsxRuntimeExports.jsx(EmptyCell,{},s);case"vendor":return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:n,wrapperWidth:i.width,widthPercentage:l,isQuickViewMode:o,isSticky:i.isSticky,style:i.customStyle?.common,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:n,isLastItem:a===r.length-1,children:jsxRuntimeExports.jsxs(TextContainer$1,{children:[jsxRuntimeExports.jsx(CircularContentLoader,{width:sp[4],height:sp[4]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{height:sp[4],width:sp[12],style:{display:"flex",alignItems:"center"}})]})})},s);default:{const e=a===r.length-1;return jsxRuntimeExports.jsx(RowItemContainer$1,{isLastItem:e,windowSize:n,wrapperWidth:i.width,widthPercentage:l,isQuickViewMode:o,style:i.customStyle?.common,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:n,isLastItem:e,children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[4],style:{display:"flex",alignItems:"center"}})})},s)}}})})},EmptyCell=styled$2.div`
|
|
81619
|
+
`,expenseAutomationTransactionsPage="expenseAutomationTransactionsPage",transactionCategorizationListTableSectionId="transactionCategorizationListTable",transactionDetailLineCategory="account",transactionDetailLineClass="class",transactionDetailLineProject="project",transactionDetailLineEntitySelection="lineEntitySelection",transactionDetailLineEntity="lineEntity",recommendations="recommendations",lineInfo="lineInfo",vendorDetails="vendorDetails",customerDetails="customerDetails",selectedTransactionIds="selectedTransactionIds",uniqueName$a=(e,t,n)=>`${e}.${n}.${t}`,SvgCheque=e=>React__namespace.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},React__namespace.createElement("path",{d:"M4.85022 13.5836L5.52057 12.9133C5.63229 12.8016 5.77164 12.7217 5.92438 12.6815C6.07712 12.6413 6.23779 12.6424 6.38999 12.6846C6.54218 12.7268 6.68046 12.8086 6.7907 12.9217C6.90094 13.0348 6.97919 13.1751 7.01747 13.3283L7.08174 13.5836L7.8119 13.0972C7.98361 12.9827 8.1897 12.9312 8.39508 12.9515C8.60046 12.9719 8.79245 13.0628 8.93837 13.2087L9.31326 13.5836H11.0985",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M17.4206 6H2.24629C2.12792 6 2.01441 6.04702 1.93071 6.13072C1.84701 6.21442 1.79999 6.32794 1.79999 6.4463V17.1576C1.79999 17.276 1.84701 17.3895 1.93071 17.4732C2.01441 17.5569 2.12792 17.6039 2.24629 17.6039H21.8837C22.0021 17.6039 22.1156 17.5569 22.1993 17.4732C22.283 17.3895 22.33 17.276 22.33 17.1576V6.4463C22.33 6.32794 22.283 6.21442 22.1993 6.13072C22.1156 6.04702 22.0021 6 21.8837 6H17.4206Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M16.0854 9.6521H19.6559V12.0656H16.0854V9.6521Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:underscore$1,hyphen:hyphen$6,empty:empty$4,colon:colon$1},tooltips:{addReceipt:addReceipt,viewReceipt:viewReceipt$1,viewReceipts:viewReceipts$1},texts:{account:account,addCategory2:addCategory2,addClass2:addClass2,addPayee:addPayee,description2:description2$1,memo:memoLabel,method:method}},expenseAutomation:{transactions:transactionsStrings},dateFormat:dateFormat$b}=appLocale.getLocalizedStrings(),D$k={containerPaddingLeftRight:new ResponsiveSized(sp[3],sp[3]),containerPaddingTopBottom:new ResponsiveSized(6,6),controlHeight:new ResponsiveSized(sp[4],sp[5]),nameLogoWidth:new ResponsiveSized(sp[2],sp[3]),nameLogoHeight:new ResponsiveSized(sp[2],sp[3]),borderRadius:6},RecommendationCellSkeleton=({windowSize:e,wrapperWidth:t,widthPercentage:n})=>jsxRuntimeExports.jsxs(RowItemContainer$1,{windowSize:e,wrapperWidth:t,widthPercentage:n,className:"item-value-container",children:[jsxRuntimeExports.jsx(RecommendationIconContainer,{children:jsxRuntimeExports.jsx("span",{})}),jsxRuntimeExports.jsx(SelectContainerWrapper,{children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[4]})})]}),isJournalEntryCreditLine=(e,t)=>"journal_entry"===e&&"credit"===t,TransactionCategorizationListRow=({transactionView:e,transaction:t,sectionId:n,vendorSearchAutoCompleteData:o,vendorSearchAutoCompleteActions:i,selectedTab:r,containerRef:a,listContainerRef:s,isAccountingClassesEnabled:l,showProjectField:c,isCOTEnabled:d,isCreateTransferEntryFromExpenseEnabled:p,transferConvertibleSourceTypes:u,isPanelSelected:m,cotTracking:h,onTransactionCategorizationRowClick:g,setCurrentTransactionInAction:x,vendorLoadOptions:f,openTooltipId:y,setOpenTooltipId:S,onOpenTransferDrawer:C,authParams:b,onUploadTransactionReceipt:$,rowCommenting:v})=>{const E=useWindowSizeContext(),w=useQuickViewMode(),R=useFlexibleWidth(),{isCommentingActive:A,rowRef:j,totalThreadCount:T,isThreadsLoading:I,handleActiveThreadClick:k,handleAddRowCommentClick:L}=v,[D,_]=React.useState(!1),{lineItemById:P,sortedLineItems:B}=t.transactionReviewLocalData,M=t.transactionReviewLocalData.tabSpecificLineItems?.[r]||[],O=B.filter(e=>-1!==M.indexOf(e)),F=[];O.forEach(e=>{F.push(P[e])});const{accountList:N,accountsHierarchyList:z,classHierarchyList:H,classList:V,projectList:W,uncategorizedAccounts:U,transactions:G,selectedCheckBoxTransactionIds:q}=e,Q=W?.projects??[],Y=e.uploadReceiptStatusById,K=q.includes(t.transactionId),Z=!0!==w&&!0===K,X=useTheme(),J={control:()=>({marginLeft:-2,backgroundColor:D?X.colors.background:X.colors.grey5,minHeight:sp[5]}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:sp[0],height:sp[5],backgroundColor:X.colors.grey5}),menu:()=>({width:"150%",background:X.colors.grey5}),singleValue:()=>({color:D||Z?X.colors.primary:X.colors.champion,paddingLeft:sp[2]}),input:e=>({...e,color:D||Z?X.colors.primary:X.colors.champion,textAlign:"left",paddingLeft:sp[2]}),menuPortal:e=>({...e,zIndex:10})},ee={...J,singleValue:e=>({...e,color:D||Z?X.colors.primary:X.colors.champion}),menu:()=>({marginTop:sp[1],marginLeft:-sp[2]}),input:e=>({...e,color:D||Z?X.colors.primary:X.colors.champion,textAlign:"left",...textStyles.standardMedium}),control:e=>({...e,height:sp[5]})},te=G.find(e=>e.id===t.transactionId),ne=React.useRef(null),[oe,ie]=React.useState(void 0),[re,ae]=React.useState("bottom");return React.useEffect(()=>{if(void 0===oe)return;const e=s?.current,t=e?._outerRef??null,n=()=>{const e=ne.current;if(null==e||null==t)return;const n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.scrollTop+(n.bottom-o.top),r=t.scrollHeight-i;ae(r>=288?"bottom":"top")};return n(),window.addEventListener("resize",n),t?.addEventListener("scroll",n),()=>{window.removeEventListener("resize",n),t?.removeEventListener("scroll",n)}},[s,oe]),jsxRuntimeExports.jsx(RowWrapper,{ref:j,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),children:jsxRuntimeExports.jsxs(Container$p,{className:"categorization-row-card",windowSize:E,isSelected:K,isPanelSelected:m,isQuickViewMode:w,isHovered:D,style:{position:"relative"},children:[jsxRuntimeExports.jsx(RowOuterContainer,{windowSize:E,isQuickViewMode:w,children:F.map((e,a)=>jsxRuntimeExports.jsx(RowInnerContainer,{ref:oe===a?ne:void 0,isFirstItem:0===a,isLastItem:a===F.length-1,"data-testid":generateDataTestId("transaction-categorization-list-row",e.lineId),flexibleWidth:R,isQuickViewMode:w,windowSize:E,onClick:e=>((e,t)=>{const{transactionType:n}=t.transactionReviewLocalData;if(!0!==w){const t=e.target;let n=t;for(;n;){if(n.classList.contains("select-value-container")||n!==t&&n.classList.contains("item-value-container")||n.classList.contains("grouped-single-select-field__value-container")||n.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||n.classList.contains("grouped-single-select-field__input")||n.classList.contains("grouped-single-select-field__menu"))return;n=n.parentElement}}null!=n&&g(t.transactionId,n)})(e,t),children:jsxRuntimeExports.jsx(TransactionCategorizationListItemRow,{isAccountingClassesEnabled:l,showProjectField:c,allProjectList:Q,line:e,isHovered:D||Z||m,isSelected:K,isQuickViewMode:w,lineIndex:a,sectionId:n,transaction:t,currentTransaction:te,windowSize:E,accountsHierarchyList:z,classHierarchyList:H,allAccountList:N,allClassList:V,uncategorizedAccounts:U,vendorSearchAutoCompleteData:o,vendorSearchAutoCompleteActions:i,setCurrentTransactionInAction:x,vendorLoadOptions:f,customStyle:J,customStyleAutoComplete:ee,recommendations:e.recommendationsWithCOT,selectedTab:r,isCOTEnabled:d,menuPlacement:re,cotTracking:h,openTooltipId:y,setOpenTooltipId:S,authParams:b,uploadReceiptStatus:Y?.[t.transactionId],onUploadTransactionReceipt:$,onDropdownClose:()=>ie(void 0),onDropdownOpen:()=>ie(a),onOpenTransferDrawer:C,isCreateTransferEntryFromExpenseEnabled:p,transferConvertibleSourceTypes:u})},`${t.transactionId}.${e.lineId}.${a}`))},t.transactionId),!0===w&&A&&T>0?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,children:jsxRuntimeExports.jsx(ActiveThreadCount,{isLoading:I,count:T,style:{backgroundColor:X.colors.grey4,borderRadius:"50% 50% 50% 0",cursor:"pointer"},openThread:k})}):null,!0===w&&A&&!1===I&&0===T?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,innerClassName:"comment-add-icon",children:jsxRuntimeExports.jsx(StyledAddThreadsIcon$1,{"data-testid":generateDataTestId("expense-automation-transaction-row-add-comment",t.transactionId),onClick:L})}):null,jsxRuntimeExports.jsx(ExpenseAutomationRowThreadPortals,{state:v})]},t.transactionId)})},TransactionCategorizationListItemRow=({accountsHierarchyList:e,allAccountList:t,allClassList:n,allProjectList:o,showProjectField:i,classHierarchyList:r,customStyle:a,customStyleAutoComplete:s,line:l,lineIndex:c,transaction:d,currentTransaction:p,windowSize:u,uncategorizedAccounts:m,isHovered:h=!1,isQuickViewMode:g=!1,sectionId:x,recommendations:f,vendorSearchAutoCompleteData:y,selectedTab:S,isCOTEnabled:C,menuPlacement:b,cotTracking:$,openTooltipId:v,setCurrentTransactionInAction:E,vendorLoadOptions:w,setOpenTooltipId:R,isAccountingClassesEnabled:A,isCreateTransferEntryFromExpenseEnabled:j,transferConvertibleSourceTypes:T,onDropdownClose:I,onDropdownOpen:k,authParams:L,onOpenTransferDrawer:D,uploadReceiptStatus:_,onUploadTransactionReceipt:P})=>{const{transactionDate:B,transactionType:M,transactionTypeName:O,memo:F}=d.transactionReviewLocalData,[N,z]=React.useState(!1),H=React.useMemo(()=>"undefined"!=typeof document?document.body:null,[]),V=React.useMemo(()=>({...a,control:()=>({height:0,minHeight:0,overflow:"hidden",border:"none",padding:0,margin:0}),menuPortal:e=>({...e,zIndex:TRANSFER_MENU_Z_INDEX})}),[a]),W=p?.account?.accountType,U=(p?.totalLinesCount??0)>1,G=!0===j&&isTransactionTypeDropdownInteractive(W,M)&&!U,q=!0===j&&isTransactionTypeDropdownInteractive(W,M)&&U,Q=p?.accountIntegrationId,Y=uniqueName$a(x,"transactionType",c.toString()),{setValue:K,watch:Z}=useFormContext(),X=Z(Y),J=React.useRef(X?.selectedOption);React.useEffect(()=>{const e=X?.selectedOption,t="transfer"===e||"credit_card_payment"===e,n="transfer"===J.current||"credit_card_payment"===J.current;if(J.current=e,t&&!n&&null!=D){z(!1);const t=d.transactionReviewLocalData,n=t.sortedLineItems.map(e=>t.lineItemById[e]).find(e=>null!=e);null!=n&&(D({transactionId:d.transactionId,transactionType:e,sourceTransactionType:coerceSourceTransactionType(M),sourceTransactionTypeName:O,payee:t.vendorDetails?.name??t.vendor?.name??"",category:n.account?.accountName??"",className:n.class?.className??"",amount:n.amount,debitAccountIntegrationId:Q??"",debitAccountName:p?.account?.accountName??"",memo:t.memo??""}),K(Y,buildTypeDropdownValue(M??"expense",W,O)))}},[X?.selectedOption,D,K,M,O,Y,d.transactionId,d.transactionReviewLocalData,p,Q,W]);const ee=React.useCallback((e,t)=>{null!=$?.onCOTView&&$.onCOTView(l.lineId,d.transactionId,e,t)},[$,l.lineId,d.transactionId]),te=l.lineDescription,ne=React.useMemo(()=>{if(!0===Boolean(te)||!0===Boolean(F))return[{title:description2$1,description:!0===Boolean(te)?te:hyphen$6},{title:memoLabel,description:!0===Boolean(F)?F:hyphen$6}]},[F,te]),oe=uniqueName$a(x,transactionDetailLineEntitySelection,c.toString()),ie=uniqueName$a(x,transactionDetailLineCategory,c.toString()),re=uniqueName$a(x,transactionDetailLineClass,c.toString()),ae=uniqueName$a(x,transactionDetailLineProject,c.toString()),se=(e,t)=>{if(g)return;let n;switch(t){case"vendor":n=oe;break;case"category":n=ie;break;case"class":n=re;break;default:return}K(`${n}.selectedOption`,e,{shouldValidate:!0,shouldDirty:!0})},le=useTheme(),ce=React.useMemo(()=>null!=p&&!0===clientEpicState.isVendorTransaction(p)?{id:d.transactionReviewLocalData.customer?.id??"",logo:d.transactionReviewLocalData.customer?.logo,name:d.transactionReviewLocalData.customer?.name??""}:{id:l.customer?.id??"",logo:l.customer?.logo,name:l.customer?.name??""},[p,l.customer?.id,l.customer?.logo,l.customer?.name,d.transactionReviewLocalData.customer?.id,d.transactionReviewLocalData.customer?.logo,d.transactionReviewLocalData.customer?.name]),de=React.useMemo(()=>null!=p&&!0===clientEpicState.isVendorTransaction(p)?{id:d.transactionReviewLocalData.vendor?.id??"",logo:d.transactionReviewLocalData.vendor?.logo,name:d.transactionReviewLocalData.vendor?.name??""}:{id:l.vendor?.id??"",logo:l.vendor?.logo,name:l.vendor?.name??""},[p,l.vendor?.id,l.vendor?.logo,l.vendor?.name,d.transactionReviewLocalData.vendor?.id,d.transactionReviewLocalData.vendor?.logo,d.transactionReviewLocalData.vendor?.name]),pe=l[transactionDetailLineClass]?.classId,ue=l[transactionDetailLineClass]?.className,me=l.project?.projectId,he=l.project?.projectName,ge=l[transactionDetailLineCategory]?.qboId??l[transactionDetailLineCategory]?.accountId,xe=l[transactionDetailLineCategory]?.accountName,fe=ce?.id,ye=de?.id,Se=de?.name,Ce=React.useMemo(()=>({vendor:Se??ce?.name,category:xe,className:ue,date:B?.format(dateFormat$b.visual.MMMDCommaYYYYformat),memo:!0===Boolean(te)?te:F,amount:amountToString("0,0.[00]",l.amount,!0)}),[Se,ce?.name,xe,ue,B,te,F,l.amount]),[be,$e]=React.useState(!1===Boolean(pe)),[ve,Ee]=React.useState(!1===Boolean(me)),[we,Re]=React.useState(!1===Boolean(ge)),[Ae,je]=React.useState(!1===Boolean(ye)||!1===Boolean(fe)),Te=e=>{const t=f?.find(t=>t.vendor?.qboId===e||t.vendor?.id===e||t.vendor?.name===e);return t?.vendor?.reason??""},Ie=d.transactionReviewLocalData.lineItemById[l.lineId]?.recommendationsWithCOT||[],ke=getGroupedAccountOptionsWithCOT(e,Ie),Le=getGroupedClassOptionsWithCOT(r,Ie),De=getGroupedProjectOptions(o),_e=React.useCallback(()=>!1,[]),[Pe,Be]=React.useState(!1),[Me,Oe]=React.useState(!1),[Fe,Ne]=React.useState(!1),[ze,He]=React.useState(!1),[Ve,We]=React.useState(0),[Ue,Ge]=React.useState(null),[qe,Qe]=React.useState([]),[Ye,Ke]=React.useState(void 0),Ze=React.useRef(null),[Xe,Je]=React.useState(0),[et,tt]=React.useState(0),nt=WebV2MicroService()?.url,[ot,it]=React.useState(!1),rt=(e,t)=>{E({transactionId:d.transactionId,lineItemId:l.lineId}),w(e,t)},at=()=>{!0===Boolean(ye)||!0===Boolean(fe)?je(!1):je(!0),Be(!1),I?.()},st=()=>{!0===Boolean(ge)?Re(!1):Re(!0),it(!1),I?.()},lt=()=>{!0===Boolean(pe)?$e(!1):$e(!0),Oe(!1),I?.()},ct=()=>{!0===Boolean(me)?Ee(!1):Ee(!0),Ne(!1),I?.()},dt=()=>{g||!0!==Boolean(ye)&&!0!==Boolean(fe)||(Be(!0),k?.())},pt=()=>{g||(Oe(!0),k?.())},ut=()=>{g||(Ne(!0),k?.())},mt=()=>{g||(it(!0),k?.())};React.useEffect(()=>{!0===Boolean(ge)?Re(!1):Re(!0)},[ge]),React.useEffect(()=>{!0===Boolean(pe)?$e(!1):$e(!0)},[pe]),React.useEffect(()=>{!0===Boolean(me)?Ee(!1):Ee(!0)},[me]),React.useEffect(()=>{!0===Boolean(ye)||!0===Boolean(fe)?je(!1):je(!0)},[ye,fe]);const ht=d.transactionReviewLocalData.selectedEntity,gt=d.transactionReviewLocalData.lineItemById[l.lineId].selectedEntityLine,xt=null!=p&&!0===clientEpicState.isVendorTransaction(p)?ht:gt,ft=React.useMemo(()=>{const e=d.transactionReviewLocalData.lineItemById[l.lineId]?.recommendationsWithCOT||[],t=y.entityAutoCompleteView;return{selectedOption:xt?.qboId??xt?.id,defaultOptions:getGroupedForPayeeEntityOptionsWithCOT(t,xt,e??[])}},[xt,d.transactionReviewLocalData.lineItemById,l.lineId,y.entityAutoCompleteView]),yt=(e,t,n)=>{if(null==t||!1===Boolean(t))return;let o=[];return e.forEach(e=>{o=o.concat(e.options)}),o.find(e=>e.value===t)?.label??n??t},St=yt(Le,pe,ue),Ct=yt(De,me,he),bt=yt(ke,ge,xe),$t="review"===S,vt=isMiscategorizedField("vendor",ft.defaultOptions,ft.selectedOption),Et=isMiscategorizedField("category",ke,ge),wt=isMiscategorizedField("class",Le,pe),Rt=e=>{const{isLineRecommendationsLoading:n,itemsData:o,key:i,resolvedWidthPercentage:r}=e;if(!0===n)return jsxRuntimeExports.jsx(RecommendationCellSkeleton,{windowSize:u,wrapperWidth:o.width,widthPercentage:r},i);const s=null!=p?.lines?p.lines[c]:void 0;return jsxRuntimeExports.jsxs(RowItemContainer$1,{windowSize:u,wrapperWidth:o.width,widthPercentage:r,className:"item-value-container",children:[jsxRuntimeExports.jsx(RecommendationIcon,{isCOTEnabled:C,recommendations:Ie,type:"category",isReviewTab:$t,isEnabled:Boolean(l[transactionDetailLineCategory]?.isPreFilled),isAccountOptionDisabled:_e,isMisCategorized:Et,onRecommendationClick:se,selectedValue:ge,selectedValueLabel:bt,existingOption:{label:s?.account?.accountName,value:s?.account?.qboId??s?.account?.accountId},cotTracking:$,lineId:l.lineId,transactionId:d.transactionId,openTooltipId:v,setOpenTooltipId:R}),jsxRuntimeExports.jsx(SelectContainerWrapper,{children:!0===we?jsxRuntimeExports.jsx(StyledHoveredBackground,{isHovered:h,children:jsxRuntimeExports.jsxs(ItemValue,{onClick:e=>{e.stopPropagation(),g||(k?.(),Re(!1),it(!0))},"data-testid":generateDataTestId("category-selection-field",ie),style:{display:"inline-flex",alignItems:"center",color:Colors.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[addCategory2,jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})}):!0===ot?jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:st,children:jsxRuntimeExports.jsx(SelectContainer,{isHovered:h,"data-testid":generateDataTestId("category-selection-dropdown-container",ie),children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{name:ie,transactionId:d.transactionId,lineId:l.lineId,feedbackContext:Ce,placeholder:addCategory2,valueToId:e=>(e=>{const n=t.filter(t=>t.qboId===e)[0];return n?.qboId})(e),type:"category",pageSource:"list_page",transactionStatus:$t?"pending_review":"auto_categorized",showCOT:C,defaultValue:{selectedOption:ge,selectedOptionLabel:xe,allOptions:ke},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:ot,autoFocus:!we&&(!1===Boolean(ge)||null!=l[transactionDetailLineCategory]?.qboId&&[m.expense?.qboId,m.income?.qboId].includes(l[transactionDetailLineCategory].qboId)),onMenuClose:st,customStyleConfig:a,disableCurrentOption:_e,menuPlacement:b,menuPortal:document.body,onCOTView:ee})})}):jsxRuntimeExports.jsx(StyledBackgroundHover,{isHovered:h,children:jsxRuntimeExports.jsxs(StyledDiv$2,{onClick:mt,"data-testid":generateDataTestId("category-label-text",ie),children:[jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:bt??"",itemTextStyle:{color:h?le.colors.primary:le.colors.champion,fontSize:textStyles.standardMedium.fontSizeValue,fontWeight:textStyles.standardMedium.fontWeight}}),jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})})})]},i)},At=null!=l&&"In-Progress"===l.categoryClassRecommendationsFetchState?.fetchState,jt=p?.attachments??[],Tt=Ye??jt[0];return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[(()=>{const e=g?compressedTransactionCategorizationHeaderItemsData:getTransactionCategorizationHeaderItemsData(A,i);return e.map((t,o)=>{const r=`${d.transactionId}_${t.key}_${l.lineId}`,m=resolveTransactionCategorizationWidthPercentage(t,A,i);if(c>0&&null!=p&&!0===clientEpicState.isVendorTransaction(p)&&"vendor"===t.key)return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,isQuickViewMode:g,isSticky:!0===t.isSticky},r);if(c>0&&("transaction_type"===t.key||"memo_and_receipt"===t.key||"payment_account"===t.key&&"journal_entry"!==M))return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,isQuickViewMode:g},r);switch(t.key){case"activity":return jsxRuntimeExports.jsx(EmptyCell,{},r);case"vendor":default:return jsxRuntimeExports.jsxs(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,isQuickViewMode:g,isSticky:!0===t.isSticky,className:"item-value-container",children:[jsxRuntimeExports.jsx(RecommendationIcon,{isCOTEnabled:C,recommendations:Ie,type:"vendor",isEnabled:Boolean(xt?.isPreFilled),isMisCategorized:vt,onRecommendationClick:se,selectedValue:ye,selectedValueLabel:Se,isReviewTab:$t,isAccountOptionDisabled:_e,existingOption:{label:null!=p&&!0===clientEpicState.isVendorTransaction(p)?p?.vendor?.name:void 0,value:null!=p&&!0===clientEpicState.isVendorTransaction(p)?p?.vendor?.id:void 0},cotTracking:$,lineId:l.lineId,transactionId:d.transactionId,openTooltipId:v,setOpenTooltipId:R}),jsxRuntimeExports.jsx(SelectContainerWrapper,{children:!0===Ae?jsxRuntimeExports.jsx(StyledHoveredBackground,{isHovered:h,isQuickViewMode:g,children:jsxRuntimeExports.jsxs(ItemValue,{onClick:e=>{e.stopPropagation(),g||(k?.(),je(!1),Be(!0))},"data-testid":generateDataTestId("add-vendor-button",x),style:{display:"inline-flex",alignItems:"center",color:Colors.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[addPayee,!1===g&&jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})}):!0===Pe?jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:at,children:jsxRuntimeExports.jsx(VendorSelectContainer,{"data-testid":generateDataTestId("vendor-selection-dropdown-container",uniqueName$a(x,transactionDetailLineEntitySelection,c.toString())),children:jsxRuntimeExports.jsx(AutoCompleteGroupedCreatableSingleSelectCustomGroupFieldWithCOT,{name:oe,transactionId:d.transactionId,lineId:l.lineId,feedbackContext:Ce,placeholder:addPayee,valueToInfo:Te,defaultValue:{selectedOption:ft.selectedOption,selectedOptionLabel:Se,defaultOptions:ft.defaultOptions},type:"vendor",autoFocus:!Ae,style:{width:"100%"},pageSource:"list_page",transactionStatus:$t?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:s,menuIsOpen:Pe,onMenuClose:at,registerOptions:{required:!1},loadOptions:rt,showCOT:C,onCOTView:ee,menuPlacement:b,menuPortal:document.body})})}):jsxRuntimeExports.jsx(VendorNameTextContainer,{children:jsxRuntimeExports.jsxs(StyledBackgroundHover,{isHovered:h,isQuickViewMode:g,children:[null!=xt&&null!=xt.logo?jsxRuntimeExports.jsx(EntityLogoAvatarWithCustomFallback,{photoUrl:xt.logo.toString(),styles:{width:D$k.nameLogoWidth.valuePx(u),height:D$k.nameLogoHeight.valuePx(u)},fallbackAvatar:jsxRuntimeExports.jsx(EntityAvatarContainer$1,{children:jsxRuntimeExports.jsx(EntityAvatar,{name:xt.name})})}):null!=xt&&null!=xt.name?jsxRuntimeExports.jsx(EntityAvatarContainer$1,{children:jsxRuntimeExports.jsx(EntityAvatar,{name:xt.name})}):null,jsxRuntimeExports.jsxs(VendorNameText,{onClick:dt,"data-testid":generateDataTestId("vendor-name-text",x),children:[null!=xt&&!0===Boolean(xt.name)?jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:xt.name,itemTextStyle:{color:h?le.colors.primary:le.colors.champion,fontSize:textStyles.standardMedium.fontSizeValue,fontWeight:textStyles.standardMedium.fontWeight}}):jsxRuntimeExports.jsx(NameText,{children:hyphen$6}),!1===g&&jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})]})})})]},r);case"category":return isJournalEntryCreditLine(M,l.postingType)?jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,style:{paddingLeft:Space.sp6},isLastItem:o===e.length-1,children:jsxRuntimeExports.jsx(ItemText$1,{style:{textAlign:"left",width:"100%"},children:hyphen$6})})},r):Rt({isLineRecommendationsLoading:At,itemsData:t,key:r,resolvedWidthPercentage:m});case"class":{if(!A)return null;if(!0===At)return jsxRuntimeExports.jsx(RecommendationCellSkeleton,{windowSize:u,wrapperWidth:t.width,widthPercentage:m},r);const e=null!=p?.lines?p?.lines[c]:void 0;return jsxRuntimeExports.jsxs(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,className:"item-value-container",children:[jsxRuntimeExports.jsx(RecommendationIcon,{isCOTEnabled:C,recommendations:Ie,type:"class",isReviewTab:$t,isEnabled:Boolean(l[transactionDetailLineClass]?.isPreFilled),isAccountOptionDisabled:_e,isMisCategorized:wt,onRecommendationClick:se,selectedValue:pe,selectedValueLabel:St,existingOption:{label:e?.class?.className,value:e?.class?.classId},cotTracking:$,lineId:l.lineId,transactionId:d.transactionId,openTooltipId:v,setOpenTooltipId:R}),jsxRuntimeExports.jsx(SelectContainerWrapper,{children:!0===be?jsxRuntimeExports.jsx(StyledHoveredBackground,{isHovered:h,children:jsxRuntimeExports.jsxs(ItemValue,{onClick:e=>{e.stopPropagation(),g||(k?.(),$e(!1),Oe(!0))},"data-testid":generateDataTestId("class-selection-field",re),style:{display:"inline-flex",alignItems:"center",color:Colors.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[addClass2,jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})}):!0===Me?jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:lt,children:jsxRuntimeExports.jsx(SelectContainer,{isHovered:h,"data-testid":generateDataTestId("class-selection-dropdown-container",re),children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{name:re,transactionId:d.transactionId,lineId:l.lineId,feedbackContext:Ce,placeholder:addClass2,valueToId:e=>(e=>{const t=n.filter(t=>t.classId===e)[0];return t?.accountingClassNumber??void 0})(e),type:"class",showCOT:C,defaultValue:{selectedOption:pe,selectedOptionLabel:ue,allOptions:Le},pageSource:"list_page",transactionStatus:$t?"pending_review":"auto_categorized",menuIsOpen:Me,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!be&&!1===Boolean(pe),customStyleConfig:a,onMenuClose:lt,menuPlacement:b,menuPortal:document.body,onCOTView:ee})})}):jsxRuntimeExports.jsx(StyledBackgroundHover,{isHovered:h,children:jsxRuntimeExports.jsxs(StyledDiv$2,{"data-testid":generateDataTestId("class-selection-field",re),onClick:pt,children:[jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:St??"",itemTextStyle:{color:h?le.colors.primary:le.colors.champion,fontSize:textStyles.standardMedium.fontSizeValue,fontWeight:textStyles.standardMedium.fontWeight}}),jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})})})]},r)}case"project":return i?jsxRuntimeExports.jsxs(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,className:"item-value-container",children:[jsxRuntimeExports.jsx(RecommendationIconContainer,{children:jsxRuntimeExports.jsx("span",{})}),jsxRuntimeExports.jsx(SelectContainerWrapper,{children:!0===ve?jsxRuntimeExports.jsx(StyledHoveredBackground,{isHovered:h,children:jsxRuntimeExports.jsxs(ItemValue,{onClick:e=>{e.stopPropagation(),g||(k?.(),Ee(!1),Ne(!0))},"data-testid":generateDataTestId("project-selection-field",ae),style:{display:"inline-flex",alignItems:"center",color:Colors.neutralGrey1Light,cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[transactionsStrings.addProject,jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})}):!0===Fe?jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:ct,children:jsxRuntimeExports.jsx(SelectContainer,{isHovered:h,"data-testid":generateDataTestId("project-selection-dropdown-container",ae),children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{name:ae,placeholder:transactionsStrings.addProject,type:"project",showCOT:!1,defaultValue:{selectedOption:me,selectedOptionLabel:he,allOptions:De},pageSource:"list_page",transactionStatus:$t?"pending_review":"auto_categorized",menuIsOpen:Fe,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!ve&&!1===Boolean(me),customStyleConfig:a,onMenuClose:ct,menuPlacement:b,menuPortal:document.body})})}):jsxRuntimeExports.jsx(StyledBackgroundHover,{isHovered:h,children:jsxRuntimeExports.jsxs(StyledDiv$2,{"data-testid":generateDataTestId("project-selection-field",ae),onClick:ut,children:[jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:Ct??"",itemTextStyle:{color:h?le.colors.primary:le.colors.champion,fontSize:textStyles.standardMedium.fontSizeValue,fontWeight:textStyles.standardMedium.fontWeight}}),jsxRuntimeExports.jsx(ChevronIconContainer,{children:jsxRuntimeExports.jsx(StyledArrowBottomSmall,{})})]})})})]},r):null;case"date":return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,isLastItem:o===e.length-1,children:jsxRuntimeExports.jsx(TextContainer$1,{"data-testid":generateDataTestId("date-field",uniqueName$a(x,transactionDetailLineClass,c.toString())),children:jsxRuntimeExports.jsx(ItemText$1,{style:{color:h?le.colors.primary:le.colors.champion},children:null!=B?B.format(dateFormat$b.visual.MMMDCommaYYYYformat):null})})})},r);case"transaction_type":{const n=isTransferConvertibleSourceType(M,T);return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:null!=O?jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,"data-testid":generateDataTestId("transaction-type-field",uniqueName$a(x,transactionDetailLineClass,c.toString())),isLastItem:o===e.length-1,children:jsxRuntimeExports.jsxs(TypeTagAnchor,{className:n&&G?"select-value-container":void 0,children:[n&&q?jsxRuntimeExports.jsx(Tooltip$6,{title:transactionsStrings.transactionTypeDropdown.multilineNotEligibleTooltip,enterDelay:600,placement:"bottom",children:jsxRuntimeExports.jsx(StyledCapsule,{label:O??M})}):jsxRuntimeExports.jsx(StyledCapsule,{label:O??M,onClick:n&&G?()=>{K(Y,buildTypeDropdownValue(M??"expense",W,O)),z(!0)}:void 0,capsuleBackground:G&&N?le.colors.background:void 0,showChevron:n&&G}),n&&G&&N&&jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:()=>z(!1),children:jsxRuntimeExports.jsx(TypeSelectWrapper,{children:jsxRuntimeExports.jsx(GroupedSingleSelectFieldWithCOT,{name:Y,defaultValue:buildTypeDropdownValue(M??"expense",W,O),pageSource:"list_page",showCOT:!1,transactionStatus:$t?"pending_review":"auto_categorized",type:"category",menuIsOpen:N,autoFocus:!0,onMenuClose:()=>z(!1),customStyleConfig:V,menuPlacement:b,menuPortal:H,allowEmpty:!1,menuOptionPresentation:"typePill"})})})]})}):null},r)}case"amount":{const e=amountToString("0,0.[00]",l.amount,!0);return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,style:{marginRight:sp[0]},wrapperWidth:t.width,widthPercentage:m,isQuickViewMode:g,isLastItem:!0,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,isLastItem:!0,style:{justifyContent:"flex-end"},children:jsxRuntimeExports.jsx(TextContainer$1,{"data-testid":generateDataTestId("transaction-amount-field",uniqueName$a(x,transactionDetailLineClass,c.toString())),style:{color:h?le.colors.primary:le.colors.champion},children:e})})},r)}case"payment_account":{if("journal_entry"===M)return"credit"===l.postingType?Rt({isLineRecommendationsLoading:At,itemsData:t,key:r,resolvedWidthPercentage:m}):jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,style:{paddingLeft:Space.sp6},isLastItem:o===e.length-1,children:jsxRuntimeExports.jsx(ItemText$1,{style:{textAlign:"left",width:"100%"},children:hyphen$6})})},r);if(!("expense"===M||"check"===M||"bill_payment"===M||"vendor_credit"===M||"credit_card_credit"===M||"deposit"===M||"sales_receipt"===M||"refund"===M||"payment"===M))return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,style:{paddingLeft:Space.sp6},isLastItem:o===e.length-1,children:jsxRuntimeExports.jsx(ItemText$1,{style:{textAlign:"left",width:"100%"},children:hyphen$6})})},r);const n=p?.account?.accountName,i=p?.paymentType,a=p?.paymentTypeName,s="credit_card"===i?StyledCardsIcon:"cash"===i?StyledOfflinePaymentsIcon:"check"===i?StyledChequeIcon:"ach"===i?StyledPaymentACHIcon:StyledBankLetterIcon,c={title:empty$4,items:[{text:account+colon$1,amount:n??hyphen$6},...null!=a?[{text:method+colon$1,amount:a}]:[]]};return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:u,isLastItem:o===e.length-1,children:jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",variant:"list-description",data:c,title:n??hyphen$6,enterDelay:600,arrow:!0,style:{overflow:"hidden",minWidth:0},children:jsxRuntimeExports.jsxs(PaymentAccountContainer,{"data-testid":generateDataTestId("payment-account",x),style:{color:h?le.colors.primary:le.colors.champion},children:[null!=s&&jsxRuntimeExports.jsx(s,{style:{color:h?le.colors.primary:le.colors.champion,width:Space.sp5}}),jsxRuntimeExports.jsx(ItemText$1,{style:{color:"inherit",whiteSpace:"pre-wrap"},children:n??hyphen$6})]})})})},r)}case"memo_and_receipt":{const e=p?.attachments??[],n="In-Progress"===_?.fetchState,o=t=>{if(t.stopPropagation(),0===e.length||null==p)return;if(null==nt)return void console.warn("webV2MicroServiceEndpoint is not available, cannot fetch attachments.");Ke(e[0]),We(0),He(!0);const n=e.map(e=>e.id);fetchTransactionAttachments(`${nt}/transaction_attachments`,L,{transaction_key:{transaction_id:p.id,transaction_type:p.type},attachment_ids:n}).then(e=>{Qe(e),e.length>0&&Ge(e[0])})},i=e=>{e.stopPropagation(),Ze.current?.click()};return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:u,wrapperWidth:t.width,widthPercentage:m,"data-testid":generateDataTestId("memo-field",uniqueName$a(x,transactionDetailLineClass,c.toString())),children:jsxRuntimeExports.jsxs(MemoReceiptColumnContainer,{className:"item-value-container",children:[null!=ne?jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",data:ne,variant:"multi-information-points",arrow:!0,style:{maxHeight:"min(60vh, 360px)",overflowY:"auto",overflowX:"hidden"},children:jsxRuntimeExports.jsx(StyledMemoIcon,{"data-testid":generateDataTestId("memo-icon",x),style:{color:h?le.colors.primary:le.colors.champion}})}):jsxRuntimeExports.jsx(StyledHyphen,{style:{margin:0},children:hyphen$6}),n?jsxRuntimeExports.jsx(ActivityIndicator,{size:"Small",style:{display:"flex"},start:!0}):0===e.length?jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",title:addReceipt,arrow:!0,enterDelay:600,children:jsxRuntimeExports.jsx(StyledAddRoundIcon$2,{"data-testid":generateDataTestId("upload-receipt-icon",x),style:{margin:0},onClick:e=>{e.stopPropagation(),i(e)}})}):1===e.length?jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",title:viewReceipt$1,arrow:!0,enterDelay:600,children:jsxRuntimeExports.jsx(StyledDocumentsIcon,{"data-testid":generateDataTestId("view-receipt-icon",x),style:{color:h?le.colors.primary:le.colors.champion},onClick:o})}):jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",arrow:!0,title:viewReceipts$1,enterDelay:600,children:jsxRuntimeExports.jsx(StyledReceiptsMultipleIcon,{"data-testid":generateDataTestId("view-receipts-icon",x),style:{color:h?le.colors.primary:le.colors.hero},onClick:o})}),jsxRuntimeExports.jsx(FileInputElement,{name:`transaction-receipt-${d.transactionId}`,fileRef:Ze,sizeLimit:SizeLimit32MB,multiple:!0,acceptableTypes:[...clientEpicState.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:e=>{const t=e.target.files;if(null!=t&&t.length>0){const e=Array.from(t);P(S,d.transactionId,M??empty$4,e,e.map(e=>e.name))}},onFileSizeError:()=>{}})]})},r)}}})})(),ze&&jt.length>0&&null!=Tt?ReactDOM.createPortal(jsxRuntimeExports.jsx(DocumentWithThumbnailView,{allFiles:qe,fileSource:Ue,file:Tt,title:Tt.fileName,attachments:jt,showNavigation:!1,setFileSource:Ge,setShowFullScreenView:He,onCrossClick:()=>{He(!1),Ge(null),Qe([]),Ke(void 0),We(0)},onNextClick:()=>{const e=(Ve+1)%jt.length;We(e),Ke(jt[e]),null!=qe[e]&&Ge(qe[e])},onPreviousClick:()=>{const e=(Ve-1+jt.length)%jt.length;We(e),Ke(jt[e]),null!=qe[e]&&Ge(qe[e])},setSelectedFileAttachment:e=>{Ke("function"==typeof e?t=>e(t??jt[0]):e)},handleTouchStart:e=>Je(e.targetTouches[0].clientX),handleTouchMove:e=>tt(e.targetTouches[0].clientX),handleTouchEnd:()=>{if(Xe-et>50&&0!==et&&Ve<jt.length-1){const e=Ve+1;We(e),Ke(jt[e]),null!=qe[e]&&Ge(qe[e]),Je(0),tt(0)}else if(Xe-et<-50&&0!==et&&Ve>0){const e=Ve-1;We(e),Ke(jt[e]),null!=qe[e]&&Ge(qe[e]),Je(0),tt(0)}}}),document.body):null]})},RecommendationIconContent=({isEnabled:e,isMisCategorized:t,hasRecommendations:n,isTooltipVisible:o=!1,type:i})=>e?o?jsxRuntimeExports.jsx(StyledAISelectedFilledIconPlain,{"data-testid":generateDataTestId("recommendation-icon",i)}):jsxRuntimeExports.jsx(StyledAIIconSelectedPlain,{className:"ai-icon-selected-plain","data-testid":generateDataTestId("recommendation-icon",i)}):!e&&t||n?o?jsxRuntimeExports.jsx(StyledAIFilledIcon,{"data-testid":generateDataTestId("recommendation-icon",i)}):jsxRuntimeExports.jsx(StyledAIIcon$1,{"data-testid":generateDataTestId("recommendation-icon",i)}):null,RecommendationIconContainer=({children:e})=>jsxRuntimeExports.jsx(COTContent,{children:e}),RecommendationIcon=({recommendations:e,isCOTEnabled:t,type:n,isReviewTab:o,selectedValueLabel:i,isEnabled:r=!1,isMisCategorized:a=!1,selectedValue:s,existingOption:l,cotTracking:c,lineId:d,openTooltipId:p,transactionId:u,isAccountOptionDisabled:m,onRecommendationClick:h,setOpenTooltipId:g})=>{const x=React.useMemo(()=>`${u}:${d}:${n}`,[u,d,n]),f=p===x,y=useToolkitContext().analytics,{createAlternateRecommendationCallback:S}=useCOTAnalytics(),C=React.useCallback(t=>{const r=e[1],a=e[0];S(n,{currentValue:i??empty$4,transactionCurrentStatus:o?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:c?{transactionId:u,lineId:d,onCOTView:(e,t,n,o)=>{c.onCOTView?.(e,t,n,o)}}:void 0},r,a)(t)},[S,e,i,o,n,c,d,u]),b=createCOTDataFromRecommendations(e,n,t,l,"list_page",o?"pending_review":"auto_categorized",h,C,s,m),$=hasRecommendationsForType(e,n),v=React.useCallback(()=>{g(x);const e=b?.recommendations[0]?.cot??[],t=b?.recommendations[1]?.cot??[],r=t.length>0;if(y.trackTransactionCotView({recommendationFor:n,currentValue:i??empty$4,recommendation:b?.recommendations[0]?.name??empty$4,recommendationCot:e,isRecommendationCotAvailable:e.length>0,recommendationReason:b?.recommendations[0]?.reason??empty$4,recommendationConfidencePercentage:b?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:toConfidenceLevelType(getConfidenceLevel(b?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:b?.recommendations[1]?.name??empty$4,alternativeRecommendationCot:t,isAlternativeRecommendationCotAvailable:r,alternativeRecommendationReason:b?.recommendations[1]?.reason??empty$4,alternativeRecommendationConfidencePercentage:b?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:r?toConfidenceLevelType(getConfidenceLevel(b?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:o?"pending_review":"auto_categorized",transactionPage:"list_page",transactionId:u??null,lineId:d??null}),null!=c?.onCOTView){const e=getCOTRecommendationSourceToTrack(b);null!=e&&c.onCOTView(d,u,n,e)}},[y,b,o,i,n,d,u,x,g]),E=React.useCallback(()=>{p===x&&g(void 0)},[p,x,g]),w=React.useMemo(()=>!(!1===Boolean(s)||!$)&&e.some(e=>"vendor"===n&&null!=e.vendor?e.vendor.id===s||e.vendor.qboId===s:"category"===n&&null!=e.account?e.account.qboId===s||e.account.accountId===s:"class"===n&&null!=e.class&&e.class.classId===s),[s,$,e,n]);if(!$)return jsxRuntimeExports.jsx(COTContent,{});const R=r||w;return b?jsxRuntimeExports.jsx(RecommendationIconContainer,{children:jsxRuntimeExports.jsx(Tooltip$6,{variant:"chain-of-thought",data:b,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:f,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:v,onClose:E,children:jsxRuntimeExports.jsx(COTContentWrapper,{"data-testid":generateDataTestId("recommendation-icon",n),children:jsxRuntimeExports.jsx(RecommendationIconContent,{isEnabled:R,isMisCategorized:a,hasRecommendations:$,isTooltipVisible:f})})})}):jsxRuntimeExports.jsx(RecommendationIconContainer,{children:jsxRuntimeExports.jsx(RecommendationIconContent,{isEnabled:R,isMisCategorized:a,hasRecommendations:$,isTooltipVisible:f,type:n})})},TransactionCategorizationListEmptyRow=({isAccountingClassesEnabled:e,showProjectField:t})=>{const n=useWindowSizeContext(),o=useQuickViewMode(),i=useFlexibleWidth(),r=o?compressedTransactionCategorizationHeaderItemsData:getTransactionCategorizationHeaderItemsData(e,t);return jsxRuntimeExports.jsx(EmptyRowContainer,{$flexibleWidth:i,windowSize:n,isQuickViewMode:o,children:r.map((i,a)=>{const s=`${a}${underscore$1}${i.key}`,l=resolveTransactionCategorizationWidthPercentage(i,e,t);switch(i.key){case"activity":return jsxRuntimeExports.jsx(EmptyCell,{},s);case"vendor":return jsxRuntimeExports.jsx(RowItemContainer$1,{windowSize:n,wrapperWidth:i.width,widthPercentage:l,isQuickViewMode:o,isSticky:i.isSticky,style:i.customStyle?.common,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:n,isLastItem:a===r.length-1,children:jsxRuntimeExports.jsxs(TextContainer$1,{children:[jsxRuntimeExports.jsx(CircularContentLoader,{width:sp[4],height:sp[4]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{height:sp[4],width:sp[12],style:{display:"flex",alignItems:"center"}})]})})},s);default:{const e=a===r.length-1;return jsxRuntimeExports.jsx(RowItemContainer$1,{isLastItem:e,windowSize:n,wrapperWidth:i.width,widthPercentage:l,isQuickViewMode:o,style:i.customStyle?.common,children:jsxRuntimeExports.jsx(RowItem$2,{windowSize:n,isLastItem:e,children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[4],style:{display:"flex",alignItems:"center"}})})},s)}}})})},EmptyCell=styled$2.div`
|
|
81340
81620
|
width: ${Space.sp0};
|
|
81341
81621
|
height: ${Space.sp0};
|
|
81342
81622
|
`,RowWrapper=styled$2.div`
|
|
@@ -81960,7 +82240,7 @@ to {
|
|
|
81960
82240
|
display: flex;
|
|
81961
82241
|
flex-direction: column;
|
|
81962
82242
|
width: 100%;
|
|
81963
|
-
`,ListTable=e=>{const{accountListNestedAccountHierarchy:t,baseTransactionSearchFetchState:n,baseTransactionSearchResults:o,classListNestedAccountHierarchy:i,currentFooterFormId:r,filters:a,onJeAccountSettingsChange:s,onSaveJeAccountSettingsClick:l,onSaveSchedule:c,onScheduleTypeChange:d,onSearchBaseTransaction:p,onViewTransaction:u,newScheduleLocalData:m,initialSelectedBaseTransaction:h,isAccrualEnabled:g,onNewScheduleFormChange:x,setResetJeAccountSettingsForm:f,expenseAutomationViewSelector:y,isAccountingClassesEnabled:S,isProjectsTransactionsEnabled:C,isTransactionActivityEnabled:b,authParams:$,receiptUploadEndpoint:v,companyId:E,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:R,enableMonthEndInsightsZeniGPTFeature:A,monthEndInsightsPreviewMode:j,monthEndInsightsCustomerRequestData:T,allThreadsSectionOpen:I,loggedInUser:k,isCOTEnabled:L,setCurrentFooterFormId:D,onFetchRecommendationsForEntityCategorization:_,onFetchRecommendationsForEntityCategorizationWithCustomer:P,onTransactionCategorizationRowClick:B,onFetchMissingReceiptsList:M,onMissingReceiptsRowClick:O,onUploadReceiptAttachment:F,onUploadReceiptComplete:N,onUploadReceiptFetchStatus:z,onReconTabColumnSortConfigChanged:H,onReloadReconciliationListPage:V,onUpdateReconcileTabLocalData:W,onUpdateMissingReceiptsUIState:U,onUpdateJESchedulesUIState:G,onFetchTransactionCategorizationList:q,onUpdateTransactionCategorizationUIState:Q,onUpdateScrollYOffSetTransactionCategorizationUIState:Y,handleJeScheduleClick:K,onOneTimeAccrualClick:Z,onOpenMatch:X,onOneTimeAccrualFeedback:J,ignoreRecommendedJeSchedule:ee,onJESchedulesFormDataChange:te,onPostJESchedule:ne,onToggleCreatedGroupCollapsed:oe,onTogglePendingGroupCollapsed:ie,onUpdateJEScheduleTypeFilter:re,setLocalDataForCategoryAndClass:ae,resetTransactionCategorizationLocalData:se,updateSelectedVendorForTransaction:le,onSaveUpdateTransactionCategorization:ce,onUpdateSelectedCheckboxTransactionIds:de,improveMonthEndInsightsUsingZeniGPTClick:pe,onRemoveFileAttachment:ue,onUpdateFileAttachment:me,onCloseAllThreadsSection:he,onEditMonthEndInsightsClick:ge,previewMonthEndReport:xe,saveMonthEndReport:fe,onOpenFileAttachmentSnackBar:ye,onCloseFileAttachmentSnackBar:Se,onClickCustomerRequest:Ce,sendMonthEndReport:be,markAsReview:$e,onReloadPage:ve,updateOperatingExpensesIdsForReview:Ee,onFetchReimbursementView:we,updateSectionIdsForReview:Re,onUpdateFluxAnalysisUIState:Ae,fetchFluxViewOnScroll:je,onFetchFluxViewList:Te,setIsJeAccountSettingsOpened:Ie,isCreatingNewSchedule:ke,setIsCreatingNewSchedule:Le,initialScheduleDetailsMode:De,initialScheduleType:_e,onReviewClicked:Pe,setOpenDrawerClicked:Be,onEstablishConnectionClick:Me,onFetchLinkTokenClick:Oe,updateReconReviewTabLocalData:Fe,onReconReviewTabColumnSortConfigChanged:Ne,onSaveReconciliation:ze,onSaveReconciliationReview:He,onReconMatchedTransactionClick:Ve,onAddStatementClick:We,redirectToVendorDetailPage:Ue,onOpenTransferRightPanel:Ge,isCreateTransferEntryFromExpenseEnabled:qe,setActivityLogTransactionId:Qe,onReconNodeCollapseToggled:Ye,onExcludeAccountFromReconciliation:Ke,onIncludeAccountIntoReconciliation:Ze,isReconV3Enabled:Xe,onClearMatchNewModal:Je,onCloseMatchNewModal:et,onIgnoreMatchSuggestion:tt,onMatchAndReverse:nt,onOpenMatchNewModal:ot,onSearchMatchAccruals:it,onSearchMatchTransactions:rt,onUndoReversal:at,onUpdateActualMatchingUIState:st}=e,{currentSelectedView:lt,missingReceipts:ct,transactionView:dt,selectedPeriod:pt,monthEndInsights:ut,selectedTransactionCategorizationTab:mt,reconciliation:ht}=y;switch(lt){case"transaction_categorization":if("Completed"===dt.fetchState&&0===dt.transactionLocalData.length){const{title:e,subTitle:t}=getNavBarHeaderData(lt).allDoneText,n=hasActiveSearchOrFilters(dt.uiState.searchString??"",a);return jsxRuntimeExports.jsx(EmptyTableSection,{tab:lt,title:n&&emptyStates?.noSearchResults?.title?emptyStates.noSearchResults.title:e,subTitle:n&&emptyStates?.noSearchResults?.subTitle?emptyStates.noSearchResults.subTitle:t,useNoSearchResultIcon:n})}return jsxRuntimeExports.jsx(TransactionCategorizationListPage,{companyId:E,setCurrentFooterFormId:D,selectedPeriod:pt,selectedTab:mt,sectionId:transactionCategorizationListTableSectionId,transactionView:dt,authParams:$,isAccountingClassesEnabled:S,isProjectsTransactionsEnabled:C,isTransactionActivityEnabled:b,onUpdateTransactionCategorizationUIState:Q,onUpdateScrollYOffSetTransactionCategorizationUIState:Y,onFetchTransactionCategorizationList:q,onTransactionCategorizationRowClick:B,setLocalDataForCategoryAndClass:ae,resetTransactionCategorizationLocalData:se,updateSelectedVendorForTransaction:le,onSaveUpdateTransactionCategorization:ce,onUpdateSelectedCheckboxTransactionIds:de,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:R,onFetchRecommendationsForEntityCategorization:_,onFetchRecommendationsForEntityCategorizationWithCustomer:P,isCOTEnabled:L,isCreateTransferEntryFromExpenseEnabled:qe,onOpenTransferRightPanel:Ge,setActivityLogTransactionId:Qe,onUploadTransactionReceipt:e.onUploadTransactionReceipt});case"je_schedules":return jsxRuntimeExports.jsx(JESchedulePage,{closeMonth:e.closeMonth,isMatchPanelOpen:e.isMatchPanelOpen,isSchedulePanelOpen:e.isSchedulePanelOpen,matchPanelContent:e.matchPanelContent,schedulePanelContent:e.schedulePanelContent,schedulePendingDiscardConfirmation:e.schedulePendingDiscardConfirmation,accountListNestedAccountHierarchy:t,baseTransactionSearchFetchState:n,baseTransactionSearchResults:o,classListNestedAccountHierarchy:i,allDepreciationAccountListNestedAccountHierarchy:e.allDepreciationAccountListNestedAccountHierarchy,newAccrualAccountsView:e.newAccrualAccountsView,newScheduleSaveStatus:e.newScheduleSaveStatus,onCreateAccruedSchedule:e.onCreateAccruedSchedule,onCreateOneTimeAccrual:e.onCreateOneTimeAccrual,isAccountingClassesEnabled:S,setIsJeAccountSettingsOpened:Ie,isCreatingNewSchedule:ke,setIsCreatingNewSchedule:Le,initialScheduleDetailsMode:De,initialScheduleType:_e,onSaveSchedule:c,onScheduleTypeChange:d,onSearchBaseTransaction:p,onViewTransaction:u,isAccrualEnabled:g,newScheduleLocalData:m,initialSelectedBaseTransaction:h,onNewScheduleFormChange:x,expenseAutomationViewSelector:y,setResetJeAccountSettingsForm:f,currentFooterFormId:r,onJeAccountSettingsChange:s,onSaveJeAccountSettingsClick:l,setCurrentFooterFormId:D,handleJeScheduleClick:K,onOneTimeAccrualClick:Z,onOneTimeAccrualFeedback:J,ignoreRecommendedJeSchedule:ee,onJESchedulesFormDataChange:te,onPostJESchedule:ne,onRevertJeSchedule:e.onRevertJeSchedule,onToggleCreatedGroupCollapsed:oe,onTogglePendingGroupCollapsed:ie,onUpdateJEScheduleTypeFilter:re,onUpdateJESchedulesUIState:G,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:R,onClearMatchNewModal:Je,onCloseMatchNewModal:et,onIgnoreMatchSuggestion:tt,onMatchAndReverse:nt,onOpenMatch:X,onOpenMatchNewModal:ot,onSearchMatchAccruals:it,onSearchMatchTransactions:rt,onUndoReversal:at,onUpdateActualMatchingUIState:st});case"missing_receipts":return"Completed"===ct.fetchState&&0===ct.transactions.length?jsxRuntimeExports.jsx(EmptyTableSection,{tab:lt,title:getNavBarHeaderData(lt).allDoneText.title,subTitle:getNavBarHeaderData(lt).allDoneText.subTitle}):jsxRuntimeExports.jsx(MissingReceiptsListTable,{onUpdateMissingReceiptsUIState:U,onFetchMissingReceiptsList:M,missingReceipts:ct,receiptUploadEndpoint:v,authParams:$,isAccountingClassesEnabled:S,selectedPeriod:pt,onMissingReceiptsRowClick:O,onUploadReceiptComplete:N,onUploadReceiptFetchStatus:z,onUploadReceiptAttachment:F});case"month_end_insights":if(null!=ut&&null!=y.monthEndCloseChecksView.monthEndCloseChecks){if("Not-Started"===ut.fetchState||"In-Progress"===ut.fetchState||"Not-Started"===ut.companyMonthEndReportTemplatesData.fetchState||"In-Progress"===ut.companyMonthEndReportTemplatesData.fetchState)return jsxRuntimeExports.jsx(BusyIndication,{fetchState:"In-Progress"});{const e={application:"cockpit",companyId:E,entityId:E,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:ut.companyName,url:window.location.href},{url:t,...n}=e,o={...n};return jsxRuntimeExports.jsx(MonthEndInsightsContainer,{children:jsxRuntimeExports.jsx(MonthEndInsightsForm,{allThreadsSectionOpen:I,customerRequestData:T,companyId:E,enableZeniGPTFeature:A,filterMetaData:o,selectedPeriod:y.selectedPeriod,improveUsingZeniGPTClick:pe,isZeniUser:k?.userEmail?.includes("zeni.ai")??!1,monthEndReportView:ut,newThreadMetadata:e,onClickCustomerRequest:Ce,onCloseAllThreadsSection:he,onCloseFileAttachmentSnackBar:Se,onOpenFileAttachmentSnackBar:ye,onRemoveFileAttachment:ue,onUpdateFileAttachment:me,previewMode:j,previewMonthEndReport:xe,saveMonthEndReport:fe,onEditClick:ge,sendMonthEndReport:be})})}}return null;case"flux_analysis":{const e=y.fluxAnalysis,t=e.fetchStatus.fetchState,n=e.sections.generalExpense.vendors.length>0||e.sections.reimbursement.vendors.length>0;return"Not-Started"===t||"In-Progress"===t&&!n?jsxRuntimeExports.jsx(FluxAnalysisTableSkeleton,{}):"Completed"===t&&0===e.sections.generalExpense.vendors.length&&0===e.sections.reimbursement.vendors.length?jsxRuntimeExports.jsx(EmptyTableSection,{tab:lt,title:getNavBarHeaderData(lt).allDoneText.title,subTitle:getNavBarHeaderData(lt).allDoneText.subTitle}):jsxRuntimeExports.jsx(FluxAnalysisTable,{isAccountingClassesEnabled:S,fluxAnalysis:e,selectedPeriod:y.selectedPeriod,markAsReview:$e,onReloadPage:ve,updateOperatingExpensesIdsForReview:Ee,updateSectionIdsForReview:Re,onUpdateFluxAnalysisUIState:Ae,setCurrentFooterFormId:D,fetchFluxViewOnScroll:je,onFetchFluxViewList:Te,onFetchReimbursementView:we,redirectToVendorDetailPage:Ue})}case"reconciliation":return jsxRuntimeExports.jsx(AccountReconciliationPage,{onReloadReconciliationListPage:V,currentFooterFormId:r,isAccountingClassesEnabled:S,reconciliation:ht,companyId:E,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:R,onReviewClicked:Pe,setOpenDrawerClicked:Be,setCurrentFooterFormId:D,onReconTabColumnSortConfigChanged:H,onUpdateReconcileTabLocalData:W,onEstablishConnectionClick:Me,onFetchLinkTokenClick:Oe,updateReconReviewTabLocalData:Fe,onReconReviewTabColumnSortConfigChanged:Ne,onSaveReconciliation:ze,onSaveReconciliationReview:He,onReconMatchedTransactionClick:Ve,onAddStatementClick:We,onReconNodeCollapseToggled:Ye,onExcludeAccountFromReconciliation:Ke,onIncludeAccountIntoReconciliation:Ze,isReconV3Enabled:Xe});default:return jsxRuntimeExports.jsx(EmptyTableSection,{tab:lt,title:getNavBarHeaderData(lt).allDoneText.title,subTitle:getNavBarHeaderData(lt).allDoneText.subTitle})}};function TableSection(e){const t=useWindowSizeContext();return jsxRuntimeExports.jsx(Container$n,{windowSize:t,children:jsxRuntimeExports.jsx(ListTable,{...e})})}const{expenseAutomation:{transactions:{transactionGroupFilter:strings$q}},common:{all:allLabel,texts:{income:income,expenses:expenses}}}=appLocale.getLocalizedStrings(),FilterRow=styled$2.div`
|
|
82243
|
+
`,ListTable=e=>{const{accountListNestedAccountHierarchy:t,baseTransactionSearchFetchState:n,baseTransactionSearchResults:o,classListNestedAccountHierarchy:i,currentFooterFormId:r,filters:a,onJeAccountSettingsChange:s,onSaveJeAccountSettingsClick:l,onSaveSchedule:c,onScheduleTypeChange:d,onSearchBaseTransaction:p,onViewTransaction:u,newScheduleLocalData:m,initialSelectedBaseTransaction:h,isAccrualEnabled:g,onNewScheduleFormChange:x,setResetJeAccountSettingsForm:f,expenseAutomationViewSelector:y,isAccountingClassesEnabled:S,isProjectsTransactionsEnabled:C,isTransactionActivityEnabled:b,authParams:$,receiptUploadEndpoint:v,companyId:E,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:R,enableMonthEndInsightsZeniGPTFeature:A,monthEndInsightsPreviewMode:j,monthEndInsightsCustomerRequestData:T,allThreadsSectionOpen:I,loggedInUser:k,isCOTEnabled:L,setCurrentFooterFormId:D,onFetchRecommendationsForEntityCategorization:_,onFetchRecommendationsForEntityCategorizationWithCustomer:P,onTransactionCategorizationRowClick:B,onFetchMissingReceiptsList:M,onMissingReceiptsRowClick:O,onUploadReceiptAttachment:F,onUploadReceiptComplete:N,onUploadReceiptFetchStatus:z,onReconTabColumnSortConfigChanged:H,onReloadReconciliationListPage:V,onUpdateReconcileTabLocalData:W,onUpdateMissingReceiptsUIState:U,onUpdateJESchedulesUIState:G,onFetchTransactionCategorizationList:q,onUpdateTransactionCategorizationUIState:Q,onUpdateScrollYOffSetTransactionCategorizationUIState:Y,handleJeScheduleClick:K,onOneTimeAccrualClick:Z,onOpenMatch:X,onOneTimeAccrualFeedback:J,ignoreRecommendedJeSchedule:ee,onJESchedulesFormDataChange:te,onPostJESchedule:ne,onToggleCreatedGroupCollapsed:oe,onTogglePendingGroupCollapsed:ie,onUpdateJEScheduleTypeFilter:re,setLocalDataForCategoryAndClass:ae,resetTransactionCategorizationLocalData:se,updateSelectedVendorForTransaction:le,onSaveUpdateTransactionCategorization:ce,onUpdateSelectedCheckboxTransactionIds:de,improveMonthEndInsightsUsingZeniGPTClick:pe,onRemoveFileAttachment:ue,onUpdateFileAttachment:me,onCloseAllThreadsSection:he,onEditMonthEndInsightsClick:ge,previewMonthEndReport:xe,saveMonthEndReport:fe,onOpenFileAttachmentSnackBar:ye,onCloseFileAttachmentSnackBar:Se,onClickCustomerRequest:Ce,sendMonthEndReport:be,markAsReview:$e,onReloadPage:ve,updateOperatingExpensesIdsForReview:Ee,onFetchReimbursementView:we,updateSectionIdsForReview:Re,onUpdateFluxAnalysisUIState:Ae,fetchFluxViewOnScroll:je,onFetchFluxViewList:Te,setIsJeAccountSettingsOpened:Ie,isCreatingNewSchedule:ke,setIsCreatingNewSchedule:Le,initialScheduleDetailsMode:De,initialScheduleType:_e,onReviewClicked:Pe,setOpenDrawerClicked:Be,onEstablishConnectionClick:Me,onFetchLinkTokenClick:Oe,updateReconReviewTabLocalData:Fe,onReconReviewTabColumnSortConfigChanged:Ne,onSaveReconciliation:ze,onSaveReconciliationReview:He,onReconMatchedTransactionClick:Ve,onAddStatementClick:We,redirectToVendorDetailPage:Ue,onOpenTransferRightPanel:Ge,isCreateTransferEntryFromExpenseEnabled:qe,setActivityLogTransactionId:Qe,onReconNodeCollapseToggled:Ye,onExcludeAccountFromReconciliation:Ke,onIncludeAccountIntoReconciliation:Ze,isReconV3Enabled:Xe,onClearMatchNewModal:Je,onCloseMatchNewModal:et,onIgnoreMatchSuggestion:tt,onMatchAndReverse:nt,onOpenBill:ot,onOpenMatchNewModal:it,onSearchMatchAccruals:rt,onSearchMatchTransactions:at,onUndoReversal:st,onUpdateActualMatchingUIState:lt}=e,{currentSelectedView:ct,missingReceipts:dt,transactionView:pt,selectedPeriod:ut,monthEndInsights:mt,selectedTransactionCategorizationTab:ht,reconciliation:gt}=y;switch(ct){case"transaction_categorization":if("Completed"===pt.fetchState&&0===pt.transactionLocalData.length){const{title:e,subTitle:t}=getNavBarHeaderData(ct).allDoneText,n=hasActiveSearchOrFilters(pt.uiState.searchString??"",a);return jsxRuntimeExports.jsx(EmptyTableSection,{tab:ct,title:n&&emptyStates?.noSearchResults?.title?emptyStates.noSearchResults.title:e,subTitle:n&&emptyStates?.noSearchResults?.subTitle?emptyStates.noSearchResults.subTitle:t,useNoSearchResultIcon:n})}return jsxRuntimeExports.jsx(TransactionCategorizationListPage,{companyId:E,setCurrentFooterFormId:D,selectedPeriod:ut,selectedTab:ht,sectionId:transactionCategorizationListTableSectionId,transactionView:pt,authParams:$,isAccountingClassesEnabled:S,isProjectsTransactionsEnabled:C,isTransactionActivityEnabled:b,onUpdateTransactionCategorizationUIState:Q,onUpdateScrollYOffSetTransactionCategorizationUIState:Y,onFetchTransactionCategorizationList:q,onTransactionCategorizationRowClick:B,setLocalDataForCategoryAndClass:ae,resetTransactionCategorizationLocalData:se,updateSelectedVendorForTransaction:le,onSaveUpdateTransactionCategorization:ce,onUpdateSelectedCheckboxTransactionIds:de,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:R,onFetchRecommendationsForEntityCategorization:_,onFetchRecommendationsForEntityCategorizationWithCustomer:P,isCOTEnabled:L,isCreateTransferEntryFromExpenseEnabled:qe,onOpenTransferRightPanel:Ge,setActivityLogTransactionId:Qe,onUploadTransactionReceipt:e.onUploadTransactionReceipt});case"je_schedules":return jsxRuntimeExports.jsx(JESchedulePage,{closeMonth:e.closeMonth,isMatchPanelOpen:e.isMatchPanelOpen,isSchedulePanelOpen:e.isSchedulePanelOpen,matchPanelContent:e.matchPanelContent,schedulePanelContent:e.schedulePanelContent,schedulePendingDiscardConfirmation:e.schedulePendingDiscardConfirmation,accountListNestedAccountHierarchy:t,baseTransactionSearchFetchState:n,baseTransactionSearchResults:o,classListNestedAccountHierarchy:i,allDepreciationAccountListNestedAccountHierarchy:e.allDepreciationAccountListNestedAccountHierarchy,newAccrualAccountsView:e.newAccrualAccountsView,newScheduleSaveStatus:e.newScheduleSaveStatus,onCreateAccruedSchedule:e.onCreateAccruedSchedule,onCreateOneTimeAccrual:e.onCreateOneTimeAccrual,isAccountingClassesEnabled:S,setIsJeAccountSettingsOpened:Ie,isCreatingNewSchedule:ke,setIsCreatingNewSchedule:Le,initialScheduleDetailsMode:De,initialScheduleType:_e,onSaveSchedule:c,onScheduleTypeChange:d,onSearchBaseTransaction:p,onViewTransaction:u,isAccrualEnabled:g,newScheduleLocalData:m,initialSelectedBaseTransaction:h,onNewScheduleFormChange:x,expenseAutomationViewSelector:y,setResetJeAccountSettingsForm:f,currentFooterFormId:r,onJeAccountSettingsChange:s,onSaveJeAccountSettingsClick:l,setCurrentFooterFormId:D,handleJeScheduleClick:K,onOneTimeAccrualClick:Z,onOneTimeAccrualFeedback:J,ignoreRecommendedJeSchedule:ee,onJESchedulesFormDataChange:te,onPostJESchedule:ne,onRevertJeSchedule:e.onRevertJeSchedule,onToggleCreatedGroupCollapsed:oe,onTogglePendingGroupCollapsed:ie,onUpdateJEScheduleTypeFilter:re,onUpdateJESchedulesUIState:G,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:R,onClearMatchNewModal:Je,onCloseMatchNewModal:et,onIgnoreMatchSuggestion:tt,onMatchAndReverse:nt,onOpenBill:ot,onOpenMatch:X,onOpenMatchNewModal:it,onSearchMatchAccruals:rt,onSearchMatchTransactions:at,onUndoReversal:st,onUpdateActualMatchingUIState:lt});case"missing_receipts":return"Completed"===dt.fetchState&&0===dt.transactions.length?jsxRuntimeExports.jsx(EmptyTableSection,{tab:ct,title:getNavBarHeaderData(ct).allDoneText.title,subTitle:getNavBarHeaderData(ct).allDoneText.subTitle}):jsxRuntimeExports.jsx(MissingReceiptsListTable,{onUpdateMissingReceiptsUIState:U,onFetchMissingReceiptsList:M,missingReceipts:dt,receiptUploadEndpoint:v,authParams:$,isAccountingClassesEnabled:S,selectedPeriod:ut,onMissingReceiptsRowClick:O,onUploadReceiptComplete:N,onUploadReceiptFetchStatus:z,onUploadReceiptAttachment:F});case"month_end_insights":if(null!=mt&&null!=y.monthEndCloseChecksView.monthEndCloseChecks){if("Not-Started"===mt.fetchState||"In-Progress"===mt.fetchState||"Not-Started"===mt.companyMonthEndReportTemplatesData.fetchState||"In-Progress"===mt.companyMonthEndReportTemplatesData.fetchState)return jsxRuntimeExports.jsx(BusyIndication,{fetchState:"In-Progress"});{const e={application:"cockpit",companyId:E,entityId:E,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:mt.companyName,url:window.location.href},{url:t,...n}=e,o={...n};return jsxRuntimeExports.jsx(MonthEndInsightsContainer,{children:jsxRuntimeExports.jsx(MonthEndInsightsForm,{allThreadsSectionOpen:I,customerRequestData:T,companyId:E,enableZeniGPTFeature:A,filterMetaData:o,selectedPeriod:y.selectedPeriod,improveUsingZeniGPTClick:pe,isZeniUser:k?.userEmail?.includes("zeni.ai")??!1,monthEndReportView:mt,newThreadMetadata:e,onClickCustomerRequest:Ce,onCloseAllThreadsSection:he,onCloseFileAttachmentSnackBar:Se,onOpenFileAttachmentSnackBar:ye,onRemoveFileAttachment:ue,onUpdateFileAttachment:me,previewMode:j,previewMonthEndReport:xe,saveMonthEndReport:fe,onEditClick:ge,sendMonthEndReport:be})})}}return null;case"flux_analysis":{const e=y.fluxAnalysis,t=e.fetchStatus.fetchState,n=e.sections.generalExpense.vendors.length>0||e.sections.reimbursement.vendors.length>0;return"Not-Started"===t||"In-Progress"===t&&!n?jsxRuntimeExports.jsx(FluxAnalysisTableSkeleton,{}):"Completed"===t&&0===e.sections.generalExpense.vendors.length&&0===e.sections.reimbursement.vendors.length?jsxRuntimeExports.jsx(EmptyTableSection,{tab:ct,title:getNavBarHeaderData(ct).allDoneText.title,subTitle:getNavBarHeaderData(ct).allDoneText.subTitle}):jsxRuntimeExports.jsx(FluxAnalysisTable,{isAccountingClassesEnabled:S,fluxAnalysis:e,selectedPeriod:y.selectedPeriod,markAsReview:$e,onReloadPage:ve,updateOperatingExpensesIdsForReview:Ee,updateSectionIdsForReview:Re,onUpdateFluxAnalysisUIState:Ae,setCurrentFooterFormId:D,fetchFluxViewOnScroll:je,onFetchFluxViewList:Te,onFetchReimbursementView:we,redirectToVendorDetailPage:Ue})}case"reconciliation":return jsxRuntimeExports.jsx(AccountReconciliationPage,{onReloadReconciliationListPage:V,currentFooterFormId:r,isAccountingClassesEnabled:S,reconciliation:gt,companyId:E,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:R,onReviewClicked:Pe,setOpenDrawerClicked:Be,setCurrentFooterFormId:D,onReconTabColumnSortConfigChanged:H,onUpdateReconcileTabLocalData:W,onEstablishConnectionClick:Me,onFetchLinkTokenClick:Oe,updateReconReviewTabLocalData:Fe,onReconReviewTabColumnSortConfigChanged:Ne,onSaveReconciliation:ze,onSaveReconciliationReview:He,onReconMatchedTransactionClick:Ve,onAddStatementClick:We,onReconNodeCollapseToggled:Ye,onExcludeAccountFromReconciliation:Ke,onIncludeAccountIntoReconciliation:Ze,isReconV3Enabled:Xe});default:return jsxRuntimeExports.jsx(EmptyTableSection,{tab:ct,title:getNavBarHeaderData(ct).allDoneText.title,subTitle:getNavBarHeaderData(ct).allDoneText.subTitle})}};function TableSection(e){const t=useWindowSizeContext();return jsxRuntimeExports.jsx(Container$n,{windowSize:t,children:jsxRuntimeExports.jsx(ListTable,{...e})})}const{expenseAutomation:{transactions:{transactionGroupFilter:strings$q}},common:{all:allLabel,texts:{income:income,expenses:expenses}}}=appLocale.getLocalizedStrings(),FilterRow=styled$2.div`
|
|
81964
82244
|
display: flex;
|
|
81965
82245
|
flex-direction: row;
|
|
81966
82246
|
align-items: flex-end;
|
|
@@ -82087,7 +82367,7 @@ to {
|
|
|
82087
82367
|
height: 12px;
|
|
82088
82368
|
flex-shrink: 0;
|
|
82089
82369
|
margin-top: 2px;
|
|
82090
|
-
`,{expenseAutomation:{accountRecon:{reconciliation:{stepsBanner:copy}}},common:{show:show,texts:{hide:hide$1,select:select,step1:step1,step2:step2}}}=appLocale.getLocalizedStrings();function AccountReconciliationStepsBanner(){const[e,t]=React.useState(!1);return e?jsxRuntimeExports.jsxs(CollapsedBanner,{onClick:()=>t(!1),"data-testid":generateDataTestId("account-reconciliation-steps-banner","collapsed"),children:[jsxRuntimeExports.jsxs(CollapsedLead,{children:[jsxRuntimeExports.jsx(CollapsedHeaderIcon,{}),jsxRuntimeExports.jsx(CollapsedTitleText,{children:copy.collapsedTitle})]}),jsxRuntimeExports.jsxs(CollapsedShow,{children:[show,jsxRuntimeExports.jsx(CollapsedShowChevron,{"aria-hidden":!0})]})]}):jsxRuntimeExports.jsxs(Banner$4,{"data-testid":generateDataTestId("account-reconciliation-steps-banner","expanded"),children:[jsxRuntimeExports.jsxs(StepsGrid,{children:[jsxRuntimeExports.jsxs(StepBlock,{children:[jsxRuntimeExports.jsx(StepEyebrow,{children:step1}),jsxRuntimeExports.jsxs(TitleBodyStack,{children:[jsxRuntimeExports.jsx(StepTitle$3,{children:copy.step1.title}),jsxRuntimeExports.jsxs(Step1DescriptionStack,{children:[jsxRuntimeExports.jsxs(Step1Line,{children:[jsxRuntimeExports.jsx(Step1InlineText,{className:"step1-select",children:select}),jsxRuntimeExports.jsx(InlineIcon,{"aria-hidden":!0}),jsxRuntimeExports.jsx(Step1InlineText,{children:copy.step1.line1AfterIcon})]}),jsxRuntimeExports.jsx(StepBody,{children:copy.step1.line2})]})]})]}),jsxRuntimeExports.jsxs(StepBlock,{children:[jsxRuntimeExports.jsx(StepEyebrow,{children:step2}),jsxRuntimeExports.jsxs(TitleBodyStack,{children:[jsxRuntimeExports.jsx(StepTitle$3,{children:copy.step2.title}),jsxRuntimeExports.jsx(StepBody,{children:copy.step2.body})]})]}),jsxRuntimeExports.jsxs(StepBlock,{children:[jsxRuntimeExports.jsx(StepEyebrow,{children:copy.step3.eyebrow}),jsxRuntimeExports.jsxs(TitleBodyStack,{children:[jsxRuntimeExports.jsx(StepTitle$3,{children:copy.step3.title}),jsxRuntimeExports.jsx(StepBody,{children:copy.step3.body})]})]}),jsxRuntimeExports.jsxs(StepBlock,{children:[jsxRuntimeExports.jsx(StepEyebrow,{children:copy.step4.eyebrow}),jsxRuntimeExports.jsxs(TitleBodyStack,{children:[jsxRuntimeExports.jsx(StepTitle$3,{children:copy.step4.title}),jsxRuntimeExports.jsx(StepBody,{children:copy.step4.body})]})]})]}),jsxRuntimeExports.jsxs(ToggleContainer,{onClick:()=>t(!0),"data-testid":generateDataTestId("account-reconciliation-steps-banner","hide"),children:[jsxRuntimeExports.jsx(ExtraSmallSemiBold,{children:hide$1}),jsxRuntimeExports.jsx(ChevronUpStyled,{})]})]})}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings
|
|
82370
|
+
`,{expenseAutomation:{accountRecon:{reconciliation:{stepsBanner:copy}}},common:{show:show,texts:{hide:hide$1,select:select,step1:step1,step2:step2}}}=appLocale.getLocalizedStrings();function AccountReconciliationStepsBanner(){const[e,t]=React.useState(!1);return e?jsxRuntimeExports.jsxs(CollapsedBanner,{onClick:()=>t(!1),"data-testid":generateDataTestId("account-reconciliation-steps-banner","collapsed"),children:[jsxRuntimeExports.jsxs(CollapsedLead,{children:[jsxRuntimeExports.jsx(CollapsedHeaderIcon,{}),jsxRuntimeExports.jsx(CollapsedTitleText,{children:copy.collapsedTitle})]}),jsxRuntimeExports.jsxs(CollapsedShow,{children:[show,jsxRuntimeExports.jsx(CollapsedShowChevron,{"aria-hidden":!0})]})]}):jsxRuntimeExports.jsxs(Banner$4,{"data-testid":generateDataTestId("account-reconciliation-steps-banner","expanded"),children:[jsxRuntimeExports.jsxs(StepsGrid,{children:[jsxRuntimeExports.jsxs(StepBlock,{children:[jsxRuntimeExports.jsx(StepEyebrow,{children:step1}),jsxRuntimeExports.jsxs(TitleBodyStack,{children:[jsxRuntimeExports.jsx(StepTitle$3,{children:copy.step1.title}),jsxRuntimeExports.jsxs(Step1DescriptionStack,{children:[jsxRuntimeExports.jsxs(Step1Line,{children:[jsxRuntimeExports.jsx(Step1InlineText,{className:"step1-select",children:select}),jsxRuntimeExports.jsx(InlineIcon,{"aria-hidden":!0}),jsxRuntimeExports.jsx(Step1InlineText,{children:copy.step1.line1AfterIcon})]}),jsxRuntimeExports.jsx(StepBody,{children:copy.step1.line2})]})]})]}),jsxRuntimeExports.jsxs(StepBlock,{children:[jsxRuntimeExports.jsx(StepEyebrow,{children:step2}),jsxRuntimeExports.jsxs(TitleBodyStack,{children:[jsxRuntimeExports.jsx(StepTitle$3,{children:copy.step2.title}),jsxRuntimeExports.jsx(StepBody,{children:copy.step2.body})]})]}),jsxRuntimeExports.jsxs(StepBlock,{children:[jsxRuntimeExports.jsx(StepEyebrow,{children:copy.step3.eyebrow}),jsxRuntimeExports.jsxs(TitleBodyStack,{children:[jsxRuntimeExports.jsx(StepTitle$3,{children:copy.step3.title}),jsxRuntimeExports.jsx(StepBody,{children:copy.step3.body})]})]}),jsxRuntimeExports.jsxs(StepBlock,{children:[jsxRuntimeExports.jsx(StepEyebrow,{children:copy.step4.eyebrow}),jsxRuntimeExports.jsxs(TitleBodyStack,{children:[jsxRuntimeExports.jsx(StepTitle$3,{children:copy.step4.title}),jsxRuntimeExports.jsx(StepBody,{children:copy.step4.body})]})]})]}),jsxRuntimeExports.jsxs(ToggleContainer,{onClick:()=>t(!0),"data-testid":generateDataTestId("account-reconciliation-steps-banner","hide"),children:[jsxRuntimeExports.jsx(ExtraSmallSemiBold,{children:hide$1}),jsxRuntimeExports.jsx(ChevronUpStyled,{})]})]})}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings}}}=appLocale.getLocalizedStrings();function ActualMatchingMatchNewButton({onClick:e}){return jsxRuntimeExports.jsx(Button,{"data-testid":generateDataTestId("actual-matching-match-new-button"),type:"button",onClick:e,children:jsxRuntimeExports.jsx(StandardMedium,{style:{whiteSpace:"nowrap"},children:actualMatchingStrings.matchNew})})}const Button=styled$2.button`
|
|
82091
82371
|
box-sizing: border-box;
|
|
82092
82372
|
display: inline-flex;
|
|
82093
82373
|
align-items: center;
|
|
@@ -82423,7 +82703,7 @@ to {
|
|
|
82423
82703
|
}
|
|
82424
82704
|
`,HeaderName=styled$2(ExtraSmallSemiBold)`
|
|
82425
82705
|
display: flex;
|
|
82426
|
-
`,{dateFormat:dateFormat$9,common:{strings:{underscore:underscore,hyphen:hyphen$
|
|
82706
|
+
`,{dateFormat:dateFormat$9,common:{strings:{underscore:underscore,hyphen:hyphen$5,empty:empty$3},tooltips:{viewReceipt:viewReceipt,viewReceipts:viewReceipts}}}=appLocale.getLocalizedStrings(),D$j={containerPaddingLeftRight:new ResponsiveSized(sp[4],sp[4]),containerPaddingTopBottom:new ResponsiveSized(sp[0],sp[0])},CompletedTabListRow=({transaction:e,authParams:t,isAccountingClassesEnabled:n,transactionAttachmentsEndpoint:o,isLastRow:i=!1,onMissingReceiptsRowClick:r})=>{const a=useWindowSizeContext(),s=useQuickViewMode(),l=useTheme(),c=s?compressedCompletedTabHeaderItemsData:getCompletedTabHeaderItemsData(n),d=useExpenseAutomationRowCommenting({transactionId:e.id,rowEntityType:"expense_automation.receipts.row",transactionType:e.type}),{isCommentingActive:p,rowRef:u,totalThreadCount:m,isThreadsLoading:h,handleActiveThreadClick:g,handleAddRowCommentClick:x}=d,[f,y]=React.useState(!1),[S,C]=React.useState([]),[b,$]=React.useState(null),v=e.attachments?.filter(e=>null!=e.contentType&&allowedDocumentPreviewContentType.includes(e.contentType))??[],[E,w]=React.useState(v[0]),R=null!=e.attachments&&e.attachments.length>0,A=e.date?.format?.(dateFormat$9.visual.MMMDCommaYYYYformat)??hyphen$5;return jsxRuntimeExports.jsxs(Container$l,{ref:u,$isLastRow:i,windowSize:a,isQuickViewMode:s,onClick:()=>r(e.id,e.type),"data-testid":generateDataTestId("completed-tab-list-row",e.id),style:{position:"relative"},children:[c.map((n,i)=>{const r=`${e.id}${underscore}${n.key}`;switch(n.key){case"vendor":default:return jsxRuntimeExports.jsx(RowItemContainer,{windowSize:a,wrapperWidth:n.width,isQuickViewMode:s,children:jsxRuntimeExports.jsx(RowItem,{windowSize:a,isLastItem:i===c.length-1,children:jsxRuntimeExports.jsxs(TextContainer,{children:[jsxRuntimeExports.jsx(EntityLogoAvatarWithCustomFallback,{photoUrl:null!=e.vendorId?e.logo?.toString()??empty$3:empty$3,styles:{width:Space.sp3,height:Space.sp3,borderRadius:Space.sp2},placeholder:{width:sp[3],height:sp[3]},fallbackAvatar:jsxRuntimeExports.jsx(EntityAvatarContainer,{children:jsxRuntimeExports.jsx(EntityAvatar,{name:e.vendorName??e.description??hyphen$5})})}),jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:e.vendorName??e.description??hyphen$5,itemTextStyle:{...textStyles.standardMedium.cssObject,color:"inherit"}})]})})},r);case"category":case"class":{const t=null!=e.lines&&e.lines.length>0&&null!=e.lines[0]?.account&&Boolean(e.lines[0].account.accountName)?e.lines[0].account.accountName:hyphen$5,o=null!=e.lines&&e.lines.length>0&&null!=e.lines[0]?.class&&Boolean(e.lines[0].class?.className)?e.lines[0].class?.className??hyphen$5:hyphen$5,l="category"===n.key?t:o;return jsxRuntimeExports.jsx(RowItemContainer,{windowSize:a,wrapperWidth:n.width,isQuickViewMode:s,children:jsxRuntimeExports.jsx(RowItem,{windowSize:a,isLastItem:i===c.length-1,children:jsxRuntimeExports.jsx(TextContainer,{children:l!==hyphen$5?jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:l,itemTextStyle:{...textStyles.standardMedium.cssObject,color:"inherit"}}):jsxRuntimeExports.jsx(ItemText,{children:l})})})},r)}case"date":return jsxRuntimeExports.jsx(RowItemContainer,{windowSize:a,wrapperWidth:n.width,isQuickViewMode:s,children:jsxRuntimeExports.jsx(RowItem,{windowSize:a,isLastItem:i===c.length-1,children:jsxRuntimeExports.jsx(TextContainer,{children:jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:A,itemTextStyle:{...textStyles.standardMedium.cssObject,color:"inherit"}})})})},r);case"receipts":return jsxRuntimeExports.jsx(RowItemContainer,{windowSize:a,wrapperWidth:n.width,isQuickViewMode:s,style:{justifyContent:"center"},children:R?jsxRuntimeExports.jsx(Tooltip$6,{display:"flex",placement:"bottom",title:(e.attachments?.length??0)>1?viewReceipts:viewReceipt,enterDelay:600,children:jsxRuntimeExports.jsx(StyledReceiptIcon,{onClick:n=>{n.stopPropagation(),(()=>{y(!0),w(v[0]);const n=v.map(e=>e.id);fetchTransactionAttachments(o,t,{transaction_key:{transaction_id:e.id,transaction_type:e.type},attachment_ids:n}).then(e=>{C(e),e.length>0&&$(e[0])})})()}})}):null},r);case"amount":{const t=amountToString("0,0.[00]",e.amount);return jsxRuntimeExports.jsx(RowItemContainer,{windowSize:a,wrapperWidth:n.width,isQuickViewMode:s,children:jsxRuntimeExports.jsx(RowItem,{windowSize:a,isLastItem:i===c.length-1,children:jsxRuntimeExports.jsx(TooltipWithEllipsisText,{text:null!=e.amount&&e.amount.amount<0?`-${t}`:t,itemTextStyle:{...textStyles.standardMedium.cssObject,color:"inherit"}})})},r)}}}),f&&v.length>0?ReactDOM.createPortal(jsxRuntimeExports.jsx(DocumentWithThumbnailView,{allFiles:S,fileSource:b,file:E,title:E.fileName,attachments:v,setFileSource:$,setShowFullScreenView:y,onCrossClick:()=>{y(!1),$(null),C([]),v.length>0&&w(v[0])},setSelectedFileAttachment:w,handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null,p&&m>0?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,children:jsxRuntimeExports.jsx(ActiveThreadCount,{isLoading:h,count:m,style:{backgroundColor:l.colors.grey4,borderRadius:"50% 50% 50% 0",cursor:"pointer"},openThread:g})}):null,p&&!1===h&&0===m?jsxRuntimeExports.jsx(RowCommentSlot,{flushRight:!0,innerClassName:"comment-add-icon",children:jsxRuntimeExports.jsx(StyledAddThreadsIcon$1,{"data-testid":generateDataTestId("expense-automation-completed-receipts-row-add-comment",e.id),onClick:x})}):null,jsxRuntimeExports.jsx(ExpenseAutomationRowThreadPortals,{state:d})]})},Container$l=styled$2.div`
|
|
82427
82707
|
display: flex;
|
|
82428
82708
|
height: 100%;
|
|
82429
82709
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -82562,7 +82842,7 @@ to {
|
|
|
82562
82842
|
min-width: 0;
|
|
82563
82843
|
will-change: opacity;
|
|
82564
82844
|
transform: translateZ(0);
|
|
82565
|
-
`,MATCH_LIST_COL_PCTS=[50,25,25],PossibleMatchesSectionSkeleton=()=>jsxRuntimeExports.jsxs(PossibleMatchesBlock,{children:[jsxRuntimeExports.jsx(SectionTitle$
|
|
82845
|
+
`,MATCH_LIST_COL_PCTS=[50,25,25],PossibleMatchesSectionSkeleton=()=>jsxRuntimeExports.jsxs(PossibleMatchesBlock,{children:[jsxRuntimeExports.jsx(SectionTitle$7,{children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:200,height:31,style:{display:"block"}})}),jsxRuntimeExports.jsx(ListTableSkeleton,{colPcts:MATCH_LIST_COL_PCTS,rowCount:2})]}),ManualSearchFieldSkeleton=()=>jsxRuntimeExports.jsxs(ManualSearchBlock,{children:[jsxRuntimeExports.jsx(SectionTitle$7,{children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:220,height:31,style:{display:"block"}})}),jsxRuntimeExports.jsx(SearchInputSkeletonBar,{children:jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:200,height:sp[3],style:{display:"block"}})})]}),ManualSearchResultsSkeleton=()=>jsxRuntimeExports.jsx(SearchResultsBlock,{children:jsxRuntimeExports.jsx(ListTableSkeleton,{colPcts:MATCH_LIST_COL_PCTS,rowCount:1})}),PossibleMatchesBlock=styled$2.div`
|
|
82566
82846
|
display: flex;
|
|
82567
82847
|
flex-direction: column;
|
|
82568
82848
|
gap: ${Space.sp3};
|
|
@@ -82573,7 +82853,7 @@ to {
|
|
|
82573
82853
|
flex-direction: column;
|
|
82574
82854
|
gap: ${Space.sp2};
|
|
82575
82855
|
min-width: 0;
|
|
82576
|
-
`,SectionTitle$
|
|
82856
|
+
`,SectionTitle$7=styled$2.div``,SearchInputSkeletonBar=styled$2.div`
|
|
82577
82857
|
display: flex;
|
|
82578
82858
|
align-items: center;
|
|
82579
82859
|
flex: 1;
|
|
@@ -83633,7 +83913,7 @@ to {
|
|
|
83633
83913
|
display: flex;
|
|
83634
83914
|
flex-direction: column;
|
|
83635
83915
|
gap: ${Space.sp2};
|
|
83636
|
-
`,{common:{currency:currency$1,strings:{hyphen:hyphen$
|
|
83916
|
+
`,{common:{currency:currency$1,strings:{hyphen:hyphen$4}},expenseAutomation:{jeSchedules:{accrualDetail:accrualDetailStrings$5}}}=appLocale.getLocalizedStrings(),billingPatternStrings=accrualDetailStrings$5.billingPattern,JEAccrualBillingPatternCard=({profileSnapshot:e,serviceMonth:t})=>{const{billingPattern:n,monthlyTotals:o}=e,i=niceAxisMax(o.reduce((e,t)=>Math.max(e,t.amount.amount),0)),r=axisTicks(i),a=[{label:billingPatternStrings.avgAmount,value:formatOptionalAmount(n?.avgAmount?.amount)},{label:billingPatternStrings.lastBill,value:formatOptionalAmount(n?.lastBillAmount?.amount)},{label:billingPatternStrings.monthsTracked,value:n?.monthsOfHistory?.toString()??hyphen$4},{label:billingPatternStrings.consistency,value:null!=n?.consistencyScore?billingPatternStrings.percentValue.replace("{percent}",Math.round(100*n.consistencyScore).toString()):hyphen$4},{label:billingPatternStrings.billingLag,value:null!=n?.billingLagDays?billingPatternStrings.daysValue.replace("{days}",n.billingLagDays.toString()):hyphen$4}];return jsxRuntimeExports.jsxs(Card$3,{children:[jsxRuntimeExports.jsx(MetricGrid,{children:a.map(e=>jsxRuntimeExports.jsxs(Metric,{children:[jsxRuntimeExports.jsx(MetricLabel,{children:e.label}),jsxRuntimeExports.jsx(MetricValue,{children:e.value})]},e.label))}),o.length>0&&jsxRuntimeExports.jsxs(Plot,{children:[jsxRuntimeExports.jsx(YAxis,{children:[...r].reverse().map(e=>jsxRuntimeExports.jsx(YAxisTick,{children:compactAmount(e)},e))}),jsxRuntimeExports.jsxs(PlotArea,{children:[r.map(e=>jsxRuntimeExports.jsx(GridLine,{bottomPercent:e/i*100},e)),jsxRuntimeExports.jsx(TrendLine,{viewBox:"0 0 100 100",preserveAspectRatio:"none","aria-hidden":!0,children:jsxRuntimeExports.jsx("polyline",{points:trendPoints(o,i),fill:"none",stroke:Colors.neutralGrey2Light,strokeWidth:1,strokeDasharray:"3 3",vectorEffect:"non-scaling-stroke"})}),jsxRuntimeExports.jsx(Columns,{children:o.map(e=>{const n=formatOptionalAmount(e.amount.amount),o=e.month===t;return jsxRuntimeExports.jsx(ChartColumn,{children:jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,display:"block",placement:"top",style:{width:"100%",height:"100%"},title:`${monthLabel(e.month)} · ${n}`,children:jsxRuntimeExports.jsx(BarTrack,{children:jsxRuntimeExports.jsx(Bar,{heightPercent:i>0?e.amount.amount/i*100:0,isServiceMonth:o})})})},e.month)})})]}),jsxRuntimeExports.jsx(YAxisSpacer,{}),jsxRuntimeExports.jsx(MonthLabels,{children:o.map(e=>jsxRuntimeExports.jsx(BarLabel,{isServiceMonth:e.month===t,children:monthLabel(e.month)},e.month))})]})]})};function formatOptionalAmount(e){return null==e?hyphen$4:amountToString("0,0.[00]",clientEpicState.toAmount(e,currency$1.currencyCode,currency$1.currencySymbol))??hyphen$4}function monthLabel(e){const[t,n]=e.split("-"),o=Number(n)-1,i=MONTH_NAMES[o];return null==i||null==t?e:`${i} '${t.slice(2)}`}const MONTH_NAMES=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],AXIS_TICK_COUNT=4;function niceAxisMax(e){if(e<=0)return 0;const t=10**Math.floor(Math.log10(e));return Math.ceil(1.2*e/t)*t}function axisTicks(e){return e<=0?[0]:Array.from({length:AXIS_TICK_COUNT+1},(t,n)=>e/AXIS_TICK_COUNT*n)}function compactAmount(e){if(0===e)return"$0";if(e>=1e3){const t=e/1e3;return`$${t>=100?Math.round(t):Math.round(10*t)/10}k`}return`$${Math.round(e)}`}function trendPoints(e,t){const n=100/e.length;return e.map((e,o)=>`${n*o+n/2},${100-(t>0?e.amount.amount/t*100:0)}`).join(" ")}const CHART_HEIGHT_PX=160,Card$3=styled$2.div`
|
|
83637
83917
|
display: flex;
|
|
83638
83918
|
flex-direction: column;
|
|
83639
83919
|
gap: ${Space.sp3};
|
|
@@ -83799,7 +84079,7 @@ to {
|
|
|
83799
84079
|
`,RecommendedValue=styled$2(H7Bold)`
|
|
83800
84080
|
color: ${e=>e.theme.colors.champion};
|
|
83801
84081
|
font-variant-numeric: tabular-nums;
|
|
83802
|
-
`,findAccountByOptionValue=(e,t)=>null==t?void 0:e.find(e=>e.qboId===t||e.accountId===t),findClassByOptionValue=(e,t)=>null==t?void 0:e.find(e=>e.classId===t||e.qboId===t),toAccountOptionValue=(e,t)=>{if(null==t)return;const n=e.find(e=>e.accountId===t);return n?.qboId??n?.accountId??t},REVERSAL_SCHEDULED_DATE="scheduled_date",REVERSAL_ON_BILL_MATCH="on_bill_match",seedAccrualFields=(e,t)=>{const n=e.reversalPolicy??REVERSAL_ON_BILL_MATCH,o=null==t?.reverseNextMonth?n:t.reverseNextMonth?REVERSAL_SCHEDULED_DATE:REVERSAL_ON_BILL_MATCH;return{memo:t?.memo??e.memo,reversalPolicy:o,jeCreditAccountId:t?.jeCreditAccountId??e.jeCreditAccountId,jeDebitAccountId:t?.jeDebitAccountId??e.jeDebitAccountId,jeDebitAccountingClassId:t?.jeDebitAccountingClassId??e.jeDebitAccountingClassId}},resolveAccrualSelections=(e,t,n)=>{const o=n?.allAccountList??[],i=n?.allAccruedExpenseList??[];return{debitAccount:findAccountByOptionValue(o,e.debitAccount?.selectedOption),creditAccount:findAccountByOptionValue([...o,...i],e.creditAccount?.selectedOption),debitClass:findClassByOptionValue(n?.allClassList??[],e.debitClass?.selectedOption),reversalPolicy:e.reversalPolicy?.selectedOption??t.reversalPolicy??REVERSAL_ON_BILL_MATCH}},scheduledReversalDate=e=>null!=e.expectedReversalDate?e.expectedReversalDate:""!==e.serviceMonth?clientEpicState.zeniDate(`${e.serviceMonth}-01`).add(1,"month").startOf("month"):void 0,resolveAccrualPreviewFields=(e,t,n)=>{if("draft"!==t.accrualStatus)return{jeCreditAccountName:t.jeCreditAccountName??"",jeDebitAccountName:t.jeDebitAccountName??"",expectedReversalDate:t.expectedReversalDate,jeDebitAccountingClassName:t.jeDebitAccountingClassName,reversalPolicy:t.reversalPolicy??REVERSAL_ON_BILL_MATCH};const o=resolveAccrualSelections(e,t,n);return{jeCreditAccountName:o.creditAccount?.accountName??t.jeCreditAccountName??"",jeDebitAccountName:o.debitAccount?.accountName??t.jeDebitAccountName??"",expectedReversalDate:o.reversalPolicy===REVERSAL_SCHEDULED_DATE?scheduledReversalDate(t):void 0,jeDebitAccountingClassName:o.debitClass?.className??t.jeDebitAccountingClassName,reversalPolicy:o.reversalPolicy}},buildAccrualEdits=(e,t,n)=>{if("draft"!==t.accrualStatus)return{};const{creditAccount:o,debitAccount:i,debitClass:r,reversalPolicy:a}=resolveAccrualSelections(e,t,n),s=a===REVERSAL_SCHEDULED_DATE;return{memo:e.memo,jeDebitAccountId:i?.accountId,jeDebitAccountName:i?.accountName,jeCreditAccountId:o?.accountId,jeCreditAccountName:o?.accountName,jeDebitAccountingClassId:r?.classId,jeDebitAccountingClassName:r?.className,reverseNextMonth:s,expectedReversalDate:s?t.expectedReversalDate:void 0}},{common:{strings:{hyphen:hyphen$
|
|
84082
|
+
`,findAccountByOptionValue=(e,t)=>null==t?void 0:e.find(e=>e.qboId===t||e.accountId===t),findClassByOptionValue=(e,t)=>null==t?void 0:e.find(e=>e.classId===t||e.qboId===t),toAccountOptionValue=(e,t)=>{if(null==t)return;const n=e.find(e=>e.accountId===t);return n?.qboId??n?.accountId??t},REVERSAL_SCHEDULED_DATE="scheduled_date",REVERSAL_ON_BILL_MATCH="on_bill_match",seedAccrualFields=(e,t)=>{const n=e.reversalPolicy??REVERSAL_ON_BILL_MATCH,o=null==t?.reverseNextMonth?n:t.reverseNextMonth?REVERSAL_SCHEDULED_DATE:REVERSAL_ON_BILL_MATCH;return{memo:t?.memo??e.memo,reversalPolicy:o,jeCreditAccountId:t?.jeCreditAccountId??e.jeCreditAccountId,jeDebitAccountId:t?.jeDebitAccountId??e.jeDebitAccountId,jeDebitAccountingClassId:t?.jeDebitAccountingClassId??e.jeDebitAccountingClassId}},resolveAccrualSelections=(e,t,n)=>{const o=n?.allAccountList??[],i=n?.allAccruedExpenseList??[];return{debitAccount:findAccountByOptionValue(o,e.debitAccount?.selectedOption),creditAccount:findAccountByOptionValue([...o,...i],e.creditAccount?.selectedOption),debitClass:findClassByOptionValue(n?.allClassList??[],e.debitClass?.selectedOption),reversalPolicy:e.reversalPolicy?.selectedOption??t.reversalPolicy??REVERSAL_ON_BILL_MATCH}},scheduledReversalDate=e=>null!=e.expectedReversalDate?e.expectedReversalDate:""!==e.serviceMonth?clientEpicState.zeniDate(`${e.serviceMonth}-01`).add(1,"month").startOf("month"):void 0,resolveAccrualPreviewFields=(e,t,n)=>{if("draft"!==t.accrualStatus)return{jeCreditAccountName:t.jeCreditAccountName??"",jeDebitAccountName:t.jeDebitAccountName??"",expectedReversalDate:t.expectedReversalDate,jeDebitAccountingClassName:t.jeDebitAccountingClassName,reversalPolicy:t.reversalPolicy??REVERSAL_ON_BILL_MATCH};const o=resolveAccrualSelections(e,t,n);return{jeCreditAccountName:o.creditAccount?.accountName??t.jeCreditAccountName??"",jeDebitAccountName:o.debitAccount?.accountName??t.jeDebitAccountName??"",expectedReversalDate:o.reversalPolicy===REVERSAL_SCHEDULED_DATE?scheduledReversalDate(t):void 0,jeDebitAccountingClassName:o.debitClass?.className??t.jeDebitAccountingClassName,reversalPolicy:o.reversalPolicy}},buildAccrualEdits=(e,t,n)=>{if("draft"!==t.accrualStatus)return{};const{creditAccount:o,debitAccount:i,debitClass:r,reversalPolicy:a}=resolveAccrualSelections(e,t,n),s=a===REVERSAL_SCHEDULED_DATE;return{memo:e.memo,jeDebitAccountId:i?.accountId,jeDebitAccountName:i?.accountName,jeCreditAccountId:o?.accountId,jeCreditAccountName:o?.accountName,jeDebitAccountingClassId:r?.classId,jeDebitAccountingClassName:r?.className,reverseNextMonth:s,expectedReversalDate:s?t.expectedReversalDate:void 0}},{common:{strings:{hyphen:hyphen$3},settings:{integrations:{connectorTooltips:{accountantSectionLabel:accountantSectionLabel$1}}}},dateFormat:dateFormat$8,expenseAutomation:{jeSchedules:{accrualDetail:accrualDetailStrings$3,newSchedule:newSchedule}}}=appLocale.getLocalizedStrings(),detailsStrings$3=accrualDetailStrings$3.details,fieldStrings=newSchedule.fields,FIELD_LABEL_WIDTH=200,FULL_WIDTH_ROW_STYLE={width:"100%",boxSizing:"border-box"},READ_ONLY="disabled",REVERSAL_OPTIONS=[{label:"",options:[{label:detailsStrings$3.reverseNextMonthOption,value:REVERSAL_SCHEDULED_DATE},{label:detailsStrings$3.onInvoiceMatch,value:REVERSAL_ON_BILL_MATCH}]}],JEAccrualDetailsSection=({accrual:e,accountHierarchy:t,allAccountList:n,allAccruedExpenseList:o,classHierarchy:i,isAccountingClassesEnabled:r,liabilityHierarchy:a,localData:s})=>{const l=getGroupedAccountOptions(t??[]),c=getGroupedAccountOptions(a??[]),d=getGroupedClassOptions(i??[]),p="draft"===e.accrualStatus,u=p?void 0:READ_ONLY,m=e=>e.some(e=>e.options.length>0),h=e=>e?void 0:READ_ONLY,g=p&&m(l),x=p&&m(c),f=p&&m(d),y=seedAccrualFields(e,s),S=toAccountOptionValue(n??[],y.jeDebitAccountId),C=toAccountOptionValue([...n??[],...o??[]],y.jeCreditAccountId),b=y.jeDebitAccountingClassId;return jsxRuntimeExports.jsxs(SectionCard,{children:[jsxRuntimeExports.jsx(LabeledTextField,{controlWidth:"100%",isDisabled:READ_ONLY,label:{label:detailsStrings$3.postingDate,width:FIELD_LABEL_WIDTH},style:FULL_WIDTH_ROW_STYLE,text:{type:"text",name:"postingDate",defaultValue:e.postingDate?.format(dateFormat$8.visual.MMMDCommaYYYYformat)??hyphen$3}}),p?jsxRuntimeExports.jsx(LabeledGroupSingleSelectWithRecommendationCheckboxField,{isLoading:!1,label:{label:detailsStrings$3.autoReversal,width:FIELD_LABEL_WIDTH},groupedSingleSelectField:{shouldShowChevronIcon:!0,name:"reversalPolicy",placeholder:reversalText(e),valueToId:e=>e,defaultValue:{allOptions:REVERSAL_OPTIONS,selectedOption:y.reversalPolicy}}}):jsxRuntimeExports.jsx(LabeledTextField,{controlWidth:"100%",isDisabled:READ_ONLY,label:{label:detailsStrings$3.autoReversal,width:FIELD_LABEL_WIDTH},style:FULL_WIDTH_ROW_STYLE,text:{type:"text",name:"autoReversal",defaultValue:reversalText(e)}}),jsxRuntimeExports.jsx(LabeledGroupSingleSelectWithRecommendationCheckboxField,{isDisabled:h(g),isLoading:!1,label:{label:detailsStrings$3.expenseCategory,width:FIELD_LABEL_WIDTH},groupedSingleSelectField:{shouldShowChevronIcon:g,name:"debitAccount",placeholder:valueOrHyphen$1(e.jeDebitAccountName),valueToId:e=>e,defaultValue:g?{allOptions:l,selectedOption:S}:singleOptionValue(e.jeDebitAccountName)}}),jsxRuntimeExports.jsx(LabeledGroupSingleSelectWithRecommendationCheckboxField,{isDisabled:h(x),isLoading:!1,label:{label:detailsStrings$3.liabilityAccount,width:FIELD_LABEL_WIDTH},groupedSingleSelectField:{shouldShowChevronIcon:x,name:"creditAccount",placeholder:valueOrHyphen$1(e.jeCreditAccountName),valueToId:e=>e,defaultValue:x?{allOptions:c,selectedOption:C}:singleOptionValue(e.jeCreditAccountName)}}),r&&jsxRuntimeExports.jsx(LabeledGroupSingleSelectWithRecommendationCheckboxField,{isDisabled:h(f),isLoading:!1,label:{label:detailsStrings$3.department,width:FIELD_LABEL_WIDTH},groupedSingleSelectField:{shouldShowChevronIcon:f,name:"debitClass",placeholder:valueOrHyphen$1(e.jeDebitAccountingClassName),valueToId:e=>e,defaultValue:f?{allOptions:d,selectedOption:b}:singleOptionValue(e.jeDebitAccountingClassName)}}),jsxRuntimeExports.jsx(LabeledTextField,{controlWidth:"100%",isDisabled:u,label:{label:fieldStrings.memo,width:FIELD_LABEL_WIDTH},style:FULL_WIDTH_ROW_STYLE,text:{type:"text",name:"memo",defaultValue:p?y.memo:valueOrHyphen$1(e.memo)}}),jsxRuntimeExports.jsx(LabeledTextField,{controlWidth:"100%",isDisabled:READ_ONLY,label:{label:accrualDetailStrings$3.estimatedBy,width:FIELD_LABEL_WIDTH},style:FULL_WIDTH_ROW_STYLE,text:{type:"text",name:"estimatedBy",defaultValue:estimatedByText(e)}})]})};function valueOrHyphen$1(e){return null!=e&&""!==e?e:hyphen$3}function singleOptionValue(e){const t=valueOrHyphen$1(e);return{selectedOption:t,allOptions:[{label:"",options:[{label:t,value:t}]}]}}function reversalText(e){if("on_bill_match"===e.reversalPolicy)return accrualDetailStrings$3.details.onInvoiceMatch;const t=e.expectedReversalDate?.format(dateFormat$8.visual.MMMDCommaYYYYformat);return null!=t?accrualDetailStrings$3.details.onDate.replace("{date}",t):hyphen$3}function estimatedByText(e){if("agent"===e.origin)return accountantSectionLabel$1;const t=e.createdBy;if(null==t)return hyphen$3;const n=[t.firstName,t.lastName].filter(e=>null!=e&&""!==e).join(" ");return""!==n?n:valueOrHyphen$1(t.email)}const SectionCard=styled$2.div`
|
|
83803
84083
|
display: flex;
|
|
83804
84084
|
flex-direction: column;
|
|
83805
84085
|
width: 100%;
|
|
@@ -83807,7 +84087,7 @@ to {
|
|
|
83807
84087
|
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
83808
84088
|
border-radius: ${Space.sp2};
|
|
83809
84089
|
background: ${e=>e.theme.colors.grey5};
|
|
83810
|
-
`,{common:{currency:currency,strings:{hyphen:hyphen$
|
|
84090
|
+
`,{common:{currency:currency,strings:{hyphen:hyphen$2}},dateFormat:dateFormat$7,expenseAutomation:{jeSchedules:{accrualDetail:accrualDetailStrings$2,oneTimeAccrualType:oneTimeAccrualType$1}}}=appLocale.getLocalizedStrings(),detailsStrings$2=accrualDetailStrings$2.details,HEADER_TEST_ID_PREFIX="je-accrual-detail",MAXIMUM_ACCRUAL_AMOUNT_ALLOWED=1e7,dimensions$8={containerPadding:new ResponsiveSized(sp[3],sp[5]),containerMarginTop:new ResponsiveSized(sp[3],sp[3]),containerMarginBottom:new ResponsiveSized(sp[2],sp[2]),vendorTitleContainerWidth:new ResponsiveSized(187,480)},fontStyles$a={vendorTitle:new ResponsiveSizedStyle("h7SemiBold","h7SemiBold")},AVATAR_SIZE_PX=sp[5],ACCRUAL_TAG_STYLE={padding:"2px 10px"},ACCRUAL_TAG_LABEL_STYLE=textStyles.smallMedium.cssObject,AMOUNT_FIELD_WIDTH_PX=160;function isAmountEditable(e){return accrualActions(e.accrualStatus).canPromote}const JEAccrualHeader=({accrual:e,isEditingAmount:t,onEditAmount:n})=>{const o=useWindowSizeContext(),i=useTheme(),r=""!==e.vendorName?e.vendorName:hyphen$2,a={...ACCRUAL_TAG_STYLE,border:`1px solid ${i.colors.grey2}`},s="monthly"===e.profileSnapshot?.billingPattern?.frequency?accrualDetailStrings$2.accrualTypeMonthly:oneTimeAccrualType$1,l=[{title:detailsStrings$2.servicePeriod,value:servicePeriodText(e)},{title:detailsStrings$2.accrualType,value:s},{title:detailsStrings$2.expenseCategory,value:valueOrHyphen(e.jeDebitAccountName)},{title:detailsStrings$2.department,value:valueOrHyphen(e.jeDebitAccountingClassName)}];return jsxRuntimeExports.jsxs(Container$e,{windowSize:o,children:[jsxRuntimeExports.jsxs(TitleContainer$1,{windowSize:o,children:[jsxRuntimeExports.jsxs(TitleWithLabelContainer,{windowSize:o,children:[jsxRuntimeExports.jsx(AvatarTile,{avatarColor:getColorForALabel({label:r}),"data-testid":generateDataTestId(HEADER_TEST_ID_PREFIX,"avatar"),children:r.slice(0,1).toUpperCase()}),jsxRuntimeExports.jsx(VendorTitleEllipsisContainer,{windowSize:o,children:jsxRuntimeExports.jsx(TooltipWithEllipsisText,{itemTextStyle:{...fontStyles$a.vendorTitle.styleObject(o),lineHeight:"unset",color:i.colors.champion,cursor:"default"},text:r})}),jsxRuntimeExports.jsx(StyledCapsule,{capsuleBackground:i.colors.grey4,label:s,labelColor:i.colors.champion,labelStyle:ACCRUAL_TAG_LABEL_STYLE,style:a})]}),jsxRuntimeExports.jsxs(AmountContainer,{children:[jsxRuntimeExports.jsx(StyledCapsule,{label:accrualDetailStrings$2.statusLabels[e.accrualStatus],type:statusCapsuleType(e.accrualStatus)}),t&&isAmountEditable(e)?jsxRuntimeExports.jsx(FormattedTextField,{allowLeadingZeros:!1,allowNegative:!1,autoComplete:"off",autoFocus:!0,decimalScale:2,decimalSeparator:".",fixedDecimalScale:!1,name:"amount",placeholderAlignment:"right",prefix:currency.currencySymbol,registerOptions:{required:!0,validate:e=>e>0,max:MAXIMUM_ACCRUAL_AMOUNT_ALLOWED},returnValueType:"floatValue",shouldHighlightZeroAmount:!0,style:{width:AMOUNT_FIELD_WIDTH_PX},thousandSeparator:!0,type:"number"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AmountBalance,{amount:clientEpicState.toAmount(e.estimatedAmount.amount,currency.currencyCode,currency.currencySymbol),decimalStyles:textStyles.h7SemiBold.cssObject,integerStyles:textStyles.h7SemiBold.cssObject}),isAmountEditable(e)&&jsxRuntimeExports.jsx(EditAmountButton,{"aria-label":accrualDetailStrings$2.editAmount,"data-testid":generateDataTestId(HEADER_TEST_ID_PREFIX,"edit-amount"),onClick:n,children:jsxRuntimeExports.jsx(StyledEditIcon,{})})]})]})]}),jsxRuntimeExports.jsxs(HeaderRowsContainer,{children:[l.map(e=>jsxRuntimeExports.jsx(HeaderRowContainer,{children:jsxRuntimeExports.jsxs(HeaderRowBox,{children:[jsxRuntimeExports.jsx(HeaderText,{children:e.title}),jsxRuntimeExports.jsx(HeaderValue,{children:e.value})]})},e.title)),jsxRuntimeExports.jsx(HeaderRowContainer,{children:jsxRuntimeExports.jsxs(HeaderRowBox,{children:[jsxRuntimeExports.jsx(HeaderText,{children:detailsStrings$2.memo}),jsxRuntimeExports.jsx(MemoValue,{children:valueOrHyphen(e.memo)})]})})]})]})};function valueOrHyphen(e){return null!=e&&""!==e?e:hyphen$2}function servicePeriodText(e){if(""===e.serviceMonth)return hyphen$2;const t=clientEpicState.zeniDate(`${e.serviceMonth}-01`);return detailsStrings$2.servicePeriodValue.replace("{month}",t.isValid()?t.format(dateFormat$7.visual.MMMYYYYFormat):e.serviceMonth)}function statusCapsuleType(e){switch(e){case"posted":return"success";case"posting_blocked":return"warning";case"draft":return"attention";default:return"default"}}function formatAccrualAmount(e){return amountToString("0,0.[00]",clientEpicState.toAmount(e,currency.currencyCode,currency.currencySymbol))??hyphen$2}const Container$e=styled$2.div`
|
|
83811
84091
|
display: flex;
|
|
83812
84092
|
width: 100%;
|
|
83813
84093
|
box-sizing: border-box;
|
|
@@ -83891,7 +84171,7 @@ to {
|
|
|
83891
84171
|
text-align: right;
|
|
83892
84172
|
`,MemoValue=styled$2(HeaderValue)`
|
|
83893
84173
|
font-style: italic;
|
|
83894
|
-
`,{common:{strings:{colon:colon
|
|
84174
|
+
`,{common:{strings:{colon:colon,hyphen:hyphen$1,middleDot:middleDot}},expenseAutomation:{jeSchedules:{accrualDetail:accrualDetailStrings$1,newSchedule:{journalEntryPreview:sideLabelStrings}}}}=appLocale.getLocalizedStrings(),detailsStrings$1=accrualDetailStrings$1.details,previewStrings$1=accrualDetailStrings$1.journalEntryPreview,CHIP_STYLE={borderRadius:"6px"},CHIP_LABEL_STYLE=textStyles.superSmallSemiBold.cssObject,JEAccrualJournalEntryCard=({amount:e,autoReversalDetail:t,creditAccountName:n,debitAccountName:o,postingDate:i,debitClassName:r})=>{const a=null!=r&&""!==r,s=`${middleDot} ${t}`;return jsxRuntimeExports.jsxs(Card$1,{children:[jsxRuntimeExports.jsxs(EntryRow,{children:[jsxRuntimeExports.jsx(ChipColumn,{children:jsxRuntimeExports.jsx(StyledCapsule,{label:sideLabelStrings.debit,labelStyle:CHIP_LABEL_STYLE,style:CHIP_STYLE,type:"info"})}),jsxRuntimeExports.jsxs(AccountColumn,{children:[jsxRuntimeExports.jsx(AccountName,{children:o}),a&&jsxRuntimeExports.jsx(AccountSubtitle,{children:r})]}),jsxRuntimeExports.jsx(EntryAmount,{children:e})]}),jsxRuntimeExports.jsxs(EntryRow,{children:[jsxRuntimeExports.jsx(ChipColumn,{children:jsxRuntimeExports.jsx(StyledCapsule,{label:sideLabelStrings.credit,labelStyle:CHIP_LABEL_STYLE,style:CHIP_STYLE,type:"success"})}),jsxRuntimeExports.jsx(AccountColumn,{children:jsxRuntimeExports.jsx(AccountName,{children:n})}),jsxRuntimeExports.jsx(EntryAmount,{children:e})]}),jsxRuntimeExports.jsxs(DetailRow$3,{children:[jsxRuntimeExports.jsx(DetailLabel$3,{children:`${detailsStrings$1.postingDate}${colon}`}),jsxRuntimeExports.jsx(DetailValue$2,{children:i})]}),jsxRuntimeExports.jsxs(DetailRow$3,{children:[jsxRuntimeExports.jsx(DetailLabel$3,{children:`${detailsStrings$1.department}${colon}`}),jsxRuntimeExports.jsx(DetailValue$2,{children:a?r:hyphen$1})]}),jsxRuntimeExports.jsxs(DetailRow$3,{children:[jsxRuntimeExports.jsx(DetailLabel$3,{children:`${detailsStrings$1.autoReversal}${colon}`}),jsxRuntimeExports.jsxs(AutoReversalValue,{children:[jsxRuntimeExports.jsx(StyledTickIcon$1,{}),jsxRuntimeExports.jsx(EnabledText,{children:previewStrings$1.autoReversalEnabled}),jsxRuntimeExports.jsx(AutoReversalDetail,{children:s})]})]})]})},Card$1=styled$2.div`
|
|
83895
84175
|
display: flex;
|
|
83896
84176
|
flex-direction: column;
|
|
83897
84177
|
width: 100%;
|
|
@@ -83961,7 +84241,7 @@ to {
|
|
|
83961
84241
|
min-width: 0;
|
|
83962
84242
|
text-align: right;
|
|
83963
84243
|
color: ${e=>e.theme.colors.hero};
|
|
83964
|
-
`,{common:{strings:{hyphen:hyphen
|
|
84244
|
+
`,{common:{strings:{hyphen:hyphen},texts:{revert:revertText}},dateFormat:dateFormat$6,expenseAutomation:{jeSchedules:{accrualDetail:accrualDetailStrings,oneTimeAccrualType:oneTimeAccrualType}}}=appLocale.getLocalizedStrings(),detailsStrings=accrualDetailStrings.details,previewStrings=accrualDetailStrings.journalEntryPreview,JEOneTimeAccrualDetailPage=({accrual:e,actionFetchState:t,isAccountingClassesEnabled:n,isRenderedInPanel:o=!1,localData:i,newAccrualAccountsView:r,onAccrualFormChange:a,onAccrualFormClear:s,onApproveAndPost:l,onNavigateBack:c,onRevert:d,onSkip:p})=>{const[u,m]=React.useState(!1),[h,g]=React.useState(void 0),[x,f]=React.useState(void 0),y="In-Progress"===t,S=y&&"promote"===x,C=y&&"skip"===x,b=y&&"revert"===x,$=accrualActions(e.accrualStatus);React.useEffect(()=>{"In-Progress"!==t&&f(void 0)},[t]);const v=useForm({mode:"all",defaultValues:{amount:e.estimatedAmount.amount}}),{accrualId:E}=e,w=React.useRef(()=>{});w.current=()=>a(E,buildAccrualEdits(v.getValues(),e,r));const R=React.useRef(!0);React.useEffect(()=>(R.current=!0,()=>{R.current=!1}),[]),React.useEffect(()=>{const e=v.watch(()=>{defer(()=>{R.current&&w.current()})});return()=>e.unsubscribe()},[v]);const A=React.useRef(s);A.current=s,React.useEffect(()=>()=>A.current(E),[E]);const j=v.watch("amount"),T=u?j:e.estimatedAmount.amount,I=formatAccrualAmount(T),k=e.profileSnapshot?.monthlyTotals??[],L=resolveAccrualPreviewFields({creditAccount:v.watch("creditAccount"),debitAccount:v.watch("debitAccount"),debitClass:v.watch("debitClass"),reversalPolicy:v.watch("reversalPolicy")},e,r),D=L.reversalPolicy===REVERSAL_ON_BILL_MATCH,_=L.expectedReversalDate?.format(dateFormat$6.visual.MMMDCommaYYYYformat)??hyphen,P=D?detailsStrings.onInvoiceMatch:detailsStrings.onDate.replace("{date}",_),B=e.actualPostDate??e.postingDate,M=B?.format(dateFormat$6.visual.MMMDCommaYYYYformat)??hyphen;return jsxRuntimeExports.jsxs(OuterContainer,{$isRenderedInPanel:o,children:[o?null:jsxRuntimeExports.jsx(NavBarWithLaunch,{showLaunchIcon:!1,title:""!==e.vendorName?e.vendorName:oneTimeAccrualType,onBackClick:c,onLaunchClick:()=>{}}),jsxRuntimeExports.jsxs(FormProvider,{...v,children:[jsxRuntimeExports.jsx(JEAccrualHeader,{accrual:e,isEditingAmount:u,onEditAmount:()=>m(!0)}),jsxRuntimeExports.jsxs(ContentColumn$2,{children:[jsxRuntimeExports.jsxs(Section$1,{children:[jsxRuntimeExports.jsx(SectionHeading,{children:detailsStrings.title}),jsxRuntimeExports.jsx(JEAccrualDetailsSection,{accrual:e,accountHierarchy:r?.accountListNestedAccountHierarchy,allAccountList:r?.allAccountList,allAccruedExpenseList:r?.allAccruedExpenseList,classHierarchy:r?.classListNestedAccountHierarchy,isAccountingClassesEnabled:n,localData:i,liabilityHierarchy:r?.accruedAccountListNestedAccountHierarchy})]}),jsxRuntimeExports.jsxs(Section$1,{children:[jsxRuntimeExports.jsx(SectionHeading,{children:accrualDetailStrings.billingPattern.title}),null!=e.profileSnapshot?jsxRuntimeExports.jsx(JEAccrualBillingPatternCard,{profileSnapshot:e.profileSnapshot,serviceMonth:e.serviceMonth}):jsxRuntimeExports.jsxs(EmptyStateCard,{children:[jsxRuntimeExports.jsx(EmptyStateTitle,{children:accrualDetailStrings.billingPattern.noHistoryTitle}),jsxRuntimeExports.jsx(EmptyStateDescription,{children:accrualDetailStrings.billingPattern.noHistoryDescription})]})]}),k.length>0&&jsxRuntimeExports.jsxs(Section$1,{children:[jsxRuntimeExports.jsx(SectionHeading,{children:accrualDetailStrings.calculationBreakdown.title}),jsxRuntimeExports.jsx(JEAccrualCalculationBreakdownCard,{recommendedAccrual:formatAccrualAmount(e.aiSuggestion?.estimatedAmount?.amount??e.estimatedAmount.amount),rows:calculationRows(k)})]}),jsxRuntimeExports.jsxs(Section$1,{children:[jsxRuntimeExports.jsx(SectionHeading,{children:journalEntryTitle(e.accrualStatus)}),jsxRuntimeExports.jsx(JEAccrualJournalEntryCard,{amount:I,autoReversalDetail:P,creditAccountName:""!==L.jeCreditAccountName?L.jeCreditAccountName:hyphen,debitAccountName:""!==L.jeDebitAccountName?L.jeDebitAccountName:hyphen,debitClassName:L.jeDebitAccountingClassName,postingDate:M})]})]}),$.canPromote&&jsxRuntimeExports.jsx(Footer$7,{cancelBtn:{label:accrualDetailStrings.actions.skipThisMonth,isDisabled:y,isLoading:C,onClick:()=>g("skip")},primaryBtn:{label:accrualDetailStrings.actions.approveAndPost,isDisabled:y,isLoading:S,type:"button",onClick:()=>{y||(f("promote"),l(T))}},showCancel:!0}),$.canRevert&&jsxRuntimeExports.jsx(Footer$7,{primaryBtn:{label:revertText,isDisabled:y,isLoading:b,type:"button",variant:"destructive",onClick:()=>g("revert")}})]}),jsxRuntimeExports.jsx(JEAccrualFeedbackDialog,{amount:I,isOpen:null!=h,isSubmitting:C||b,mode:h??"skip",vendorName:""!==e.vendorName?e.vendorName:hyphen,onClose:()=>g(void 0),onSubmit:(e,t)=>{const n="revert"===h;g(void 0),f(n?"revert":"skip"),n?d(e,t):p(e,t)}})]})};function journalEntryTitle(e){switch(e){case"posting":case"posted":case"reversing":return previewStrings.postedTitle;case"reversed":case"reverted":return previewStrings.reversedTitle;default:return previewStrings.title}}function calculationRows(e){return e.map(e=>({month:e.month,invoiceAmount:formatAccrualAmount(e.amount.amount)}))}const OuterContainer=styled$2.div`
|
|
83965
84245
|
display: flex;
|
|
83966
84246
|
flex-direction: column;
|
|
83967
84247
|
width: 100%;
|
|
@@ -83996,286 +84276,6 @@ to {
|
|
|
83996
84276
|
color: ${e=>e.theme.colors.champion};
|
|
83997
84277
|
`,EmptyStateDescription=styled$2(SmallMedium)`
|
|
83998
84278
|
color: ${e=>e.theme.colors.hero};
|
|
83999
|
-
`,{common:{strings:{hyphen:hyphen$1}},expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$1}}}=appLocale.getLocalizedStrings(),detailStrings$1=actualMatchingStrings$1.matchDetail;function getMatchServiceMonthsLabel(e){return formatActualMatchingServiceMonths(e.map(e=>e.serviceMonth))}function matchTierFromMatch(e){const t=e.matchTier??"";if(""!==t)return t.toLowerCase();const n=e.members[0];return(n?.cleared?.matchTier??n?.matchSuggestion?.matchTier??"").toLowerCase()}function getMatchMethodKey(e){const t=matchTierFromMatch(e);return"tier_1"===t||"deterministic"===t||"exact"===t?"exact":"tier_2"===t||"fuzzy"===t?"fuzzy":"manual"===t?"manual":"ai"}function getMatchMethodLabel(e){const t=getMatchMethodKey(e);return"exact"===t?detailStrings$1.matchMethodExact:"fuzzy"===t?detailStrings$1.matchMethodFuzzy:"manual"===t?detailStrings$1.matchMethodManual:detailStrings$1.matchMethodAi}function getWhyThisMatchedCopy(e){const t=getMatchServiceMonthsLabel(e.members),n=getMatchMethodKey(e);if("exact"===n)return detailStrings$1.whyExact.replace("{service}",t);if("fuzzy"===n){const t=getMatchVariancePercent(e),n=null==t?hyphen$1:`${(Math.round(10*Math.abs(t))/10).toFixed(1)}%`;return detailStrings$1.whyFuzzy.replace("{variance}",n)}return"manual"===n?detailStrings$1.whyManual.replace("{service}",t):detailStrings$1.whyAi.replace("{service}",t)}function getMatchJeSectionTitle(e){return"pending_review"===e?detailStrings$1.pendingReversalJe:detailStrings$1.reversedJe}function getMatchStatusLabel(e,t){return"pending_review"===e?t.statusPendingReview:"manually_reversed"===e?t.statusManuallyReversed:t.statusAutoReversed}function getMatchVariancePercent(e){return variancePercent(e.actualAmount.amount,e.accruedAmount.amount)}function formatMatchVarianceLabel(e){const t=getMatchVariancePercent(e);return null==t?null:formatVariancePercent(t)}function isMatchRefreshSpinning(e,t,n){return"In-Progress"===n||null==e&&("In-Progress"===t||"Not-Started"===t)}function transactionTypeDisplayLabel(e){const t=formatTransactionTypeLabel(e);return""===t?"transaction":t.toLowerCase()}function getOpenMatchedTransactionLabel(e,t){return t.openTransaction.replace("{type}",transactionTypeDisplayLabel(e))}const{common:{back:back$1,ignore:ignoreText,texts:{refresh:refresh},strings:{colon:colon,hyphen:hyphen}},expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings}}}=appLocale.getLocalizedStrings(),previewStrings=actualMatchingStrings.matchModal,detailStrings=actualMatchingStrings.matchDetail,{reversalFailed:reversalFailed,undoFailed:undoFailed}=detailStrings,TEST_ID_PREFIX="actual-matching-match-detail",AMOUNT_FORMAT="0,0.[00]";function ActualMatchingOpenBillActionButton({match:e,transaction:t,onOpenBill:n}){const o=t??(null!=e?getMatchedBillTransaction(e):null);if(null==e&&null==o)return null;const i=getOpenMatchedTransactionLabel(o?.type??e?.transactionType??"bill",actualMatchingStrings);return jsxRuntimeExports.jsx(Tooltip$6,{title:i,enterDelay:600,placement:"bottom",children:jsxRuntimeExports.jsx("span",{style:{display:"inline-flex"},children:jsxRuntimeExports.jsx(OpenBillIconButton,{"data-testid":generateDataTestId(TEST_ID_PREFIX,"open-bill"),type:"button","aria-label":i,disabled:null==o,onClick:()=>{null!=o&&n?.(o)},children:jsxRuntimeExports.jsx(OpenBillIcon,{})})})})}function formatMemberAmount(e){return amountToString(AMOUNT_FORMAT,e.estimatedAmount)??hyphen}function ActualMatchingMatchDetailPage({detailFetchState:e,isRenderedInPanel:t=!1,isApproveInFlight:n=!1,isIgnoreInFlight:o=!1,isUndoInFlight:i=!1,match:r,onNavigateBack:a,onRefresh:s,onOpenBill:l,onApproveAndReverse:c,onIgnoreMatchSuggestion:d,onUndoReversal:p,lastMatchResults:u,lastUndoResults:m,refreshStatus:h}){const g=useTheme(),[x,f]=React.useState(!1),y=null!=r?getMatchedBillTransaction(r):null,S=r?.leftovers??[],C=null!=r?getApproveAndReverseParams(r):null,b=null!=r&&"pending_review"===r.kind&&null!=d,$=null!=r&&"pending_review"===r.kind&&null!=c,v=null!=r&&"pending_review"!==r.kind&&null!=p,E=isMatchRefreshSpinning(r,e,h),w=()=>{E||s()},R=null!=r?.vendorName&&""!==r.vendorName?r.vendorName:void 0,A=null!=l?jsxRuntimeExports.jsx(ActualMatchingOpenBillActionButton,{match:r,transaction:y??void 0,onOpenBill:l}):null,j=jsxRuntimeExports.jsx(Tooltip$6,{title:refresh,enterDelay:600,placement:"bottom",children:jsxRuntimeExports.jsx(RefreshButtonWrapper,{"data-testid":generateDataTestId("refresh-icon"),onClick:w,children:jsxRuntimeExports.jsx(StyledRefreshIcon,{$spinning:E})})});return jsxRuntimeExports.jsxs(PageRoot,{"data-testid":generateDataTestId(TEST_ID_PREFIX,"page"),children:[t?null:jsxRuntimeExports.jsx(NavbarContainer,{children:jsxRuntimeExports.jsx(NavBar,{title:R??"",source:"ActualMatchingMatchDetail",backgroundColor:g.colors.grey5,onBackClick:a,leftSideComponent:jsxRuntimeExports.jsx(Tooltip$6,{title:back$1,enterDelay:600,placement:"bottom",children:jsxRuntimeExports.jsx(BackButtonWrapper,{"data-testid":generateDataTestId(TEST_ID_PREFIX,"back"),onClick:a,children:jsxRuntimeExports.jsx(Back,{})})}),rightSideComponent:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[A,j]})})}),null==r?"In-Progress"===e||"Not-Started"===e?jsxRuntimeExports.jsx(MatchDetailSkeleton,{}):jsxRuntimeExports.jsx(MatchDetailLoadError,{onRefresh:w}):jsxRuntimeExports.jsxs(Content,{children:[jsxRuntimeExports.jsxs(HeaderCard,{children:[jsxRuntimeExports.jsxs(VendorRow,{children:[jsxRuntimeExports.jsx(EntityAvatar,{name:r.vendorName??""}),jsxRuntimeExports.jsx(VendorName,{children:r.vendorName??""}),jsxRuntimeExports.jsx(FitContentCapsule,{children:jsxRuntimeExports.jsx(StyledCapsule,{label:getMatchStatusLabel(r.kind,detailStrings),type:"pending_review"===r.kind?"warning":"manually_reversed"===r.kind?"default":"success"})}),jsxRuntimeExports.jsx(HeaderAmount,{children:formatAmount(r.actualAmount)}),t?A:null]}),jsxRuntimeExports.jsxs(SummaryRows,{children:[jsxRuntimeExports.jsxs(SummaryRow$1,{children:[jsxRuntimeExports.jsx(SummaryLabel,{children:detailStrings.servicePeriod}),jsxRuntimeExports.jsx(SummaryValue,{children:getMatchServiceMonthsLabel(r.members)})]}),jsxRuntimeExports.jsxs(SummaryRow$1,{children:[jsxRuntimeExports.jsx(SummaryLabel,{children:detailStrings.billDate}),jsxRuntimeExports.jsx(SummaryValue,{children:null!=r.transactionDate&&""!==r.transactionDate?formatJeShortDate(r.transactionDate):hyphen})]})]})]}),jsxRuntimeExports.jsxs(BodyPad,{children:[jsxRuntimeExports.jsxs(FieldCard,{children:[jsxRuntimeExports.jsx(FieldRow,{label:detailStrings.matchMethod,value:getMatchMethodLabel(r)}),jsxRuntimeExports.jsx(FieldRow,{label:detailStrings.source,value:detailStrings.sourceJeAgent}),jsxRuntimeExports.jsx(FieldRow,{label:detailStrings.accruedAmount,value:formatAmount(r.accruedAmount)}),jsxRuntimeExports.jsx(FieldRow,{label:detailStrings.actualAmount,value:formatAmount(r.actualAmount)}),jsxRuntimeExports.jsx(FieldRow,{label:detailStrings.variance,value:jsxRuntimeExports.jsx(VarianceValue,{match:r})})]}),jsxRuntimeExports.jsx(SectionTitle$7,{children:getMatchJeSectionTitle(r.kind)}),r.members.map(e=>jsxRuntimeExports.jsx(ReversalJeBlock,{accrual:e,postingDateLabel:"pending_review"===r.kind?null!=r.transactionDate&&""!==r.transactionDate?formatJeShortDate(r.transactionDate):hyphen:formatReversalJeDate(e.reversalPostingDate),failureReason:undoFailureReason(m,e.accrualId),testIdSuffix:`reversal-je-${e.accrualId}`},`reversal-je-${e.accrualId}`)),S.filter(e=>shouldShowLeftoverReversalFailure(e.accrualId,u,m)).map(e=>jsxRuntimeExports.jsx(ReversalJeBlock,{accrual:e,postingDateLabel:null!=r.transactionDate&&""!==r.transactionDate?formatJeShortDate(r.transactionDate):hyphen,failureReason:leftoverReversalFailureReason(u,e.accrualId),testIdSuffix:`reversal-je-${e.accrualId}`},`reversal-je-${e.accrualId}`)),jsxRuntimeExports.jsx(SectionTitle$7,{children:detailStrings.whyThisMatched}),jsxRuntimeExports.jsxs(WhyPanel,{"data-testid":generateDataTestId(TEST_ID_PREFIX,"why"),children:[jsxRuntimeExports.jsxs(WhyHead,{children:[jsxRuntimeExports.jsx(WhyMethod,{children:getMatchMethodLabel(r)}),jsxRuntimeExports.jsx(WhySource,{children:detailStrings.sourceAttribution.replace("{source}",detailStrings.sourceJeAgent)})]}),jsxRuntimeExports.jsx(WhyCopy,{children:getWhyThisMatchedCopy(r)})]})]})]}),b&&$?jsxRuntimeExports.jsx(Footer$7,{cancelBtn:{isDisabled:o||n,isLoading:o,label:ignoreText,onClick:()=>f(!0)},primaryBtn:{isDisabled:o||n||null==C,isLoading:n,label:actualMatchingStrings.approveAndReverse,type:"button",onClick:()=>{null!=C&&c?.(C)}},showCancel:!0}):$?jsxRuntimeExports.jsx(Footer$7,{primaryBtn:{isDisabled:n||null==C,isLoading:n,label:actualMatchingStrings.approveAndReverse,type:"button",onClick:()=>{null!=C&&c?.(C)}}}):null,v&&null!=p&&null!=r?jsxRuntimeExports.jsx(Footer$7,{primaryBtn:{isDisabled:i,isLoading:i,label:actualMatchingStrings.undoReversal,type:"button",variant:"outline",onClick:()=>p(getUndoReversalAccrualIdsFromMatch(r))}}):null,b&&jsxRuntimeExports.jsx(JEAccrualFeedbackDialog,{amount:amountToString(AMOUNT_FORMAT,r.actualAmount)??"",isOpen:x,isSubmitting:o,mode:"ignoreMatchSuggestion",vendorName:r.vendorName??"",onClose:()=>f(!1),onSubmit:(e,t)=>{d?.(e,t)}})]})}function prefixLastAction(e,t){return`${e}: ${t}`}function resultDetail(e,t){return null!=e&&""!==e?e:null!=t&&""!==t?t:void 0}function leftoverMatchFailureDetail(e,t){const n=e?.find(e=>e.accrualId===t);if(null!=n&&"reversed"!==n.status&&"noop"!==n.status)return resultDetail(n.reason,n.status)}function leftoverReversalFailureReason(e,t){const n=leftoverMatchFailureDetail(e,t);if(null!=n)return prefixLastAction(reversalFailed,n)}function shouldShowLeftoverReversalFailure(e,t,n){return!0!==n?.some(t=>t.accrualId===e&&"undone"===t.status)&&null!=leftoverMatchFailureDetail(t,e)}function undoFailureReason(e,t){const n=e?.find(e=>e.accrualId===t);if(null==n||"undone"===n.status)return;const o=resultDetail(n.reason,n.status);return null!=o?prefixLastAction(undoFailed,o):void 0}function FieldRow({label:e,value:t}){return jsxRuntimeExports.jsxs(FieldRowRoot,{children:[jsxRuntimeExports.jsx(FieldLabel,{children:`${e}${colon}`}),jsxRuntimeExports.jsx(FieldValue,{children:t})]})}function VarianceValue({match:e}){const t=formatMatchVarianceLabel(e),n=getMatchVariancePercent(e);return null==t||null==n?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:hyphen}):jsxRuntimeExports.jsx(FitContentCapsule,{children:jsxRuntimeExports.jsx(StyledCapsule,{label:t,type:getVarianceCapsuleType(n)})})}function ReversalJeBlock({accrual:e,postingDateLabel:t,testIdSuffix:n,failureReason:o}){const i=formatMemberAmount(e);return jsxRuntimeExports.jsx(JeBlock,{creditAccount:debitAccountName(e,hyphen),creditAmount:i,dateLabel:t,debitAccount:creditAccountName(e,previewStrings.accruedExpensesFallback),debitAmount:i,failureReason:o,testIdSuffix:n})}function JeBlock({creditAccount:e,creditAmount:t,dateLabel:n,debitAccount:o,debitAmount:i,testIdSuffix:r,failureReason:a}){const s=null!=a&&""!==a;return jsxRuntimeExports.jsxs(JeCard,{$hasFailure:s,"data-testid":generateDataTestId(TEST_ID_PREFIX,r),children:[jsxRuntimeExports.jsxs(JeTable,{children:[jsxRuntimeExports.jsx(JeHeaderCell,{children:detailStrings.jePostingDate}),jsxRuntimeExports.jsx(JeHeaderCell,{children:previewStrings.columnAccount}),jsxRuntimeExports.jsx(JeHeaderCell,{$align:"right",children:previewStrings.columnDebit}),jsxRuntimeExports.jsx(JeHeaderCell,{$align:"right",children:previewStrings.columnCredit}),jsxRuntimeExports.jsx(JeCell,{children:n}),jsxRuntimeExports.jsx(JeCell,{children:o}),jsxRuntimeExports.jsx(JeCell,{$align:"right",$isFailureAmount:s,children:i}),jsxRuntimeExports.jsx(JeCell,{$align:"right",$muted:!0,children:hyphen}),jsxRuntimeExports.jsx(JeCell,{children:n}),jsxRuntimeExports.jsx(JeCell,{children:e}),jsxRuntimeExports.jsx(JeCell,{$align:"right",$muted:!0,children:hyphen}),jsxRuntimeExports.jsx(JeCell,{$align:"right",$isFailureAmount:s,children:t})]}),s?jsxRuntimeExports.jsx(JeFailureReason,{"data-testid":generateDataTestId(TEST_ID_PREFIX,`${r}-reason`),children:a}):null]})}function MatchDetailLoadError({onRefresh:e}){return jsxRuntimeExports.jsxs(LoadErrorRoot,{"data-testid":generateDataTestId(TEST_ID_PREFIX,"load-error"),children:[jsxRuntimeExports.jsx(Tooltip$6,{title:refresh,enterDelay:600,placement:"bottom",children:jsxRuntimeExports.jsx(LoadErrorIconButton,{type:"button","aria-label":refresh,onClick:e,children:jsxRuntimeExports.jsx(StyledAlertIcon$2,{})})}),jsxRuntimeExports.jsx(LoadErrorTitle,{children:detailStrings.loadErrorTitle}),jsxRuntimeExports.jsx(LoadErrorSubTitle,{children:detailStrings.loadErrorSubTitle})]})}function MatchDetailSkeleton(){return jsxRuntimeExports.jsxs(Content,{"data-testid":generateDataTestId(TEST_ID_PREFIX,"skeleton"),children:[jsxRuntimeExports.jsxs(HeaderCard,{children:[jsxRuntimeExports.jsxs(VendorRow,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:sp[5],height:sp[5]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:180,height:sp[4]})]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:240,height:sp[3]})]}),jsxRuntimeExports.jsxs(BodyPad,{children:[jsxRuntimeExports.jsxs(FieldCard,{children:[jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[6]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[6]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:sp[6]})]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:240,height:sp[3]}),jsxRuntimeExports.jsx(ContentLoaderSkeleton,{width:"100%",height:120})]})]})}const spin=react$1.keyframes`
|
|
84000
|
-
0% {
|
|
84001
|
-
transform: rotate(0deg);
|
|
84002
|
-
}
|
|
84003
|
-
100% {
|
|
84004
|
-
transform: rotate(360deg);
|
|
84005
|
-
}
|
|
84006
|
-
`,PageRoot=styled$2.div`
|
|
84007
|
-
display: flex;
|
|
84008
|
-
flex-direction: column;
|
|
84009
|
-
flex: 1;
|
|
84010
|
-
width: 100%;
|
|
84011
|
-
height: 100%;
|
|
84012
|
-
min-height: 0;
|
|
84013
|
-
overflow: hidden;
|
|
84014
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
84015
|
-
`,NavbarContainer=styled$2.div`
|
|
84016
|
-
position: sticky;
|
|
84017
|
-
z-index: 3;
|
|
84018
|
-
top: ${Space.sp0};
|
|
84019
|
-
width: 100%;
|
|
84020
|
-
`,BackButtonWrapper=styled$2.div`
|
|
84021
|
-
display: flex;
|
|
84022
|
-
align-items: center;
|
|
84023
|
-
justify-content: center;
|
|
84024
|
-
padding: ${Space.sp1};
|
|
84025
|
-
width: ${Space.sp4};
|
|
84026
|
-
height: ${Space.sp4};
|
|
84027
|
-
border-radius: ${Space.sp1};
|
|
84028
|
-
box-sizing: border-box;
|
|
84029
|
-
cursor: pointer;
|
|
84030
|
-
&:hover {
|
|
84031
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
84032
|
-
}
|
|
84033
|
-
`,Back=styled$2(SvgArrowLeft)`
|
|
84034
|
-
width: ${Space.sp3};
|
|
84035
|
-
height: ${Space.sp3};
|
|
84036
|
-
color: ${e=>e.theme.colors.champion};
|
|
84037
|
-
&:hover {
|
|
84038
|
-
color: ${e=>e.theme.colors.primary};
|
|
84039
|
-
}
|
|
84040
|
-
`,RefreshButtonWrapper=styled$2.div`
|
|
84041
|
-
display: flex;
|
|
84042
|
-
align-items: center;
|
|
84043
|
-
justify-content: center;
|
|
84044
|
-
width: ${Space.sp4};
|
|
84045
|
-
height: ${Space.sp4};
|
|
84046
|
-
border-radius: ${Space.sp1};
|
|
84047
|
-
cursor: pointer;
|
|
84048
|
-
&:hover {
|
|
84049
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
84050
|
-
}
|
|
84051
|
-
`,StyledRefreshIcon=styled$2(SvgRefresh,{shouldForwardProp:e=>"string"==typeof e&&"$spinning"!==e})`
|
|
84052
|
-
cursor: pointer;
|
|
84053
|
-
width: ${Space.sp3};
|
|
84054
|
-
height: ${Space.sp3};
|
|
84055
|
-
color: ${e=>e.theme.colors.champion};
|
|
84056
|
-
animation: ${e=>e.$spinning?react$1.css`
|
|
84057
|
-
${spin} 2s linear infinite;
|
|
84058
|
-
`:"none"};
|
|
84059
|
-
&:hover {
|
|
84060
|
-
color: ${e=>e.theme.colors.primary};
|
|
84061
|
-
}
|
|
84062
|
-
`,Content=styled$2.div`
|
|
84063
|
-
display: flex;
|
|
84064
|
-
flex: 1;
|
|
84065
|
-
flex-direction: column;
|
|
84066
|
-
overflow-y: auto;
|
|
84067
|
-
min-height: 0;
|
|
84068
|
-
background: ${e=>e.theme.colors.grey4};
|
|
84069
|
-
`,LoadErrorRoot=styled$2.div`
|
|
84070
|
-
display: flex;
|
|
84071
|
-
flex: 1;
|
|
84072
|
-
flex-direction: column;
|
|
84073
|
-
align-items: center;
|
|
84074
|
-
justify-content: center;
|
|
84075
|
-
gap: ${Space.sp2};
|
|
84076
|
-
padding: ${Space.sp4};
|
|
84077
|
-
min-height: 0;
|
|
84078
|
-
`,LoadErrorIconButton=styled$2.button`
|
|
84079
|
-
display: flex;
|
|
84080
|
-
align-items: center;
|
|
84081
|
-
justify-content: center;
|
|
84082
|
-
width: ${sp[8]}px;
|
|
84083
|
-
height: ${sp[8]}px;
|
|
84084
|
-
padding: 0;
|
|
84085
|
-
border: none;
|
|
84086
|
-
border-radius: 50%;
|
|
84087
|
-
background: ${e=>e.theme.colors.grey5};
|
|
84088
|
-
cursor: pointer;
|
|
84089
|
-
color: ${e=>e.theme.colors.alert};
|
|
84090
|
-
&:hover {
|
|
84091
|
-
background: ${e=>e.theme.colors.grey3};
|
|
84092
|
-
}
|
|
84093
|
-
`,StyledAlertIcon$2=styled$2(SvgAlertRound)`
|
|
84094
|
-
width: ${sp[5]}px;
|
|
84095
|
-
height: ${sp[5]}px;
|
|
84096
|
-
`,LoadErrorTitle=styled$2(H6Regular)`
|
|
84097
|
-
color: ${e=>e.theme.colors.alert};
|
|
84098
|
-
`,LoadErrorSubTitle=styled$2(ExtraLargeRegular)`
|
|
84099
|
-
color: ${e=>e.theme.colors.primary};
|
|
84100
|
-
`,HeaderCard=styled$2.div`
|
|
84101
|
-
display: flex;
|
|
84102
|
-
flex-direction: column;
|
|
84103
|
-
width: 100%;
|
|
84104
|
-
box-sizing: border-box;
|
|
84105
|
-
background: ${e=>e.theme.colors.grey5};
|
|
84106
|
-
border-bottom: 1px solid ${e=>e.theme.colors.grey2};
|
|
84107
|
-
padding: ${Space.sp3} ${Space.sp5} ${Space.sp2};
|
|
84108
|
-
`,VendorRow=styled$2.div`
|
|
84109
|
-
display: flex;
|
|
84110
|
-
align-items: center;
|
|
84111
|
-
gap: ${Space.sp2};
|
|
84112
|
-
min-width: 0;
|
|
84113
|
-
min-height: ${Space.sp6};
|
|
84114
|
-
margin-bottom: ${Space.sp2};
|
|
84115
|
-
`,HeaderAmount=styled$2(H7SemiBold)`
|
|
84116
|
-
color: ${e=>e.theme.colors.champion};
|
|
84117
|
-
font-variant-numeric: tabular-nums;
|
|
84118
|
-
white-space: nowrap;
|
|
84119
|
-
margin-left: auto;
|
|
84120
|
-
`,SummaryRows=styled$2.div`
|
|
84121
|
-
display: flex;
|
|
84122
|
-
flex-direction: column;
|
|
84123
|
-
margin-bottom: ${Space.sp1};
|
|
84124
|
-
`,SummaryRow$1=styled$2.div`
|
|
84125
|
-
display: flex;
|
|
84126
|
-
flex-direction: row;
|
|
84127
|
-
justify-content: space-between;
|
|
84128
|
-
align-items: center;
|
|
84129
|
-
gap: ${Space.sp3};
|
|
84130
|
-
min-height: ${Space.sp5};
|
|
84131
|
-
`,SummaryLabel=styled$2(StandardMedium)`
|
|
84132
|
-
color: ${e=>e.theme.colors.hero};
|
|
84133
|
-
`,SummaryValue=styled$2(StandardMedium)`
|
|
84134
|
-
color: ${e=>e.theme.colors.champion};
|
|
84135
|
-
text-align: right;
|
|
84136
|
-
word-break: break-all;
|
|
84137
|
-
`,BodyPad=styled$2.div`
|
|
84138
|
-
display: flex;
|
|
84139
|
-
flex-direction: column;
|
|
84140
|
-
gap: ${Space.sp4};
|
|
84141
|
-
padding: ${Space.sp4};
|
|
84142
|
-
`,FieldCard=styled$2.div`
|
|
84143
|
-
display: flex;
|
|
84144
|
-
flex-direction: column;
|
|
84145
|
-
width: 100%;
|
|
84146
|
-
box-sizing: border-box;
|
|
84147
|
-
overflow: hidden;
|
|
84148
|
-
background: ${e=>e.theme.colors.grey5};
|
|
84149
|
-
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
84150
|
-
border-radius: ${Space.sp2};
|
|
84151
|
-
`,FieldRowRoot=styled$2.div`
|
|
84152
|
-
display: flex;
|
|
84153
|
-
align-items: center;
|
|
84154
|
-
gap: ${Space.sp3};
|
|
84155
|
-
min-height: ${sp[8]}px;
|
|
84156
|
-
padding: ${Space.sp1} ${Space.sp3} ${Space.sp1} ${Space.sp4};
|
|
84157
|
-
box-sizing: border-box;
|
|
84158
|
-
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
84159
|
-
&:first-of-type {
|
|
84160
|
-
border-top: none;
|
|
84161
|
-
}
|
|
84162
|
-
&:hover {
|
|
84163
|
-
background: ${e=>e.theme.colors.background};
|
|
84164
|
-
}
|
|
84165
|
-
`,FieldLabel=styled$2(StandardMedium)`
|
|
84166
|
-
flex: 0 1 268px;
|
|
84167
|
-
min-width: 0;
|
|
84168
|
-
color: ${e=>e.theme.colors.hero};
|
|
84169
|
-
white-space: nowrap;
|
|
84170
|
-
overflow: hidden;
|
|
84171
|
-
text-overflow: ellipsis;
|
|
84172
|
-
`,FieldValue=styled$2.div`
|
|
84173
|
-
flex: 1;
|
|
84174
|
-
min-width: 0;
|
|
84175
|
-
display: flex;
|
|
84176
|
-
align-items: center;
|
|
84177
|
-
justify-content: flex-end;
|
|
84178
|
-
${textStyles.standardMedium.css}
|
|
84179
|
-
color: ${e=>e.theme.colors.champion};
|
|
84180
|
-
text-align: right;
|
|
84181
|
-
`,OpenBillIconButton=styled$2.button`
|
|
84182
|
-
display: flex;
|
|
84183
|
-
align-items: center;
|
|
84184
|
-
justify-content: center;
|
|
84185
|
-
width: ${Space.sp4};
|
|
84186
|
-
height: ${Space.sp4};
|
|
84187
|
-
padding: ${Space.sp1};
|
|
84188
|
-
border: none;
|
|
84189
|
-
border-radius: ${Space.sp1};
|
|
84190
|
-
background: none;
|
|
84191
|
-
cursor: pointer;
|
|
84192
|
-
color: ${e=>e.theme.colors.champion};
|
|
84193
|
-
&:hover:not(:disabled) {
|
|
84194
|
-
background: ${e=>e.theme.colors.grey3};
|
|
84195
|
-
color: ${e=>e.theme.colors.primary};
|
|
84196
|
-
}
|
|
84197
|
-
&:disabled {
|
|
84198
|
-
cursor: default;
|
|
84199
|
-
opacity: 0.4;
|
|
84200
|
-
}
|
|
84201
|
-
`,OpenBillIcon=styled$2(SvgOpenLink)`
|
|
84202
|
-
width: ${Space.sp3};
|
|
84203
|
-
height: ${Space.sp3};
|
|
84204
|
-
flex-shrink: 0;
|
|
84205
|
-
color: inherit;
|
|
84206
|
-
`,VendorName=styled$2(H7SemiBold)`
|
|
84207
|
-
color: ${e=>e.theme.colors.champion};
|
|
84208
|
-
min-width: 0;
|
|
84209
|
-
`,FitContentCapsule=styled$2.div`
|
|
84210
|
-
display: inline-flex;
|
|
84211
|
-
width: fit-content;
|
|
84212
|
-
max-width: 100%;
|
|
84213
|
-
flex: 0 0 auto;
|
|
84214
|
-
align-self: center;
|
|
84215
|
-
`,SectionTitle$7=styled$2(LargeSemiBold)`
|
|
84216
|
-
color: ${e=>e.theme.colors.champion};
|
|
84217
|
-
`,WhyPanel=styled$2.div`
|
|
84218
|
-
display: flex;
|
|
84219
|
-
flex-direction: column;
|
|
84220
|
-
gap: ${Space.sp2};
|
|
84221
|
-
padding: ${Space.sp3};
|
|
84222
|
-
border-radius: ${Space.sp2};
|
|
84223
|
-
background: color-mix(
|
|
84224
|
-
in srgb,
|
|
84225
|
-
${Colors.brandColorOpalLight} 34%,
|
|
84226
|
-
${e=>e.theme.colors.grey5}
|
|
84227
|
-
);
|
|
84228
|
-
border: 1px solid ${Colors.brandColorOpalLight};
|
|
84229
|
-
`,WhyHead=styled$2.div`
|
|
84230
|
-
display: flex;
|
|
84231
|
-
align-items: center;
|
|
84232
|
-
gap: ${Space.sp2};
|
|
84233
|
-
`,WhyMethod=styled$2(ExtraSmallMedium)`
|
|
84234
|
-
color: ${Colors.brandColorOpalDark};
|
|
84235
|
-
`,WhySource=styled$2(ExtraSmallMedium)`
|
|
84236
|
-
color: ${e=>e.theme.colors.hero};
|
|
84237
|
-
margin-left: auto;
|
|
84238
|
-
`,WhyCopy=styled$2(StandardMedium)`
|
|
84239
|
-
color: ${e=>e.theme.colors.champion};
|
|
84240
|
-
line-height: 1.55;
|
|
84241
|
-
`,JeCard=styled$2.div`
|
|
84242
|
-
display: flex;
|
|
84243
|
-
flex-direction: column;
|
|
84244
|
-
overflow: hidden;
|
|
84245
|
-
background: ${e=>e.theme.colors.grey5};
|
|
84246
|
-
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
84247
|
-
border-radius: ${Space.sp2};
|
|
84248
|
-
${e=>!0===e.$hasFailure?`\n border-left: 2px solid ${e.theme.colors.important};\n `:""}
|
|
84249
|
-
`,JeFailureReason=styled$2(ExtraSmallMedium)`
|
|
84250
|
-
color: ${e=>e.theme.colors.important};
|
|
84251
|
-
padding: ${Space.sp2} ${Space.sp3} ${Space.sp3};
|
|
84252
|
-
`,JeTable=styled$2.div`
|
|
84253
|
-
display: grid;
|
|
84254
|
-
grid-template-columns: 140px minmax(0, 1fr) 100px 100px;
|
|
84255
|
-
`,JeHeaderCell=styled$2.span`
|
|
84256
|
-
${textStyles.extraSmallSemiBold.css}
|
|
84257
|
-
color: ${e=>e.theme.colors.hero};
|
|
84258
|
-
background: ${e=>e.theme.colors.grey4};
|
|
84259
|
-
height: ${Space.sp5};
|
|
84260
|
-
display: flex;
|
|
84261
|
-
align-items: center;
|
|
84262
|
-
padding: ${Space.sp0} ${Space.sp3};
|
|
84263
|
-
text-align: ${e=>e.$align??"left"};
|
|
84264
|
-
justify-content: ${e=>"right"===e.$align?"flex-end":"flex-start"};
|
|
84265
|
-
border-bottom: 1px solid ${e=>e.theme.colors.grey2};
|
|
84266
|
-
`,JeCell=styled$2.span`
|
|
84267
|
-
${textStyles.standardMedium.css}
|
|
84268
|
-
color: ${e=>!0===e.$isFailureAmount?e.theme.colors.important:!0===e.$muted?e.theme.colors.hero:e.theme.colors.champion};
|
|
84269
|
-
text-align: ${e=>e.$align??"left"};
|
|
84270
|
-
min-width: 0;
|
|
84271
|
-
overflow: hidden;
|
|
84272
|
-
text-overflow: ellipsis;
|
|
84273
|
-
white-space: nowrap;
|
|
84274
|
-
padding: ${Space.sp3};
|
|
84275
|
-
font-variant-numeric: tabular-nums;
|
|
84276
|
-
&:nth-child(n + 9) {
|
|
84277
|
-
border-top: 1px solid ${e=>e.theme.colors.grey2};
|
|
84278
|
-
}
|
|
84279
84279
|
`,SvgExcludeRound=e=>React__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},React__namespace.createElement("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),React__namespace.createElement("path",{d:"M4.06543 3.672L11.9318 12.325",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),PageContainer$2=styled$2.div`
|
|
84280
84280
|
display: flex;
|
|
84281
84281
|
flex-direction: column;
|
|
@@ -89966,4 +89966,4 @@ to {
|
|
|
89966
89966
|
`,StyledButton=styled$2(Button$4)`
|
|
89967
89967
|
min-width: 140px;
|
|
89968
89968
|
`;exports.AIAgentsActivatingPage=AIAgentsActivatingPage,exports.AIIconButton=AIIconButton,exports.AIPerformancePage=AIPerformancePage,exports.ALL_AI_CFO_MENU_OPTIONS=ALL_AI_CFO_MENU_OPTIONS,exports.ALL_INVOICING_MENU_GROUPS=ALL_INVOICING_MENU_GROUPS,exports.ALL_INVOICING_MENU_OPTIONS=ALL_INVOICING_MENU_OPTIONS,exports.ALL_SETTINGS_MENU_OPTIONS=ALL_SETTINGS_MENU_OPTIONS,exports.ALPHA_NUMERIC_PATTERN=ALPHA_NUMERIC_PATTERN,exports.APP_DRAWER_CONTENT_WIDTH_PX=APP_DRAWER_CONTENT_WIDTH_PX,exports.AccountInfoPage=AccountInfoPage,exports.AccountLockedInfoModal=AccountLockedInfoModal,exports.AccountReconDetailsDrawerPage=AccountReconDetailsDrawerPage$1,exports.AccountReconDetailsDrawerPage$1=AccountReconDetailsDrawerPage,exports.ActivityIndicator=ActivityIndicator,exports.ActualMatchingMatchDetailPage=ActualMatchingMatchDetailPage,exports.AddAddressForCardDrawer=AddAddressForCardDrawer,exports.AddThreadFloating=AddThreadFloating,exports.AddThreadsComponent=AddThreadsComponent,exports.AddToWalletPage=AddToWalletPage,exports.AddressFormPage=AddressFormPage,exports.AgentInsightsEditor=AgentInsightsEditor,exports.AgingReportsPage=AgingReportsPage,exports.AiCfoChatHeader=AiCfoChatHeader,exports.AiCfoMenuContent=AiCfoMenuContent,exports.AiCfoOnboardingPage=AiCfoOnboardingPage,exports.AiCfoPage=AiCfoPage,exports.AiCfoScopeModal=AiCfoScopeModal,exports.AiCfoScopeModalScrollBody=AiCfoScopeModalScrollBody,exports.AiCfoSidePanel=AiCfoSidePanel,exports.AiCfoSkillsBrowser=AiCfoSkillsBrowser,exports.AiFinanceTeamReadyPage=AiFinanceTeamReadyPage,exports.AllThreadsDrawer=AllThreadsDrawer,exports.AllThreadsSection=AllThreadsSection,exports.AllowBlockChipPicker=AllowBlockChipPicker,exports.AnalyticsOnLoad=AnalyticsOnLoad,exports.ApAgingDetailPage=ApAgingDetailPage,exports.AppBasePage=AppBasePage,exports.AppDrawerContent=AppDrawerContent,exports.AppDrawerHeightMobile=AppDrawerHeightMobile,exports.ApprovalRulesSettingsPage=ApprovalRulesSettingsPage,exports.ArAgingDetailPage=ArAgingDetailPage,exports.AskAiCfoNavButton=AskAiCfoNavButton,exports.AskAiCfoNavButtonWhenEnabled=AskAiCfoNavButtonWhenEnabled,exports.AttachmentView=AttachmentView,exports.AutoSizer=AutoSizer,exports.AutoTransferRulePage=AutoTransferRulePage,exports.AvatarSVG=AvatarSVG$1,exports.BORDER_RADIUS_SELECT_FIELD=BORDER_RADIUS_SELECT_FIELD,exports.BackNavigationProvider=BackNavigationProvider,exports.BankConnectionsSettingsPage=BankConnectionsSettingsPage,exports.BillDetailPage=BillDetailPage,exports.BillDetailPageSkeleton=BillDetailPageSkeleton,exports.BillPayApprovalRuleDetailPage=BillPayApprovalRuleDetailPage$1,exports.BillPayApprovalRuleDetailPage$1=BillPayApprovalRuleDetailPage,exports.BillPayApprovalRulesPage=BillPayApprovalRulesPage$1,exports.BillPayApprovalRulesPage$1=BillPayApprovalRulesPage,exports.BillPayPromoPage=BillPayPromoPage,exports.BillPaySetUpPage=BillPaySetUpPage,exports.BillingSettingsPage=BillingSettingsPage,exports.BillsBulkReviewDrawerPage=BillsBulkReviewDrawerPage,exports.BusinessVerificationPage=BusinessVerificationPage,exports.BusyIndication=BusyIndication,exports.Button=Button$4,exports.ButtonBase=ButtonBase,exports.CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT=CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT,exports.CARD_POLICY_LIMIT_ROW_ID_TRANSACTION=CARD_POLICY_LIMIT_ROW_ID_TRANSACTION,exports.COMMAND_CENTER_SUBMENU_TYPES=COMMAND_CENTER_SUBMENU_TYPES,exports.COMMENTS_DRAWER_MAXIMUM_WIDTH=COMMENTS_DRAWER_MAXIMUM_WIDTH,exports.COMMENTS_SECTION_MINIMUM_WIDTH=COMMENTS_SECTION_MINIMUM_WIDTH,exports.COMMENT_NOTIFICATION_KINDS=COMMENT_NOTIFICATION_KINDS,exports.CapitalizationOnboardingPopup=CapitalizationOnboardingPopup,exports.CapitalizationSettingsSection=CapitalizationSettingsSection,exports.CardPolicyCreatePage=CardPolicyCreatePage,exports.CardPolicyEditPage=CardPolicyEditPage,exports.CardPolicyFormPageSkeleton=CardPolicyFormPageSkeleton,exports.CardPolicyFormSections=CardPolicyFormSections,exports.CardPolicyListPage=CardPolicyListPage,exports.CardPolicyListPageSkeleton=CardPolicyListPageSkeleton,exports.CardPolicyListRow=CardPolicyListRow,exports.CardPolicyListSkeletonRow=CardPolicyListSkeletonRow,exports.CardPolicyManualEmptyState=CardPolicyManualEmptyState,exports.CardsAiCfoHero=CardsAiCfoHero,exports.CardsShutdownBanner=CardsShutdownBanner,exports.CashbackDetailLoading=CashbackDetailLoading,exports.CashbackDetailPage=CashbackDetailPage,exports.ChargeCardCVVActivate=ChargeCardCVVActivate,exports.ChargeCardDetailLoading=ChargeCardDetailLoading,exports.ChargeCardDetailPage=ChargeCardDetailPage,exports.ChargeCardListLoading=ChargeCardListLoading,exports.ChargeCardListPage=ChargeCardListPage,exports.ChargeCardListSkeletonRow=ChargeCardListSkeletonRow,exports.ChargeCardPaymentHistoryPage=ChargeCardPaymentHistoryPage,exports.ChargeCardPromoPage=ChargeCardPromoPage,exports.ChargeCardPromoPageSkeleton=ChargeCardPromoPageSkeleton,exports.ChargeCardSetUpPage=ChargeCardSetUpPage,exports.ChargeCardStatementsLoading=ChargeCardStatementsLoading,exports.ChargeCardStatementsPage=ChargeCardStatementsPage,exports.ChargeCardUserOnboardingPromoPage=ChargeCardUserOnboardingPromoPage,exports.ChargeCardUserOnboardingPromoPageSkeleton=ChargeCardUserOnboardingPromoPageSkeleton,exports.CheckDepositDrawerPage=CheckDepositDrawerPage,exports.Checkbox=Checkbox,exports.CircleWithAttachmentSuccessIcon=CircleWithAttachmentSuccessIcon,exports.CircularProgress=CircularProgress,exports.ClickAwayListener=ClickAwayListener,exports.ClickableRow=ClickableRow,exports.CollaborationGlobalStyles=CollaborationGlobalStyles,exports.CollaborationProvider=CollaborationProvider,exports.CollaborationRoomProvider=CollaborationRoomProvider,exports.Color=Color$1,exports.Colors=Colors,exports.CombinationOperatorButton=CombinationOperatorButton,exports.CommentsAndNotesCount=CommentsAndNotesCount,exports.CommentsDrawerProvider=CommentsDrawerProvider,exports.CommonDot=CommonDot,exports.CompanyOfficerOnboardingDetailsSection=CompanyOfficerOnboardingDetailsSection,exports.CompanyOnboardingDetailsSection=CompanyOnboardingDetailsSection,exports.CompanyPassportCard=CompanyPassportCard,exports.CompanyPassportPage=CompanyPassportPage,exports.CompleteProfile=CompleteProfile,exports.ConfettiBurst=ConfettiBurst,exports.ConfirmationPopUpDescription=ConfirmationPopUpDescription$2,exports.ConfirmationPopUpTitle=ConfirmationPopUpTitle$3,exports.ConfirmationPopup=ConfirmationPopup,exports.ConnectDataSourcesPage=ConnectDataSourcesPage,exports.ContentLoaderSkeleton=ContentLoaderSkeleton,exports.ControlledComponent=ControlledComponent,exports.Controller=Controller,exports.CreateOrEditVendorPage=CreateOrEditVendorPage,exports.CreateOrEditVendorPageSkeleton=CreateOrEditVendorPageSkeleton,exports.CreatedEntitiesAnswer=CreatedEntitiesAnswer,exports.CreatingEntitiesAnswerLoading=CreatingEntitiesAnswerLoading,exports.CreditCardPaymentDrawerPage=CreditCardPaymentDrawerPage,exports.CustomerOnboardingContainerPage=CustomerOnboardingContainerPage,exports.CustomerOnboardingNoStepsPage=CustomerOnboardingNoStepsPage,exports.CustomerOnboardingPage=CustomerOnboardingPage,exports.CustomerOnboardingProductSuitePage=CustomerOnboardingProductSuitePage,exports.DIGITS_PATTERN=DIGITS_PATTERN,exports.DOMAIN_PATTERN=DOMAIN_PATTERN,exports.Dashboard=Dashboard,exports.DashboardReportPage=DashboardReportPage,exports.DashboardSidebarLogoAnimation=DashboardSidebarLogoAnimation,exports.DataListTable=DataListTable,exports.DataListTableHeader=DataListTableHeader,exports.DataListTableRow=DataListTableRow,exports.DataListTableSortIndicator=DataListTableSortIndicator,exports.DateRangeFilterField=DateRangeFilterField,exports.DebitCardSetPin=DebitCardSetPin,exports.Drawer=Drawer,exports.DrawerPage=DrawerPage,exports.DropdownOption=DropdownOption$1,exports.DropdownPortalContext=DropdownPortalContext,exports.DynamicConfigNames=DynamicConfigNames,exports.EMPTY_HTML_CHECKER=EMPTY_HTML_CHECKER,exports.EditPeoplePage=EditPeoplePage,exports.EditReimbursementDetailPage=EditReimbursementDetailPage,exports.EditableBillDetailPage=EditableBillDetailPage,exports.Editor=Editor,exports.EmptySearchResults=EmptySearchResults,exports.EntityAvatar=EntityAvatar,exports.EntityAvatarWithInitials=EntityAvatarWithInitials,exports.EntityDetailPage=EntityDetailPage,exports.ErrorBoundaryWrapper=ErrorBoundaryWrapper,exports.ExcludedAccountReconDetailsDrawerPage=ExcludedAccountReconDetailsDrawerPage,exports.ExpenseAutomationOverviewPage=ExpenseAutomationOverviewPage,exports.ExpenseAutomationOverviewPageSkeleton=ExpenseAutomationOverviewPageSkeleton,exports.ExpenseAutomationPage=ExpenseAutomationPage,exports.ExpressPayPage=ExpressPayPage,exports.ExtraLargeMedium=ExtraLargeMedium,exports.ExtraLargeRegular=ExtraLargeRegular,exports.ExtraLargeSemiBold=ExtraLargeSemiBold,exports.ExtraSmallBoldSp=ExtraSmallBoldSp,exports.ExtraSmallRegular=ExtraSmallRegular,exports.ExtraSmallRegularSp=ExtraSmallRegularSp,exports.ExtraSmallSemiBold=ExtraSmallSemiBold,exports.ExtraSmallSemiBoldSp=ExtraSmallSemiBoldSp,exports.EyebrowSmallSemiBoldSp=EyebrowSmallSemiBoldSp,exports.FORM_MINIMUM_WIDTH=FORM_MINIMUM_WIDTH,exports.FeatureGatesNames=FeatureGatesNames,exports.FeaturePreviewPage=FeaturePreviewPage,exports.FeatureProvider=FeatureProvider,exports.FieldHelpIcon=FieldHelpIcon,exports.FieldHelpProvider=FieldHelpProvider,exports.FileAttachment=FileAttachment,exports.FileInputElement=FileInputElement,exports.FiltersPopover=FiltersPopover,exports.FirstReviewVendorDetailPage=FirstReviewVendorDetailPage,exports.FixedSizeList=FixedSizeList,exports.FloatingThreads=FloatingThreads,exports.FontWeight=FontWeight,exports.Footer=Footer$7,exports.FormProvider=FormProvider,exports.GlobalInfoProvider=GlobalInfoProvider,exports.GlobalReviewListPage=GlobalReviewListPage,exports.H5Regular=H5Regular,exports.H6Regular=H6Regular,exports.INPUT_BG_COLOR=INPUT_BG_COLOR,exports.INPUT_BORDER_COLOR_SELECT_FIELD=INPUT_BORDER_COLOR_SELECT_FIELD,exports.INPUT_COLOR=INPUT_COLOR,exports.INPUT_ERROR_BG_COLOR=INPUT_ERROR_BG_COLOR,exports.INPUT_HOVER_FOCUS_COLOR=INPUT_HOVER_FOCUS_COLOR,exports.INPUT_PLACEHOLDER_COLOR=INPUT_PLACEHOLDER_COLOR,exports.INVOICING_SETTINGS_NAV_SECTIONS=INVOICING_SETTINGS_NAV_SECTIONS,exports.INVOICING_SETTINGS_TABS=INVOICING_SETTINGS_TABS,exports.InfiniteLoader=InfiniteLoader,exports.InformationCardStack=InformationCardStack,exports.InitialCollaborationProvider=InitialCollaborationProvider,exports.InsightCardStack=InsightCardStack,exports.IntegrationCardView=IntegrationCardView,exports.IntegrationsCardGrid=IntegrationsCardGrid,exports.IntegrationsSection=IntegrationsSection,exports.IntegrationsSettingsPage=IntegrationsSettingsPage,exports.InternationalWireVerificationPage=InternationalWireVerificationPage,exports.InviteFormPage=InviteFormPage,exports.InvitePageListView=InvitePageListView,exports.InvitePeoplePage=InvitePeoplePage,exports.InvoiceUploadSection=InvoiceUploadSection,exports.InvoiceUploadSectionSkeleton=InvoiceUploadSectionSkeleton,exports.InvoicingAddPaymentMethodDialog=InvoicingAddPaymentMethodDialog,exports.InvoicingAuditLogPage=InvoicingAuditLogPage,exports.InvoicingBrandingSettingsPage=InvoicingBrandingSettingsPage,exports.InvoicingCatalogItemDetailPage=InvoicingCatalogItemDetailPage,exports.InvoicingCatalogItemFormPage=InvoicingCatalogItemFormPage,exports.InvoicingCatalogPage=InvoicingCatalogPage,exports.InvoicingCouponFormPage=InvoicingCouponFormPage,exports.InvoicingCreateInvoicePage=InvoicingCreateInvoicePage,exports.InvoicingCreateInvoiceSkeleton=InvoicingCreateInvoiceSkeleton,exports.InvoicingCreatePromotionalCreditsDialog=InvoicingCreatePromotionalCreditsDialog,exports.InvoicingCreditDetailPage=InvoicingCreditDetailPage,exports.InvoicingCreditListPage=InvoicingCreditListPage,exports.InvoicingCustomerDetailPage=InvoicingCustomerDetailPage,exports.InvoicingCustomerFormPage=InvoicingCustomerFormPage,exports.InvoicingCustomerListPage=InvoicingCustomerListPage,exports.InvoicingDashboardSkeleton=InvoicingDashboardSkeleton,exports.InvoicingDataImportDetailPage=InvoicingDataImportDetailPage,exports.InvoicingDataImportHubPage=InvoicingDataImportHubPage,exports.InvoicingDataImportMigratePage=InvoicingDataImportMigratePage,exports.InvoicingDetailScaffold=InvoicingDetailScaffold,exports.InvoicingDiscountDetailPage=InvoicingDiscountDetailPage,exports.InvoicingDiscountListPage=InvoicingDiscountListPage,exports.InvoicingDunningDetailPage=InvoicingDunningDetailPage,exports.InvoicingDunningEmailComposerDialog=InvoicingDunningEmailComposerDialog,exports.InvoicingDunningListPage=InvoicingDunningListPage,exports.InvoicingDunningSettingsPage=InvoicingDunningSettingsPage,exports.InvoicingEmptyState=InvoicingEmptyState,exports.InvoicingIntegrationsSettingsPage=InvoicingIntegrationsSettingsPage,exports.InvoicingInvoiceDetailPage=InvoicingInvoiceDetailPage,exports.InvoicingInvoiceListPage=InvoicingInvoiceListPage,exports.InvoicingIssueCreditNotePage=InvoicingIssueCreditNotePage,exports.InvoicingOverviewPage=InvoicingOverviewPage,exports.InvoicingPaymentDestinationSettingsPage=InvoicingPaymentDestinationSettingsPage,exports.InvoicingPaymentLinkEmailComposerDialog=InvoicingPaymentLinkEmailComposerDialog,exports.InvoicingPaymentLinkPage=InvoicingPaymentLinkPage,exports.InvoicingPaymentListPage=InvoicingPaymentListPage,exports.InvoicingPromoPage=InvoicingPromoPage,exports.InvoicingQBOSettingsPage=InvoicingQBOSettingsPage,exports.InvoicingRecordPaymentPage=InvoicingRecordPaymentPage,exports.InvoicingSettingsHubPage=InvoicingSettingsHubPage,exports.InvoicingSubscriptionDetailPage=InvoicingSubscriptionDetailPage,exports.InvoicingSubscriptionFormPage=InvoicingSubscriptionFormPage,exports.InvoicingSubscriptionListPage=InvoicingSubscriptionListPage,exports.InvoicingTransactionDetailPage=InvoicingTransactionDetailPage,exports.InvoicingVoidInvoiceDialog=InvoicingVoidInvoiceDialog,exports.IssueChargeCardPage=IssueChargeCardPage,exports.IssueChargeCardPageSkeleton=IssueChargeCardPageSkeleton,exports.ItemWithButton=ItemWithButton,exports.JEOneTimeAccrualDetailPage=JEOneTimeAccrualDetailPage,exports.Label=Label$f,exports.LabeledDatePickerField=LabeledDatePickerField,exports.LabeledGroupedMultiSelectField=LabeledGroupedMultiSelectField,exports.LabeledItemWithButton=LabeledItemWithButton,exports.LabeledNameField=LabeledNameField,exports.LabeledRadioField=LabeledRadioField,exports.LabeledReadOnlyTextField=LabeledReadOnlyTextField,exports.LabeledSingleSelectNumericField=LabeledSingleSelectNumericField,exports.LabeledSingleSelectPickerField=LabeledSingleSelectPickerField,exports.LabeledSingleSelectWithoutClearableField=LabeledSingleSelectWithoutClearableField,exports.LabeledTextField=LabeledTextField,exports.LabeledUnSafeCheckBoxField=LabeledUnSafeCheckBoxField,exports.LargeBoldSp=LargeBoldSp,exports.LargeMedium=LargeMedium,exports.LargeMediumSp=LargeMediumSp,exports.LargeRegular=LargeRegular,exports.LargeRegularA=LargeRegularA,exports.LargeRegularLabel=LargeRegularLabel,exports.LargeRegularSp=LargeRegularSp,exports.LargeRegularTA=LargeRegularTA,exports.LargeSemiBold=LargeSemiBold,exports.LinkBillExpensePage=LinkBillExpensePage,exports.LinkJETransactionPage=LinkJETransactionPage,exports.ListTableSkeleton=ListTableSkeleton,exports.Loader=Loader,exports.LogoutButton=LogoutButton,exports.Lottie=Lottie,exports.MCC_CHIP_ID_PREFIX=MCC_CHIP_ID_PREFIX,exports.MEETING_LINK_DEFAULTS=MEETING_LINK_DEFAULTS,exports.MENU_BG_COLOR=MENU_BG_COLOR,exports.MONTH_END_EDITOR_PLACEHOLDER=MONTH_END_EDITOR_PLACEHOLDER,exports.MONTH_END_EMAIL_BODY_SECTION=MONTH_END_EMAIL_BODY_SECTION,exports.MONTH_END_EMAIL_EDITOR_SECTION=MONTH_END_EMAIL_EDITOR_SECTION,exports.MONTH_END_EMAIL_HEADER_SECTION=MONTH_END_EMAIL_HEADER_SECTION,exports.MONTH_END_REPORT_CANVAS=MONTH_END_REPORT_CANVAS,exports.MagicLinkDomesticWireDetailsPage=MagicLinkDomesticWireDetailsPage,exports.MagicLinkInternationalWireDetailsPage=MagicLinkInternationalWireDetailsPage,exports.MagicLinkSuccessPage=MagicLinkSuccessPage,exports.MagicLinkVendorACHDetailsPage=MagicLinkVendorACHDetailsPage,exports.MatchingOperatorDropdown=MatchingOperatorDropdown,exports.Modal=Modal,exports.Modal$1=Modal$1,exports.MonthCalendar=MonthCalendar,exports.MonthEndEmailDrawerCustomerRequestPage=MonthEndEmailDrawerCustomerRequestPage,exports.MonthEndReportCustomerRequestSection=MonthEndReportCustomerRequestSection,exports.MonthEndReportSection=MonthEndReportSection,exports.MoreMenuButton=MoreMenuButton$1,exports.MyBankConnectionsSettingsPage=MyBankConnectionsSettingsPage,exports.MyPendingActivationChargeCardListPage=MyPendingActivationChargeCardListPage,exports.MyProfileSettingsPage=MyProfileSettingsPage,exports.NEW_CATEGORY_BODY=NEW_CATEGORY_BODY$2,exports.NEW_THREAD_SUFFIX=NEW_THREAD_SUFFIX,exports.NavBar=NavBar,exports.NavBarRightRowStyled=NavBarRightRowStyled,exports.NavBarWithClose=NavBarWithClose,exports.NewGlobalMerchantPage=NewGlobalMerchantPage,exports.NewUpdateAvailablePage=NewUpdateAvailablePage,exports.NotFoundPage=NotFoundPage,exports.NotificationSettingsPage=NotificationSettingsPage,exports.NotificationsPage=NotificationsPage,exports.OAuthConsentPage=OAuthConsentPage,exports.OPTION_BG_COLOR=OPTION_BG_COLOR,exports.OPTION_DISABLED_BG_COLOR=OPTION_DISABLED_BG_COLOR,exports.OPTION_HOVER_FOCUS_BG_COLOR=OPTION_HOVER_FOCUS_BG_COLOR,exports.OPTION_LABEL_COLOR=OPTION_LABEL_COLOR,exports.OPTION_LABEL_DISABLED_COLOR=OPTION_LABEL_DISABLED_COLOR,exports.OPTION_LABEL_HOVER_FOCUS_COLOR=OPTION_LABEL_HOVER_FOCUS_COLOR,exports.OnboardingInitialLoader=OnboardingInitialLoader,exports.OnboardingSidebar=OnboardingSidebar,exports.OnboardingStepFrame=OnboardingStepFrame,exports.OpExByVendorPage=OpExByVendorPage,exports.OverlayContainerPage=OverlayContainerPage,exports.PandLWithForecastPage=PandLWithForecastPage,exports.PanelDirtyGuardContext=PanelDirtyGuardContext,exports.PanelInternalContext=PanelInternalContext,exports.PaymentAccountSetupBillingAddressSection=PaymentAccountSetupBillingAddressSection,exports.PeoplePage=PeoplePage,exports.Picker=Picker,exports.PolicyLimitsRowList=PolicyLimitsRowList,exports.PolicyModeSelector=PolicyModeSelector,exports.Popover=Popover,exports.PortfolioAllocationFormPage=PortfolioAllocationFormPage,exports.PropTypes=PropTypes,exports.QBOConnectionDialog=QBOConnectionDialog,exports.QBOSetupSectionWithForm=QBOSetupSectionWithForm,exports.QuickResponsesPage=QuickResponsesPage,exports.QuickViewModeContext=QuickViewModeContext,exports.REALM_ID=REALM_ID,exports.RIGHT_SIDE_PANEL_WIDTH_PX=RIGHT_SIDE_PANEL_WIDTH_PX,exports.RecommendationFeedbackPopup=RecommendationFeedbackPopup,exports.ReimbursementApprovalRuleDetailPage=ReimbursementApprovalRuleDetailPage$1,exports.ReimbursementApprovalRuleDetailPage$1=ReimbursementApprovalRuleDetailPage,exports.ReimbursementApprovalRulesPage=ReimbursementApprovalRulesPage$1,exports.ReimbursementApprovalRulesPage$1=ReimbursementApprovalRulesPage,exports.ReimbursementDetailPage=ReimbursementDetailPage,exports.ReimbursementDetailPageSkeleton=ReimbursementDetailPageSkeleton,exports.ReimbursementPromoPage=ReimbursementPromoPage,exports.ReimbursementsBulkReviewDrawerPage=ReimbursementsBulkReviewDrawerPage,exports.ReloadContainer=ReloadContainer,exports.RemiSetupPage=RemiSetupPage,exports.ReportsPage=ReportsPage,exports.ResponsiveSized=ResponsiveSized,exports.ResponsiveSizedStyle=ResponsiveSizedStyle,exports.ReviewBillDetailsPage=ReviewBillDetailsPage,exports.ReviewConfirmTransferPanel=ReviewConfirmTransferPanel,exports.ReviewDetailsPageSkeleton=ReviewDetailsPageSkeleton,exports.ScheduleDetailSkeleton=ScheduleDetailSkeleton,exports.ScheduleDetailsAccruedExpensesPage=ScheduleDetailsAccruedExpensesPage,exports.ScheduleDetailsFixedAssetsPage=ScheduleDetailsFixedAssetsPage,exports.ScheduleDetailsPage=ScheduleDetailsPage,exports.SearchBoxWithFilterButton=SearchBoxWithFilterButton,exports.SearchableCheckboxCardList=SearchableCheckboxCardList,exports.SessionTimeoutPopup=SessionTimeoutPopup,exports.SidePanelContext=SidePanelContext,exports.SidePanelLayout=SidePanelLayout,exports.SidePanelProvider=SidePanelProvider,exports.SignIn=SignIn,exports.SimpleDownloadMenuButton=SimpleDownloadMenuButton,exports.SingleSelectNumeric=SingleSelectNumeric,exports.SingleSelectPickerField=SingleSelectPickerField,exports.SingleSelectWithoutClearableField=SingleSelectWithoutClearableField,exports.SmallMedium=SmallMedium,exports.SmallMediumBtn=SmallMediumBtn,exports.SmallMediumSp=SmallMediumSp,exports.SmallRegular=SmallRegular,exports.SmallRegularA=SmallRegularA,exports.SmallRegularBtn=SmallRegularBtn,exports.SmallRegularInput=SmallRegularInput,exports.SmallRegularP=SmallRegularP,exports.SmallRegularSp=SmallRegularSp,exports.SmallRegularUl=SmallRegularUl,exports.SmallSemiBoldSp=SmallSemiBoldSp,exports.SomethingWrongPage=SomethingWrongPage,exports.Space=Space,exports.SpendManagementListLoading=SpendManagementListLoading,exports.SpendManagementListViewPage=SpendManagementListViewPage,exports.SpendManagementSetUpLoading=SpendManagementSetUpLoading,exports.StandardBold=StandardBold,exports.StandardMedium=StandardMedium,exports.StandardMediumA=StandardMediumA,exports.StandardMediumSp=StandardMediumSp,exports.StandardMediumTA=StandardMediumTA,exports.StandardRegular=StandardRegular,exports.StandardRegularLabel=StandardRegularLabel,exports.StandardRegularLi=StandardRegularLi,exports.StandardRegularSp=StandardRegularSp,exports.StandardSemiBold=StandardSemiBold,exports.StandardSemiBoldSp=StandardSemiBoldSp,exports.StateManagedSelect$1=StateManagedSelect$1,exports.StatementParseInfoEntry=StatementParseInfoEntry,exports.StatementProcessingPage=StatementProcessingPage,exports.StatementsPage=StatementsPage,exports.StickyThread=StickyThread,exports.StyledCapsule=StyledCapsule,exports.StyledCheckBox=StyledCheckBox$1,exports.StyledText=StyledText$c,exports.SubscriptionDetailPage=SubscriptionDetailPage,exports.SubscriptionSnackBar=SubscriptionSnackBar,exports.SubscriptionSummaryPage=SubscriptionSummaryPage,exports.SvgAddRound=SvgAddRound,exports.SvgAiIcon=SvgAiIcon,exports.SvgAlert=SvgAlert,exports.SvgArrowBottom=SvgArrowBottom,exports.SvgArrowCircleBottom=SvgArrowCircleBottom,exports.SvgArrowFilledBottom=SvgArrowFilledBottom,exports.SvgArrowLeft=SvgArrowLeft,exports.SvgArrowRight=SvgArrowRight,exports.SvgArrowTailRight=SvgArrowTailRight,exports.SvgArrowTailTop=SvgArrowTailTop,exports.SvgAvatar=SvgAvatar,exports.SvgClock=SvgClock,exports.SvgClose=SvgClose,exports.SvgCloseRound=SvgCloseRound,exports.SvgComment=SvgComment,exports.SvgCompanyDetails=SvgCompanyDetails,exports.SvgDelete=SvgDelete,exports.SvgDoubleTick=SvgDoubleTick,exports.SvgEdit=SvgEdit,exports.SvgEmail=SvgEmail,exports.SvgFlag=SvgFlag,exports.SvgHighImportance=SvgHighImportance,exports.SvgHighImportanceFill=SvgHighImportanceFill,exports.SvgHighImportanceFilled=SvgHighImportanceFilled,exports.SvgInfinite=SvgInfinite,exports.SvgInfo=SvgInfo,exports.SvgIntuitQuickBooksLogo=SvgIntuitQuickBooksLogo,exports.SvgLoader=SvgLoader,exports.SvgMore=SvgMore,exports.SvgNotification=SvgNotification,exports.SvgOpenLink=SvgOpenLink,exports.SvgPlayButtonSmall=SvgPlayButtonSmall,exports.SvgQueryRound=SvgQueryRound,exports.SvgRefresh=SvgRefresh,exports.SvgReload=SvgReload,exports.SvgSearch=SvgSearch,exports.SvgTick=SvgTick,exports.SvgTickRound=SvgTickRound,exports.SvgTickRoundFill=SvgTickRoundFill,exports.SvgWarning=SvgWarning,exports.SvgZeniLogoFull=SvgZeniLogoFull,exports.SyntheticAiCfoAnswerView=SyntheticAiCfoAnswerView,exports.THREAD_RESOLVED_NOTIFICATION_KIND=THREAD_RESOLVED_NOTIFICATION_KIND,exports.THREAD_UNRESOLVED_NOTIFICATION_KIND=THREAD_UNRESOLVED_NOTIFICATION_KIND,exports.TaskDetailPage=TaskDetailPage,exports.TaskManagementPage=TaskManagementPage,exports.TenantsDropDown=TenantsDropDown,exports.TextHighlightSection=TextHighlightSection,exports.TextStyle=TextStyle,exports.ThreadComponent=ThreadComponent,exports.ThreadDotComponent=ThreadDotComponent,exports.ThreadsContext=ThreadsContext,exports.ToolkitProvider=ToolkitProvider,exports.Tooltip=Tooltip$6,exports.TopExDetailPage=TopExDetailPage,exports.TransactionActivityLogPage=TransactionActivityLogPage,exports.TransactionActivityLogPanel=TransactionActivityLogPanel,exports.TransactionDetailPage=TransactionDetailPage,exports.TransactionDetailSkeleton=TransactionDetailSkeleton,exports.TransactionListBig=TransactionListBig,exports.TransactionListComments=TransactionListComments,exports.TransactionListPage=TransactionListPage,exports.TransactionVendorDetailPage=TransactionVendorDetailPage,exports.TransferDrawerPage=TransferDrawerPage,exports.TreasuryOverviewPage=TreasuryOverviewPage,exports.TreasuryPromoPage=TreasuryPromoPage,exports.TreasurySetUpPage=TreasurySetUpPage,exports.TreasuryStatementsPage=TreasuryStatementsPage,exports.TreasuryTaxLetterPage=TreasuryTaxLetterPage,exports.TreasuryTransferOrReviewPage=TreasuryTransferOrReviewPage,exports.TrendChart=TrendChart,exports.UncategorizedAccountsMappingPage=UncategorizedAccountsMappingPage,exports.UnitIntegrationPage=UnitIntegrationPage,exports.UserMultiSelectField=UserMultiSelectField,exports.UserWithTimestamp=UserWithTimestamp,exports.VENDOR_CHIP_ID_PREFIX=VENDOR_CHIP_ID_PREFIX,exports.VariableSizeList=VariableSizeList,exports.Vendor2FAPopup=Vendor2FAPopup,exports.VendorACHDetailsPage=VendorACHDetailsPage,exports.VendorAccruedSchedulesPage=VendorAccruedSchedulesPage,exports.VendorDetailPage=VendorDetailPage,exports.VendorDomesticWireDetailsPage=VendorDomesticWireDetailsPage,exports.VendorFiling1099DetailsEditablePage=VendorFiling1099DetailsEditablePage,exports.VendorFiling1099EditableFormSkeleton=VendorFiling1099EditableFormSkeleton,exports.VendorFiling1099ListPage=VendorFiling1099ListPage,exports.VendorFirstReviewPage=VendorFirstReviewPage,exports.VendorInternationalSwiftBasedDetailsPage=VendorInternationalSwiftBasedDetailsPage,exports.VendorInternationalWireDetailsPage=VendorInternationalWireDetailsPage,exports.VendorListPage=VendorListPage,exports.VendorSchedulesPage=VendorSchedulesPage,exports.VerificationFrame=VerificationFrame,exports.VerifyDevice=VerifyDevice,exports.VerifyUnlockFinancialStackPage=VerifyUnlockFinancialStackPage,exports.WebV2MicroService=WebV2MicroService,exports.WebV2MicroServiceProvider=WebV2MicroServiceProvider,exports.WelcomeAnimation=WelcomeAnimation,exports.WindowSizeProvider=WindowSizeProvider,exports.ZeniAccountDetailLoading=ZeniAccountDetailLoading,exports.ZeniAccountDetailNavBarTitleShimmer=ZeniAccountDetailNavBarTitleShimmer,exports.ZeniAccountDetailPage=ZeniAccountDetailPage,exports.ZeniAccountListLoading=ZeniAccountListLoading,exports.ZeniAccountListViewPage=ZeniAccountListViewPage,exports.ZeniAccountPromoPage=ZeniAccountPromoPage,exports.ZeniAccountSetUpPage=ZeniAccountSetUpPage,exports.ZeniAvatar=ZeniAvatar,exports.ZeniDatePickerField=ZeniDatePickerField,exports.ZeniText=ZeniText,exports.ZeniThemeProvider=ZeniThemeProvider,exports.activeElement=activeElement,exports.alignToJustify=alignToJustify$1,exports.amountToString=amountToString,exports.amountValueToString=amountValueToString,exports.appLocale=appLocale,exports.applyExtractedPolicyRulesToFormValues=applyExtractedPolicyRulesToFormValues,exports.base64FileSize=base64FileSize,exports.buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm=buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm,exports.buildCardPolicyFormValuesFromRequest=buildCardPolicyFormValuesFromRequest,exports.buildCreateCardPolicyTemplateRequest=buildCreateCardPolicyTemplateRequest,exports.buildCreateCardPolicyTemplateRequestFromInteractiveForm=buildCreateCardPolicyTemplateRequestFromInteractiveForm,exports.buildMccCategoryChipId=buildMccCategoryChipId,exports.buildStickyKeySet=buildStickyKeySet,exports.buildVendorChipId=buildVendorChipId,exports.capitaliseWords=capitaliseWords,exports.capitalize=capitalize,exports.cellVerticalAlignToFlexAlign=cellVerticalAlignToFlexAlign,exports.clearAutoLogoutContext=clearAutoLogoutContext,exports.clickableRowStyles=clickableRowStyles,exports.cloneDeep=cloneDeep,exports.clsx=clsx$1,exports.components=components,exports.composeClasses=composeClasses,exports.computeRecommendationSelectionFeedback=computeRecommendationSelectionFeedback,exports.computeStatementProcessingStepsFromElapsedTime=computeStatementProcessingStepsFromElapsedTime,exports.computeStickyLeftOffsets=computeStickyLeftOffsets,exports.createSvgIcon=createSvgIcon,exports.currencyAmountCompactFormatter=currencyAmountCompactFormatter,exports.darkColors=darkColors,exports.darkTheme=darkTheme,exports.debounce=debounce$1,exports.debounce$1=debounce,exports.defaultCardPolicyFormValues=defaultCardPolicyFormValues,exports.defer=defer,exports.describeSchedule=describeSchedule,exports.designDimension=designDimension,exports.fetchRequest=fetchRequest,exports.fileDownload=fileDownload,exports.formHasDirtyFields=formHasDirtyFields,exports.formatReconAccountDisplayName=formatReconAccountDisplayName,exports.generateDataTestId=generateDataTestId,exports.generateUtilityClass=generateUtilityClass,exports.generateUtilityClasses=generateUtilityClasses,exports.getAlpha2=getAlpha2,exports.getAlpha3=getAlpha3,exports.getCockpitColor=getCockpitColor,exports.getColorForALabel=getColorForALabel,exports.getCountries=getCountries$1,exports.getCustomerDataFromAutoComplete=getCustomerDataFromAutoComplete,exports.getDefaultExportFromCjs=getDefaultExportFromCjs,exports.getDropdownStyles=getDropdownStyles$1,exports.getFileNameFromResponseHeaders=getFileNameFromResponseHeaders,exports.getFilteredThreads=getFilteredThreads,exports.getFullName=getFullName$1,exports.getHTMLWithCommentingSections=getHTMLWithCommentingSections,exports.getHistoricMonthsList=getHistoricMonthsList,exports.getInitialOpenThreadRequestFromSearch=getInitialOpenThreadRequestFromSearch,exports.getLabelColor=getLabelColor,exports.getMonthIndex=getMonthIndex,exports.getMultiSelectDropdownStyles=getMultiSelectDropdownStyles,exports.getRecipientTotalAmount=getRecipientTotalAmount,exports.getReconAccountDisplayName=getReconAccountDisplayName,exports.getReviewVendorTagColor=getReviewVendorTagColor,exports.getRichLabel=getRichLabel,exports.getSelectionData=getSelectionData,exports.getShowNegativeAmountInParenthesisDefaultValue=getShowNegativeAmountInParenthesisDefaultValue,exports.getShowNegativeAmountInParenthesisForPercentDefaultValue=getShowNegativeAmountInParenthesisForPercentDefaultValue,exports.getStableTransactionId=getStableTransactionId,exports.getStatementParseTransactionCount=getStatementParseTransactionCount,exports.getTagLabel=getTagLabel,exports.getTemplatesFromTemplatedData=getTemplatesFromTemplatedData,exports.getTransactionAppliedFiltersCount=getTransactionAppliedFiltersCount,exports.getTransactionTagColor=getTransactionTagColor$1,exports.getUpdatedFiltersOnCategoryChange=getUpdatedFiltersOnCategoryChange$1,exports.getUpdatedFiltersOnMatchingOperatorChange=getUpdatedFiltersOnMatchingOperatorChange$1,exports.getUpdatedFiltersOnValueChange=getUpdatedFiltersOnValueChange$1,exports.has=has,exports.hasAgentInsights=hasAgentInsights,exports.invoicingMenuList=invoicingMenuList,exports.isCloseManagementMenu=isCloseManagementMenu,exports.isClosedCardStatus=isClosedCardStatus,exports.isCollaborationEntityType=isCollaborationEntityType,exports.isCommentNotificationKind=isCommentNotificationKind,exports.isEqual=isEqual$5,exports.isLayoutSupported=isLayoutSupported,exports.isMobileOrTabletView=isMobileOrTabletView,exports.isMobilePhoneScreen=isMobilePhoneScreen,exports.isRecommendationFeedbackDimension=isRecommendationFeedbackDimension,exports.isZeniAIUser=isZeniAIUser,exports.jsxRuntimeExports=jsxRuntimeExports,exports.lightColors=lightColors,exports.lightTheme=lightTheme,exports.memoTheme=memoTheme,exports.menuList=menuList,exports.mergeColumnDeclarativeWithRenderers=mergeColumnDeclarativeWithRenderers,exports.mergeLayoutDefaults=mergeLayoutDefaults,exports.nanoid=nanoid,exports.ownerDocument=ownerDocument,exports.ownerWindow=ownerWindow,exports.percentValueToString=percentValueToString,exports.reactIsExports=reactIsExports$1,exports.refType=refType,exports.requireToInteger=requireToInteger,exports.requireToString=requireToString,exports.require_baseProperty=require_baseProperty,exports.require_baseToString=require_baseToString,exports.require_castSlice=require_castSlice,exports.require_hasUnicode=require_hasUnicode,exports.require_stringToArray=require_stringToArray,exports.resolveBackgroundStatementProcessingCompletedSteps=resolveBackgroundStatementProcessingCompletedSteps,exports.resolveColumnWidth=resolveColumnWidth,exports.roundAmountIfNeeded=roundAmountIfNeeded,exports.roundOffNumberToTwoDecimal=roundOffNumberToTwoDecimal,exports.routineIdFromSession=routineIdFromSession,exports.scrollContainerToTargetAdjusted=scrollContainerToTargetAdjusted,exports.setAutoLogoutContext=setAutoLogoutContext,exports.setShowNegativeAmountInParenthesisDefaultValue=setShowNegativeAmountInParenthesisDefaultValue,exports.setShowNegativeAmountInParenthesisForPercentDefaultValue=setShowNegativeAmountInParenthesisForPercentDefaultValue,exports.settingMenuList=settingMenuList,exports.shortCadence=shortCadence,exports.sp=sp,exports.styled=styled,exports.textAlignForCell=textAlignForCell,exports.textStyles=textStyles,exports.toCollaborationEntityType=toCollaborationEntityType,exports.toGroupedAccountingClassOptions=toGroupedAccountingClassOptions,exports.toGroupedQboAccountOptions=toGroupedQboAccountOptions,exports.toInstitutionLogoDataUri=toInstitutionLogoDataUri,exports.toInvoicingMenuOptionType=toInvoicingMenuOptionType,exports.toInvoicingMenuOptionTypeStrict=toInvoicingMenuOptionTypeStrict,exports.toMccCategoryChipFieldValue=toMccCategoryChipFieldValue,exports.toMenuOptionType=toMenuOptionType,exports.toSettingsMenuOptionTypeStrict=toSettingsMenuOptionTypeStrict,exports.toSupportedLocaleStrict=toSupportedLocaleStrict,exports.toVendorChipFieldValue=toVendorChipFieldValue,exports.trackTreasuryTransferAnalytics=trackTreasuryTransferAnalytics,exports.uploadAttachmentReceipts=uploadAttachmentReceipts,exports.useAgentInsightEdits=useAgentInsightEdits,exports.useAnimation=useAnimation,exports.useApprovalRulesV3Config=useApprovalRulesV3Config,exports.useBackNavigation=useBackNavigation,exports.useCollaborationInfoContext=useCollaborationInfoContext,exports.useCommentsDrawer=useCommentsDrawer,exports.useDefaultProps=useDefaultProps,exports.useDelayUnmount=useDelayUnmount,exports.useDropdownPortal=useDropdownPortal,exports.useEnhancedEffect=useEnhancedEffect,exports.useEventCallback=useEventCallback,exports.useExpenseAutomationEnabledForUser=useExpenseAutomationEnabledForUser,exports.useFieldArray=useFieldArray,exports.useFieldHelp=useFieldHelp,exports.useFilteredThreads=useFilteredThreads,exports.useFloatingThreads=useFloatingThreads,exports.useForm=useForm,exports.useFormContext=useFormContext,exports.useGlobalInfoContext=useGlobalInfoContext,exports.useHandleSelection=useHandleSelection,exports.useLockBodyScroll=useLockBodyScroll,exports.useMeetingLinks=useMeetingLinks,exports.usePanelDirtyGuardRegistry=usePanelDirtyGuardRegistry,exports.usePanelInternal=usePanelInternal,exports.usePrevious=usePrevious$1,exports.useQuickViewMode=useQuickViewMode,exports.useRegisterBackHandler=useRegisterBackHandler,exports.useRegisterPanelDirtyGuard=useRegisterPanelDirtyGuard,exports.useRequestCloseAllCommentDrawers=useRequestCloseAllCommentDrawers,exports.useRtl=useRtl,exports.useSessionAutoLogoutConfig=useSessionAutoLogoutConfig,exports.useSidePanelContext=useSidePanelContext,exports.useSlot=useSlot,exports.useSlotProps=useSlotProps,exports.useTheme=useTheme,exports.useToolkitContext=useToolkitContext,exports.useWindowSizeContext=useWindowSizeContext,exports.useZeniCardsVisibilityConfig=useZeniCardsVisibilityConfig,exports.useZeniFeatureContext=useZeniFeatureContext,exports.useZeniThemeContext=useZeniThemeContext,exports.waitFor=waitFor;
|
|
89969
|
-
//# sourceMappingURL=SessionTimeoutPopup-
|
|
89969
|
+
//# sourceMappingURL=SessionTimeoutPopup-CYVHra5n.cjs.map
|